diff --git a/.github/release-please.yml b/.github/release-please.yml index 82744682..dce2c845 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1 +1,2 @@ releaseType: java-yoshi +bumpMinorPreMajor: true \ No newline at end of file diff --git a/.kokoro/build.sh b/.kokoro/build.sh index fa132f41..dc2936ef 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -27,6 +27,7 @@ echo ${JOB_TYPE} mvn install -B -V \ -DskipTests=true \ -Dclirr.skip=true \ + -Denforcer.skip=true \ -Dmaven.javadoc.skip=true \ -Dgcloud.download.skip=true \ -T 1C @@ -38,7 +39,7 @@ fi case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true + mvn test -B -Dclirr.skip=true -Denforcer.skip=true bash ${KOKORO_GFILE_DIR}/codecov.sh bash .kokoro/coerce_logs.sh ;; @@ -49,12 +50,17 @@ javadoc) mvn javadoc:javadoc javadoc:test-javadoc ;; integration) - mvn -B ${INTEGRATION_TEST_ARGS} -DtrimStackTrace=false -Dclirr.skip=true -fae verify + mvn -B ${INTEGRATION_TEST_ARGS} \ + -DtrimStackTrace=false \ + -Dclirr.skip=true \ + -Denforcer.skip=true \ + -fae \ + verify bash .kokoro/coerce_logs.sh ;; clirr) - mvn -B clirr:check + mvn -B -Denforcer.skip=true clirr:check ;; *) ;; -esac \ No newline at end of file +esac diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 4c920c11..eb73a82b 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -23,5 +23,9 @@ echo $JOB_TYPE export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" -mvn install -DskipTests=true -B -V +# this should run maven enforcer +mvn install -B -V \ + -DskipTests=true \ + -Dclirr.skip=true + mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/release/drop.cfg b/.kokoro/release/drop.cfg index 002e2c21..67478061 100644 --- a/.kokoro/release/drop.cfg +++ b/.kokoro/release/drop.cfg @@ -4,6 +4,3 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-container/.kokoro/release/drop.sh" } - -# Download staging properties file. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-container" \ No newline at end of file diff --git a/.kokoro/release/promote.cfg b/.kokoro/release/promote.cfg index b93d5b45..2331ff0a 100644 --- a/.kokoro/release/promote.cfg +++ b/.kokoro/release/promote.cfg @@ -4,7 +4,3 @@ env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-container/.kokoro/release/promote.sh" } - -# Download staging properties file. -gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/java/releases/java-container" - diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 87303003..37ba5028 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -33,7 +33,7 @@ python3 -m pip install gcp-docuploader # compile all packages mvn clean install -B -DskipTests=true -NAME=container +NAME=google-cloud-container VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # build the docs diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java index 47ff3854..263ebafd 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerClient.java @@ -15,11 +15,19 @@ */ package com.google.cloud.container.v1; +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.container.v1.stub.ClusterManagerStub; import com.google.cloud.container.v1.stub.ClusterManagerStubSettings; +import com.google.common.util.concurrent.MoreExecutors; import com.google.container.v1.AddonsConfig; import com.google.container.v1.CancelOperationRequest; import com.google.container.v1.Cluster; @@ -39,6 +47,8 @@ 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.MaintenancePolicy; import com.google.container.v1.NetworkPolicy; import com.google.container.v1.NodePool; @@ -61,6 +71,7 @@ import com.google.container.v1.UpdateClusterRequest; import com.google.container.v1.UpdateMasterRequest; import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1.UsableSubnetwork; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -202,10 +213,10 @@ public ClusterManagerStub getStub() { * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides, or "-" for all zones. * This field has been deprecated and replaced by the parent field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -281,13 +292,13 @@ public final UnaryCallable listCluste * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to retrieve. This field has been + * @param clusterId Required. Deprecated. The name of the cluster to retrieve. This field has been * deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -363,12 +374,12 @@ public final UnaryCallable getClusterCallable() { *

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

One firewall is added for the cluster. After cluster creation, the cluster creates routes + *

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 is - * being used by the cluster. + *

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

Sample code: * @@ -381,13 +392,13 @@ public final UnaryCallable getClusterCallable() { * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the parent field. - * @param cluster A [cluster + * @param cluster Required. A [cluster * resource](/container-engine/reference/rest/v1/projects.zones.clusters) * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -410,12 +421,12 @@ public final Operation createCluster(String projectId, String zone, Cluster clus *

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

One firewall is added for the cluster. After cluster creation, the cluster creates routes + *

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 is - * being used by the cluster. + *

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

Sample code: * @@ -448,12 +459,12 @@ public final Operation createCluster(CreateClusterRequest request) { *

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

One firewall is added for the cluster. After cluster creation, the cluster creates routes + *

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 is - * being used by the cluster. + *

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

Sample code: * @@ -493,15 +504,15 @@ public final UnaryCallable createClusterCallabl * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param update A description of the update. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param update Required. A description of the update. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation updateCluster( @@ -576,7 +587,7 @@ public final UnaryCallable updateClusterCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the version and/or image type for a specific node pool. + * Updates the version and/or image type for the specified node pool. * *

Sample code: * @@ -609,7 +620,7 @@ public final Operation updateNodePool(UpdateNodePoolRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Updates the version and/or image type for a specific node pool. + * Updates the version and/or image type for the specified node pool. * *

Sample code: * @@ -641,7 +652,7 @@ public final UnaryCallable updateNodePoolCalla // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the autoscaling settings for a specific node pool. + * Sets the autoscaling settings for the specified node pool. * *

Sample code: * @@ -672,7 +683,7 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Sets the autoscaling settings for a specific node pool. + * Sets the autoscaling settings for the specified node pool. * *

Sample code: * @@ -717,16 +728,16 @@ public final Operation setNodePoolAutoscaling(SetNodePoolAutoscalingRequest requ * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param loggingService The logging service the cluster should use to write metrics. Currently - * available options: + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param loggingService Required. The logging service the cluster should use to write metrics. + * Currently available options: *

* "logging.googleapis.com" - the Google Cloud Logging service * "none" - no * metrics will be exported from the cluster * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -817,18 +828,19 @@ public final UnaryCallable setLoggingServic * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param monitoringService The monitoring service the cluster should use to write metrics. - * Currently available options: - *

* "monitoring.googleapis.com" - the Google Cloud Monitoring service * "none" - - * no metrics will be exported from the cluster + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param monitoringService Required. The monitoring service the cluster should use to write + * metrics. Currently available options: + *

* "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring service with + * Kubernetes-native resource model * "monitoring.googleapis.com" - the Google Cloud + * Monitoring service * "none" - no metrics will be exported from the cluster * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setMonitoringService( @@ -918,16 +930,16 @@ public final Operation setMonitoringService(SetMonitoringServiceRequest request) * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param addonsConfig The desired configurations for the various addons available to run in the - * cluster. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param addonsConfig Required. The desired configurations for the various addons available to + * run in the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setAddonsConfig( @@ -1016,16 +1028,16 @@ public final UnaryCallable setAddonsConfigCal * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param locations The desired list of Google Compute Engine - * [locations](/compute/docs/zones#available) in which the cluster's nodes should be located. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param locations Required. The desired list of Google Compute Engine + * [zones](/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. @@ -1117,15 +1129,15 @@ public final UnaryCallable setLocationsCallable( * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to upgrade. This field has been deprecated - * and replaced by the name field. - * @param masterVersion The Kubernetes version to change the master to. + * @param clusterId Required. Deprecated. The name of the cluster to upgrade. This field has been + * deprecated and replaced by the name field. + * @param masterVersion Required. The Kubernetes version to change the master to. *

Users may specify either explicit versions offered by Kubernetes Engine or version * aliases, which have the following behavior: *

- "latest": picks the highest valid Kubernetes version - "1.X": picks the highest valid @@ -1206,8 +1218,8 @@ public final UnaryCallable updateMasterCallable( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Used to set master auth materials. Currently supports :- Changing the admin password for a - * specific cluster. This can be either via password generation or explicitly set the password. + * Sets master auth materials. Currently supports changing the admin password or a specific + * cluster, either via password generation or explicitly setting the password. * *

Sample code: * @@ -1238,8 +1250,8 @@ public final Operation setMasterAuth(SetMasterAuthRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Used to set master auth materials. Currently supports :- Changing the admin password for a - * specific cluster. This can be either via password generation or explicitly set the password. + * Sets master auth materials. Currently supports changing the admin password or a specific + * cluster, either via password generation or explicitly setting the password. * *

Sample code: * @@ -1273,8 +1285,9 @@ public final UnaryCallable setMasterAuthCallabl * *

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 (e.g. load - * balancer resources) will not be deleted if they weren't present at the initial create time. + *

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

Sample code: * @@ -1287,14 +1300,14 @@ public final UnaryCallable setMasterAuthCallabl * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to delete. This field has been deprecated - * and replaced by the name field. + * @param clusterId Required. Deprecated. The name of the cluster to delete. This field has been + * deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation deleteCluster(String projectId, String zone, String clusterId) { @@ -1314,8 +1327,9 @@ public final Operation deleteCluster(String projectId, String zone, String clust * *

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 (e.g. load - * balancer resources) will not be deleted if they weren't present at the initial create time. + *

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

Sample code: * @@ -1346,8 +1360,9 @@ public final Operation deleteCluster(DeleteClusterRequest request) { * *

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 (e.g. load - * balancer resources) will not be deleted if they weren't present at the initial create time. + *

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

Sample code: * @@ -1385,10 +1400,10 @@ public final UnaryCallable deleteClusterCallabl * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) to return operations for, or `-` for all zones. This * field has been deprecated and replaced by the parent field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1465,14 +1480,14 @@ public final ListOperationsResponse listOperations(ListOperationsRequest request * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param operationId Deprecated. The server-assigned `name` of the operation. This field has been - * deprecated and replaced by the name field. + * @param operationId Required. Deprecated. The server-assigned `name` of the operation. This + * field has been deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation getOperation(String projectId, String zone, String operationId) { @@ -1554,14 +1569,14 @@ public final UnaryCallable getOperationCallable( * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the operation resides. This field has been * deprecated and replaced by the name field. - * @param operationId Deprecated. The server-assigned `name` of the operation. This field has been - * deprecated and replaced by the name field. + * @param operationId Required. Deprecated. The server-assigned `name` of the operation. This + * field has been deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void cancelOperation(String projectId, String zone, String operationId) { @@ -1630,7 +1645,7 @@ public final UnaryCallable cancelOperationCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns configuration info about the Kubernetes Engine service. + * Returns configuration info about the Google Kubernetes Engine service. * *

Sample code: * @@ -1642,10 +1657,10 @@ public final UnaryCallable cancelOperationCallabl * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) to return operations for. This field has been * deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1659,7 +1674,7 @@ public final ServerConfig getServerConfig(String projectId, String zone) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns configuration info about the Kubernetes Engine service. + * Returns configuration info about the Google Kubernetes Engine service. * *

Sample code: * @@ -1684,7 +1699,7 @@ public final ServerConfig getServerConfig(GetServerConfigRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Returns configuration info about the Kubernetes Engine service. + * Returns configuration info about the Google Kubernetes Engine service. * *

Sample code: * @@ -1721,14 +1736,14 @@ public final UnaryCallable getServerConfig * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the parent field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the parent field. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the parent field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListNodePoolsResponse listNodePools( @@ -1798,7 +1813,7 @@ public final UnaryCallable listNode // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Retrieves the node pool requested. + * Retrieves the requested node pool. * *

Sample code: * @@ -1812,16 +1827,16 @@ public final UnaryCallable listNode * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool. This field has been deprecated and - * replaced by the name field. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool. This field has been + * deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final NodePool getNodePool( @@ -1839,7 +1854,7 @@ public final NodePool getNodePool( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Retrieves the node pool requested. + * Retrieves the requested node pool. * *

Sample code: * @@ -1868,7 +1883,7 @@ public final NodePool getNodePool(GetNodePoolRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Retrieves the node pool requested. + * Retrieves the requested node pool. * *

Sample code: * @@ -1910,15 +1925,15 @@ public final UnaryCallable getNodePoolCallable() { * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the parent field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the parent field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the parent field. - * @param nodePool The node pool to create. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the parent field. + * @param nodePool Required. The node pool to create. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation createNodePool( @@ -2007,16 +2022,16 @@ public final UnaryCallable createNodePoolCalla * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool to delete. This field has been - * deprecated and replaced by the name field. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool to delete. This field has + * been deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation deleteNodePool( @@ -2091,7 +2106,7 @@ public final UnaryCallable deleteNodePoolCalla // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last * upgrade successfully completed. * *

Sample code: @@ -2106,16 +2121,16 @@ public final UnaryCallable deleteNodePoolCalla * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to rollback. This field has been - * deprecated and replaced by the name field. - * @param nodePoolId Deprecated. The name of the node pool to rollback. This field has been + * @param clusterId Required. Deprecated. The name of the cluster to rollback. This field has been * deprecated and replaced by the name field. + * @param nodePoolId Required. Deprecated. The name of the node pool to rollback. This field has + * been deprecated and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation rollbackNodePoolUpgrade( @@ -2133,7 +2148,7 @@ public final Operation rollbackNodePoolUpgrade( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last * upgrade successfully completed. * *

Sample code: @@ -2163,7 +2178,7 @@ public final Operation rollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest re // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Roll back the previously Aborted or Failed NodePool upgrade. This will be an no-op if the last + * Rolls back a previously Aborted or Failed NodePool upgrade. This makes no changes if the last * upgrade successfully completed. * *

Sample code: @@ -2330,15 +2345,15 @@ public final UnaryCallable setLabelsCallable() { * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). This field has been deprecated * and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster to update. This field has been deprecated - * and replaced by the name field. - * @param enabled Whether ABAC authorization will be enabled in the cluster. + * @param clusterId Required. Deprecated. The name of the cluster to update. This field has been + * deprecated and replaced by the name field. + * @param enabled Required. Whether ABAC authorization will be enabled in the cluster. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setLegacyAbac( @@ -2413,7 +2428,7 @@ public final UnaryCallable setLegacyAbacCallabl // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Start master IP rotation. + * Starts master IP rotation. * *

Sample code: * @@ -2426,14 +2441,14 @@ public final UnaryCallable setLegacyAbacCallabl * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation startIPRotation(String projectId, String zone, String clusterId) { @@ -2449,7 +2464,7 @@ public final Operation startIPRotation(String projectId, String zone, String clu // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Start master IP rotation. + * Starts master IP rotation. * *

Sample code: * @@ -2476,7 +2491,7 @@ public final Operation startIPRotation(StartIPRotationRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Start master IP rotation. + * Starts master IP rotation. * *

Sample code: * @@ -2515,14 +2530,14 @@ public final UnaryCallable startIPRotationCal * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation completeIPRotation(String projectId, String zone, String clusterId) { @@ -2652,7 +2667,7 @@ public final UnaryCallable setNodePoolSizeCal // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Enables/Disables Network Policy for a cluster. + * Enables or disables Network Policy for a cluster. * *

Sample code: * @@ -2666,15 +2681,15 @@ public final UnaryCallable setNodePoolSizeCal * } * * - * @param projectId Deprecated. The Google Developers Console [project ID or project + * @param projectId Required. Deprecated. The Google Developers Console [project ID or project * number](https://developers.google.com/console/help/new/#projectnumber). This field has been * deprecated and replaced by the name field. - * @param zone Deprecated. The name of the Google Compute Engine + * @param zone Required. Deprecated. The name of the Google Compute Engine * [zone](/compute/docs/zones#available) in which the cluster resides. This field has been * deprecated and replaced by the name field. - * @param clusterId Deprecated. The name of the cluster. This field has been deprecated and - * replaced by the name field. - * @param networkPolicy Configuration options for the NetworkPolicy feature. + * @param clusterId Required. Deprecated. The name of the cluster. This field has been deprecated + * and replaced by the name field. + * @param networkPolicy Required. Configuration options for the NetworkPolicy feature. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setNetworkPolicy( @@ -2692,7 +2707,7 @@ public final Operation setNetworkPolicy( // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Enables/Disables Network Policy for a cluster. + * Enables or disables Network Policy for a cluster. * *

Sample code: * @@ -2721,7 +2736,7 @@ public final Operation setNetworkPolicy(SetNetworkPolicyRequest request) { // AUTO-GENERATED DOCUMENTATION AND METHOD /** - * Enables/Disables Network Policy for a cluster. + * Enables or disables Network Policy for a cluster. * *

Sample code: * @@ -2763,13 +2778,13 @@ public final UnaryCallable setNetworkPolicyC * } * * - * @param projectId The Google Developers Console [project ID or project + * @param projectId Required. The Google Developers Console [project ID or project * number](https://support.google.com/cloud/answer/6158840). - * @param zone The name of the Google Compute Engine [zone](/compute/docs/zones#available) in - * which the cluster resides. - * @param clusterId The name of the cluster to update. - * @param maintenancePolicy The maintenance policy to be set for the cluster. An empty field - * clears the existing maintenance policy. + * @param zone Required. The name of the Google Compute Engine + * [zone](/compute/docs/zones#available) in which the cluster resides. + * @param clusterId Required. The name of the cluster to update. + * @param maintenancePolicy Required. The maintenance policy to be set for the cluster. An empty + * field clears the existing maintenance policy. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Operation setMaintenancePolicy( @@ -2843,6 +2858,80 @@ public final Operation setMaintenancePolicy(SetMaintenancePolicyRequest request) return stub.setMaintenancePolicyCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder().build();
+   *   for (UsableSubnetwork element : clusterManagerClient.listUsableSubnetworks(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListUsableSubnetworksPagedResponse listUsableSubnetworks( + ListUsableSubnetworksRequest request) { + return listUsableSubnetworksPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder().build();
+   *   ApiFuture<ListUsableSubnetworksPagedResponse> future = clusterManagerClient.listUsableSubnetworksPagedCallable().futureCall(request);
+   *   // Do something
+   *   for (UsableSubnetwork element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listUsableSubnetworksPagedCallable() { + return stub.listUsableSubnetworksPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD + /** + * Lists subnetworks that are usable for creating clusters in a project. + * + *

Sample code: + * + *


+   * try (ClusterManagerClient clusterManagerClient = ClusterManagerClient.create()) {
+   *   ListUsableSubnetworksRequest request = ListUsableSubnetworksRequest.newBuilder().build();
+   *   while (true) {
+   *     ListUsableSubnetworksResponse response = clusterManagerClient.listUsableSubnetworksCallable().call(request);
+   *     for (UsableSubnetwork element : response.getSubnetworksList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * 
+ */ + public final UnaryCallable + listUsableSubnetworksCallable() { + return stub.listUsableSubnetworksCallable(); + } + @Override public final void close() { stub.close(); @@ -2872,4 +2961,93 @@ public void shutdownNow() { public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { return stub.awaitTermination(duration, unit); } + + public static class ListUsableSubnetworksPagedResponse + extends AbstractPagedListResponse< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage, + ListUsableSubnetworksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListUsableSubnetworksPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListUsableSubnetworksPagedResponse apply(ListUsableSubnetworksPage input) { + return new ListUsableSubnetworksPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListUsableSubnetworksPagedResponse(ListUsableSubnetworksPage page) { + super(page, ListUsableSubnetworksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListUsableSubnetworksPage + extends AbstractPage< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage> { + + private ListUsableSubnetworksPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + super(context, response); + } + + private static ListUsableSubnetworksPage createEmptyPage() { + return new ListUsableSubnetworksPage(null, null); + } + + @Override + protected ListUsableSubnetworksPage createPage( + PageContext + context, + ListUsableSubnetworksResponse response) { + return new ListUsableSubnetworksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListUsableSubnetworksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + UsableSubnetwork, + ListUsableSubnetworksPage, + ListUsableSubnetworksFixedSizeCollection> { + + private ListUsableSubnetworksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListUsableSubnetworksFixedSizeCollection createEmptyCollection() { + return new ListUsableSubnetworksFixedSizeCollection(null, 0); + } + + @Override + protected ListUsableSubnetworksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListUsableSubnetworksFixedSizeCollection(pages, collectionSize); + } + } } diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java index 96c41a5f..4f9a1462 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/ClusterManagerSettings.java @@ -15,6 +15,8 @@ */ 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; @@ -23,6 +25,7 @@ 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; @@ -43,6 +46,8 @@ 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; @@ -251,6 +256,15 @@ public UnaryCallSettings setMaintenanceP 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(); @@ -510,6 +524,15 @@ public UnaryCallSettings.Builder setNodePoolS 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/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java index 4d32c13c..e53a9040 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStub.java @@ -15,6 +15,8 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -35,6 +37,8 @@ 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; @@ -189,6 +193,17 @@ public UnaryCallable setMaintenancePolic throw new UnsupportedOperationException("Not implemented: setMaintenancePolicyCallable()"); } + public UnaryCallable + listUsableSubnetworksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listUsableSubnetworksPagedCallable()"); + } + + public UnaryCallable + listUsableSubnetworksCallable() { + throw new UnsupportedOperationException("Not implemented: listUsableSubnetworksCallable()"); + } + @Override public abstract void close(); } diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java index da1c096c..f0cd97d3 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/ClusterManagerStubSettings.java @@ -15,7 +15,10 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; import com.google.api.gax.core.GaxProperties; import com.google.api.gax.core.GoogleCredentialsProvider; @@ -24,12 +27,18 @@ import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; import com.google.api.gax.rpc.StatusCode; import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; @@ -51,6 +60,8 @@ 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; @@ -71,6 +82,7 @@ import com.google.container.v1.UpdateClusterRequest; import com.google.container.v1.UpdateMasterRequest; import com.google.container.v1.UpdateNodePoolRequest; +import com.google.container.v1.UsableSubnetwork; import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; @@ -148,6 +160,11 @@ public class ClusterManagerStubSettings extends StubSettings setNetworkPolicySettings; private final UnaryCallSettings setMaintenancePolicySettings; + private final PagedCallSettings< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; /** Returns the object with the settings used for calls to listClusters. */ public UnaryCallSettings listClustersSettings() { @@ -302,6 +319,15 @@ public UnaryCallSettings setMaintenanceP return setMaintenancePolicySettings; } + /** Returns the object with the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public ClusterManagerStub createStub() throws IOException { if (getTransportChannelProvider() @@ -401,8 +427,74 @@ protected ClusterManagerStubSettings(Builder settingsBuilder) throws IOException setNodePoolSizeSettings = settingsBuilder.setNodePoolSizeSettings().build(); setNetworkPolicySettings = settingsBuilder.setNetworkPolicySettings().build(); setMaintenancePolicySettings = settingsBuilder.setMaintenancePolicySettings().build(); + listUsableSubnetworksSettings = settingsBuilder.listUsableSubnetworksSettings().build(); } + private static final PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListUsableSubnetworksRequest injectToken( + ListUsableSubnetworksRequest payload, String token) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListUsableSubnetworksRequest injectPageSize( + ListUsableSubnetworksRequest payload, int pageSize) { + return ListUsableSubnetworksRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListUsableSubnetworksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListUsableSubnetworksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListUsableSubnetworksResponse payload) { + return payload.getSubnetworksList() != null + ? payload.getSubnetworksList() + : ImmutableList.of(); + } + }; + + private static final PagedListResponseFactory< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListUsableSubnetworksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListUsableSubnetworksRequest, ListUsableSubnetworksResponse, UsableSubnetwork> + pageContext = + PageContext.create( + callable, LIST_USABLE_SUBNETWORKS_PAGE_STR_DESC, request, context); + return ListUsableSubnetworksPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Builder for ClusterManagerStubSettings. */ public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; @@ -455,6 +547,11 @@ public static class Builder extends StubSettings.Builder setMaintenancePolicySettings; + private final PagedCallSettings.Builder< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -557,6 +654,9 @@ protected Builder(ClientContext clientContext) { setMaintenancePolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listUsableSubnetworksSettings = + PagedCallSettings.newBuilder(LIST_USABLE_SUBNETWORKS_PAGE_STR_FACT); + unaryMethodSettingsBuilders = ImmutableList.>of( listClustersSettings, @@ -588,7 +688,8 @@ protected Builder(ClientContext clientContext) { completeIPRotationSettings, setNodePoolSizeSettings, setNetworkPolicySettings, - setMaintenancePolicySettings); + setMaintenancePolicySettings, + listUsableSubnetworksSettings); initDefaults(this); } @@ -666,7 +767,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteClusterSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -706,7 +807,7 @@ private static Builder initDefaults(Builder builder) { builder .deleteNodePoolSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); builder @@ -754,6 +855,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("non_idempotent")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + builder + .listUsableSubnetworksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("idempotent")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("default")); + return builder; } @@ -790,6 +896,7 @@ protected Builder(ClusterManagerStubSettings settings) { setNodePoolSizeSettings = settings.setNodePoolSizeSettings.toBuilder(); setNetworkPolicySettings = settings.setNetworkPolicySettings.toBuilder(); setMaintenancePolicySettings = settings.setMaintenancePolicySettings.toBuilder(); + listUsableSubnetworksSettings = settings.listUsableSubnetworksSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -822,7 +929,8 @@ protected Builder(ClusterManagerStubSettings settings) { completeIPRotationSettings, setNodePoolSizeSettings, setNetworkPolicySettings, - setMaintenancePolicySettings); + setMaintenancePolicySettings, + listUsableSubnetworksSettings); } // NEXT_MAJOR_VER: remove 'throws Exception' @@ -1003,6 +1111,15 @@ public UnaryCallSettings.Builder setNodePoolS return setMaintenancePolicySettings; } + /** Returns the builder for the settings used for calls to listUsableSubnetworks. */ + public PagedCallSettings.Builder< + ListUsableSubnetworksRequest, + ListUsableSubnetworksResponse, + ListUsableSubnetworksPagedResponse> + listUsableSubnetworksSettings() { + return listUsableSubnetworksSettings; + } + @Override public ClusterManagerStubSettings build() throws IOException { return new ClusterManagerStubSettings(this); diff --git a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java index a29c4e4e..6da0ec58 100644 --- a/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java +++ b/google-cloud-container/src/main/java/com/google/cloud/container/v1/stub/GrpcClusterManagerStub.java @@ -15,6 +15,8 @@ */ package com.google.cloud.container.v1.stub; +import static com.google.cloud.container.v1.ClusterManagerClient.ListUsableSubnetworksPagedResponse; + import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -41,6 +43,8 @@ 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; @@ -342,6 +346,16 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { 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 BackgroundResource backgroundResources; @@ -378,6 +392,10 @@ public class GrpcClusterManagerStub extends ClusterManagerStub { private final UnaryCallable setNodePoolSizeCallable; private final UnaryCallable setNetworkPolicyCallable; private final UnaryCallable setMaintenancePolicyCallable; + private final UnaryCallable + listUsableSubnetworksCallable; + private final UnaryCallable + listUsableSubnetworksPagedCallable; private final GrpcStubCallableFactory callableFactory; @@ -814,6 +832,21 @@ public Map extract(SetMaintenancePolicyRequest request) { } }) .build(); + GrpcCallSettings + listUsableSubnetworksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listUsableSubnetworksMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListUsableSubnetworksRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); this.listClustersCallable = callableFactory.createUnaryCallable( @@ -919,6 +952,16 @@ public Map extract(SetMaintenancePolicyRequest request) { setMaintenancePolicyTransportSettings, settings.setMaintenancePolicySettings(), clientContext); + this.listUsableSubnetworksCallable = + callableFactory.createUnaryCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); + this.listUsableSubnetworksPagedCallable = + callableFactory.createPagedCallable( + listUsableSubnetworksTransportSettings, + settings.listUsableSubnetworksSettings(), + clientContext); backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); } @@ -1044,6 +1087,16 @@ public UnaryCallable setMaintenancePolic return setMaintenancePolicyCallable; } + public UnaryCallable + listUsableSubnetworksPagedCallable() { + return listUsableSubnetworksPagedCallable; + } + + public UnaryCallable + listUsableSubnetworksCallable() { + return listUsableSubnetworksCallable; + } + @Override public final void close() { shutdown(); diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java index 6951a49c..afef3f8c 100644 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1/ClusterManagerClientTest.java @@ -65,6 +65,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.List; +import java.util.UUID; import org.junit.After; import org.junit.AfterClass; import org.junit.Assert; @@ -83,7 +84,8 @@ public class ClusterManagerClientTest { public static void startStaticServer() { mockClusterManager = new MockClusterManager(); serviceHelper = - new MockServiceHelper("in-process-1", Arrays.asList(mockClusterManager)); + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockClusterManager)); serviceHelper.start(); } @@ -176,6 +178,8 @@ public void getClusterTest() { int currentNodeCount = 178977560; String expireTime = "expireTime-96179731"; String location = "location1901043637"; + boolean enableTpu = false; + String tpuIpv4CidrBlock = "tpuIpv4CidrBlock1137906646"; Cluster expectedResponse = Cluster.newBuilder() .setName(name) @@ -201,6 +205,8 @@ public void getClusterTest() { .setCurrentNodeCount(currentNodeCount) .setExpireTime(expireTime) .setLocation(location) + .setEnableTpu(enableTpu) + .setTpuIpv4CidrBlock(tpuIpv4CidrBlock) .build(); mockClusterManager.addResponse(expectedResponse); @@ -1020,6 +1026,7 @@ public void getNodePoolTest() { String selfLink = "selfLink-1691268851"; String version = "version351608024"; String statusMessage = "statusMessage-239442758"; + int podIpv4CidrSize = 1098768716; NodePool expectedResponse = NodePool.newBuilder() .setName(name) @@ -1027,6 +1034,7 @@ public void getNodePoolTest() { .setSelfLink(selfLink) .setVersion(version) .setStatusMessage(statusMessage) + .setPodIpv4CidrSize(podIpv4CidrSize) .build(); mockClusterManager.addResponse(expectedResponse); diff --git a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java index 11212a29..109ba1b4 100644 --- a/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java +++ b/google-cloud-container/src/test/java/com/google/cloud/container/v1/MockClusterManagerImpl.java @@ -34,6 +34,8 @@ 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; @@ -540,4 +542,20 @@ public void setMaintenancePolicy( responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); } } + + @Override + public void listUsableSubnetworks( + ListUsableSubnetworksRequest request, + StreamObserver responseObserver) { + Object response = responses.remove(); + if (response instanceof ListUsableSubnetworksResponse) { + requests.add(request); + responseObserver.onNext((ListUsableSubnetworksResponse) response); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError((Exception) response); + } else { + responseObserver.onError(new IllegalArgumentException("Unrecognized response type")); + } + } } diff --git a/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java b/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java index 554bfdac..e2f7512a 100644 --- a/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java +++ b/grpc-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterManagerGrpc.java @@ -13,7 +13,6 @@ * 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; @@ -1625,6 +1624,67 @@ private ClusterManagerGrpc() {} return getSetMaintenancePolicyMethod; } + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListUsableSubnetworksMethod()} instead. + public static final io.grpc.MethodDescriptor< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse> + METHOD_LIST_USABLE_SUBNETWORKS = getListUsableSubnetworksMethodHelper(); + + private static volatile io.grpc.MethodDescriptor< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethod; + + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + public static io.grpc.MethodDescriptor< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethod() { + return getListUsableSubnetworksMethodHelper(); + } + + private static io.grpc.MethodDescriptor< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse> + getListUsableSubnetworksMethodHelper() { + 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( + "google.container.v1.ClusterManager", "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) { return new ClusterManagerStub(channel); @@ -1688,11 +1748,11 @@ public void getCluster( * By default, the cluster is created in the project's * [default network](/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the cluster creates routes for each node to allow the containers + * 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 is being used by the cluster. + * which CIDR range the cluster is using. * */ public void createCluster( @@ -1718,7 +1778,7 @@ public void updateCluster( * * *
-     * Updates the version and/or image type for a specific node pool.
+     * Updates the version and/or image type for the specified node pool.
      * 
*/ public void updateNodePool( @@ -1731,7 +1791,7 @@ public void updateNodePool( * * *
-     * Sets the autoscaling settings for a specific node pool.
+     * Sets the autoscaling settings for the specified node pool.
      * 
*/ public void setNodePoolAutoscaling( @@ -1809,9 +1869,9 @@ public void updateMaster( * * *
-     * Used to set master auth materials. Currently supports :-
-     * Changing the admin password for a specific cluster.
-     * This can be either via password generation or explicitly set the password.
+     * 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( @@ -1828,9 +1888,9 @@ public void setMasterAuth( * 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 - * (e.g. load balancer resources) will not be deleted if they weren't present - * at the initial create time. + * 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( @@ -1883,7 +1943,7 @@ public void cancelOperation( * * *
-     * Returns configuration info about the Kubernetes Engine service.
+     * Returns configuration info about the Google Kubernetes Engine service.
      * 
*/ public void getServerConfig( @@ -1910,7 +1970,7 @@ public void listNodePools( * * *
-     * Retrieves the node pool requested.
+     * Retrieves the requested node pool.
      * 
*/ public void getNodePool( @@ -1949,8 +2009,8 @@ public void deleteNodePool( * * *
-     * Roll back the previously Aborted or Failed NodePool upgrade.
-     * This will be an no-op if the last upgrade successfully completed.
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
      * 
*/ public void rollbackNodePoolUpgrade( @@ -2002,7 +2062,7 @@ public void setLegacyAbac( * * *
-     * Start master IP rotation.
+     * Starts master IP rotation.
      * 
*/ public void startIPRotation( @@ -2041,7 +2101,7 @@ public void setNodePoolSize( * * *
-     * Enables/Disables Network Policy for a cluster.
+     * Enables or disables Network Policy for a cluster.
      * 
*/ public void setNetworkPolicy( @@ -2063,6 +2123,20 @@ public void setMaintenancePolicy( asyncUnimplementedUnaryCall(getSetMaintenancePolicyMethodHelper(), 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) { + asyncUnimplementedUnaryCall(getListUsableSubnetworksMethodHelper(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -2249,6 +2323,13 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.container.v1.SetMaintenancePolicyRequest, com.google.container.v1.Operation>(this, METHODID_SET_MAINTENANCE_POLICY))) + .addMethod( + getListUsableSubnetworksMethodHelper(), + asyncUnaryCall( + new MethodHandlers< + com.google.container.v1.ListUsableSubnetworksRequest, + com.google.container.v1.ListUsableSubnetworksResponse>( + this, METHODID_LIST_USABLE_SUBNETWORKS))) .build(); } } @@ -2318,11 +2399,11 @@ public void getCluster( * By default, the cluster is created in the project's * [default network](/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the cluster creates routes for each node to allow the containers + * 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 is being used by the cluster. + * which CIDR range the cluster is using. * */ public void createCluster( @@ -2354,7 +2435,7 @@ public void updateCluster( * * *
-     * Updates the version and/or image type for a specific node pool.
+     * Updates the version and/or image type for the specified node pool.
      * 
*/ public void updateNodePool( @@ -2370,7 +2451,7 @@ public void updateNodePool( * * *
-     * Sets the autoscaling settings for a specific node pool.
+     * Sets the autoscaling settings for the specified node pool.
      * 
*/ public void setNodePoolAutoscaling( @@ -2466,9 +2547,9 @@ public void updateMaster( * * *
-     * Used to set master auth materials. Currently supports :-
-     * Changing the admin password for a specific cluster.
-     * This can be either via password generation or explicitly set the password.
+     * 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( @@ -2488,9 +2569,9 @@ public void setMasterAuth( * 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 - * (e.g. load balancer resources) will not be deleted if they weren't present - * at the initial create time. + * 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( @@ -2555,7 +2636,7 @@ public void cancelOperation( * * *
-     * Returns configuration info about the Kubernetes Engine service.
+     * Returns configuration info about the Google Kubernetes Engine service.
      * 
*/ public void getServerConfig( @@ -2588,7 +2669,7 @@ public void listNodePools( * * *
-     * Retrieves the node pool requested.
+     * Retrieves the requested node pool.
      * 
*/ public void getNodePool( @@ -2636,8 +2717,8 @@ public void deleteNodePool( * * *
-     * Roll back the previously Aborted or Failed NodePool upgrade.
-     * This will be an no-op if the last upgrade successfully completed.
+     * Rolls back a previously Aborted or Failed NodePool upgrade.
+     * This makes no changes if the last upgrade successfully completed.
      * 
*/ public void rollbackNodePoolUpgrade( @@ -2701,7 +2782,7 @@ public void setLegacyAbac( * * *
-     * Start master IP rotation.
+     * Starts master IP rotation.
      * 
*/ public void startIPRotation( @@ -2749,7 +2830,7 @@ public void setNodePoolSize( * * *
-     * Enables/Disables Network Policy for a cluster.
+     * Enables or disables Network Policy for a cluster.
      * 
*/ public void setNetworkPolicy( @@ -2776,6 +2857,23 @@ public void setMaintenancePolicy( 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) { + asyncUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), + request, + responseObserver); + } } /** @@ -2837,11 +2935,11 @@ public com.google.container.v1.Cluster getCluster( * By default, the cluster is created in the project's * [default network](/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the cluster creates routes for each node to allow the containers + * 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 is being used by the cluster. + * which CIDR range the cluster is using. * */ public com.google.container.v1.Operation createCluster( @@ -2867,7 +2965,7 @@ public com.google.container.v1.Operation updateCluster( * * *
-     * Updates the version and/or image type for a specific node pool.
+     * Updates the version and/or image type for the specified node pool.
      * 
*/ public com.google.container.v1.Operation updateNodePool( @@ -2880,7 +2978,7 @@ public com.google.container.v1.Operation updateNodePool( * * *
-     * Sets the autoscaling settings for a specific node pool.
+     * Sets the autoscaling settings for the specified node pool.
      * 
*/ public com.google.container.v1.Operation setNodePoolAutoscaling( @@ -2958,9 +3056,9 @@ public com.google.container.v1.Operation updateMaster( * * *
-     * Used to set master auth materials. Currently supports :-
-     * Changing the admin password for a specific cluster.
-     * This can be either via password generation or explicitly set the password.
+     * 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( @@ -2977,9 +3075,9 @@ public com.google.container.v1.Operation setMasterAuth( * 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 - * (e.g. load balancer resources) will not be deleted if they weren't present - * at the initial create time. + * 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( @@ -3031,7 +3129,7 @@ public com.google.protobuf.Empty cancelOperation( * * *
-     * Returns configuration info about the Kubernetes Engine service.
+     * Returns configuration info about the Google Kubernetes Engine service.
      * 
*/ public com.google.container.v1.ServerConfig getServerConfig( @@ -3057,7 +3155,7 @@ public com.google.container.v1.ListNodePoolsResponse listNodePools( * * *
-     * Retrieves the node pool requested.
+     * Retrieves the requested node pool.
      * 
*/ public com.google.container.v1.NodePool getNodePool( @@ -3096,8 +3194,8 @@ public com.google.container.v1.Operation deleteNodePool( * * *
-     * Roll back the previously Aborted or Failed NodePool upgrade.
-     * This will be an no-op if the last upgrade successfully completed.
+     * 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( @@ -3148,7 +3246,7 @@ public com.google.container.v1.Operation setLegacyAbac( * * *
-     * Start master IP rotation.
+     * Starts master IP rotation.
      * 
*/ public com.google.container.v1.Operation startIPRotation( @@ -3187,7 +3285,7 @@ public com.google.container.v1.Operation setNodePoolSize( * * *
-     * Enables/Disables Network Policy for a cluster.
+     * Enables or disables Network Policy for a cluster.
      * 
*/ public com.google.container.v1.Operation setNetworkPolicy( @@ -3208,6 +3306,19 @@ public com.google.container.v1.Operation setMaintenancePolicy( return blockingUnaryCall( getChannel(), getSetMaintenancePolicyMethodHelper(), 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 blockingUnaryCall( + getChannel(), getListUsableSubnetworksMethodHelper(), getCallOptions(), request); + } } /** @@ -3270,11 +3381,11 @@ protected ClusterManagerFutureStub build( * By default, the cluster is created in the project's * [default network](/compute/docs/networks-and-firewalls#networks). * One firewall is added for the cluster. After cluster creation, - * the cluster creates routes for each node to allow the containers + * 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 is being used by the cluster. + * which CIDR range the cluster is using. * */ public com.google.common.util.concurrent.ListenableFuture @@ -3300,7 +3411,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Updates the version and/or image type for a specific node pool.
+     * Updates the version and/or image type for the specified node pool.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3313,7 +3424,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Sets the autoscaling settings for a specific node pool.
+     * Sets the autoscaling settings for the specified node pool.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3391,9 +3502,9 @@ protected ClusterManagerFutureStub build( * * *
-     * Used to set master auth materials. Currently supports :-
-     * Changing the admin password for a specific cluster.
-     * This can be either via password generation or explicitly set the password.
+     * 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 @@ -3410,9 +3521,9 @@ protected ClusterManagerFutureStub build( * 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 - * (e.g. load balancer resources) will not be deleted if they weren't present - * at the initial create time. + * 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 @@ -3465,7 +3576,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Returns configuration info about the Kubernetes Engine service.
+     * Returns configuration info about the Google Kubernetes Engine service.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3492,7 +3603,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Retrieves the node pool requested.
+     * Retrieves the requested node pool.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3531,8 +3642,8 @@ protected ClusterManagerFutureStub build( * * *
-     * Roll back the previously Aborted or Failed NodePool upgrade.
-     * This will be an no-op if the last upgrade successfully completed.
+     * 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 @@ -3585,7 +3696,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Start master IP rotation.
+     * Starts master IP rotation.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3624,7 +3735,7 @@ protected ClusterManagerFutureStub build( * * *
-     * Enables/Disables Network Policy for a cluster.
+     * Enables or disables Network Policy for a cluster.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture @@ -3645,6 +3756,20 @@ protected ClusterManagerFutureStub build( return futureUnaryCall( getChannel().newCall(getSetMaintenancePolicyMethodHelper(), 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 futureUnaryCall( + getChannel().newCall(getListUsableSubnetworksMethodHelper(), getCallOptions()), request); + } } private static final int METHODID_LIST_CLUSTERS = 0; @@ -3677,6 +3802,7 @@ protected ClusterManagerFutureStub build( private static final int METHODID_SET_NODE_POOL_SIZE = 27; private static final int METHODID_SET_NETWORK_POLICY = 28; private static final int METHODID_SET_MAINTENANCE_POLICY = 29; + private static final int METHODID_LIST_USABLE_SUBNETWORKS = 30; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3848,6 +3974,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (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(); } @@ -3942,6 +4074,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getSetNodePoolSizeMethodHelper()) .addMethod(getSetNetworkPolicyMethodHelper()) .addMethod(getSetMaintenancePolicyMethodHelper()) + .addMethod(getListUsableSubnetworksMethodHelper()) .build(); } } diff --git a/proto-google-cloud-container-v1/clirr-ignored-differences.xml b/proto-google-cloud-container-v1/clirr-ignored-differences.xml new file mode 100644 index 00000000..53518c89 --- /dev/null +++ b/proto-google-cloud-container-v1/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7012 + com/google/container/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/container/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/container/v1/*OrBuilder + boolean has*(*) + + diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java index 61de534b..1a4e9f4f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfig.java @@ -41,6 +41,12 @@ private AcceleratorConfig() { acceleratorType_ = ""; } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcceleratorConfig(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -54,7 +60,6 @@ private AcceleratorConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -121,6 +126,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * int64 accelerator_count = 1; + * + * @return The acceleratorCount. */ public long getAcceleratorCount() { return acceleratorCount_; @@ -133,10 +140,12 @@ public long getAcceleratorCount() { * *
    * The accelerator type resource name. List of supported accelerators
-   * [here](/compute/docs/gpus/#Introduction)
+   * [here](/compute/docs/gpus)
    * 
* * string accelerator_type = 2; + * + * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; @@ -154,10 +163,12 @@ public java.lang.String getAcceleratorType() { * *
    * The accelerator type resource name. List of supported accelerators
-   * [here](/compute/docs/gpus/#Introduction)
+   * [here](/compute/docs/gpus)
    * 
* * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. */ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; @@ -511,6 +522,8 @@ public Builder mergeFrom( * * * int64 accelerator_count = 1; + * + * @return The acceleratorCount. */ public long getAcceleratorCount() { return acceleratorCount_; @@ -523,6 +536,9 @@ public long getAcceleratorCount() { * * * int64 accelerator_count = 1; + * + * @param value The acceleratorCount to set. + * @return This builder for chaining. */ public Builder setAcceleratorCount(long value) { @@ -538,6 +554,8 @@ public Builder setAcceleratorCount(long value) { * * * int64 accelerator_count = 1; + * + * @return This builder for chaining. */ public Builder clearAcceleratorCount() { @@ -552,10 +570,12 @@ public Builder clearAcceleratorCount() { * *
      * The accelerator type resource name. List of supported accelerators
-     * [here](/compute/docs/gpus/#Introduction)
+     * [here](/compute/docs/gpus)
      * 
* * string accelerator_type = 2; + * + * @return The acceleratorType. */ public java.lang.String getAcceleratorType() { java.lang.Object ref = acceleratorType_; @@ -573,10 +593,12 @@ public java.lang.String getAcceleratorType() { * *
      * The accelerator type resource name. List of supported accelerators
-     * [here](/compute/docs/gpus/#Introduction)
+     * [here](/compute/docs/gpus)
      * 
* * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. */ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { java.lang.Object ref = acceleratorType_; @@ -594,10 +616,13 @@ public com.google.protobuf.ByteString getAcceleratorTypeBytes() { * *
      * The accelerator type resource name. List of supported accelerators
-     * [here](/compute/docs/gpus/#Introduction)
+     * [here](/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) { @@ -613,10 +638,12 @@ public Builder setAcceleratorType(java.lang.String value) { * *
      * The accelerator type resource name. List of supported accelerators
-     * [here](/compute/docs/gpus/#Introduction)
+     * [here](/compute/docs/gpus)
      * 
* * string accelerator_type = 2; + * + * @return This builder for chaining. */ public Builder clearAcceleratorType() { @@ -629,10 +656,13 @@ public Builder clearAcceleratorType() { * *
      * The accelerator type resource name. List of supported accelerators
-     * [here](/compute/docs/gpus/#Introduction)
+     * [here](/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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java index 9536fe25..8fa8c914 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AcceleratorConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface AcceleratorConfigOrBuilder * * * int64 accelerator_count = 1; + * + * @return The acceleratorCount. */ long getAcceleratorCount(); @@ -39,10 +41,12 @@ public interface AcceleratorConfigOrBuilder * *
    * The accelerator type resource name. List of supported accelerators
-   * [here](/compute/docs/gpus/#Introduction)
+   * [here](/compute/docs/gpus)
    * 
* * string accelerator_type = 2; + * + * @return The acceleratorType. */ java.lang.String getAcceleratorType(); /** @@ -50,10 +54,12 @@ public interface AcceleratorConfigOrBuilder * *
    * The accelerator type resource name. List of supported accelerators
-   * [here](/compute/docs/gpus/#Introduction)
+   * [here](/compute/docs/gpus)
    * 
* * string accelerator_type = 2; + * + * @return The bytes for acceleratorType. */ com.google.protobuf.ByteString getAcceleratorTypeBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java index 02f55157..46bc760b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfig.java @@ -40,6 +40,12 @@ private AddonsConfig(com.google.protobuf.GeneratedMessageV3.Builder 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; @@ -53,7 +59,6 @@ private AddonsConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -126,6 +131,22 @@ private AddonsConfig( networkPolicyConfig_ = subBuilder.buildPartial(); } + break; + } + case 58: + { + com.google.container.v1.CloudRunConfig.Builder subBuilder = null; + if (cloudRunConfig_ != null) { + subBuilder = cloudRunConfig_.toBuilder(); + } + cloudRunConfig_ = + input.readMessage( + com.google.container.v1.CloudRunConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cloudRunConfig_); + cloudRunConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -173,6 +194,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. */ public boolean hasHttpLoadBalancing() { return httpLoadBalancing_ != null; @@ -186,6 +209,8 @@ public boolean hasHttpLoadBalancing() { * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. */ public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { return httpLoadBalancing_ == null @@ -218,6 +243,8 @@ public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOr * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. */ public boolean hasHorizontalPodAutoscaling() { return horizontalPodAutoscaling_ != null; @@ -232,6 +259,8 @@ public boolean hasHorizontalPodAutoscaling() { * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. */ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { return horizontalPodAutoscaling_ == null @@ -261,10 +290,18 @@ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscal * *
    * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. */ + @java.lang.Deprecated public boolean hasKubernetesDashboard() { return kubernetesDashboard_ != null; } @@ -273,10 +310,18 @@ public 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return The kubernetesDashboard. */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { return kubernetesDashboard_ == null ? com.google.container.v1.KubernetesDashboard.getDefaultInstance() @@ -287,10 +332,16 @@ public 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder() { return getKubernetesDashboard(); } @@ -307,6 +358,8 @@ public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboa * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. */ public boolean hasNetworkPolicyConfig() { return networkPolicyConfig_ != null; @@ -321,6 +374,8 @@ public boolean hasNetworkPolicyConfig() { * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. */ public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { return networkPolicyConfig_ == null @@ -342,6 +397,54 @@ public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConf 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. + */ + 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. + */ + 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; + */ + public com.google.container.v1.CloudRunConfigOrBuilder getCloudRunConfigOrBuilder() { + return getCloudRunConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -368,6 +471,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (networkPolicyConfig_ != null) { output.writeMessage(4, getNetworkPolicyConfig()); } + if (cloudRunConfig_ != null) { + output.writeMessage(7, getCloudRunConfig()); + } unknownFields.writeTo(output); } @@ -391,6 +497,9 @@ public int getSerializedSize() { if (networkPolicyConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getNetworkPolicyConfig()); } + if (cloudRunConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCloudRunConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -422,6 +531,10 @@ public boolean equals(final java.lang.Object obj) { 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -449,6 +562,10 @@ public int hashCode() { 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(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -618,6 +735,12 @@ public Builder clear() { networkPolicyConfig_ = null; networkPolicyConfigBuilder_ = null; } + if (cloudRunConfigBuilder_ == null) { + cloudRunConfig_ = null; + } else { + cloudRunConfig_ = null; + cloudRunConfigBuilder_ = null; + } return this; } @@ -664,6 +787,11 @@ public com.google.container.v1.AddonsConfig buildPartial() { } else { result.networkPolicyConfig_ = networkPolicyConfigBuilder_.build(); } + if (cloudRunConfigBuilder_ == null) { + result.cloudRunConfig_ = cloudRunConfig_; + } else { + result.cloudRunConfig_ = cloudRunConfigBuilder_.build(); + } onBuilt(); return result; } @@ -725,6 +853,9 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) { if (other.hasNetworkPolicyConfig()) { mergeNetworkPolicyConfig(other.getNetworkPolicyConfig()); } + if (other.hasCloudRunConfig()) { + mergeCloudRunConfig(other.getCloudRunConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -769,6 +900,8 @@ public Builder mergeFrom( * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. */ public boolean hasHttpLoadBalancing() { return httpLoadBalancingBuilder_ != null || httpLoadBalancing_ != null; @@ -782,6 +915,8 @@ public boolean hasHttpLoadBalancing() { * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. */ public com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing() { if (httpLoadBalancingBuilder_ == null) { @@ -961,6 +1096,8 @@ public com.google.container.v1.HttpLoadBalancingOrBuilder getHttpLoadBalancingOr * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. */ public boolean hasHorizontalPodAutoscaling() { return horizontalPodAutoscalingBuilder_ != null || horizontalPodAutoscaling_ != null; @@ -975,6 +1112,8 @@ public boolean hasHorizontalPodAutoscaling() { * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. */ public com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling() { if (horizontalPodAutoscalingBuilder_ == null) { @@ -1160,10 +1299,18 @@ public Builder clearHorizontalPodAutoscaling() { * *
      * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. */ + @java.lang.Deprecated public boolean hasKubernetesDashboard() { return kubernetesDashboardBuilder_ != null || kubernetesDashboard_ != null; } @@ -1172,10 +1319,18 @@ public 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return The kubernetesDashboard. */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard getKubernetesDashboard() { if (kubernetesDashboardBuilder_ == null) { return kubernetesDashboard_ == null @@ -1190,10 +1345,16 @@ public 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; + * .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) { @@ -1212,10 +1373,16 @@ public Builder setKubernetesDashboard(com.google.container.v1.KubernetesDashboar * *
      * 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; + * .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) { @@ -1232,10 +1399,16 @@ public Builder setKubernetesDashboard( * *
      * 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; + * .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) { @@ -1258,10 +1431,16 @@ public Builder mergeKubernetesDashboard(com.google.container.v1.KubernetesDashbo * *
      * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public Builder clearKubernetesDashboard() { if (kubernetesDashboardBuilder_ == null) { kubernetesDashboard_ = null; @@ -1278,10 +1457,16 @@ public Builder clearKubernetesDashboard() { * *
      * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * */ + @java.lang.Deprecated public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboardBuilder() { onChanged(); @@ -1292,10 +1477,16 @@ public com.google.container.v1.KubernetesDashboard.Builder getKubernetesDashboar * *
      * 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; + * .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(); @@ -1310,9 +1501,14 @@ public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboa * *
      * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.KubernetesDashboard, @@ -1347,6 +1543,8 @@ public com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboa * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. */ public boolean hasNetworkPolicyConfig() { return networkPolicyConfigBuilder_ != null || networkPolicyConfig_ != null; @@ -1361,6 +1559,8 @@ public boolean hasNetworkPolicyConfig() { * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. */ public com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig() { if (networkPolicyConfigBuilder_ == null) { @@ -1531,6 +1731,201 @@ public com.google.container.v1.NetworkPolicyConfigOrBuilder getNetworkPolicyConf 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_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java index 6b76a26a..8d88359a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AddonsConfigOrBuilder.java @@ -32,6 +32,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return Whether the httpLoadBalancing field is set. */ boolean hasHttpLoadBalancing(); /** @@ -43,6 +45,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.HttpLoadBalancing http_load_balancing = 1; + * + * @return The httpLoadBalancing. */ com.google.container.v1.HttpLoadBalancing getHttpLoadBalancing(); /** @@ -67,6 +71,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return Whether the horizontalPodAutoscaling field is set. */ boolean hasHorizontalPodAutoscaling(); /** @@ -79,6 +85,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; + * + * @return The horizontalPodAutoscaling. */ com.google.container.v1.HorizontalPodAutoscaling getHorizontalPodAutoscaling(); /** @@ -99,30 +107,52 @@ public interface AddonsConfigOrBuilder * *
    * 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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @return Whether the kubernetesDashboard field is set. */ + @java.lang.Deprecated boolean hasKubernetesDashboard(); /** * * *
    * Configuration for the Kubernetes Dashboard.
+   * This addon is deprecated, and will be disabled in 1.15. It is recommended
+   * to use the Cloud Console to manage and monitor your Kubernetes clusters,
+   * workloads and applications. For more information, see:
+   * https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards
    * 
* - * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * + * + * @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; + * .google.container.v1.KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; + * */ + @java.lang.Deprecated com.google.container.v1.KubernetesDashboardOrBuilder getKubernetesDashboardOrBuilder(); /** @@ -135,6 +165,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return Whether the networkPolicyConfig field is set. */ boolean hasNetworkPolicyConfig(); /** @@ -147,6 +179,8 @@ public interface AddonsConfigOrBuilder * * * .google.container.v1.NetworkPolicyConfig network_policy_config = 4; + * + * @return The networkPolicyConfig. */ com.google.container.v1.NetworkPolicyConfig getNetworkPolicyConfig(); /** @@ -161,4 +195,42 @@ public interface AddonsConfigOrBuilder * .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(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java new file mode 100644 index 00000000..465b91ad --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfig.java @@ -0,0 +1,733 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private AuthenticatorGroupsConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + securityGroup_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + 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. + */ + public com.google.protobuf.ByteString getSecurityGroupBytes() { + java.lang.Object ref = securityGroup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + securityGroup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + if (!getSecurityGroupBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, securityGroup_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + if (!getSecurityGroupBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, securityGroup_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (37 * hash) + SECURITY_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getSecurityGroup().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + securityGroup_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.AuthenticatorGroupsConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.AuthenticatorGroupsConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Whether this cluster should return group membership lookups
+     * during authentication using a group of security groups.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + 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 { + return new AuthenticatorGroupsConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AuthenticatorGroupsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java new file mode 100644 index 00000000..58fbfec9 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AuthenticatorGroupsConfigOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java index b67b97b5..49c6e455 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptions.java @@ -43,6 +43,12 @@ private AutoUpgradeOptions() { 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; @@ -56,7 +62,6 @@ private AutoUpgradeOptions( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -127,6 +132,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. */ public java.lang.String getAutoUpgradeStartTime() { java.lang.Object ref = autoUpgradeStartTime_; @@ -149,6 +156,8 @@ public java.lang.String getAutoUpgradeStartTime() { * * * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. */ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { java.lang.Object ref = autoUpgradeStartTime_; @@ -173,6 +182,8 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -194,6 +205,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -551,6 +564,8 @@ public Builder mergeFrom( * * * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. */ public java.lang.String getAutoUpgradeStartTime() { java.lang.Object ref = autoUpgradeStartTime_; @@ -573,6 +588,8 @@ public java.lang.String getAutoUpgradeStartTime() { * * * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. */ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { java.lang.Object ref = autoUpgradeStartTime_; @@ -595,6 +612,9 @@ public com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes() { * * * 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) { @@ -615,6 +635,8 @@ public Builder setAutoUpgradeStartTime(java.lang.String value) { * * * string auto_upgrade_start_time = 1; + * + * @return This builder for chaining. */ public Builder clearAutoUpgradeStartTime() { @@ -632,6 +654,9 @@ public Builder clearAutoUpgradeStartTime() { * * * 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) { @@ -654,6 +679,8 @@ public Builder setAutoUpgradeStartTimeBytes(com.google.protobuf.ByteString value * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -675,6 +702,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -696,6 +725,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -715,6 +747,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -731,6 +765,9 @@ public Builder clearDescription() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java index 8b3d3493..115899f5 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoUpgradeOptionsOrBuilder.java @@ -33,6 +33,8 @@ public interface AutoUpgradeOptionsOrBuilder * * * string auto_upgrade_start_time = 1; + * + * @return The autoUpgradeStartTime. */ java.lang.String getAutoUpgradeStartTime(); /** @@ -45,6 +47,8 @@ public interface AutoUpgradeOptionsOrBuilder * * * string auto_upgrade_start_time = 1; + * + * @return The bytes for autoUpgradeStartTime. */ com.google.protobuf.ByteString getAutoUpgradeStartTimeBytes(); @@ -57,6 +61,8 @@ public interface AutoUpgradeOptionsOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -68,6 +74,8 @@ public interface AutoUpgradeOptionsOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java new file mode 100644 index 00000000..860b2090 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaults.java @@ -0,0 +1,938 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AutoprovisioningNodePoolDefaults(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private AutoprovisioningNodePoolDefaults( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + oauthScopes_.add(s); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + serviceAccount_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = oauthScopes_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If
+   * service_account is specified, scopes should be empty.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + 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. If
+   * service_account is specified, scopes should be empty.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < oauthScopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oauthScopes_.getRaw(i)); + } + if (!getServiceAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceAccount_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < oauthScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(oauthScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getOauthScopesList().size(); + } + if (!getServiceAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceAccount_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getOauthScopesCount() > 0) { + hash = (37 * hash) + OAUTH_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOauthScopesList().hashCode(); + } + hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccount().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.AutoprovisioningNodePoolDefaults parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.container.v1.AutoprovisioningNodePoolDefaults prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * AutoprovisioningNodePoolDefaults contains defaults for a node pool created
+   * by NAP.
+   * 
+ * + * Protobuf type {@code google.container.v1.AutoprovisioningNodePoolDefaults} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.AutoprovisioningNodePoolDefaults) + com.google.container.v1.AutoprovisioningNodePoolDefaultsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_AutoprovisioningNodePoolDefaults_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.AutoprovisioningNodePoolDefaults.class, + com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder.class); + } + + // Construct using com.google.container.v1.AutoprovisioningNodePoolDefaults.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccount_ = ""; + + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.AutoprovisioningNodePoolDefaults parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.AutoprovisioningNodePoolDefaults) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringList oauthScopes_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureOauthScopesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Scopes that are used by NAP when creating node pools. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If oauth_scopes are
+     * specified, service_account should be empty.
+     * 
+ * + * 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. If
+     * service_account is specified, scopes should be empty.
+     * 
+ * + * 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. If
+     * service_account is specified, scopes should be empty.
+     * 
+ * + * 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. If
+     * service_account is specified, scopes should be empty.
+     * 
+ * + * 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. If
+     * service_account is specified, scopes should be empty.
+     * 
+ * + * 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. If
+     * service_account is specified, scopes should be empty.
+     * 
+ * + * 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 { + return new AutoprovisioningNodePoolDefaults(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.AutoprovisioningNodePoolDefaults getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java new file mode 100644 index 00000000..fad16984 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/AutoprovisioningNodePoolDefaultsOrBuilder.java @@ -0,0 +1,107 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * repeated string oauth_scopes = 1; + * + * @return The count of oauthScopes. + */ + int getOauthScopesCount(); + /** + * + * + *
+   * Scopes that are used by NAP when creating node pools. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If oauth_scopes are
+   * specified, service_account should be empty.
+   * 
+ * + * 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. If
+   * service_account is specified, scopes should be empty.
+   * 
+ * + * string service_account = 2; + * + * @return The serviceAccount. + */ + java.lang.String getServiceAccount(); + /** + * + * + *
+   * The Google Cloud Platform Service Account to be used by the node VMs. If
+   * service_account is specified, scopes should be empty.
+   * 
+ * + * string service_account = 2; + * + * @return The bytes for serviceAccount. + */ + com.google.protobuf.ByteString getServiceAccountBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java new file mode 100644 index 00000000..b618a3d7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorization.java @@ -0,0 +1,546 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BinaryAuthorization(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private BinaryAuthorization( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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); + } + + public static final int ENABLED_FIELD_NUMBER = 1; + private boolean enabled_; + /** + * + * + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Binary Authorization.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.BinaryAuthorization)) { + return super.equals(obj); + } + com.google.container.v1.BinaryAuthorization other = + (com.google.container.v1.BinaryAuthorization) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.BinaryAuthorization parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.BinaryAuthorization) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Binary Authorization.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + public boolean getEnabled() { + return enabled_; + } + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Binary Authorization.
+     * 
+ * + * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. + */ + public Builder setEnabled(boolean value) { + + enabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable Binary Authorization for this cluster. If enabled, all container
+     * images will be validated by Binary Authorization.
+     * 
+ * + * 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.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 { + return new BinaryAuthorization(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.BinaryAuthorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java new file mode 100644 index 00000000..4ad462c7 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/BinaryAuthorizationOrBuilder.java @@ -0,0 +1,39 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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 { + + /** + * + * + *
+   * Enable Binary Authorization for this cluster. If enabled, all container
+   * images will be validated by Binary Authorization.
+   * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + boolean getEnabled(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java index 9d7df713..4a53d172 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequest.java @@ -44,6 +44,12 @@ private CancelOperationRequest() { 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; @@ -57,7 +63,6 @@ private CancelOperationRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,12 +196,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -208,12 +221,14 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -234,11 +249,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated public java.lang.String getOperationId() { @@ -256,11 +274,14 @@ public java.lang.String getOperationId() { * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { @@ -286,6 +307,8 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * string name = 4; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -307,6 +330,8 @@ public java.lang.String getName() { * * * string name = 4; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -689,12 +714,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -712,12 +740,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -735,12 +766,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -756,12 +791,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -774,12 +812,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -798,12 +840,14 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -821,12 +865,14 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -844,12 +890,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -865,12 +914,14 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -883,12 +934,15 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -907,11 +961,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated public java.lang.String getOperationId() { @@ -929,11 +986,14 @@ public java.lang.String getOperationId() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { @@ -951,11 +1011,15 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operationId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOperationId(java.lang.String value) { @@ -971,11 +1035,14 @@ public Builder setOperationId(java.lang.String value) { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearOperationId() { @@ -988,11 +1055,15 @@ public Builder clearOperationId() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { @@ -1016,6 +1087,8 @@ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { * * * string name = 4; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1037,6 +1110,8 @@ public java.lang.String getName() { * * * string name = 4; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1058,6 +1133,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1077,6 +1155,8 @@ public Builder setName(java.lang.String value) { * * * string name = 4; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1093,6 +1173,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java index 95e8d2a7..39057f0c 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CancelOperationRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,12 +60,14 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -67,12 +75,14 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -81,11 +91,14 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated java.lang.String getOperationId(); @@ -93,11 +106,14 @@ public interface CancelOperationRequestOrBuilder * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated com.google.protobuf.ByteString getOperationIdBytes(); @@ -111,6 +127,8 @@ public interface CancelOperationRequestOrBuilder * * * string name = 4; + * + * @return The name. */ java.lang.String getName(); /** @@ -122,6 +140,8 @@ public interface CancelOperationRequestOrBuilder * * * string name = 4; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java index b7d57033..8b10dca4 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfig.java @@ -39,6 +39,12 @@ private ClientCertificateConfig(com.google.protobuf.GeneratedMessageV3.Builder * * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. */ public boolean getIssueClientCertificate() { return issueClientCertificate_; @@ -442,6 +449,8 @@ public Builder mergeFrom( * * * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. */ public boolean getIssueClientCertificate() { return issueClientCertificate_; @@ -454,6 +463,9 @@ public boolean getIssueClientCertificate() { * * * bool issue_client_certificate = 1; + * + * @param value The issueClientCertificate to set. + * @return This builder for chaining. */ public Builder setIssueClientCertificate(boolean value) { @@ -469,6 +481,8 @@ public Builder setIssueClientCertificate(boolean value) { * * * bool issue_client_certificate = 1; + * + * @return This builder for chaining. */ public Builder clearIssueClientCertificate() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java index 34f7bd91..cc53d7d1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClientCertificateConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface ClientCertificateConfigOrBuilder * * * bool issue_client_certificate = 1; + * + * @return The issueClientCertificate. */ boolean getIssueClientCertificate(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java new file mode 100644 index 00000000..3dcea4e4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfig.java @@ -0,0 +1,541 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudRunConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CloudRunConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + disabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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); + } + + 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. + */ + public boolean getDisabled() { + return disabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (disabled_ != false) { + output.writeBool(1, disabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.CloudRunConfig)) { + return super.equals(obj); + } + com.google.container.v1.CloudRunConfig other = (com.google.container.v1.CloudRunConfig) obj; + + if (getDisabled() != other.getDisabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + disabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.CloudRunConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.CloudRunConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean disabled_; + /** + * + * + *
+     * Whether Cloud Run addon is enabled for this cluster.
+     * 
+ * + * bool disabled = 1; + * + * @return The disabled. + */ + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 { + return new CloudRunConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.CloudRunConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java new file mode 100644 index 00000000..01335594 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CloudRunConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java index d7e5cb5b..a5f359d3 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Cluster.java @@ -61,6 +61,14 @@ private Cluster() { instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; expireTime_ = ""; location_ = ""; + tpuIpv4CidrBlock_ = ""; + conditions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Cluster(); } @java.lang.Override @@ -77,7 +85,6 @@ private Cluster( throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; - int mutable_bitField1_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -190,9 +197,9 @@ private Cluster( } case 98: { - if (!((mutable_bitField0_ & 0x00000800) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { nodePools_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000800; + mutable_bitField0_ |= 0x00000001; } nodePools_.add( input.readMessage(com.google.container.v1.NodePool.parser(), extensionRegistry)); @@ -201,9 +208,9 @@ private Cluster( case 106: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00001000) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00001000; + mutable_bitField0_ |= 0x00000002; } locations_.add(s); break; @@ -215,11 +222,11 @@ private Cluster( } case 122: { - if (!((mutable_bitField0_ & 0x00004000) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { resourceLabels_ = com.google.protobuf.MapField.newMapField( ResourceLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00004000; + mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry resourceLabels__ = input.readMessage( @@ -315,6 +322,38 @@ private Cluster( maintenancePolicy_ = subBuilder.buildPartial(); } + break; + } + case 194: + { + com.google.container.v1.BinaryAuthorization.Builder subBuilder = null; + if (binaryAuthorization_ != null) { + subBuilder = binaryAuthorization_.toBuilder(); + } + binaryAuthorization_ = + input.readMessage( + com.google.container.v1.BinaryAuthorization.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(binaryAuthorization_); + binaryAuthorization_ = subBuilder.buildPartial(); + } + + break; + } + case 210: + { + com.google.container.v1.ClusterAutoscaling.Builder subBuilder = null; + if (autoscaling_ != null) { + subBuilder = autoscaling_.toBuilder(); + } + autoscaling_ = + input.readMessage( + com.google.container.v1.ClusterAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoscaling_); + autoscaling_ = subBuilder.buildPartial(); + } + break; } case 218: @@ -331,6 +370,56 @@ private Cluster( networkConfig_ = subBuilder.buildPartial(); } + break; + } + case 242: + { + com.google.container.v1.MaxPodsConstraint.Builder subBuilder = null; + if (defaultMaxPodsConstraint_ != null) { + subBuilder = defaultMaxPodsConstraint_.toBuilder(); + } + defaultMaxPodsConstraint_ = + input.readMessage( + com.google.container.v1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(defaultMaxPodsConstraint_); + defaultMaxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 266: + { + com.google.container.v1.ResourceUsageExportConfig.Builder subBuilder = null; + if (resourceUsageExportConfig_ != null) { + subBuilder = resourceUsageExportConfig_.toBuilder(); + } + resourceUsageExportConfig_ = + input.readMessage( + com.google.container.v1.ResourceUsageExportConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceUsageExportConfig_); + resourceUsageExportConfig_ = subBuilder.buildPartial(); + } + + break; + } + case 274: + { + com.google.container.v1.AuthenticatorGroupsConfig.Builder subBuilder = null; + if (authenticatorGroupsConfig_ != null) { + subBuilder = authenticatorGroupsConfig_.toBuilder(); + } + authenticatorGroupsConfig_ = + input.readMessage( + com.google.container.v1.AuthenticatorGroupsConfig.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(authenticatorGroupsConfig_); + authenticatorGroupsConfig_ = subBuilder.buildPartial(); + } + break; } case 298: @@ -347,6 +436,38 @@ private Cluster( privateClusterConfig_ = subBuilder.buildPartial(); } + break; + } + case 306: + { + com.google.container.v1.DatabaseEncryption.Builder subBuilder = null; + if (databaseEncryption_ != null) { + subBuilder = databaseEncryption_.toBuilder(); + } + databaseEncryption_ = + input.readMessage( + com.google.container.v1.DatabaseEncryption.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(databaseEncryption_); + databaseEncryption_ = subBuilder.buildPartial(); + } + + break; + } + case 314: + { + com.google.container.v1.VerticalPodAutoscaling.Builder subBuilder = null; + if (verticalPodAutoscaling_ != null) { + subBuilder = verticalPodAutoscaling_.toBuilder(); + } + verticalPodAutoscaling_ = + input.readMessage( + com.google.container.v1.VerticalPodAutoscaling.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(verticalPodAutoscaling_); + verticalPodAutoscaling_ = subBuilder.buildPartial(); + } + break; } case 802: @@ -427,9 +548,9 @@ private Cluster( case 890: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField1_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField1_ |= 0x00000004; + mutable_bitField0_ |= 0x00000008; } instanceGroupUrls_.add(s); break; @@ -453,6 +574,29 @@ private Cluster( location_ = s; break; } + case 920: + { + enableTpu_ = input.readBool(); + break; + } + case 930: + { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } + case 946: + { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + conditions_.add( + input.readMessage( + com.google.container.v1.StatusCondition.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -467,15 +611,18 @@ private Cluster( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000800) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { nodePools_ = java.util.Collections.unmodifiableList(nodePools_); } - if (((mutable_bitField0_ & 0x00001000) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { locations_ = locations_.getUnmodifiableView(); } - if (((mutable_bitField1_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000010) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -678,12 +825,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -749,8 +904,6 @@ private Status(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.Cluster.Status) } - private int bitField0_; - private int bitField1_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -758,13 +911,16 @@ private Status(int value) { * *
    * The name of this cluster. The name must be unique within this project
-   * and zone, and can be up to 40 characters with the following restrictions:
+   * 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_; @@ -782,13 +938,16 @@ public java.lang.String getName() { * *
    * The name of this cluster. The name must be unique within this project
-   * and zone, and can be up to 40 characters with the following restrictions:
+   * 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_; @@ -812,6 +971,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -832,6 +993,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -859,10 +1022,14 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * "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; + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. */ + @java.lang.Deprecated public int getInitialNodeCount() { return initialNodeCount_; } @@ -874,18 +1041,22 @@ public int getInitialNodeCount() { * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. */ + @java.lang.Deprecated public boolean hasNodeConfig() { return nodeConfig_ != null; } @@ -894,18 +1065,22 @@ public boolean hasNodeConfig() { * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. */ + @java.lang.Deprecated public com.google.container.v1.NodeConfig getNodeConfig() { return nodeConfig_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() @@ -916,18 +1091,20 @@ public com.google.container.v1.NodeConfig getNodeConfig() { * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; */ + @java.lang.Deprecated public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { return getNodeConfig(); } @@ -939,9 +1116,15 @@ public 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. */ public boolean hasMasterAuth() { return masterAuth_ != null; @@ -951,9 +1134,15 @@ public 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. */ public com.google.container.v1.MasterAuth getMasterAuth() { return masterAuth_ == null @@ -965,6 +1154,10 @@ public 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; @@ -981,12 +1174,16 @@ public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { *
    * The logging service the cluster should use to write logs.
    * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model
    * * `logging.googleapis.com` - the Google Cloud Logging service.
    * * `none` - no logs will be exported from the cluster.
    * * if left as an empty string,`logging.googleapis.com` will be used.
    * 
* * string logging_service = 6; + * + * @return The loggingService. */ public java.lang.String getLoggingService() { java.lang.Object ref = loggingService_; @@ -1005,12 +1202,16 @@ public java.lang.String getLoggingService() { *
    * The logging service the cluster should use to write logs.
    * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model
    * * `logging.googleapis.com` - the Google Cloud Logging service.
    * * `none` - no logs will be exported from the cluster.
    * * if left as an empty string,`logging.googleapis.com` will be used.
    * 
* * string logging_service = 6; + * + * @return The bytes for loggingService. */ public com.google.protobuf.ByteString getLoggingServiceBytes() { java.lang.Object ref = loggingService_; @@ -1038,6 +1239,8 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { * * * string monitoring_service = 7; + * + * @return The monitoringService. */ public java.lang.String getMonitoringService() { java.lang.Object ref = monitoringService_; @@ -1062,6 +1265,8 @@ public java.lang.String getMonitoringService() { * * * string monitoring_service = 7; + * + * @return The bytes for monitoringService. */ public com.google.protobuf.ByteString getMonitoringServiceBytes() { java.lang.Object ref = monitoringService_; @@ -1088,6 +1293,8 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { * * * string network = 8; + * + * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; @@ -1111,6 +1318,8 @@ public java.lang.String getNetwork() { * * * string network = 8; + * + * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; @@ -1137,6 +1346,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. */ public java.lang.String getClusterIpv4Cidr() { java.lang.Object ref = clusterIpv4Cidr_; @@ -1160,6 +1371,8 @@ public java.lang.String getClusterIpv4Cidr() { * * * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. */ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { java.lang.Object ref = clusterIpv4Cidr_; @@ -1183,6 +1396,8 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. */ public boolean hasAddonsConfig() { return addonsConfig_ != null; @@ -1195,6 +1410,8 @@ public boolean hasAddonsConfig() { * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. */ public com.google.container.v1.AddonsConfig getAddonsConfig() { return addonsConfig_ == null @@ -1226,6 +1443,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * * * string subnetwork = 11; + * + * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; @@ -1248,6 +1467,8 @@ public java.lang.String getSubnetwork() { * * * string subnetwork = 11; + * + * @return The bytes for subnetwork. */ public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; @@ -1342,11 +1563,13 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolsOrBuilder(int index * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * repeated string locations = 13; + * + * @return A list containing the locations. */ public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_; @@ -1356,11 +1579,13 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * repeated string locations = 13; + * + * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); @@ -1370,11 +1595,14 @@ public int getLocationsCount() { * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * 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); @@ -1384,11 +1612,14 @@ public java.lang.String getLocations(int index) { * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * 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); @@ -1409,6 +1640,8 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * * * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. */ public boolean getEnableKubernetesAlpha() { return enableKubernetesAlpha_; @@ -1524,6 +1757,8 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { * * * string label_fingerprint = 16; + * + * @return The labelFingerprint. */ public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; @@ -1544,6 +1779,8 @@ public java.lang.String getLabelFingerprint() { * * * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. */ public com.google.protobuf.ByteString getLabelFingerprintBytes() { java.lang.Object ref = labelFingerprint_; @@ -1567,6 +1804,8 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() { * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. */ public boolean hasLegacyAbac() { return legacyAbac_ != null; @@ -1579,6 +1818,8 @@ public boolean hasLegacyAbac() { * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. */ public com.google.container.v1.LegacyAbac getLegacyAbac() { return legacyAbac_ == null @@ -1608,6 +1849,8 @@ public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. */ public boolean hasNetworkPolicy() { return networkPolicy_ != null; @@ -1620,6 +1863,8 @@ public boolean hasNetworkPolicy() { * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. */ public com.google.container.v1.NetworkPolicy getNetworkPolicy() { return networkPolicy_ == null @@ -1649,6 +1894,8 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. */ public boolean hasIpAllocationPolicy() { return ipAllocationPolicy_ != null; @@ -1661,6 +1908,8 @@ public boolean hasIpAllocationPolicy() { * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. */ public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { return ipAllocationPolicy_ == null @@ -1692,6 +1941,8 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. */ public boolean hasMasterAuthorizedNetworksConfig() { return masterAuthorizedNetworksConfig_ != null; @@ -1706,6 +1957,8 @@ public boolean hasMasterAuthorizedNetworksConfig() { * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return The masterAuthorizedNetworksConfig. */ public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { @@ -1739,6 +1992,8 @@ public boolean hasMasterAuthorizedNetworksConfig() { * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; @@ -1751,6 +2006,8 @@ public boolean hasMaintenancePolicy() { * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. */ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { return maintenancePolicy_ == null @@ -1770,6 +2027,96 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr 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. + */ + public boolean hasBinaryAuthorization() { + return binaryAuthorization_ != null; + } + /** + * + * + *
+   * Configuration for Binary Authorization.
+   * 
+ * + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. + */ + 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; + */ + 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. + */ + public boolean hasAutoscaling() { + return autoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. + */ + 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; + */ + 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_; /** @@ -1780,6 +2127,8 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr * * * .google.container.v1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. */ public boolean hasNetworkConfig() { return networkConfig_ != null; @@ -1792,6 +2141,8 @@ public boolean hasNetworkConfig() { * * * .google.container.v1.NetworkConfig network_config = 27; + * + * @return The networkConfig. */ public com.google.container.v1.NetworkConfig getNetworkConfig() { return networkConfig_ == null @@ -1811,127 +2162,376 @@ public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder( return getNetworkConfig(); } - public static final int PRIVATE_CLUSTER_CONFIG_FIELD_NUMBER = 37; - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; + public static final int DEFAULT_MAX_PODS_CONSTRAINT_FIELD_NUMBER = 30; + private com.google.container.v1.MaxPodsConstraint defaultMaxPodsConstraint_; /** * * *
-   * Configuration for private cluster.
+   * 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.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return Whether the defaultMaxPodsConstraint field is set. */ - public boolean hasPrivateClusterConfig() { - return privateClusterConfig_ != null; + public boolean hasDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ != null; } /** * * *
-   * Configuration for private cluster.
+   * 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.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; + * + * @return The defaultMaxPodsConstraint. */ - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; + public com.google.container.v1.MaxPodsConstraint getDefaultMaxPodsConstraint() { + return defaultMaxPodsConstraint_ == null + ? com.google.container.v1.MaxPodsConstraint.getDefaultInstance() + : defaultMaxPodsConstraint_; } /** * * *
-   * Configuration for private cluster.
+   * 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.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.MaxPodsConstraint default_max_pods_constraint = 30; */ - public com.google.container.v1.PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder() { - return getPrivateClusterConfig(); + public com.google.container.v1.MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder() { + return getDefaultMaxPodsConstraint(); } - public static final int SELF_LINK_FIELD_NUMBER = 100; - private volatile java.lang.Object selfLink_; + public static final int RESOURCE_USAGE_EXPORT_CONFIG_FIELD_NUMBER = 33; + private com.google.container.v1.ResourceUsageExportConfig resourceUsageExportConfig_; /** * * *
-   * [Output only] Server-defined URL for the resource.
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
    * 
* - * string self_link = 100; + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * @return Whether the resourceUsageExportConfig field is set. */ - 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; - } + public boolean hasResourceUsageExportConfig() { + return resourceUsageExportConfig_ != null; } /** * * *
-   * [Output only] Server-defined URL for the resource.
+   * Configuration for exporting resource usages. Resource usage export is
+   * disabled when this config is unspecified.
    * 
* - * string self_link = 100; + * .google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33; + * + * @return The resourceUsageExportConfig. */ - 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 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; + */ + public com.google.container.v1.ResourceUsageExportConfigOrBuilder + getResourceUsageExportConfigOrBuilder() { + return getResourceUsageExportConfig(); } - public static final int ZONE_FIELD_NUMBER = 101; - private volatile java.lang.Object zone_; + public static final int AUTHENTICATOR_GROUPS_CONFIG_FIELD_NUMBER = 34; + private com.google.container.v1.AuthenticatorGroupsConfig authenticatorGroupsConfig_; /** * * *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * Configuration controlling RBAC group membership information.
    * 
* - * string zone = 101 [deprecated = true]; + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * @return Whether the authenticatorGroupsConfig field is set. */ - @java.lang.Deprecated - public java.lang.String getZone() { - java.lang.Object ref = zone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - zone_ = s; - return s; - } + public boolean hasAuthenticatorGroupsConfig() { + return authenticatorGroupsConfig_ != null; } /** * * *
-   * [Output only] The name of the Google Compute Engine
-   * [zone](/compute/docs/zones#available) in which the cluster
-   * resides.
-   * This field is deprecated, use location instead.
+   * Configuration controlling RBAC group membership information.
    * 
* - * string zone = 101 [deprecated = true]; + * .google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34; + * + * @return The authenticatorGroupsConfig. + */ + 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; + */ + 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. + */ + public boolean hasPrivateClusterConfig() { + return privateClusterConfig_ != null; + } + /** + * + * + *
+   * Configuration for private cluster.
+   * 
+ * + * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. + */ + 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; + */ + 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. + */ + public boolean hasDatabaseEncryption() { + return databaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption database_encryption = 38; + * + * @return The databaseEncryption. + */ + 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; + */ + 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. + */ + public boolean hasVerticalPodAutoscaling() { + return 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() { + return verticalPodAutoscaling_ == null + ? com.google.container.v1.VerticalPodAutoscaling.getDefaultInstance() + : verticalPodAutoscaling_; + } + /** + * + * + *
+   * Cluster-level Vertical Pod Autoscaling configuration.
+   * 
+ * + * .google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39; + */ + public com.google.container.v1.VerticalPodAutoscalingOrBuilder + getVerticalPodAutoscalingOrBuilder() { + return getVerticalPodAutoscaling(); + } + + 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. + */ + 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. + */ + 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](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (ref instanceof java.lang.String) { + return (java.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](/compute/docs/zones#available) in which the cluster
+   * resides.
+   * This field is deprecated, use location instead.
+   * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1960,6 +2560,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * string endpoint = 102; + * + * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; @@ -1984,6 +2586,8 @@ public java.lang.String getEndpoint() { * * * string endpoint = 102; + * + * @return The bytes for endpoint. */ public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; @@ -2017,6 +2621,8 @@ public com.google.protobuf.ByteString getEndpointBytes() { * * * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. */ public java.lang.String getInitialClusterVersion() { java.lang.Object ref = initialClusterVersion_; @@ -2047,6 +2653,8 @@ public java.lang.String getInitialClusterVersion() { * * * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. */ public com.google.protobuf.ByteString getInitialClusterVersionBytes() { java.lang.Object ref = initialClusterVersion_; @@ -2070,6 +2678,8 @@ public com.google.protobuf.ByteString getInitialClusterVersionBytes() { * * * string current_master_version = 104; + * + * @return The currentMasterVersion. */ public java.lang.String getCurrentMasterVersion() { java.lang.Object ref = currentMasterVersion_; @@ -2090,6 +2700,8 @@ public java.lang.String getCurrentMasterVersion() { * * * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. */ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { java.lang.Object ref = currentMasterVersion_; @@ -2110,13 +2722,15 @@ public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { * *
    * [Output only] Deprecated, use
-   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
    * instead. The current version of the node software components. If they are
    * currently at multiple versions because they're in the process of being
    * upgraded, this reflects the minimum version of all nodes.
    * 
* * string current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. */ @java.lang.Deprecated public java.lang.String getCurrentNodeVersion() { @@ -2135,13 +2749,15 @@ public java.lang.String getCurrentNodeVersion() { * *
    * [Output only] Deprecated, use
-   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
    * instead. The current version of the node software components. If they are
    * currently at multiple versions because they're in the process of being
    * upgraded, this reflects the minimum version of all nodes.
    * 
* * string current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { @@ -2167,6 +2783,8 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * * string create_time = 106; + * + * @return The createTime. */ public java.lang.String getCreateTime() { java.lang.Object ref = createTime_; @@ -2188,6 +2806,8 @@ public java.lang.String getCreateTime() { * * * string create_time = 106; + * + * @return The bytes for createTime. */ public com.google.protobuf.ByteString getCreateTimeBytes() { java.lang.Object ref = createTime_; @@ -2211,6 +2831,8 @@ public com.google.protobuf.ByteString getCreateTimeBytes() { * * * .google.container.v1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. */ public int getStatusValue() { return status_; @@ -2223,6 +2845,8 @@ public int getStatusValue() { * * * .google.container.v1.Cluster.Status status = 107; + * + * @return The status. */ public com.google.container.v1.Cluster.Status getStatus() { @SuppressWarnings("deprecation") @@ -2242,6 +2866,8 @@ public com.google.container.v1.Cluster.Status getStatus() { * * * string status_message = 108; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -2263,6 +2889,8 @@ public java.lang.String getStatusMessage() { * * * string status_message = 108; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -2284,10 +2912,13 @@ public 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.
+   * range. This field will only be set when cluster is in route-based network
+   * mode.
    * 
* * int32 node_ipv4_cidr_size = 109; + * + * @return The nodeIpv4CidrSize. */ public int getNodeIpv4CidrSize() { return nodeIpv4CidrSize_; @@ -2307,6 +2938,8 @@ public int getNodeIpv4CidrSize() { * * * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. */ public java.lang.String getServicesIpv4Cidr() { java.lang.Object ref = servicesIpv4Cidr_; @@ -2331,6 +2964,8 @@ public java.lang.String getServicesIpv4Cidr() { * * * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. */ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { java.lang.Object ref = servicesIpv4Cidr_; @@ -2354,6 +2989,8 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { @@ -2367,6 +3004,8 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return The count of instanceGroupUrls. */ @java.lang.Deprecated public int getInstanceGroupUrlsCount() { @@ -2380,6 +3019,9 @@ public int getInstanceGroupUrlsCount() { * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. */ @java.lang.Deprecated public java.lang.String getInstanceGroupUrls(int index) { @@ -2393,6 +3035,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { @@ -2405,11 +3050,15 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * *
-   * [Output only] The number of nodes currently in the cluster.
+   * [Output only]  The number of nodes currently in the cluster. Deprecated.
+   * Call Kubernetes API directly to retrieve node information.
    * 
* - * int32 current_node_count = 112; + * int32 current_node_count = 112 [deprecated = true]; + * + * @return The currentNodeCount. */ + @java.lang.Deprecated public int getCurrentNodeCount() { return currentNodeCount_; } @@ -2425,6 +3074,8 @@ public int getCurrentNodeCount() { * * * string expire_time = 113; + * + * @return The expireTime. */ public java.lang.String getExpireTime() { java.lang.Object ref = expireTime_; @@ -2446,6 +3097,8 @@ public java.lang.String getExpireTime() { * * * string expire_time = 113; + * + * @return The bytes for expireTime. */ public com.google.protobuf.ByteString getExpireTimeBytes() { java.lang.Object ref = expireTime_; @@ -2472,6 +3125,8 @@ public com.google.protobuf.ByteString getExpireTimeBytes() { * * * string location = 114; + * + * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; @@ -2495,6 +3150,8 @@ public java.lang.String getLocation() { * * * string location = 114; + * + * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; @@ -2508,22 +3165,154 @@ public com.google.protobuf.ByteString getLocationBytes() { } } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public 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. + */ + public boolean getEnableTpu() { + return enableTpu_; } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + 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. + */ + 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. + */ + 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; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 118; + */ + 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; + */ + public com.google.container.v1.StatusConditionOrBuilder getConditionsOrBuilder(int index) { + return conditions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); @@ -2584,12 +3373,33 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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 (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -2635,6 +3445,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getLocationBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 114, location_); } + if (enableTpu_ != false) { + output.writeBool(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(118, conditions_.get(i)); + } unknownFields.writeTo(output); } @@ -2721,13 +3540,42 @@ public int getSerializedSize() { 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 (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -2778,6 +3626,15 @@ public int getSerializedSize() { if (!getLocationBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(114, location_); } + if (enableTpu_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(115, enableTpu_); + } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(116, tpuIpv4CidrBlock_); + } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(118, conditions_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2840,14 +3697,44 @@ public boolean equals(final java.lang.Object obj) { 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 (!getSelfLink().equals(other.getSelfLink())) return false; if (!getZone().equals(other.getZone())) return false; if (!getEndpoint().equals(other.getEndpoint())) return false; @@ -2863,6 +3750,9 @@ public boolean equals(final java.lang.Object obj) { 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -2938,14 +3828,42 @@ public int hashCode() { 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(); + } hash = (37 * hash) + SELF_LINK_FIELD_NUMBER; hash = (53 * hash) + getSelfLink().hashCode(); hash = (37 * hash) + ZONE_FIELD_NUMBER; @@ -2978,6 +3896,14 @@ public int hashCode() { 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(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3137,6 +4063,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getNodePoolsFieldBuilder(); + getConditionsFieldBuilder(); } } @@ -3179,12 +4106,12 @@ public Builder clear() { if (nodePoolsBuilder_ == null) { nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000001); } else { nodePoolsBuilder_.clear(); } locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000002); enableKubernetesAlpha_ = false; internalGetMutableResourceLabels().clear(); @@ -3220,18 +4147,60 @@ public Builder clear() { 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; + } selfLink_ = ""; zone_ = ""; @@ -3255,13 +4224,23 @@ public Builder clear() { servicesIpv4Cidr_ = ""; instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField1_ = (bitField1_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); currentNodeCount_ = 0; expireTime_ = ""; location_ = ""; + enableTpu_ = false; + + tpuIpv4CidrBlock_ = ""; + + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + conditionsBuilder_.clear(); + } return this; } @@ -3289,9 +4268,6 @@ public com.google.container.v1.Cluster build() { public com.google.container.v1.Cluster buildPartial() { com.google.container.v1.Cluster result = new com.google.container.v1.Cluster(this); int from_bitField0_ = bitField0_; - int from_bitField1_ = bitField1_; - int to_bitField0_ = 0; - int to_bitField1_ = 0; result.name_ = name_; result.description_ = description_; result.initialNodeCount_ = initialNodeCount_; @@ -3316,17 +4292,17 @@ public com.google.container.v1.Cluster buildPartial() { } result.subnetwork_ = subnetwork_; if (nodePoolsBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { nodePools_ = java.util.Collections.unmodifiableList(nodePools_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000001); } result.nodePools_ = nodePools_; } else { result.nodePools_ = nodePoolsBuilder_.build(); } - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000002); } result.locations_ = locations_; result.enableKubernetesAlpha_ = enableKubernetesAlpha_; @@ -3358,16 +4334,51 @@ public com.google.container.v1.Cluster buildPartial() { } 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(); + } result.selfLink_ = selfLink_; result.zone_ = zone_; result.endpoint_ = endpoint_; @@ -3379,16 +4390,25 @@ public com.google.container.v1.Cluster buildPartial() { result.statusMessage_ = statusMessage_; result.nodeIpv4CidrSize_ = nodeIpv4CidrSize_; result.servicesIpv4Cidr_ = servicesIpv4Cidr_; - if (((bitField1_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField1_ = (bitField1_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } result.instanceGroupUrls_ = instanceGroupUrls_; result.currentNodeCount_ = currentNodeCount_; result.expireTime_ = expireTime_; result.location_ = location_; - result.bitField0_ = to_bitField0_; - result.bitField1_ = to_bitField1_; + 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(); + } onBuilt(); return result; } @@ -3482,7 +4502,7 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (!other.nodePools_.isEmpty()) { if (nodePools_.isEmpty()) { nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNodePoolsIsMutable(); nodePools_.addAll(other.nodePools_); @@ -3495,7 +4515,7 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { nodePoolsBuilder_.dispose(); nodePoolsBuilder_ = null; nodePools_ = other.nodePools_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000001); nodePoolsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getNodePoolsFieldBuilder() @@ -3508,7 +4528,7 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLocationsIsMutable(); locations_.addAll(other.locations_); @@ -3538,12 +4558,33 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { 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.getSelfLink().isEmpty()) { selfLink_ = other.selfLink_; onChanged(); @@ -3589,7 +4630,7 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { if (!other.instanceGroupUrls_.isEmpty()) { if (instanceGroupUrls_.isEmpty()) { instanceGroupUrls_ = other.instanceGroupUrls_; - bitField1_ = (bitField1_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureInstanceGroupUrlsIsMutable(); instanceGroupUrls_.addAll(other.instanceGroupUrls_); @@ -3607,6 +4648,40 @@ public Builder mergeFrom(com.google.container.v1.Cluster other) { 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_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -3637,7 +4712,6 @@ public Builder mergeFrom( } private int bitField0_; - private int bitField1_; private java.lang.Object name_ = ""; /** @@ -3645,13 +4719,16 @@ public Builder mergeFrom( * *
      * The name of this cluster. The name must be unique within this project
-     * and zone, and can be up to 40 characters with the following restrictions:
+     * 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_; @@ -3669,13 +4746,16 @@ public java.lang.String getName() { * *
      * The name of this cluster. The name must be unique within this project
-     * and zone, and can be up to 40 characters with the following restrictions:
+     * 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_; @@ -3693,13 +4773,17 @@ public com.google.protobuf.ByteString getNameBytes() { * *
      * The name of this cluster. The name must be unique within this project
-     * and zone, and can be up to 40 characters with the following restrictions:
+     * 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) { @@ -3715,13 +4799,16 @@ public Builder setName(java.lang.String value) { * *
      * The name of this cluster. The name must be unique within this project
-     * and zone, and can be up to 40 characters with the following restrictions:
+     * 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() { @@ -3734,13 +4821,17 @@ public Builder clearName() { * *
      * The name of this cluster. The name must be unique within this project
-     * and zone, and can be up to 40 characters with the following restrictions:
+     * 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) { @@ -3762,6 +4853,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string description = 2; + * + * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; @@ -3782,6 +4875,8 @@ public java.lang.String getDescription() { * * * string description = 2; + * + * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; @@ -3802,6 +4897,9 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * * string description = 2; + * + * @param value The description to set. + * @return This builder for chaining. */ public Builder setDescription(java.lang.String value) { if (value == null) { @@ -3820,6 +4918,8 @@ public Builder setDescription(java.lang.String value) { * * * string description = 2; + * + * @return This builder for chaining. */ public Builder clearDescription() { @@ -3835,6 +4935,9 @@ public Builder clearDescription() { * * * 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) { @@ -3860,10 +4963,14 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * "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; + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. */ + @java.lang.Deprecated public int getInitialNodeCount() { return initialNodeCount_; } @@ -3879,10 +4986,15 @@ public int getInitialNodeCount() { * "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; + * int32 initial_node_count = 3 [deprecated = true]; + * + * @param value The initialNodeCount to set. + * @return This builder for chaining. */ + @java.lang.Deprecated public Builder setInitialNodeCount(int value) { initialNodeCount_ = value; @@ -3901,10 +5013,14 @@ public Builder setInitialNodeCount(int value) { * "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; + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return This builder for chaining. */ + @java.lang.Deprecated public Builder clearInitialNodeCount() { initialNodeCount_ = 0; @@ -3923,18 +5039,22 @@ public Builder clearInitialNodeCount() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. */ + @java.lang.Deprecated public boolean hasNodeConfig() { return nodeConfigBuilder_ != null || nodeConfig_ != null; } @@ -3943,18 +5063,22 @@ public boolean hasNodeConfig() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. */ + @java.lang.Deprecated public com.google.container.v1.NodeConfig getNodeConfig() { if (nodeConfigBuilder_ == null) { return nodeConfig_ == null @@ -3969,18 +5093,20 @@ public com.google.container.v1.NodeConfig getNodeConfig() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .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) { @@ -3999,18 +5125,20 @@ public Builder setNodeConfig(com.google.container.v1.NodeConfig value) { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .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(); @@ -4026,18 +5154,20 @@ public Builder setNodeConfig(com.google.container.v1.NodeConfig.Builder builderF * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .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) { @@ -4060,18 +5190,20 @@ public Builder mergeNodeConfig(com.google.container.v1.NodeConfig value) { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; */ + @java.lang.Deprecated public Builder clearNodeConfig() { if (nodeConfigBuilder_ == null) { nodeConfig_ = null; @@ -4088,18 +5220,20 @@ public Builder clearNodeConfig() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; */ + @java.lang.Deprecated public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { onChanged(); @@ -4110,18 +5244,20 @@ public com.google.container.v1.NodeConfig.Builder getNodeConfigBuilder() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .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(); @@ -4136,17 +5272,18 @@ public com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder() { * *
      * Parameters used in creating the cluster's nodes.
-     * See `nodeConfig` for the description of its properties.
      * 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.
+     * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodeConfig, @@ -4176,9 +5313,15 @@ public 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. */ public boolean hasMasterAuth() { return masterAuthBuilder_ != null || masterAuth_ != null; @@ -4188,9 +5331,15 @@ public 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. */ public com.google.container.v1.MasterAuth getMasterAuth() { if (masterAuthBuilder_ == null) { @@ -4206,6 +5355,10 @@ public 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; @@ -4228,6 +5381,10 @@ public Builder setMasterAuth(com.google.container.v1.MasterAuth value) { * *
      * 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; @@ -4247,6 +5404,10 @@ public Builder setMasterAuth(com.google.container.v1.MasterAuth.Builder builderF * *
      * 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; @@ -4273,6 +5434,10 @@ public Builder mergeMasterAuth(com.google.container.v1.MasterAuth value) { * *
      * 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; @@ -4293,6 +5458,10 @@ public Builder clearMasterAuth() { * *
      * 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; @@ -4307,6 +5476,10 @@ public com.google.container.v1.MasterAuth.Builder getMasterAuthBuilder() { * *
      * 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; @@ -4325,6 +5498,10 @@ public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { * *
      * 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; @@ -4353,12 +5530,16 @@ public com.google.container.v1.MasterAuthOrBuilder getMasterAuthOrBuilder() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model
      * * `logging.googleapis.com` - the Google Cloud Logging service.
      * * `none` - no logs will be exported from the cluster.
      * * if left as an empty string,`logging.googleapis.com` will be used.
      * 
* * string logging_service = 6; + * + * @return The loggingService. */ public java.lang.String getLoggingService() { java.lang.Object ref = loggingService_; @@ -4377,12 +5558,16 @@ public java.lang.String getLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model
      * * `logging.googleapis.com` - the Google Cloud Logging service.
      * * `none` - no logs will be exported from the cluster.
      * * if left as an empty string,`logging.googleapis.com` will be used.
      * 
* * string logging_service = 6; + * + * @return The bytes for loggingService. */ public com.google.protobuf.ByteString getLoggingServiceBytes() { java.lang.Object ref = loggingService_; @@ -4401,12 +5586,17 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model
      * * `logging.googleapis.com` - the Google Cloud Logging service.
      * * `none` - no logs will be exported from the cluster.
      * * if left as an empty string,`logging.googleapis.com` will be used.
      * 
* * 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) { @@ -4423,12 +5613,16 @@ public Builder setLoggingService(java.lang.String value) { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model
      * * `logging.googleapis.com` - the Google Cloud Logging service.
      * * `none` - no logs will be exported from the cluster.
      * * if left as an empty string,`logging.googleapis.com` will be used.
      * 
* * string logging_service = 6; + * + * @return This builder for chaining. */ public Builder clearLoggingService() { @@ -4442,12 +5636,17 @@ public Builder clearLoggingService() { *
      * The logging service the cluster should use to write logs.
      * Currently available options:
+     * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+     * service with Kubernetes-native resource model
      * * `logging.googleapis.com` - the Google Cloud Logging service.
      * * `none` - no logs will be exported from the cluster.
      * * if left as an empty string,`logging.googleapis.com` will be used.
      * 
* * 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) { @@ -4473,6 +5672,8 @@ public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { * * * string monitoring_service = 7; + * + * @return The monitoringService. */ public java.lang.String getMonitoringService() { java.lang.Object ref = monitoringService_; @@ -4497,6 +5698,8 @@ public java.lang.String getMonitoringService() { * * * string monitoring_service = 7; + * + * @return The bytes for monitoringService. */ public com.google.protobuf.ByteString getMonitoringServiceBytes() { java.lang.Object ref = monitoringService_; @@ -4521,6 +5724,9 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { * * * 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) { @@ -4543,6 +5749,8 @@ public Builder setMonitoringService(java.lang.String value) { * * * string monitoring_service = 7; + * + * @return This builder for chaining. */ public Builder clearMonitoringService() { @@ -4562,6 +5770,9 @@ public Builder clearMonitoringService() { * * * 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) { @@ -4586,6 +5797,8 @@ public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { * * * string network = 8; + * + * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; @@ -4609,6 +5822,8 @@ public java.lang.String getNetwork() { * * * string network = 8; + * + * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; @@ -4632,6 +5847,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * * string network = 8; + * + * @param value The network to set. + * @return This builder for chaining. */ public Builder setNetwork(java.lang.String value) { if (value == null) { @@ -4653,6 +5871,8 @@ public Builder setNetwork(java.lang.String value) { * * * string network = 8; + * + * @return This builder for chaining. */ public Builder clearNetwork() { @@ -4671,6 +5891,9 @@ public Builder clearNetwork() { * * * 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) { @@ -4695,6 +5918,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. */ public java.lang.String getClusterIpv4Cidr() { java.lang.Object ref = clusterIpv4Cidr_; @@ -4718,6 +5943,8 @@ public java.lang.String getClusterIpv4Cidr() { * * * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. */ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { java.lang.Object ref = clusterIpv4Cidr_; @@ -4741,6 +5968,9 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * * * 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) { @@ -4762,6 +5992,8 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * * * string cluster_ipv4_cidr = 9; + * + * @return This builder for chaining. */ public Builder clearClusterIpv4Cidr() { @@ -4780,6 +6012,9 @@ public Builder clearClusterIpv4Cidr() { * * * 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) { @@ -4806,6 +6041,8 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. */ public boolean hasAddonsConfig() { return addonsConfigBuilder_ != null || addonsConfig_ != null; @@ -4818,6 +6055,8 @@ public boolean hasAddonsConfig() { * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. */ public com.google.container.v1.AddonsConfig getAddonsConfig() { if (addonsConfigBuilder_ == null) { @@ -4984,6 +6223,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * * * string subnetwork = 11; + * + * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; @@ -5006,6 +6247,8 @@ public java.lang.String getSubnetwork() { * * * string subnetwork = 11; + * + * @return The bytes for subnetwork. */ public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; @@ -5028,6 +6271,9 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * * string subnetwork = 11; + * + * @param value The subnetwork to set. + * @return This builder for chaining. */ public Builder setSubnetwork(java.lang.String value) { if (value == null) { @@ -5048,6 +6294,8 @@ public Builder setSubnetwork(java.lang.String value) { * * * string subnetwork = 11; + * + * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -5065,6 +6313,9 @@ public Builder clearSubnetwork() { * * * 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) { @@ -5081,9 +6332,9 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureNodePoolsIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { nodePools_ = new java.util.ArrayList(nodePools_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000001; } } @@ -5320,7 +6571,7 @@ public Builder addAllNodePools( public Builder clearNodePools() { if (nodePoolsBuilder_ == null) { nodePools_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { nodePoolsBuilder_.clear(); @@ -5455,7 +6706,7 @@ public java.util.List getNodePoolsBuil com.google.container.v1.NodePool, com.google.container.v1.NodePool.Builder, com.google.container.v1.NodePoolOrBuilder>( - nodePools_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); + nodePools_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); nodePools_ = null; } return nodePoolsBuilder_; @@ -5465,9 +6716,9 @@ public java.util.List getNodePoolsBuil com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000002; } } /** @@ -5475,11 +6726,13 @@ private void ensureLocationsIsMutable() { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * repeated string locations = 13; + * + * @return A list containing the locations. */ public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_.getUnmodifiableView(); @@ -5489,11 +6742,13 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * repeated string locations = 13; + * + * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); @@ -5503,11 +6758,14 @@ public int getLocationsCount() { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * 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); @@ -5517,11 +6775,14 @@ public java.lang.String getLocations(int index) { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * 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); @@ -5531,11 +6792,15 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * 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) { @@ -5551,11 +6816,14 @@ public Builder setLocations(int index, java.lang.String value) { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * 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) { @@ -5571,11 +6839,14 @@ public Builder addLocations(java.lang.String value) { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * repeated string locations = 13; + * + * @param values The locations to add. + * @return This builder for chaining. */ public Builder addAllLocations(java.lang.Iterable values) { ensureLocationsIsMutable(); @@ -5588,15 +6859,17 @@ public Builder addAllLocations(java.lang.Iterable values) { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * repeated string locations = 13; + * + * @return This builder for chaining. */ public Builder clearLocations() { locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -5605,11 +6878,14 @@ public Builder clearLocations() { * *
      * The list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/compute/docs/zones#available) in which the cluster's nodes
      * should be located.
      * 
* * 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) { @@ -5636,6 +6912,8 @@ public Builder addLocationsBytes(com.google.protobuf.ByteString value) { * * * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. */ public boolean getEnableKubernetesAlpha() { return enableKubernetesAlpha_; @@ -5653,6 +6931,9 @@ public boolean getEnableKubernetesAlpha() { * * * bool enable_kubernetes_alpha = 14; + * + * @param value The enableKubernetesAlpha to set. + * @return This builder for chaining. */ public Builder setEnableKubernetesAlpha(boolean value) { @@ -5673,6 +6954,8 @@ public Builder setEnableKubernetesAlpha(boolean value) { * * * bool enable_kubernetes_alpha = 14; + * + * @return This builder for chaining. */ public Builder clearEnableKubernetesAlpha() { @@ -5852,6 +7135,8 @@ public Builder putAllResourceLabels(java.util.Map * * string label_fingerprint = 16; + * + * @return The labelFingerprint. */ public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; @@ -5872,6 +7157,8 @@ public java.lang.String getLabelFingerprint() { * * * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. */ public com.google.protobuf.ByteString getLabelFingerprintBytes() { java.lang.Object ref = labelFingerprint_; @@ -5892,6 +7179,9 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() { * * * 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) { @@ -5910,6 +7200,8 @@ public Builder setLabelFingerprint(java.lang.String value) { * * * string label_fingerprint = 16; + * + * @return This builder for chaining. */ public Builder clearLabelFingerprint() { @@ -5925,6 +7217,9 @@ public Builder clearLabelFingerprint() { * * * 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) { @@ -5951,6 +7246,8 @@ public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. */ public boolean hasLegacyAbac() { return legacyAbacBuilder_ != null || legacyAbac_ != null; @@ -5963,6 +7260,8 @@ public boolean hasLegacyAbac() { * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. */ public com.google.container.v1.LegacyAbac getLegacyAbac() { if (legacyAbacBuilder_ == null) { @@ -6132,6 +7431,8 @@ public com.google.container.v1.LegacyAbacOrBuilder getLegacyAbacOrBuilder() { * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. */ public boolean hasNetworkPolicy() { return networkPolicyBuilder_ != null || networkPolicy_ != null; @@ -6144,6 +7445,8 @@ public boolean hasNetworkPolicy() { * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. */ public com.google.container.v1.NetworkPolicy getNetworkPolicy() { if (networkPolicyBuilder_ == null) { @@ -6313,6 +7616,8 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. */ public boolean hasIpAllocationPolicy() { return ipAllocationPolicyBuilder_ != null || ipAllocationPolicy_ != null; @@ -6325,6 +7630,8 @@ public boolean hasIpAllocationPolicy() { * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. */ public com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy() { if (ipAllocationPolicyBuilder_ == null) { @@ -6497,6 +7804,8 @@ public com.google.container.v1.IPAllocationPolicyOrBuilder getIpAllocationPolicy * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. */ public boolean hasMasterAuthorizedNetworksConfig() { return masterAuthorizedNetworksConfigBuilder_ != null @@ -6512,6 +7821,8 @@ public boolean hasMasterAuthorizedNetworksConfig() { * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return The masterAuthorizedNetworksConfig. */ public com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig() { @@ -6702,6 +8013,8 @@ public Builder clearMasterAuthorizedNetworksConfig() { * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null; @@ -6714,6 +8027,8 @@ public boolean hasMaintenancePolicy() { * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. */ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -6870,60 +8185,64 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr return maintenancePolicyBuilder_; } - private com.google.container.v1.NetworkConfig networkConfig_; + private com.google.container.v1.BinaryAuthorization binaryAuthorization_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder> - networkConfigBuilder_; + com.google.container.v1.BinaryAuthorization, + com.google.container.v1.BinaryAuthorization.Builder, + com.google.container.v1.BinaryAuthorizationOrBuilder> + binaryAuthorizationBuilder_; /** * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * + * @return Whether the binaryAuthorization field is set. */ - public boolean hasNetworkConfig() { - return networkConfigBuilder_ != null || networkConfig_ != null; + public boolean hasBinaryAuthorization() { + return binaryAuthorizationBuilder_ != null || binaryAuthorization_ != null; } /** * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; + * + * @return The binaryAuthorization. */ - public com.google.container.v1.NetworkConfig getNetworkConfig() { - if (networkConfigBuilder_ == null) { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; + public com.google.container.v1.BinaryAuthorization getBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + return binaryAuthorization_ == null + ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; } else { - return networkConfigBuilder_.getMessage(); + return binaryAuthorizationBuilder_.getMessage(); } } /** * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { + public Builder setBinaryAuthorization(com.google.container.v1.BinaryAuthorization value) { + if (binaryAuthorizationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - networkConfig_ = value; + binaryAuthorization_ = value; onChanged(); } else { - networkConfigBuilder_.setMessage(value); + binaryAuthorizationBuilder_.setMessage(value); } return this; @@ -6932,17 +8251,18 @@ public Builder setNetworkConfig(com.google.container.v1.NetworkConfig value) { * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder builderForValue) { - if (networkConfigBuilder_ == null) { - networkConfig_ = builderForValue.build(); + public Builder setBinaryAuthorization( + com.google.container.v1.BinaryAuthorization.Builder builderForValue) { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = builderForValue.build(); onChanged(); } else { - networkConfigBuilder_.setMessage(builderForValue.build()); + binaryAuthorizationBuilder_.setMessage(builderForValue.build()); } return this; @@ -6951,24 +8271,24 @@ public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder bu * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { - if (networkConfigBuilder_ == null) { - if (networkConfig_ != null) { - networkConfig_ = - com.google.container.v1.NetworkConfig.newBuilder(networkConfig_) + 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 { - networkConfig_ = value; + binaryAuthorization_ = value; } onChanged(); } else { - networkConfigBuilder_.mergeFrom(value); + binaryAuthorizationBuilder_.mergeFrom(value); } return this; @@ -6977,18 +8297,18 @@ public Builder mergeNetworkConfig(com.google.container.v1.NetworkConfig value) { * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public Builder clearNetworkConfig() { - if (networkConfigBuilder_ == null) { - networkConfig_ = null; + public Builder clearBinaryAuthorization() { + if (binaryAuthorizationBuilder_ == null) { + binaryAuthorization_ = null; onChanged(); } else { - networkConfig_ = null; - networkConfigBuilder_ = null; + binaryAuthorization_ = null; + binaryAuthorizationBuilder_ = null; } return this; @@ -6997,114 +8317,118 @@ public Builder clearNetworkConfig() { * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public com.google.container.v1.NetworkConfig.Builder getNetworkConfigBuilder() { + public com.google.container.v1.BinaryAuthorization.Builder getBinaryAuthorizationBuilder() { onChanged(); - return getNetworkConfigFieldBuilder().getBuilder(); + return getBinaryAuthorizationFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ - public com.google.container.v1.NetworkConfigOrBuilder getNetworkConfigOrBuilder() { - if (networkConfigBuilder_ != null) { - return networkConfigBuilder_.getMessageOrBuilder(); + public com.google.container.v1.BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder() { + if (binaryAuthorizationBuilder_ != null) { + return binaryAuthorizationBuilder_.getMessageOrBuilder(); } else { - return networkConfig_ == null - ? com.google.container.v1.NetworkConfig.getDefaultInstance() - : networkConfig_; + return binaryAuthorization_ == null + ? com.google.container.v1.BinaryAuthorization.getDefaultInstance() + : binaryAuthorization_; } } /** * * *
-     * Configuration for cluster networking.
+     * Configuration for Binary Authorization.
      * 
* - * .google.container.v1.NetworkConfig network_config = 27; + * .google.container.v1.BinaryAuthorization binary_authorization = 24; */ 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_ = + 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.NetworkConfig, - com.google.container.v1.NetworkConfig.Builder, - com.google.container.v1.NetworkConfigOrBuilder>( - getNetworkConfig(), getParentForChildren(), isClean()); - networkConfig_ = null; + com.google.container.v1.BinaryAuthorization, + com.google.container.v1.BinaryAuthorization.Builder, + com.google.container.v1.BinaryAuthorizationOrBuilder>( + getBinaryAuthorization(), getParentForChildren(), isClean()); + binaryAuthorization_ = null; } - return networkConfigBuilder_; + return binaryAuthorizationBuilder_; } - private com.google.container.v1.PrivateClusterConfig privateClusterConfig_; + private com.google.container.v1.ClusterAutoscaling autoscaling_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.container.v1.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder> - privateClusterConfigBuilder_; + com.google.container.v1.ClusterAutoscaling, + com.google.container.v1.ClusterAutoscaling.Builder, + com.google.container.v1.ClusterAutoscalingOrBuilder> + autoscalingBuilder_; /** * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * + * @return Whether the autoscaling field is set. */ - public boolean hasPrivateClusterConfig() { - return privateClusterConfigBuilder_ != null || privateClusterConfig_ != null; + public boolean hasAutoscaling() { + return autoscalingBuilder_ != null || autoscaling_ != null; } /** * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; + * + * @return The autoscaling. */ - public com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; + public com.google.container.v1.ClusterAutoscaling getAutoscaling() { + if (autoscalingBuilder_ == null) { + return autoscaling_ == null + ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; } else { - return privateClusterConfigBuilder_.getMessage(); + return autoscalingBuilder_.getMessage(); } } /** * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public Builder setPrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { + public Builder setAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (autoscalingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - privateClusterConfig_ = value; + autoscaling_ = value; onChanged(); } else { - privateClusterConfigBuilder_.setMessage(value); + autoscalingBuilder_.setMessage(value); } return this; @@ -7113,18 +8437,18 @@ public Builder setPrivateClusterConfig(com.google.container.v1.PrivateClusterCon * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public Builder setPrivateClusterConfig( - com.google.container.v1.PrivateClusterConfig.Builder builderForValue) { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = builderForValue.build(); + public Builder setAutoscaling( + com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { + if (autoscalingBuilder_ == null) { + autoscaling_ = builderForValue.build(); onChanged(); } else { - privateClusterConfigBuilder_.setMessage(builderForValue.build()); + autoscalingBuilder_.setMessage(builderForValue.build()); } return this; @@ -7133,24 +8457,24 @@ public Builder setPrivateClusterConfig( * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public Builder mergePrivateClusterConfig(com.google.container.v1.PrivateClusterConfig value) { - if (privateClusterConfigBuilder_ == null) { - if (privateClusterConfig_ != null) { - privateClusterConfig_ = - com.google.container.v1.PrivateClusterConfig.newBuilder(privateClusterConfig_) + 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 { - privateClusterConfig_ = value; + autoscaling_ = value; } onChanged(); } else { - privateClusterConfigBuilder_.mergeFrom(value); + autoscalingBuilder_.mergeFrom(value); } return this; @@ -7159,18 +8483,18 @@ public Builder mergePrivateClusterConfig(com.google.container.v1.PrivateClusterC * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public Builder clearPrivateClusterConfig() { - if (privateClusterConfigBuilder_ == null) { - privateClusterConfig_ = null; + public Builder clearAutoscaling() { + if (autoscalingBuilder_ == null) { + autoscaling_ = null; onChanged(); } else { - privateClusterConfig_ = null; - privateClusterConfigBuilder_ = null; + autoscaling_ = null; + autoscalingBuilder_ = null; } return this; @@ -7179,175 +8503,2055 @@ public Builder clearPrivateClusterConfig() { * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public com.google.container.v1.PrivateClusterConfig.Builder getPrivateClusterConfigBuilder() { + public com.google.container.v1.ClusterAutoscaling.Builder getAutoscalingBuilder() { onChanged(); - return getPrivateClusterConfigFieldBuilder().getBuilder(); + return getAutoscalingFieldBuilder().getBuilder(); } /** * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ - public com.google.container.v1.PrivateClusterConfigOrBuilder - getPrivateClusterConfigOrBuilder() { - if (privateClusterConfigBuilder_ != null) { - return privateClusterConfigBuilder_.getMessageOrBuilder(); + public com.google.container.v1.ClusterAutoscalingOrBuilder getAutoscalingOrBuilder() { + if (autoscalingBuilder_ != null) { + return autoscalingBuilder_.getMessageOrBuilder(); } else { - return privateClusterConfig_ == null - ? com.google.container.v1.PrivateClusterConfig.getDefaultInstance() - : privateClusterConfig_; + return autoscaling_ == null + ? com.google.container.v1.ClusterAutoscaling.getDefaultInstance() + : autoscaling_; } } /** * * *
-     * Configuration for private cluster.
+     * Cluster-level autoscaling configuration.
      * 
* - * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * .google.container.v1.ClusterAutoscaling autoscaling = 26; */ 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_ = + 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.PrivateClusterConfig, - com.google.container.v1.PrivateClusterConfig.Builder, - com.google.container.v1.PrivateClusterConfigOrBuilder>( - getPrivateClusterConfig(), getParentForChildren(), isClean()); - privateClusterConfig_ = null; + com.google.container.v1.ClusterAutoscaling, + com.google.container.v1.ClusterAutoscaling.Builder, + com.google.container.v1.ClusterAutoscalingOrBuilder>( + getAutoscaling(), getParentForChildren(), isClean()); + autoscaling_ = null; } - return privateClusterConfigBuilder_; + return autoscalingBuilder_; } - private java.lang.Object selfLink_ = ""; + 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_; /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for cluster networking.
      * 
* - * string self_link = 100; + * .google.container.v1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. */ - public java.lang.String getSelfLink() { - java.lang.Object ref = selfLink_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - selfLink_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasNetworkConfig() { + return networkConfigBuilder_ != null || networkConfig_ != null; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for cluster networking.
      * 
* - * string self_link = 100; + * .google.container.v1.NetworkConfig network_config = 27; + * + * @return The networkConfig. */ - public com.google.protobuf.ByteString getSelfLinkBytes() { - java.lang.Object ref = selfLink_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - selfLink_ = b; - return b; + public com.google.container.v1.NetworkConfig getNetworkConfig() { + if (networkConfigBuilder_ == null) { + return networkConfig_ == null + ? com.google.container.v1.NetworkConfig.getDefaultInstance() + : networkConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return networkConfigBuilder_.getMessage(); } } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for cluster networking.
      * 
* - * string self_link = 100; + * .google.container.v1.NetworkConfig network_config = 27; */ - public Builder setSelfLink(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + 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); } - selfLink_ = value; - onChanged(); return this; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for cluster networking.
      * 
* - * string self_link = 100; + * .google.container.v1.NetworkConfig network_config = 27; */ - public Builder clearSelfLink() { + public Builder setNetworkConfig(com.google.container.v1.NetworkConfig.Builder builderForValue) { + if (networkConfigBuilder_ == null) { + networkConfig_ = builderForValue.build(); + onChanged(); + } else { + networkConfigBuilder_.setMessage(builderForValue.build()); + } - selfLink_ = getDefaultInstance().getSelfLink(); - onChanged(); return this; } /** * * *
-     * [Output only] Server-defined URL for the resource.
+     * Configuration for cluster networking.
      * 
* - * string self_link = 100; + * .google.container.v1.NetworkConfig network_config = 27; */ - public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + 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); } - checkByteStringIsUtf8(value); - selfLink_ = value; - onChanged(); return this; } - - private java.lang.Object zone_ = ""; /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * 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 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](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The zone. + */ + @java.lang.Deprecated + public java.lang.String getZone() { + java.lang.Object ref = zone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + zone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getZoneBytes() { + java.lang.Object ref = zone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + zone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @param value The zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + zone_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearZone() { + + zone_ = getDefaultInstance().getZone(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/zones#available) in which the cluster
+     * resides.
+     * This field is deprecated, use location instead.
+     * 
+ * + * string zone = 101 [deprecated = true]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + zone_ = value; + onChanged(); + return this; + } + + private java.lang.Object endpoint_ = ""; + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The endpoint. + */ + public java.lang.String getEndpoint() { + java.lang.Object ref = endpoint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endpoint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return The bytes for endpoint. + */ + public com.google.protobuf.ByteString getEndpointBytes() { + java.lang.Object ref = endpoint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endpoint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpoint(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + endpoint_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @return This builder for chaining. + */ + public Builder clearEndpoint() { + + endpoint_ = getDefaultInstance().getEndpoint(); + onChanged(); + return this; + } + /** + * + * + *
+     * [Output only] The IP address of this cluster's master endpoint.
+     * The endpoint can be accessed from the internet at
+     * `https://username:password@endpoint/`.
+     * See the `masterAuth` property of this resource for username and
+     * password information.
+     * 
+ * + * string endpoint = 102; + * + * @param value The bytes for endpoint to set. + * @return This builder for chaining. + */ + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + endpoint_ = value; + onChanged(); + return this; + } + + private java.lang.Object initialClusterVersion_ = ""; + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. + */ + public java.lang.String getInitialClusterVersion() { + java.lang.Object ref = initialClusterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + initialClusterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. + */ + public com.google.protobuf.ByteString getInitialClusterVersionBytes() { + java.lang.Object ref = initialClusterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + initialClusterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + initialClusterVersion_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @return This builder for chaining. + */ + public Builder clearInitialClusterVersion() { + + initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + onChanged(); + return this; + } + /** + * + * + *
+     * The initial Kubernetes version for this cluster.  Valid versions are those
+     * found in validMasterVersions returned by getServerConfig.  The version can
+     * be upgraded over time; such upgrades are reflected in
+     * currentMasterVersion and currentNodeVersion.
+     * Users may specify either explicit versions offered by
+     * Kubernetes Engine or version aliases, which have the following behavior:
+     * - "latest": picks the highest valid Kubernetes version
+     * - "1.X": picks the highest valid patch+gke.N patch in the 1.X version
+     * - "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
+     * - "1.X.Y-gke.N": picks an explicit Kubernetes version
+     * - "","-": picks the default Kubernetes version
+     * 
+ * + * string initial_cluster_version = 103; + * + * @param value The bytes for initialClusterVersion to set. + * @return This builder for chaining. + */ + public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + initialClusterVersion_ = value; + onChanged(); + return this; + } + + private java.lang.Object currentMasterVersion_ = ""; + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The currentMasterVersion. + */ + public java.lang.String getCurrentMasterVersion() { + java.lang.Object ref = currentMasterVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currentMasterVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
+     * 
+ * + * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. + */ + public com.google.protobuf.ByteString getCurrentMasterVersionBytes() { + java.lang.Object ref = currentMasterVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currentMasterVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * [Output only] The current software version of the master endpoint.
      * 
* - * string zone = 101 [deprecated = true]; + * 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](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
+     * instead. The current version of the node software components. If they are
+     * currently at multiple versions because they're in the process of being
+     * upgraded, this reflects the minimum version of all nodes.
+     * 
+ * + * string current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. */ @java.lang.Deprecated - public java.lang.String getZone() { - java.lang.Object ref = zone_; + 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(); - zone_ = s; + currentNodeVersion_ = s; return s; } else { return (java.lang.String) ref; @@ -7357,21 +10561,24 @@ public java.lang.String getZone() { * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [Output only] Deprecated, use
+     * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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 zone = 101 [deprecated = true]; + * string current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated - public com.google.protobuf.ByteString getZoneBytes() { - java.lang.Object ref = zone_; + 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); - zone_ = b; + currentNodeVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7381,21 +10588,25 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [Output only] Deprecated, use
+     * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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 zone = 101 [deprecated = true]; + * string current_node_version = 105 [deprecated = true]; + * + * @param value The currentNodeVersion to set. + * @return This builder for chaining. */ @java.lang.Deprecated - public Builder setZone(java.lang.String value) { + public Builder setCurrentNodeVersion(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - zone_ = value; + currentNodeVersion_ = value; onChanged(); return this; } @@ -7403,18 +10614,21 @@ public Builder setZone(java.lang.String value) { * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [Output only] Deprecated, use
+     * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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 zone = 101 [deprecated = true]; + * string current_node_version = 105 [deprecated = true]; + * + * @return This builder for chaining. */ @java.lang.Deprecated - public Builder clearZone() { + public Builder clearCurrentNodeVersion() { - zone_ = getDefaultInstance().getZone(); + currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); onChanged(); return this; } @@ -7422,46 +10636,49 @@ public Builder clearZone() { * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/zones#available) in which the cluster
-     * resides.
-     * This field is deprecated, use location instead.
+     * [Output only] Deprecated, use
+     * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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 zone = 101 [deprecated = true]; + * string current_node_version = 105 [deprecated = true]; + * + * @param value The bytes for currentNodeVersion to set. + * @return This builder for chaining. */ @java.lang.Deprecated - public Builder setZoneBytes(com.google.protobuf.ByteString value) { + public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - zone_ = value; + currentNodeVersion_ = value; onChanged(); return this; } - private java.lang.Object endpoint_ = ""; + private java.lang.Object createTime_ = ""; /** * * *
-     * [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.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string endpoint = 102; + * string create_time = 106; + * + * @return The createTime. */ - public java.lang.String getEndpoint() { - java.lang.Object ref = endpoint_; + 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(); - endpoint_ = s; + createTime_ = s; return s; } else { return (java.lang.String) ref; @@ -7471,21 +10688,20 @@ public 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.
+     * [Output only] The time the cluster was created, in
+     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string endpoint = 102; + * string create_time = 106; + * + * @return The bytes for createTime. */ - public com.google.protobuf.ByteString getEndpointBytes() { - java.lang.Object ref = endpoint_; + 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); - endpoint_ = b; + createTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7495,40 +10711,133 @@ public com.google.protobuf.ByteString getEndpointBytes() { * * *
-     * [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.
+     * [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. + */ + 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.
      * 
* - * string endpoint = 102; + * .google.container.v1.Cluster.Status status = 107; + * + * @return The status. */ - public Builder setEndpoint(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - endpoint_ = value; - onChanged(); - return this; + 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 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.
+     * [Output only] The current status of this cluster.
      * 
* - * string endpoint = 102; + * .google.container.v1.Cluster.Status status = 107; + * + * @param value The status to set. + * @return This builder for chaining. */ - public Builder clearEndpoint() { + public Builder setStatus(com.google.container.v1.Cluster.Status value) { + if (value == null) { + throw new NullPointerException(); + } - endpoint_ = getDefaultInstance().getEndpoint(); + status_ = value.getNumber(); onChanged(); return this; } @@ -7536,52 +10845,39 @@ public Builder clearEndpoint() { * * *
-     * [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.
+     * [Output only] The current status of this cluster.
      * 
* - * string endpoint = 102; + * .google.container.v1.Cluster.Status status = 107; + * + * @return This builder for chaining. */ - public Builder setEndpointBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearStatus() { - endpoint_ = value; + status_ = 0; onChanged(); return this; } - private java.lang.Object initialClusterVersion_ = ""; + private java.lang.Object statusMessage_ = ""; /** * * *
-     * 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
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
      * 
* - * string initial_cluster_version = 103; + * string status_message = 108; + * + * @return The statusMessage. */ - public java.lang.String getInitialClusterVersion() { - java.lang.Object ref = initialClusterVersion_; + 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(); - initialClusterVersion_ = s; + statusMessage_ = s; return s; } else { return (java.lang.String) ref; @@ -7591,27 +10887,20 @@ public 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
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
      * 
* - * string initial_cluster_version = 103; + * string status_message = 108; + * + * @return The bytes for statusMessage. */ - public com.google.protobuf.ByteString getInitialClusterVersionBytes() { - java.lang.Object ref = initialClusterVersion_; + 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); - initialClusterVersion_ = b; + statusMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7621,27 +10910,21 @@ public com.google.protobuf.ByteString getInitialClusterVersionBytes() { * * *
-     * 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
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
      * 
* - * string initial_cluster_version = 103; + * string status_message = 108; + * + * @param value The statusMessage to set. + * @return This builder for chaining. */ - public Builder setInitialClusterVersion(java.lang.String value) { + public Builder setStatusMessage(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - initialClusterVersion_ = value; + statusMessage_ = value; onChanged(); return this; } @@ -7649,24 +10932,17 @@ public Builder setInitialClusterVersion(java.lang.String value) { * * *
-     * 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
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
      * 
* - * string initial_cluster_version = 103; + * string status_message = 108; + * + * @return This builder for chaining. */ - public Builder clearInitialClusterVersion() { + public Builder clearStatusMessage() { - initialClusterVersion_ = getDefaultInstance().getInitialClusterVersion(); + statusMessage_ = getDefaultInstance().getStatusMessage(); onChanged(); return this; } @@ -7674,103 +10950,62 @@ public Builder clearInitialClusterVersion() { * * *
-     * 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
+     * [Output only] Additional information about the current status of this
+     * cluster, if available.
      * 
* - * string initial_cluster_version = 103; + * string status_message = 108; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. */ - public Builder setInitialClusterVersionBytes(com.google.protobuf.ByteString value) { + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - initialClusterVersion_ = value; + statusMessage_ = value; onChanged(); return this; } - private java.lang.Object currentMasterVersion_ = ""; + private int nodeIpv4CidrSize_; /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * [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.
      * 
* - * string current_master_version = 104; - */ - 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.
-     * 
+ * int32 node_ipv4_cidr_size = 109; * - * string current_master_version = 104; + * @return The nodeIpv4CidrSize. */ - 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; - } + public int getNodeIpv4CidrSize() { + return nodeIpv4CidrSize_; } /** * * *
-     * [Output only] The current software version of the master endpoint.
+     * [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.
      * 
* - * string current_master_version = 104; - */ - 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.
-     * 
+ * int32 node_ipv4_cidr_size = 109; * - * string current_master_version = 104; + * @param value The nodeIpv4CidrSize to set. + * @return This builder for chaining. */ - public Builder clearCurrentMasterVersion() { + public Builder setNodeIpv4CidrSize(int value) { - currentMasterVersion_ = getDefaultInstance().getCurrentMasterVersion(); + nodeIpv4CidrSize_ = value; onChanged(); return this; } @@ -7778,43 +11013,45 @@ public Builder clearCurrentMasterVersion() { * * *
-     * [Output only] The current software version of the master endpoint.
+     * [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.
      * 
* - * string current_master_version = 104; + * int32 node_ipv4_cidr_size = 109; + * + * @return This builder for chaining. */ - public Builder setCurrentMasterVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearNodeIpv4CidrSize() { - currentMasterVersion_ = value; + nodeIpv4CidrSize_ = 0; onChanged(); return this; } - private java.lang.Object currentNodeVersion_ = ""; + private java.lang.Object servicesIpv4Cidr_ = ""; /** * * *
-     * [Output only] Deprecated, use
-     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
+     * [Output only] 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 current_node_version = 105 [deprecated = true]; + * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. */ - @java.lang.Deprecated - public java.lang.String getCurrentNodeVersion() { - java.lang.Object ref = currentNodeVersion_; + 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(); - currentNodeVersion_ = s; + servicesIpv4Cidr_ = s; return s; } else { return (java.lang.String) ref; @@ -7824,22 +11061,23 @@ public java.lang.String getCurrentNodeVersion() { * * *
-     * [Output only] Deprecated, use
-     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
+     * [Output only] 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 current_node_version = 105 [deprecated = true]; + * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { - java.lang.Object ref = currentNodeVersion_; + 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); - currentNodeVersion_ = b; + servicesIpv4Cidr_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -7849,22 +11087,24 @@ public com.google.protobuf.ByteString getCurrentNodeVersionBytes() { * * *
-     * [Output only] Deprecated, use
-     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
+     * [Output only] 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 current_node_version = 105 [deprecated = true]; + * string services_ipv4_cidr = 110; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCurrentNodeVersion(java.lang.String value) { + public Builder setServicesIpv4Cidr(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - currentNodeVersion_ = value; + servicesIpv4Cidr_ = value; onChanged(); return this; } @@ -7872,19 +11112,20 @@ public Builder setCurrentNodeVersion(java.lang.String value) { * * *
-     * [Output only] Deprecated, use
-     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
+     * [Output only] 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 current_node_version = 105 [deprecated = true]; + * string services_ipv4_cidr = 110; + * + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder clearCurrentNodeVersion() { + public Builder clearServicesIpv4Cidr() { - currentNodeVersion_ = getDefaultInstance().getCurrentNodeVersion(); + servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); onChanged(); return this; } @@ -7892,86 +11133,120 @@ public Builder clearCurrentNodeVersion() { * * *
-     * [Output only] Deprecated, use
-     * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
-     * instead. The current version of the node software components. If they are
-     * currently at multiple versions because they're in the process of being
-     * upgraded, this reflects the minimum version of all nodes.
+     * [Output only] 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 current_node_version = 105 [deprecated = true]; + * string services_ipv4_cidr = 110; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setCurrentNodeVersionBytes(com.google.protobuf.ByteString value) { + public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - currentNodeVersion_ = value; + servicesIpv4Cidr_ = value; onChanged(); return this; } - private java.lang.Object createTime_ = ""; + 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; + } + } /** * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * string create_time = 106; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. */ - 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; - } + @java.lang.Deprecated + public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { + return instanceGroupUrls_.getUnmodifiableView(); } /** * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * string create_time = 106; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return The count of instanceGroupUrls. */ - 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; - } + @java.lang.Deprecated + public int getInstanceGroupUrlsCount() { + return instanceGroupUrls_.size(); } /** * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * string create_time = 106; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. */ - public Builder setCreateTime(java.lang.String value) { + @java.lang.Deprecated + public java.lang.String getInstanceGroupUrls(int index) { + return instanceGroupUrls_.get(index); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { + return instanceGroupUrls_.getByteString(index); + } + /** + * + * + *
+     * Deprecated. Use node_pools.instance_group_urls.
+     * 
+ * + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index to set the value at. + * @param value The instanceGroupUrls to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setInstanceGroupUrls(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - - createTime_ = value; + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.set(index, value); onChanged(); return this; } @@ -7979,15 +11254,21 @@ public Builder setCreateTime(java.lang.String value) { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * string create_time = 106; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param value The instanceGroupUrls to add. + * @return This builder for chaining. */ - public Builder clearCreateTime() { - - createTime_ = getDefaultInstance().getCreateTime(); + @java.lang.Deprecated + public Builder addInstanceGroupUrls(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceGroupUrlsIsMutable(); + instanceGroupUrls_.add(value); onChanged(); return this; } @@ -7995,80 +11276,97 @@ public Builder clearCreateTime() { * * *
-     * [Output only] The time the cluster was created, in
-     * [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * string create_time = 106; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param values The instanceGroupUrls to add. + * @return This builder for chaining. */ - public Builder setCreateTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - createTime_ = value; + @java.lang.Deprecated + public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { + ensureInstanceGroupUrlsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); onChanged(); return this; } - - private int status_ = 0; /** * * *
-     * [Output only] The current status of this cluster.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return This builder for chaining. */ - public int getStatusValue() { - return status_; + @java.lang.Deprecated + public Builder clearInstanceGroupUrls() { + instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; } /** * * *
-     * [Output only] The current status of this cluster.
+     * Deprecated. Use node_pools.instance_group_urls.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param value The bytes of the instanceGroupUrls to add. + * @return This builder for chaining. */ - public Builder setStatusValue(int value) { - status_ = value; + @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 current status of this cluster.
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * int32 current_node_count = 112 [deprecated = true]; + * + * @return The currentNodeCount. */ - 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; + @java.lang.Deprecated + public int getCurrentNodeCount() { + return currentNodeCount_; } /** * * *
-     * [Output only] The current status of this cluster.
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * int32 current_node_count = 112 [deprecated = true]; + * + * @param value The currentNodeCount to set. + * @return This builder for chaining. */ - public Builder setStatus(com.google.container.v1.Cluster.Status value) { - if (value == null) { - throw new NullPointerException(); - } + @java.lang.Deprecated + public Builder setCurrentNodeCount(int value) { - status_ = value.getNumber(); + currentNodeCount_ = value; onChanged(); return this; } @@ -8076,35 +11374,41 @@ public Builder setStatus(com.google.container.v1.Cluster.Status value) { * * *
-     * [Output only] The current status of this cluster.
+     * [Output only]  The number of nodes currently in the cluster. Deprecated.
+     * Call Kubernetes API directly to retrieve node information.
      * 
* - * .google.container.v1.Cluster.Status status = 107; + * int32 current_node_count = 112 [deprecated = true]; + * + * @return This builder for chaining. */ - public Builder clearStatus() { + @java.lang.Deprecated + public Builder clearCurrentNodeCount() { - status_ = 0; + currentNodeCount_ = 0; onChanged(); return this; } - private java.lang.Object statusMessage_ = ""; + private java.lang.Object expireTime_ = ""; /** * * *
-     * [Output only] Additional information about the current status of this
-     * cluster, if available.
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string status_message = 108; + * string expire_time = 113; + * + * @return The expireTime. */ - public java.lang.String getStatusMessage() { - java.lang.Object ref = statusMessage_; + 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(); - statusMessage_ = s; + expireTime_ = s; return s; } else { return (java.lang.String) ref; @@ -8114,18 +11418,20 @@ public java.lang.String getStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
-     * cluster, if available.
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string status_message = 108; + * string expire_time = 113; + * + * @return The bytes for expireTime. */ - public com.google.protobuf.ByteString getStatusMessageBytes() { - java.lang.Object ref = statusMessage_; + 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); - statusMessage_ = b; + expireTime_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -8135,18 +11441,21 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * *
-     * [Output only] Additional information about the current status of this
-     * cluster, if available.
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string status_message = 108; + * string expire_time = 113; + * + * @param value The expireTime to set. + * @return This builder for chaining. */ - public Builder setStatusMessage(java.lang.String value) { + public Builder setExpireTime(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - statusMessage_ = value; + expireTime_ = value; onChanged(); return this; } @@ -8154,15 +11463,17 @@ public Builder setStatusMessage(java.lang.String value) { * * *
-     * [Output only] Additional information about the current status of this
-     * cluster, if available.
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string status_message = 108; + * string expire_time = 113; + * + * @return This builder for chaining. */ - public Builder clearStatusMessage() { + public Builder clearExpireTime() { - statusMessage_ = getDefaultInstance().getStatusMessage(); + expireTime_ = getDefaultInstance().getExpireTime(); onChanged(); return this; } @@ -8170,160 +11481,177 @@ public Builder clearStatusMessage() { * * *
-     * [Output only] Additional information about the current status of this
-     * cluster, if available.
+     * [Output only] The time the cluster will be automatically
+     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
      * 
* - * string status_message = 108; + * string expire_time = 113; + * + * @param value The bytes for expireTime to set. + * @return This builder for chaining. */ - public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - statusMessage_ = value; + expireTime_ = value; onChanged(); return this; } - private int nodeIpv4CidrSize_; + private java.lang.Object location_ = ""; /** * * *
-     * [Output only] The size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range.
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string location = 114; + * + * @return The location. */ - public int getNodeIpv4CidrSize() { - return nodeIpv4CidrSize_; + 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 size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range.
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string location = 114; + * + * @return The bytes for location. */ - public Builder setNodeIpv4CidrSize(int value) { - - nodeIpv4CidrSize_ = value; - onChanged(); - return this; + 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 size of the address space on each node for hosting
-     * containers. This is provisioned from within the `container_ipv4_cidr`
-     * range.
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
      * 
* - * int32 node_ipv4_cidr_size = 109; + * string location = 114; + * + * @param value The location to set. + * @return This builder for chaining. */ - public Builder clearNodeIpv4CidrSize() { + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - nodeIpv4CidrSize_ = 0; + location_ = value; 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.
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
      * 
* - * string services_ipv4_cidr = 110; + * string location = 114; + * + * @return This builder for chaining. */ - 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; - } + public Builder clearLocation() { + + location_ = getDefaultInstance().getLocation(); + 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.
+     * [Output only] The name of the Google Compute Engine
+     * [zone](/compute/docs/regions-zones/regions-zones#available) or
+     * [region](/compute/docs/regions-zones/regions-zones#available) in which
+     * the cluster resides.
      * 
* - * string services_ipv4_cidr = 110; + * string location = 114; + * + * @param value The bytes for location to set. + * @return This builder for chaining. */ - 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; + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); } + checkByteStringIsUtf8(value); + + location_ = value; + onChanged(); + return this; } + + private boolean enableTpu_; /** * * *
-     * [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.
+     * Enable the ability to use Cloud TPUs in this cluster.
      * 
* - * string services_ipv4_cidr = 110; + * bool enable_tpu = 115; + * + * @return The enableTpu. */ - public Builder setServicesIpv4Cidr(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - servicesIpv4Cidr_ = value; - onChanged(); - return this; + public boolean getEnableTpu() { + return enableTpu_; } /** * * *
-     * [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.
+     * Enable the ability to use Cloud TPUs in this cluster.
      * 
* - * string services_ipv4_cidr = 110; + * bool enable_tpu = 115; + * + * @param value The enableTpu to set. + * @return This builder for chaining. */ - public Builder clearServicesIpv4Cidr() { + public Builder setEnableTpu(boolean value) { - servicesIpv4Cidr_ = getDefaultInstance().getServicesIpv4Cidr(); + enableTpu_ = value; onChanged(); return this; } @@ -8331,428 +11659,483 @@ public Builder clearServicesIpv4Cidr() { * * *
-     * [Output only] The IP address range of the Kubernetes services in
-     * this cluster, in
-     * [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing)
-     * notation (e.g. `1.2.3.4/29`). Service addresses are
-     * typically put in the last `/16` from the container CIDR.
+     * Enable the ability to use Cloud TPUs in this cluster.
      * 
* - * string services_ipv4_cidr = 110; + * bool enable_tpu = 115; + * + * @return This builder for chaining. */ - public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public Builder clearEnableTpu() { - servicesIpv4Cidr_ = value; + enableTpu_ = false; onChanged(); return this; } - private com.google.protobuf.LazyStringList instanceGroupUrls_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - - private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField1_ & 0x00000004) != 0)) { - instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField1_ |= 0x00000004; - } - } + private java.lang.Object tpuIpv4CidrBlock_ = ""; /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [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`).
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string tpu_ipv4_cidr_block = 116; + * + * @return The tpuIpv4CidrBlock. */ - @java.lang.Deprecated - public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { - return instanceGroupUrls_.getUnmodifiableView(); + 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; + } } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [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`).
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string tpu_ipv4_cidr_block = 116; + * + * @return The bytes for tpuIpv4CidrBlock. */ - @java.lang.Deprecated - public int getInstanceGroupUrlsCount() { - return instanceGroupUrls_.size(); + 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; + } } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [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`).
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string tpu_ipv4_cidr_block = 116; + * + * @param value The tpuIpv4CidrBlock to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public java.lang.String getInstanceGroupUrls(int index) { - return instanceGroupUrls_.get(index); + public Builder setTpuIpv4CidrBlock(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tpuIpv4CidrBlock_ = value; + onChanged(); + return this; } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [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`).
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string tpu_ipv4_cidr_block = 116; + * + * @return This builder for chaining. */ - @java.lang.Deprecated - public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { - return instanceGroupUrls_.getByteString(index); + public Builder clearTpuIpv4CidrBlock() { + + tpuIpv4CidrBlock_ = getDefaultInstance().getTpuIpv4CidrBlock(); + onChanged(); + return this; } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * [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`).
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * string tpu_ipv4_cidr_block = 116; + * + * @param value The bytes for tpuIpv4CidrBlock to set. + * @return This builder for chaining. */ - @java.lang.Deprecated - public Builder setInstanceGroupUrls(int index, java.lang.String value) { + public Builder setTpuIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.set(index, value); + 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_; + /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * Which conditions caused the current cluster state.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - @java.lang.Deprecated - public Builder addInstanceGroupUrls(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public java.util.List getConditionsList() { + if (conditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conditions_); + } else { + return conditionsBuilder_.getMessageList(); } - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); - return this; } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * Which conditions caused the current cluster state.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - @java.lang.Deprecated - public Builder addAllInstanceGroupUrls(java.lang.Iterable values) { - ensureInstanceGroupUrlsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, instanceGroupUrls_); - onChanged(); - return this; + public int getConditionsCount() { + if (conditionsBuilder_ == null) { + return conditions_.size(); + } else { + return conditionsBuilder_.getCount(); + } } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * Which conditions caused the current cluster state.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - @java.lang.Deprecated - public Builder clearInstanceGroupUrls() { - instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField1_ = (bitField1_ & ~0x00000004); - onChanged(); - return this; + public com.google.container.v1.StatusCondition getConditions(int index) { + if (conditionsBuilder_ == null) { + return conditions_.get(index); + } else { + return conditionsBuilder_.getMessage(index); + } } /** * * *
-     * Deprecated. Use node_pools.instance_group_urls.
+     * Which conditions caused the current cluster state.
      * 
* - * repeated string instance_group_urls = 111 [deprecated = true]; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - @java.lang.Deprecated - public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + 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); } - checkByteStringIsUtf8(value); - ensureInstanceGroupUrlsIsMutable(); - instanceGroupUrls_.add(value); - onChanged(); return this; } - - private int currentNodeCount_; /** * * *
-     * [Output only] The number of nodes currently in the cluster.
+     * Which conditions caused the current cluster state.
      * 
* - * int32 current_node_count = 112; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public int getCurrentNodeCount() { - return currentNodeCount_; + 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; } /** * * *
-     * [Output only] The number of nodes currently in the cluster.
+     * Which conditions caused the current cluster state.
      * 
* - * int32 current_node_count = 112; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder setCurrentNodeCount(int value) { - - currentNodeCount_ = value; - onChanged(); + 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; } /** * * *
-     * [Output only] The number of nodes currently in the cluster.
+     * Which conditions caused the current cluster state.
      * 
* - * int32 current_node_count = 112; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder clearCurrentNodeCount() { - - currentNodeCount_ = 0; - onChanged(); + 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; } - - 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.
+     * Which conditions caused the current cluster state.
      * 
* - * string expire_time = 113; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public java.lang.String getExpireTime() { - java.lang.Object ref = expireTime_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - expireTime_ = s; - return s; + public Builder addConditions(com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(builderForValue.build()); + onChanged(); } else { - return (java.lang.String) ref; + conditionsBuilder_.addMessage(builderForValue.build()); } + return this; } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Which conditions caused the current cluster state.
      * 
* - * string expire_time = 113; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public com.google.protobuf.ByteString getExpireTimeBytes() { - java.lang.Object ref = expireTime_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - expireTime_ = b; - return b; + public Builder addConditions( + int index, com.google.container.v1.StatusCondition.Builder builderForValue) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.add(index, builderForValue.build()); + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + conditionsBuilder_.addMessage(index, builderForValue.build()); } + return this; } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Which conditions caused the current cluster state.
      * 
* - * string expire_time = 113; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder setExpireTime(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder addAllConditions( + java.lang.Iterable values) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conditions_); + onChanged(); + } else { + conditionsBuilder_.addAllMessages(values); } - - 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.
+     * Which conditions caused the current cluster state.
      * 
* - * string expire_time = 113; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder clearExpireTime() { - - expireTime_ = getDefaultInstance().getExpireTime(); - onChanged(); + public Builder clearConditions() { + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + conditionsBuilder_.clear(); + } return this; } /** * * *
-     * [Output only] The time the cluster will be automatically
-     * deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format.
+     * Which conditions caused the current cluster state.
      * 
* - * string expire_time = 113; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder setExpireTimeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + public Builder removeConditions(int index) { + if (conditionsBuilder_ == null) { + ensureConditionsIsMutable(); + conditions_.remove(index); + onChanged(); + } else { + conditionsBuilder_.remove(index); } - checkByteStringIsUtf8(value); - - expireTime_ = value; - onChanged(); return this; } - - private java.lang.Object location_ = ""; /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/regions-zones/regions-zones#available) or
-     * [region](/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * Which conditions caused the current cluster state.
      * 
* - * string location = 114; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - 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; + 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 (java.lang.String) ref; + return conditionsBuilder_.getMessageOrBuilder(index); } } /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/regions-zones/regions-zones#available) or
-     * [region](/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * Which conditions caused the current cluster state.
      * 
* - * string location = 114; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - 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; + public java.util.List + getConditionsOrBuilderList() { + if (conditionsBuilder_ != null) { + return conditionsBuilder_.getMessageOrBuilderList(); } else { - return (com.google.protobuf.ByteString) ref; + return java.util.Collections.unmodifiableList(conditions_); } } /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/regions-zones/regions-zones#available) or
-     * [region](/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * Which conditions caused the current cluster state.
      * 
* - * string location = 114; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder setLocation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - location_ = value; - onChanged(); - return this; + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder() { + return getConditionsFieldBuilder() + .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); } /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/regions-zones/regions-zones#available) or
-     * [region](/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * Which conditions caused the current cluster state.
      * 
* - * string location = 114; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder clearLocation() { - - location_ = getDefaultInstance().getLocation(); - onChanged(); - return this; + public com.google.container.v1.StatusCondition.Builder addConditionsBuilder(int index) { + return getConditionsFieldBuilder() + .addBuilder(index, com.google.container.v1.StatusCondition.getDefaultInstance()); } /** * * *
-     * [Output only] The name of the Google Compute Engine
-     * [zone](/compute/docs/regions-zones/regions-zones#available) or
-     * [region](/compute/docs/regions-zones/regions-zones#available) in which
-     * the cluster resides.
+     * Which conditions caused the current cluster state.
      * 
* - * string location = 114; + * repeated .google.container.v1.StatusCondition conditions = 118; */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + public java.util.List + getConditionsBuilderList() { + return getConditionsFieldBuilder().getBuilderList(); + } - location_ = value; - onChanged(); - return this; + 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_; } @java.lang.Override diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java new file mode 100644 index 00000000..14512ea6 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscaling.java @@ -0,0 +1,1683 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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(); + autoprovisioningLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ClusterAutoscaling(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ClusterAutoscaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableNodeAutoprovisioning_ = input.readBool(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceLimits_.add( + input.readMessage( + com.google.container.v1.ResourceLimit.parser(), extensionRegistry)); + break; + } + case 34: + { + com.google.container.v1.AutoprovisioningNodePoolDefaults.Builder subBuilder = null; + if (autoprovisioningNodePoolDefaults_ != null) { + subBuilder = autoprovisioningNodePoolDefaults_.toBuilder(); + } + autoprovisioningNodePoolDefaults_ = + input.readMessage( + com.google.container.v1.AutoprovisioningNodePoolDefaults.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(autoprovisioningNodePoolDefaults_); + autoprovisioningNodePoolDefaults_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000002; + } + autoprovisioningLocations_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + resourceLimits_ = java.util.Collections.unmodifiableList(resourceLimits_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + autoprovisioningLocations_ = autoprovisioningLocations_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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); + } + + 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. + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + public com.google.container.v1.ResourceLimitOrBuilder getResourceLimitsOrBuilder(int index) { + return resourceLimits_.get(index); + } + + 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. + */ + 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. + */ + 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; + * + */ + 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](/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](/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](/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](/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 (autoprovisioningNodePoolDefaults_ != null) { + output.writeMessage(4, getAutoprovisioningNodePoolDefaults()); + } + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString( + output, 5, autoprovisioningLocations_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableNodeAutoprovisioning_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableNodeAutoprovisioning_); + } + for (int i = 0; i < resourceLimits_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, resourceLimits_.get(i)); + } + if (autoprovisioningNodePoolDefaults_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAutoprovisioningNodePoolDefaults()); + } + { + int dataSize = 0; + for (int i = 0; i < autoprovisioningLocations_.size(); i++) { + dataSize += computeStringSizeNoTag(autoprovisioningLocations_.getRaw(i)); + } + size += dataSize; + size += 1 * getAutoprovisioningLocationsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (hasAutoprovisioningNodePoolDefaults() != other.hasAutoprovisioningNodePoolDefaults()) + return false; + if (hasAutoprovisioningNodePoolDefaults()) { + if (!getAutoprovisioningNodePoolDefaults() + .equals(other.getAutoprovisioningNodePoolDefaults())) return false; + } + if (!getAutoprovisioningLocationsList().equals(other.getAutoprovisioningLocationsList())) + return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_NODE_AUTOPROVISIONING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNodeAutoprovisioning()); + if (getResourceLimitsCount() > 0) { + hash = (37 * hash) + RESOURCE_LIMITS_FIELD_NUMBER; + hash = (53 * hash) + getResourceLimitsList().hashCode(); + } + if (hasAutoprovisioningNodePoolDefaults()) { + hash = (37 * hash) + AUTOPROVISIONING_NODE_POOL_DEFAULTS_FIELD_NUMBER; + hash = (53 * hash) + getAutoprovisioningNodePoolDefaults().hashCode(); + } + if (getAutoprovisioningLocationsCount() > 0) { + hash = (37 * hash) + AUTOPROVISIONING_LOCATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAutoprovisioningLocationsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ClusterAutoscaling parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ClusterAutoscaling parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.ClusterAutoscaling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * ClusterAutoscaling contains global, per-cluster information
+   * required by Cluster Autoscaler to automatically adjust
+   * the size of the cluster and create/delete
+   * node pools based on the current needs.
+   * 
+ * + * Protobuf type {@code google.container.v1.ClusterAutoscaling} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ClusterAutoscaling) + com.google.container.v1.ClusterAutoscalingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ClusterAutoscaling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ClusterAutoscaling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ClusterAutoscaling.class, + com.google.container.v1.ClusterAutoscaling.Builder.class); + } + + // Construct using com.google.container.v1.ClusterAutoscaling.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getResourceLimitsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableNodeAutoprovisioning_ = false; + + if (resourceLimitsBuilder_ == null) { + resourceLimits_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + resourceLimitsBuilder_.clear(); + } + 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(); + } + 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.hasAutoprovisioningNodePoolDefaults()) { + mergeAutoprovisioningNodePoolDefaults(other.getAutoprovisioningNodePoolDefaults()); + } + if (!other.autoprovisioningLocations_.isEmpty()) { + if (autoprovisioningLocations_.isEmpty()) { + autoprovisioningLocations_ = other.autoprovisioningLocations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAutoprovisioningLocationsIsMutable(); + autoprovisioningLocations_.addAll(other.autoprovisioningLocations_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ClusterAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ClusterAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean enableNodeAutoprovisioning_; + /** + * + * + *
+     * Enables automatic node pool creation and deletion.
+     * 
+ * + * bool enable_node_autoprovisioning = 1; + * + * @return The enableNodeAutoprovisioning. + */ + 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 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](/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](/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](/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](/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](/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](/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](/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](/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](/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 { + return new ClusterAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ClusterAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java new file mode 100644 index 00000000..398af127 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterAutoscalingOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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); + + /** + * + * + *
+   * 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](/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](/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](/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](/compute/docs/zones#available)
+   * in which the NodePool's nodes can be created by NAP.
+   * 
+ * + * repeated string autoprovisioning_locations = 5; + * + * @param index The index of the value to return. + * @return The bytes of the autoprovisioningLocations at the given index. + */ + com.google.protobuf.ByteString getAutoprovisioningLocationsBytes(int index); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java index 8b63a20e..de36efa2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterOrBuilder.java @@ -28,13 +28,16 @@ public interface ClusterOrBuilder * *
    * The name of this cluster. The name must be unique within this project
-   * and zone, and can be up to 40 characters with the following restrictions:
+   * 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(); /** @@ -42,13 +45,16 @@ public interface ClusterOrBuilder * *
    * The name of this cluster. The name must be unique within this project
-   * and zone, and can be up to 40 characters with the following restrictions:
+   * 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(); @@ -60,6 +66,8 @@ public interface ClusterOrBuilder * * * string description = 2; + * + * @return The description. */ java.lang.String getDescription(); /** @@ -70,6 +78,8 @@ public interface ClusterOrBuilder * * * string description = 2; + * + * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); @@ -85,10 +95,14 @@ public interface ClusterOrBuilder * "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; + * int32 initial_node_count = 3 [deprecated = true]; + * + * @return The initialNodeCount. */ + @java.lang.Deprecated int getInitialNodeCount(); /** @@ -96,54 +110,64 @@ public interface ClusterOrBuilder * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return Whether the nodeConfig field is set. */ + @java.lang.Deprecated boolean hasNodeConfig(); /** * * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; + * + * @return The nodeConfig. */ + @java.lang.Deprecated com.google.container.v1.NodeConfig getNodeConfig(); /** * * *
    * Parameters used in creating the cluster's nodes.
-   * See `nodeConfig` for the description of its properties.
    * 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.
+   * 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; + * .google.container.v1.NodeConfig node_config = 4 [deprecated = true]; */ + @java.lang.Deprecated com.google.container.v1.NodeConfigOrBuilder getNodeConfigOrBuilder(); /** @@ -151,9 +175,15 @@ public interface ClusterOrBuilder * *
    * 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(); /** @@ -161,9 +191,15 @@ public interface ClusterOrBuilder * *
    * 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(); /** @@ -171,6 +207,10 @@ public interface ClusterOrBuilder * *
    * 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; @@ -183,12 +223,16 @@ public interface ClusterOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model
    * * `logging.googleapis.com` - the Google Cloud Logging service.
    * * `none` - no logs will be exported from the cluster.
    * * if left as an empty string,`logging.googleapis.com` will be used.
    * 
* * string logging_service = 6; + * + * @return The loggingService. */ java.lang.String getLoggingService(); /** @@ -197,12 +241,16 @@ public interface ClusterOrBuilder *
    * The logging service the cluster should use to write logs.
    * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model
    * * `logging.googleapis.com` - the Google Cloud Logging service.
    * * `none` - no logs will be exported from the cluster.
    * * if left as an empty string,`logging.googleapis.com` will be used.
    * 
* * string logging_service = 6; + * + * @return The bytes for loggingService. */ com.google.protobuf.ByteString getLoggingServiceBytes(); @@ -218,6 +266,8 @@ public interface ClusterOrBuilder * * * string monitoring_service = 7; + * + * @return The monitoringService. */ java.lang.String getMonitoringService(); /** @@ -232,6 +282,8 @@ public interface ClusterOrBuilder * * * string monitoring_service = 7; + * + * @return The bytes for monitoringService. */ com.google.protobuf.ByteString getMonitoringServiceBytes(); @@ -246,6 +298,8 @@ public interface ClusterOrBuilder * * * string network = 8; + * + * @return The network. */ java.lang.String getNetwork(); /** @@ -259,6 +313,8 @@ public interface ClusterOrBuilder * * * string network = 8; + * + * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); @@ -273,6 +329,8 @@ public interface ClusterOrBuilder * * * string cluster_ipv4_cidr = 9; + * + * @return The clusterIpv4Cidr. */ java.lang.String getClusterIpv4Cidr(); /** @@ -286,6 +344,8 @@ public interface ClusterOrBuilder * * * string cluster_ipv4_cidr = 9; + * + * @return The bytes for clusterIpv4Cidr. */ com.google.protobuf.ByteString getClusterIpv4CidrBytes(); @@ -297,6 +357,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return Whether the addonsConfig field is set. */ boolean hasAddonsConfig(); /** @@ -307,6 +369,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.AddonsConfig addons_config = 10; + * + * @return The addonsConfig. */ com.google.container.v1.AddonsConfig getAddonsConfig(); /** @@ -330,6 +394,8 @@ public interface ClusterOrBuilder * * * string subnetwork = 11; + * + * @return The subnetwork. */ java.lang.String getSubnetwork(); /** @@ -342,6 +408,8 @@ public interface ClusterOrBuilder * * * string subnetwork = 11; + * + * @return The bytes for subnetwork. */ com.google.protobuf.ByteString getSubnetworkBytes(); @@ -411,11 +479,13 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * repeated string locations = 13; + * + * @return A list containing the locations. */ java.util.List getLocationsList(); /** @@ -423,11 +493,13 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * repeated string locations = 13; + * + * @return The count of locations. */ int getLocationsCount(); /** @@ -435,11 +507,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * 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); /** @@ -447,11 +522,14 @@ public interface ClusterOrBuilder * *
    * The list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/compute/docs/zones#available) in which the cluster's nodes
    * should be located.
    * 
* * 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); @@ -468,6 +546,8 @@ public interface ClusterOrBuilder * * * bool enable_kubernetes_alpha = 14; + * + * @return The enableKubernetesAlpha. */ boolean getEnableKubernetesAlpha(); @@ -538,6 +618,8 @@ public interface ClusterOrBuilder * * * string label_fingerprint = 16; + * + * @return The labelFingerprint. */ java.lang.String getLabelFingerprint(); /** @@ -548,6 +630,8 @@ public interface ClusterOrBuilder * * * string label_fingerprint = 16; + * + * @return The bytes for labelFingerprint. */ com.google.protobuf.ByteString getLabelFingerprintBytes(); @@ -559,6 +643,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return Whether the legacyAbac field is set. */ boolean hasLegacyAbac(); /** @@ -569,6 +655,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.LegacyAbac legacy_abac = 18; + * + * @return The legacyAbac. */ com.google.container.v1.LegacyAbac getLegacyAbac(); /** @@ -590,6 +678,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return Whether the networkPolicy field is set. */ boolean hasNetworkPolicy(); /** @@ -600,6 +690,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.NetworkPolicy network_policy = 19; + * + * @return The networkPolicy. */ com.google.container.v1.NetworkPolicy getNetworkPolicy(); /** @@ -621,6 +713,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return Whether the ipAllocationPolicy field is set. */ boolean hasIpAllocationPolicy(); /** @@ -631,6 +725,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.IPAllocationPolicy ip_allocation_policy = 20; + * + * @return The ipAllocationPolicy. */ com.google.container.v1.IPAllocationPolicy getIpAllocationPolicy(); /** @@ -654,6 +750,8 @@ public interface ClusterOrBuilder * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return Whether the masterAuthorizedNetworksConfig field is set. */ boolean hasMasterAuthorizedNetworksConfig(); /** @@ -666,6 +764,8 @@ public interface ClusterOrBuilder * * .google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22; * + * + * @return The masterAuthorizedNetworksConfig. */ com.google.container.v1.MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig(); /** @@ -690,6 +790,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** @@ -700,6 +802,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.MaintenancePolicy maintenance_policy = 23; + * + * @return The maintenancePolicy. */ com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); /** @@ -713,6 +817,76 @@ public interface ClusterOrBuilder */ 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(); + /** * * @@ -721,6 +895,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.NetworkConfig network_config = 27; + * + * @return Whether the networkConfig field is set. */ boolean hasNetworkConfig(); /** @@ -731,6 +907,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.NetworkConfig network_config = 27; + * + * @return The networkConfig. */ com.google.container.v1.NetworkConfig getNetworkConfig(); /** @@ -744,6 +922,122 @@ public interface ClusterOrBuilder */ 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(); + /** * * @@ -752,6 +1046,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * + * @return Whether the privateClusterConfig field is set. */ boolean hasPrivateClusterConfig(); /** @@ -762,6 +1058,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.PrivateClusterConfig private_cluster_config = 37; + * + * @return The privateClusterConfig. */ com.google.container.v1.PrivateClusterConfig getPrivateClusterConfig(); /** @@ -775,6 +1073,76 @@ public interface ClusterOrBuilder */ 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(); + /** * * @@ -783,6 +1151,8 @@ public interface ClusterOrBuilder * * * string self_link = 100; + * + * @return The selfLink. */ java.lang.String getSelfLink(); /** @@ -793,6 +1163,8 @@ public interface ClusterOrBuilder * * * string self_link = 100; + * + * @return The bytes for selfLink. */ com.google.protobuf.ByteString getSelfLinkBytes(); @@ -807,6 +1179,8 @@ public interface ClusterOrBuilder * * * string zone = 101 [deprecated = true]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -821,6 +1195,8 @@ public interface ClusterOrBuilder * * * string zone = 101 [deprecated = true]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -837,6 +1213,8 @@ public interface ClusterOrBuilder * * * string endpoint = 102; + * + * @return The endpoint. */ java.lang.String getEndpoint(); /** @@ -851,6 +1229,8 @@ public interface ClusterOrBuilder * * * string endpoint = 102; + * + * @return The bytes for endpoint. */ com.google.protobuf.ByteString getEndpointBytes(); @@ -872,6 +1252,8 @@ public interface ClusterOrBuilder * * * string initial_cluster_version = 103; + * + * @return The initialClusterVersion. */ java.lang.String getInitialClusterVersion(); /** @@ -892,6 +1274,8 @@ public interface ClusterOrBuilder * * * string initial_cluster_version = 103; + * + * @return The bytes for initialClusterVersion. */ com.google.protobuf.ByteString getInitialClusterVersionBytes(); @@ -903,6 +1287,8 @@ public interface ClusterOrBuilder * * * string current_master_version = 104; + * + * @return The currentMasterVersion. */ java.lang.String getCurrentMasterVersion(); /** @@ -913,6 +1299,8 @@ public interface ClusterOrBuilder * * * string current_master_version = 104; + * + * @return The bytes for currentMasterVersion. */ com.google.protobuf.ByteString getCurrentMasterVersionBytes(); @@ -921,13 +1309,15 @@ public interface ClusterOrBuilder * *
    * [Output only] Deprecated, use
-   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
    * instead. The current version of the node software components. If they are
    * currently at multiple versions because they're in the process of being
    * upgraded, this reflects the minimum version of all nodes.
    * 
* * string current_node_version = 105 [deprecated = true]; + * + * @return The currentNodeVersion. */ @java.lang.Deprecated java.lang.String getCurrentNodeVersion(); @@ -936,13 +1326,15 @@ public interface ClusterOrBuilder * *
    * [Output only] Deprecated, use
-   * [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool)
+   * [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePools)
    * instead. The current version of the node software components. If they are
    * currently at multiple versions because they're in the process of being
    * upgraded, this reflects the minimum version of all nodes.
    * 
* * string current_node_version = 105 [deprecated = true]; + * + * @return The bytes for currentNodeVersion. */ @java.lang.Deprecated com.google.protobuf.ByteString getCurrentNodeVersionBytes(); @@ -956,6 +1348,8 @@ public interface ClusterOrBuilder * * * string create_time = 106; + * + * @return The createTime. */ java.lang.String getCreateTime(); /** @@ -967,6 +1361,8 @@ public interface ClusterOrBuilder * * * string create_time = 106; + * + * @return The bytes for createTime. */ com.google.protobuf.ByteString getCreateTimeBytes(); @@ -978,6 +1374,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.Cluster.Status status = 107; + * + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** @@ -988,6 +1386,8 @@ public interface ClusterOrBuilder * * * .google.container.v1.Cluster.Status status = 107; + * + * @return The status. */ com.google.container.v1.Cluster.Status getStatus(); @@ -1000,6 +1400,8 @@ public interface ClusterOrBuilder * * * string status_message = 108; + * + * @return The statusMessage. */ java.lang.String getStatusMessage(); /** @@ -1011,6 +1413,8 @@ public interface ClusterOrBuilder * * * string status_message = 108; + * + * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); @@ -1020,10 +1424,13 @@ public interface ClusterOrBuilder *
    * [Output only] The size of the address space on each node for hosting
    * containers. This is provisioned from within the `container_ipv4_cidr`
-   * range.
+   * 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(); @@ -1039,6 +1446,8 @@ public interface ClusterOrBuilder * * * string services_ipv4_cidr = 110; + * + * @return The servicesIpv4Cidr. */ java.lang.String getServicesIpv4Cidr(); /** @@ -1053,6 +1462,8 @@ public interface ClusterOrBuilder * * * string services_ipv4_cidr = 110; + * + * @return The bytes for servicesIpv4Cidr. */ com.google.protobuf.ByteString getServicesIpv4CidrBytes(); @@ -1064,6 +1475,8 @@ public interface ClusterOrBuilder * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return A list containing the instanceGroupUrls. */ @java.lang.Deprecated java.util.List getInstanceGroupUrlsList(); @@ -1075,6 +1488,8 @@ public interface ClusterOrBuilder * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @return The count of instanceGroupUrls. */ @java.lang.Deprecated int getInstanceGroupUrlsCount(); @@ -1086,6 +1501,9 @@ public interface ClusterOrBuilder * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the element to return. + * @return The instanceGroupUrls at the given index. */ @java.lang.Deprecated java.lang.String getInstanceGroupUrls(int index); @@ -1097,6 +1515,9 @@ public interface ClusterOrBuilder * * * repeated string instance_group_urls = 111 [deprecated = true]; + * + * @param index The index of the value to return. + * @return The bytes of the instanceGroupUrls at the given index. */ @java.lang.Deprecated com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index); @@ -1105,11 +1526,15 @@ public interface ClusterOrBuilder * * *
-   * [Output only] The number of nodes currently in the cluster.
+   * [Output only]  The number of nodes currently in the cluster. Deprecated.
+   * Call Kubernetes API directly to retrieve node information.
    * 
* - * int32 current_node_count = 112; + * int32 current_node_count = 112 [deprecated = true]; + * + * @return The currentNodeCount. */ + @java.lang.Deprecated int getCurrentNodeCount(); /** @@ -1121,6 +1546,8 @@ public interface ClusterOrBuilder * * * string expire_time = 113; + * + * @return The expireTime. */ java.lang.String getExpireTime(); /** @@ -1132,6 +1559,8 @@ public interface ClusterOrBuilder * * * string expire_time = 113; + * + * @return The bytes for expireTime. */ com.google.protobuf.ByteString getExpireTimeBytes(); @@ -1146,6 +1575,8 @@ public interface ClusterOrBuilder * * * string location = 114; + * + * @return The location. */ java.lang.String getLocation(); /** @@ -1159,6 +1590,102 @@ public interface ClusterOrBuilder * * * 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); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java index 26a91c00..c8899481 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterServiceProto.java @@ -39,6 +39,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_NodeConfig_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_container_v1_NodeConfig_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_container_v1_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_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_MasterAuth_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -71,6 +79,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_MasterAuthorizedNetworksConfig_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -87,6 +103,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_container_v1_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 @@ -223,6 +243,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_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 @@ -243,6 +275,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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 @@ -279,10 +323,58 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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_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_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_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; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -294,485 +386,637 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n)google/container/v1/cluster_service.pr" + "oto\022\023google.container.v1\032\034google/api/ann" - + "otations.proto\032\033google/protobuf/empty.pr" - + "oto\"\200\004\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\022?\n\010metadat" - + "a\030\004 \003(\0132-.google.container.v1.NodeConfig" - + ".MetadataEntry\022\022\n\nimage_type\030\005 \001(\t\022;\n\006la" - + "bels\030\006 \003(\0132+.google.container.v1.NodeCon" - + "fig.LabelsEntry\022\027\n\017local_ssd_count\030\007 \001(\005" - + "\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible\030\n \001(\010\022<\n\014a" - + "ccelerators\030\013 \003(\0132&.google.container.v1." - + "AcceleratorConfig\022\021\n\tdisk_type\030\014 \001(\t\022\030\n\020" - + "min_cpu_platform\030\r \001(\t\032/\n\rMetadataEntry\022" - + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\032-\n\013Label" - + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\321" - + "\001\n\nMasterAuth\022\020\n\010username\030\001 \001(\t\022\020\n\010passw" - + "ord\030\002 \001(\t\022O\n\031client_certificate_config\030\003" - + " \001(\0132,.google.container.v1.ClientCertifi" - + "cateConfig\022\036\n\026cluster_ca_certificate\030d \001" - + "(\t\022\032\n\022client_certificate\030e \001(\t\022\022\n\nclient" - + "_key\030f \001(\t\";\n\027ClientCertificateConfig\022 \n" - + "\030issue_client_certificate\030\001 \001(\010\"\267\002\n\014Addo" - + "nsConfig\022C\n\023http_load_balancing\030\001 \001(\0132&." - + "google.container.v1.HttpLoadBalancing\022Q\n" - + "\032horizontal_pod_autoscaling\030\002 \001(\0132-.goog" - + "le.container.v1.HorizontalPodAutoscaling" - + "\022F\n\024kubernetes_dashboard\030\003 \001(\0132(.google." - + "container.v1.KubernetesDashboard\022G\n\025netw" - + "ork_policy_config\030\004 \001(\0132(.google.contain" - + "er.v1.NetworkPolicyConfig\"%\n\021HttpLoadBal" - + "ancing\022\020\n\010disabled\030\001 \001(\010\",\n\030HorizontalPo" - + "dAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Kubern" - + "etesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Netwo" - + "rkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"\250\001\n\024Pri" - + "vateClusterConfig\022\034\n\024enable_private_node" - + "s\030\001 \001(\010\022\037\n\027enable_private_endpoint\030\002 \001(\010" - + "\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n\020priv" - + "ate_endpoint\030\004 \001(\t\022\027\n\017public_endpoint\030\005 " - + "\001(\t\"\274\001\n\036MasterAuthorizedNetworksConfig\022\017" - + "\n\007enabled\030\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.g" - + "oogle.container.v1.MasterAuthorizedNetwo" - + "rksConfig.CidrBlock\0325\n\tCidrBlock\022\024\n\014disp" - + "lay_name\030\001 \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"\035\n\nLe" - + "gacyAbac\022\017\n\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPol" - + "icy\022=\n\010provider\030\001 \001(\0162+.google.container" - + ".v1.NetworkPolicy.Provider\022\017\n\007enabled\030\002 " - + "\001(\010\"0\n\010Provider\022\030\n\024PROVIDER_UNSPECIFIED\020" - + "\000\022\n\n\006CALICO\020\001\"\351\002\n\022IPAllocationPolicy\022\026\n\016" - + "use_ip_aliases\030\001 \001(\010\022\031\n\021create_subnetwor" - + "k\030\002 \001(\010\022\027\n\017subnetwork_name\030\003 \001(\t\022\035\n\021clus" - + "ter_ipv4_cidr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cid" - + "r\030\005 \001(\tB\002\030\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB" - + "\002\030\001\022$\n\034cluster_secondary_range_name\030\007 \001(" - + "\t\022%\n\035services_secondary_range_name\030\010 \001(\t" - + "\022\037\n\027cluster_ipv4_cidr_block\030\t \001(\t\022\034\n\024nod" - + "e_ipv4_cidr_block\030\n \001(\t\022 \n\030services_ipv4" - + "_cidr_block\030\013 \001(\t\"\335\014\n\007Cluster\022\014\n\004name\030\001 " - + "\001(\t\022\023\n\013description\030\002 \001(\t\022\032\n\022initial_node" - + "_count\030\003 \001(\005\0224\n\013node_config\030\004 \001(\0132\037.goog" - + "le.container.v1.NodeConfig\0224\n\013master_aut" - + "h\030\005 \001(\0132\037.google.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\021cluste" - + "r_ipv4_cidr\030\t \001(\t\0228\n\raddons_config\030\n \001(\013" - + "2!.google.container.v1.AddonsConfig\022\022\n\ns" - + "ubnetwork\030\013 \001(\t\0221\n\nnode_pools\030\014 \003(\0132\035.go" - + "ogle.container.v1.NodePool\022\021\n\tlocations\030" - + "\r \003(\t\022\037\n\027enable_kubernetes_alpha\030\016 \001(\010\022I" - + "\n\017resource_labels\030\017 \003(\01320.google.contain" - + "er.v1.Cluster.ResourceLabelsEntry\022\031\n\021lab" - + "el_fingerprint\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(" - + "\0132\037.google.container.v1.LegacyAbac\022:\n\016ne" - + "twork_policy\030\023 \001(\0132\".google.container.v1" - + ".NetworkPolicy\022E\n\024ip_allocation_policy\030\024" - + " \001(\0132\'.google.container.v1.IPAllocationP" - + "olicy\022^\n!master_authorized_networks_conf" - + "ig\030\026 \001(\01323.google.container.v1.MasterAut" - + "horizedNetworksConfig\022B\n\022maintenance_pol" - + "icy\030\027 \001(\0132&.google.container.v1.Maintena" - + "ncePolicy\022:\n\016network_config\030\033 \001(\0132\".goog" - + "le.container.v1.NetworkConfig\022I\n\026private" - + "_cluster_config\030% \001(\0132).google.container" - + ".v1.PrivateClusterConfig\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" - + "3\n\006status\030k \001(\0162#.google.container.v1.Cl" - + "uster.Status\022\026\n\016status_message\030l \001(\t\022\033\n\023" - + "node_ipv4_cidr_size\030m \001(\005\022\032\n\022services_ip" - + "v4_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o \003" - + "(\tB\002\030\001\022\032\n\022current_node_count\030p \001(\005\022\023\n\013ex" - + "pire_time\030q \001(\t\022\020\n\010location\030r \001(\t\0325\n\023Res" - + "ourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002" - + " \001(\t:\0028\001\"w\n\006Status\022\026\n\022STATUS_UNSPECIFIED" - + "\020\000\022\020\n\014PROVISIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013REC" - + "ONCILING\020\003\022\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010D" - + "EGRADED\020\006\"\301\003\n\rClusterUpdate\022\034\n\024desired_n" - + "ode_version\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\024desired_node_pool_id\030\007 \001(\t\022\032\n\022desired" - + "_image_type\030\010 \001(\t\022O\n\035desired_node_pool_a" - + "utoscaling\030\t \001(\0132(.google.container.v1.N" - + "odePoolAutoscaling\022\031\n\021desired_locations\030" - + "\n \003(\t\022f\n)desired_master_authorized_netwo" - + "rks_config\030\014 \001(\01323.google.container.v1.M" - + "asterAuthorizedNetworksConfig\022\036\n\026desired" - + "_master_version\030d \001(\t\"\373\005\n\tOperation\022\014\n\004n" - + "ame\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001\022;\n\016operation" - + "_type\030\003 \001(\0162#.google.container.v1.Operat" - + "ion.Type\0225\n\006status\030\004 \001(\0162%.google.contai" - + "ner.v1.Operation.Status\022\016\n\006detail\030\010 \001(\t\022" - + "\026\n\016status_message\030\005 \001(\t\022\021\n\tself_link\030\006 \001" - + "(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010location\030\t \001(" - + "\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010end_time\030\013 \001(\t\"" - + "R\n\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\013\n\007PEN" - + "DING\020\001\022\013\n\007RUNNING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTIN" - + "G\020\004\"\375\002\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CR" - + "EATE_CLUSTER\020\001\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UP" - + "GRADE_MASTER\020\003\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REP" - + "AIR_CLUSTER\020\005\022\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CRE" - + "ATE_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_REPA" - + "IR_NODES\020\n\022\026\n\022AUTO_UPGRADE_NODES\020\013\022\016\n\nSE" - + "T_LABELS\020\014\022\023\n\017SET_MASTER_AUTH\020\r\022\026\n\022SET_N" - + "ODE_POOL_SIZE\020\016\022\026\n\022SET_NETWORK_POLICY\020\017\022" - + "\032\n\026SET_MAINTENANCE_POLICY\020\020\"\177\n\024CreateClu" - + "sterRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004z" - + "one\030\002 \001(\tB\002\030\001\022-\n\007cluster\030\003 \001(\0132\034.google." - + "container.v1.Cluster\022\016\n\006parent\030\005 \001(\t\"c\n\021" - + "GetClusterRequest\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\"\232\001\n\024UpdateClusterReque" - + "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\0222\n\006update\030\004" - + " \001(\0132\".google.container.v1.ClusterUpdate" - + "\022\014\n\004name\030\005 \001(\t\"\253\001\n\025UpdateNodePoolRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_pool_" - + "id\030\004 \001(\tB\002\030\001\022\024\n\014node_version\030\005 \001(\t\022\022\n\nim" - + "age_type\030\006 \001(\t\022\014\n\004name\030\010 \001(\t\"\310\001\n\035SetNode" - + "PoolAutoscalingRequest\022\026\n\nproject_id\030\001 \001" - + "(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003" - + " \001(\tB\002\030\001\022\030\n\014node_pool_id\030\004 \001(\tB\002\030\001\022=\n\013au" - + "toscaling\030\005 \001(\0132(.google.container.v1.No" - + "dePoolAutoscaling\022\014\n\004name\030\006 \001(\t\"\177\n\030SetLo" - + "ggingServiceRequest\022\026\n\nproject_id\030\001 \001(\tB" - + "\002\030\001\022\014\n\004zone\030\002 \001(\t\022\026\n\ncluster_id\030\003 \001(\tB\002\030" - + "\001\022\027\n\017logging_service\030\004 \001(\t\022\014\n\004name\030\005 \001(\t" - + "\"\211\001\n\033SetMonitoringServiceRequest\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\032\n\022monitoring_service" - + "\030\004 \001(\t\022\014\n\004name\030\006 \001(\t\"\242\001\n\026SetAddonsConfig" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\0228\n\radd" - + "ons_config\030\004 \001(\0132!.google.container.v1.A" - + "ddonsConfig\022\014\n\004name\030\006 \001(\t\"x\n\023SetLocation" - + "sRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone" - + "\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\021\n\tlo" - + "cations\030\004 \003(\t\022\014\n\004name\030\006 \001(\t\"}\n\023UpdateMas" - + "terRequest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zo" - + "ne\030\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\026\n\016" - + "master_version\030\004 \001(\t\022\014\n\004name\030\007 \001(\t\"\253\002\n\024S" - + "etMasterAuthRequest\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\006action\030\004 \001(\01620.google.container" - + ".v1.SetMasterAuthRequest.Action\022/\n\006updat" - + "e\030\005 \001(\0132\037.google.container.v1.MasterAuth" - + "\022\014\n\004name\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n" - + "\014SET_PASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020" - + "\n\014SET_USERNAME\020\003\"f\n\024DeleteClusterRequest" - + "\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002" - + "\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t" - + "\"O\n\023ListClustersRequest\022\026\n\nproject_id\030\001 " - + "\001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\016\n\006parent\030\004 \001(" - + "\t\"]\n\024ListClustersResponse\022.\n\010clusters\030\001 " - + "\003(\0132\034.google.container.v1.Cluster\022\025\n\rmis" - + "sing_zones\030\002 \003(\t\"g\n\023GetOperationRequest\022" - + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" - + "\001\022\030\n\014operation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\005 \001(" - + "\t\"Q\n\025ListOperationsRequest\022\026\n\nproject_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\nprojec" - + "t_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\030\n\014oper" - + "ation_id\030\003 \001(\tB\002\030\001\022\014\n\004name\030\004 \001(\t\"c\n\026List" - + "OperationsResponse\0222\n\noperations\030\001 \003(\0132\036" - + ".google.container.v1.Operation\022\025\n\rmissin" - + "g_zones\030\002 \003(\t\"P\n\026GetServerConfigRequest\022" - + "\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030" - + "\001\022\014\n\004name\030\004 \001(\t\"\242\001\n\014ServerConfig\022\037\n\027defa" - + "ult_cluster_version\030\001 \001(\t\022\033\n\023valid_node_" - + "versions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001" - + "(\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_m" - + "aster_versions\030\006 \003(\t\"\233\001\n\025CreateNodePoolR" - + "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\0220\n\tnode" - + "_pool\030\004 \001(\0132\035.google.container.v1.NodePo" - + "ol\022\016\n\006parent\030\006 \001(\t\"\201\001\n\025DeleteNodePoolReq" - + "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\014\n\004name\030\006 \001(\t\"h\n\024ListNo" - + "dePoolsRequest\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\022GetNodePoolRequest\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\"\360\003\n\010NodePool\022\014\n" - + "\004name\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.google.con" - + "tainer.v1.NodeConfig\022\032\n\022initial_node_cou" - + "nt\030\003 \001(\005\022\021\n\tself_link\030d \001(\t\022\017\n\007version\030e" - + " \001(\t\022\033\n\023instance_group_urls\030f \003(\t\0224\n\006sta" - + "tus\030g \001(\0162$.google.container.v1.NodePool" - + ".Status\022\026\n\016status_message\030h \001(\t\022=\n\013autos" - + "caling\030\004 \001(\0132(.google.container.v1.NodeP" - + "oolAutoscaling\0227\n\nmanagement\030\005 \001(\0132#.goo" - + "gle.container.v1.NodeManagement\"\201\001\n\006Stat" - + "us\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIONI" - + "NG\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERROR\020" - + "\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ERRO" - + "R\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgrade\030\001 " - + "\001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrade_opti" - + "ons\030\n \001(\0132\'.google.container.v1.AutoUpgr" - + "adeOptions\"J\n\022AutoUpgradeOptions\022\037\n\027auto" - + "_upgrade_start_time\030\001 \001(\t\022\023\n\013description" - + "\030\002 \001(\t\"K\n\021MaintenancePolicy\0226\n\006window\030\001 " - + "\001(\0132&.google.container.v1.MaintenanceWin" - + "dow\"n\n\021MaintenanceWindow\022O\n\030daily_mainte" - + "nance_window\030\002 \001(\0132+.google.container.v1" - + ".DailyMaintenanceWindowH\000B\010\n\006policy\">\n\026D" - + "ailyMaintenanceWindow\022\022\n\nstart_time\030\002 \001(" - + "\t\022\020\n\010duration\030\003 \001(\t\"\301\001\n\034SetNodePoolManag" - + "ementRequest\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\0227\n\nmanagement\030\005" - + " \001(\0132#.google.container.v1.NodeManagemen" - + "t\022\014\n\004name\030\007 \001(\t\"\226\001\n\026SetNodePoolSizeReque" - + "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\022\n\nnode_count\030\005 \001(\005\022\014\n\004na" - + "me\030\007 \001(\t\"\212\001\n\036RollbackNodePoolUpgradeRequ" - + "est\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(" - + "\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\030\n\014node_po" - + "ol_id\030\004 \001(\tB\002\030\001\022\014\n\004name\030\006 \001(\t\"J\n\025ListNod" - + "ePoolsResponse\0221\n\nnode_pools\030\001 \003(\0132\035.goo" - + "gle.container.v1.NodePool\"V\n\023NodePoolAut" - + "oscaling\022\017\n\007enabled\030\001 \001(\010\022\026\n\016min_node_co" - + "unt\030\002 \001(\005\022\026\n\016max_node_count\030\003 \001(\005\"\210\002\n\020Se" - + "tLabelsRequest\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" - + "\022R\n\017resource_labels\030\004 \003(\01329.google.conta" - + "iner.v1.SetLabelsRequest.ResourceLabelsE" - + "ntry\022\031\n\021label_fingerprint\030\005 \001(\t\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\"w\n\024SetLegacyAbacReq" - + "uest\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001" - + "(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022\017\n\007enable" - + "d\030\004 \001(\010\022\014\n\004name\030\006 \001(\t\"\204\001\n\026StartIPRotatio" - + "nRequest\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\004na" - + "me\030\006 \001(\t\022\032\n\022rotate_credentials\030\007 \001(\010\"k\n\031" - + "CompleteIPRotationRequest\022\026\n\nproject_id\030" - + "\001 \001(\tB\002\030\001\022\020\n\004zone\030\002 \001(\tB\002\030\001\022\026\n\ncluster_i" - + "d\030\003 \001(\tB\002\030\001\022\014\n\004name\030\007 \001(\t\"H\n\021Accelerator" - + "Config\022\031\n\021accelerator_count\030\001 \001(\003\022\030\n\020acc" - + "elerator_type\030\002 \001(\t\"\245\001\n\027SetNetworkPolicy" - + "Request\022\026\n\nproject_id\030\001 \001(\tB\002\030\001\022\020\n\004zone\030" - + "\002 \001(\tB\002\030\001\022\026\n\ncluster_id\030\003 \001(\tB\002\030\001\022:\n\016net" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\033google" + + "/protobuf/empty.proto\032\037google/protobuf/t" + + "imestamp.proto\"\377\004\n\nNodeConfig\022\024\n\014machine" + + "_type\030\001 \001(\t\022\024\n\014disk_size_gb\030\002 \001(\005\022\024\n\014oau" + + "th_scopes\030\003 \003(\t\022\027\n\017service_account\030\t \001(\t" + + "\022?\n\010metadata\030\004 \003(\0132-.google.container.v1" + + ".NodeConfig.MetadataEntry\022\022\n\nimage_type\030" + + "\005 \001(\t\022;\n\006labels\030\006 \003(\0132+.google.container" + + ".v1.NodeConfig.LabelsEntry\022\027\n\017local_ssd_" + + "count\030\007 \001(\005\022\014\n\004tags\030\010 \003(\t\022\023\n\013preemptible" + + "\030\n \001(\010\022<\n\014accelerators\030\013 \003(\0132&.google.co" + + "ntainer.v1.AcceleratorConfig\022\021\n\tdisk_typ" + + "e\030\014 \001(\t\022\030\n\020min_cpu_platform\030\r \001(\t\022.\n\006tai" + + "nts\030\017 \003(\0132\036.google.container.v1.NodeTain" + + "t\022M\n\030shielded_instance_config\030\024 \001(\0132+.go" + + "ogle.container.v1.ShieldedInstanceConfig" + + "\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"Y\n\026ShieldedInstanceConf" + + "ig\022\032\n\022enable_secure_boot\030\001 \001(\010\022#\n\033enable" + + "_integrity_monitoring\030\002 \001(\010\"\271\001\n\tNodeTain" + + "t\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\0225\n\006effect\030" + + "\003 \001(\0162%.google.container.v1.NodeTaint.Ef" + + "fect\"Y\n\006Effect\022\026\n\022EFFECT_UNSPECIFIED\020\000\022\017" + + "\n\013NO_SCHEDULE\020\001\022\026\n\022PREFER_NO_SCHEDULE\020\002\022" + + "\016\n\nNO_EXECUTE\020\003\"\321\001\n\nMasterAuth\022\020\n\010userna" + + "me\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\022O\n\031client_cer" + + "tificate_config\030\003 \001(\0132,.google.container" + + ".v1.ClientCertificateConfig\022\036\n\026cluster_c" + + "a_certificate\030d \001(\t\022\032\n\022client_certificat" + + "e\030e \001(\t\022\022\n\nclient_key\030f \001(\t\";\n\027ClientCer" + + "tificateConfig\022 \n\030issue_client_certifica" + + "te\030\001 \001(\010\"\372\002\n\014AddonsConfig\022C\n\023http_load_b" + + "alancing\030\001 \001(\0132&.google.container.v1.Htt" + + "pLoadBalancing\022Q\n\032horizontal_pod_autosca" + + "ling\030\002 \001(\0132-.google.container.v1.Horizon" + + "talPodAutoscaling\022J\n\024kubernetes_dashboar" + + "d\030\003 \001(\0132(.google.container.v1.Kubernetes" + + "DashboardB\002\030\001\022G\n\025network_policy_config\030\004" + + " \001(\0132(.google.container.v1.NetworkPolicy" + + "Config\022=\n\020cloud_run_config\030\007 \001(\0132#.googl" + + "e.container.v1.CloudRunConfig\"%\n\021HttpLoa" + + "dBalancing\022\020\n\010disabled\030\001 \001(\010\",\n\030Horizont" + + "alPodAutoscaling\022\020\n\010disabled\030\001 \001(\010\"\'\n\023Ku" + + "bernetesDashboard\022\020\n\010disabled\030\001 \001(\010\"\'\n\023N" + + "etworkPolicyConfig\022\020\n\010disabled\030\001 \001(\010\"\250\001\n" + + "\024PrivateClusterConfig\022\034\n\024enable_private_" + + "nodes\030\001 \001(\010\022\037\n\027enable_private_endpoint\030\002" + + " \001(\010\022\036\n\026master_ipv4_cidr_block\030\003 \001(\t\022\030\n\020" + + "private_endpoint\030\004 \001(\t\022\027\n\017public_endpoin" + + "t\030\005 \001(\t\"D\n\031AuthenticatorGroupsConfig\022\017\n\007" + + "enabled\030\001 \001(\010\022\026\n\016security_group\030\002 \001(\t\"\"\n" + + "\016CloudRunConfig\022\020\n\010disabled\030\001 \001(\010\"\274\001\n\036Ma" + + "sterAuthorizedNetworksConfig\022\017\n\007enabled\030" + + "\001 \001(\010\022R\n\013cidr_blocks\030\002 \003(\0132=.google.cont" + + "ainer.v1.MasterAuthorizedNetworksConfig." + + "CidrBlock\0325\n\tCidrBlock\022\024\n\014display_name\030\001" + + " \001(\t\022\022\n\ncidr_block\030\002 \001(\t\"\035\n\nLegacyAbac\022\017" + + "\n\007enabled\030\001 \001(\010\"\221\001\n\rNetworkPolicy\022=\n\010pro" + + "vider\030\001 \001(\0162+.google.container.v1.Networ" + + "kPolicy.Provider\022\017\n\007enabled\030\002 \001(\010\"0\n\010Pro" + + "vider\022\030\n\024PROVIDER_UNSPECIFIED\020\000\022\n\n\006CALIC" + + "O\020\001\"&\n\023BinaryAuthorization\022\017\n\007enabled\030\001 " + + "\001(\010\"\206\003\n\022IPAllocationPolicy\022\026\n\016use_ip_ali" + + "ases\030\001 \001(\010\022\031\n\021create_subnetwork\030\002 \001(\010\022\027\n" + + "\017subnetwork_name\030\003 \001(\t\022\035\n\021cluster_ipv4_c" + + "idr\030\004 \001(\tB\002\030\001\022\032\n\016node_ipv4_cidr\030\005 \001(\tB\002\030" + + "\001\022\036\n\022services_ipv4_cidr\030\006 \001(\tB\002\030\001\022$\n\034clu" + + "ster_secondary_range_name\030\007 \001(\t\022%\n\035servi" + + "ces_secondary_range_name\030\010 \001(\t\022\037\n\027cluste" + + "r_ipv4_cidr_block\030\t \001(\t\022\034\n\024node_ipv4_cid" + + "r_block\030\n \001(\t\022 \n\030services_ipv4_cidr_bloc" + + "k\030\013 \001(\t\022\033\n\023tpu_ipv4_cidr_block\030\r \001(\t\"\347\021\n" + + "\007Cluster\022\014\n\004name\030\001 \001(\t\022\023\n\013description\030\002 " + + "\001(\t\022\036\n\022initial_node_count\030\003 \001(\005B\002\030\001\0228\n\013n" + + "ode_config\030\004 \001(\0132\037.google.container.v1.N" + + "odeConfigB\002\030\001\0224\n\013master_auth\030\005 \001(\0132\037.goo" + + "gle.container.v1.MasterAuth\022\027\n\017logging_s" + + "ervice\030\006 \001(\t\022\032\n\022monitoring_service\030\007 \001(\t" + + "\022\017\n\007network\030\010 \001(\t\022\031\n\021cluster_ipv4_cidr\030\t" + + " \001(\t\0228\n\raddons_config\030\n \001(\0132!.google.con" + + "tainer.v1.AddonsConfig\022\022\n\nsubnetwork\030\013 \001" + + "(\t\0221\n\nnode_pools\030\014 \003(\0132\035.google.containe" + + "r.v1.NodePool\022\021\n\tlocations\030\r \003(\t\022\037\n\027enab" + + "le_kubernetes_alpha\030\016 \001(\010\022I\n\017resource_la" + + "bels\030\017 \003(\01320.google.container.v1.Cluster" + + ".ResourceLabelsEntry\022\031\n\021label_fingerprin" + + "t\030\020 \001(\t\0224\n\013legacy_abac\030\022 \001(\0132\037.google.co" + + "ntainer.v1.LegacyAbac\022:\n\016network_policy\030" + + "\023 \001(\0132\".google.container.v1.NetworkPolic" + + "y\022E\n\024ip_allocation_policy\030\024 \001(\0132\'.google" + + ".container.v1.IPAllocationPolicy\022^\n!mast" + + "er_authorized_networks_config\030\026 \001(\01323.go" + + "ogle.container.v1.MasterAuthorizedNetwor" + + "ksConfig\022B\n\022maintenance_policy\030\027 \001(\0132&.g" + + "oogle.container.v1.MaintenancePolicy\022F\n\024" + + "binary_authorization\030\030 \001(\0132(.google.cont" + + "ainer.v1.BinaryAuthorization\022<\n\013autoscal" + + "ing\030\032 \001(\0132\'.google.container.v1.ClusterA" + + "utoscaling\022:\n\016network_config\030\033 \001(\0132\".goo" + + "gle.container.v1.NetworkConfig\022K\n\033defaul" + + "t_max_pods_constraint\030\036 \001(\0132&.google.con" + + "tainer.v1.MaxPodsConstraint\022T\n\034resource_" + + "usage_export_config\030! \001(\0132..google.conta" + + "iner.v1.ResourceUsageExportConfig\022S\n\033aut" + + "henticator_groups_config\030\" \001(\0132..google." + + "container.v1.AuthenticatorGroupsConfig\022I" + + "\n\026private_cluster_config\030% \001(\0132).google." + + "container.v1.PrivateClusterConfig\022D\n\023dat" + + "abase_encryption\030& \001(\0132\'.google.containe" + + "r.v1.DatabaseEncryption\022M\n\030vertical_pod_" + + "autoscaling\030\' \001(\0132+.google.container.v1." + + "VerticalPodAutoscaling\022\021\n\tself_link\030d \001(" + + "\t\022\020\n\004zone\030e \001(\tB\002\030\001\022\020\n\010endpoint\030f \001(\t\022\037\n" + + "\027initial_cluster_version\030g \001(\t\022\036\n\026curren" + + "t_master_version\030h \001(\t\022 \n\024current_node_v" + + "ersion\030i \001(\tB\002\030\001\022\023\n\013create_time\030j \001(\t\0223\n" + + "\006status\030k \001(\0162#.google.container.v1.Clus" + + "ter.Status\022\026\n\016status_message\030l \001(\t\022\033\n\023no" + + "de_ipv4_cidr_size\030m \001(\005\022\032\n\022services_ipv4" + + "_cidr\030n \001(\t\022\037\n\023instance_group_urls\030o \003(\t" + + "B\002\030\001\022\036\n\022current_node_count\030p \001(\005B\002\030\001\022\023\n\013" + + "expire_time\030q \001(\t\022\020\n\010location\030r \001(\t\022\022\n\ne" + + "nable_tpu\030s \001(\010\022\033\n\023tpu_ipv4_cidr_block\030t" + + " \001(\t\0228\n\nconditions\030v \003(\0132$.google.contai" + + "ner.v1.StatusCondition\0325\n\023ResourceLabels" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"w\n" + + "\006Status\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVI" + + "SIONING\020\001\022\013\n\007RUNNING\020\002\022\017\n\013RECONCILING\020\003\022" + + "\014\n\010STOPPING\020\004\022\t\n\005ERROR\020\005\022\014\n\010DEGRADED\020\006\"\341" + + "\007\n\rClusterUpdate\022\034\n\024desired_node_version" + + "\030\004 \001(\t\022\"\n\032desired_monitoring_service\030\005 \001" + + "(\t\022@\n\025desired_addons_config\030\006 \001(\0132!.goog" + + "le.container.v1.AddonsConfig\022\034\n\024desired_" + + "node_pool_id\030\007 \001(\t\022\032\n\022desired_image_type" + + "\030\010 \001(\t\022L\n\033desired_database_encryption\030. " + + "\001(\0132\'.google.container.v1.DatabaseEncryp" + + "tion\022O\n\035desired_node_pool_autoscaling\030\t " + + "\001(\0132(.google.container.v1.NodePoolAutosc" + + "aling\022\031\n\021desired_locations\030\n \003(\t\022f\n)desi" + + "red_master_authorized_networks_config\030\014 " + + "\001(\01323.google.container.v1.MasterAuthoriz" + + "edNetworksConfig\022L\n\033desired_cluster_auto" + + "scaling\030\017 \001(\0132\'.google.container.v1.Clus" + + "terAutoscaling\022N\n\034desired_binary_authori" + + "zation\030\020 \001(\0132(.google.container.v1.Binar" + + "yAuthorization\022\037\n\027desired_logging_servic" + + "e\030\023 \001(\t\022\\\n$desired_resource_usage_export" + + "_config\030\025 \001(\0132..google.container.v1.Reso" + + "urceUsageExportConfig\022U\n desired_vertica" + + "l_pod_autoscaling\030\026 \001(\0132+.google.contain" + + "er.v1.VerticalPodAutoscaling\022\\\n$desired_" + + "intra_node_visibility_config\030\032 \001(\0132..goo" + + "gle.container.v1.IntraNodeVisibilityConf" + + "ig\022\036\n\026desired_master_version\030d \001(\t\"\200\007\n\tO" + + "peration\022\014\n\004name\030\001 \001(\t\022\020\n\004zone\030\002 \001(\tB\002\030\001" + + "\022;\n\016operation_type\030\003 \001(\0162#.google.contai" + + "ner.v1.Operation.Type\0225\n\006status\030\004 \001(\0162%." + + "google.container.v1.Operation.Status\022\016\n\006" + + "detail\030\010 \001(\t\022\026\n\016status_message\030\005 \001(\t\022\021\n\t" + + "self_link\030\006 \001(\t\022\023\n\013target_link\030\007 \001(\t\022\020\n\010" + + "location\030\t \001(\t\022\022\n\nstart_time\030\n \001(\t\022\020\n\010en" + + "d_time\030\013 \001(\t\022@\n\022cluster_conditions\030\r \003(\013" + + "2$.google.container.v1.StatusCondition\022A" + + "\n\023nodepool_conditions\030\016 \003(\0132$.google.con" + + "tainer.v1.StatusCondition\"R\n\006Status\022\026\n\022S" + + "TATUS_UNSPECIFIED\020\000\022\013\n\007PENDING\020\001\022\013\n\007RUNN" + + "ING\020\002\022\010\n\004DONE\020\003\022\014\n\010ABORTING\020\004\"\375\002\n\004Type\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\022\n\016CREATE_CLUSTER\020\001" + + "\022\022\n\016DELETE_CLUSTER\020\002\022\022\n\016UPGRADE_MASTER\020\003" + + "\022\021\n\rUPGRADE_NODES\020\004\022\022\n\016REPAIR_CLUSTER\020\005\022" + + "\022\n\016UPDATE_CLUSTER\020\006\022\024\n\020CREATE_NODE_POOL\020" + + "\007\022\024\n\020DELETE_NODE_POOL\020\010\022\034\n\030SET_NODE_POOL" + + "_MANAGEMENT\020\t\022\025\n\021AUTO_REPAIR_NODES\020\n\022\026\n\022" + + "AUTO_UPGRADE_NODES\020\013\022\016\n\nSET_LABELS\020\014\022\023\n\017" + + "SET_MASTER_AUTH\020\r\022\026\n\022SET_NODE_POOL_SIZE\020" + + "\016\022\026\n\022SET_NETWORK_POLICY\020\017\022\032\n\026SET_MAINTEN" + + "ANCE_POLICY\020\020\"\212\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\0222\n\007cluster\030\003 \001(\0132\034.google.contain" + + "er.v1.ClusterB\003\340A\002\022\016\n\006parent\030\005 \001(\t\"l\n\021Ge" + + "tClusterRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340" + + "A\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\"\250\001\n\024UpdateClust" + + "erRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004" + + "zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030" + + "\001\340A\002\0227\n\006update\030\004 \001(\0132\".google.container." + + "v1.ClusterUpdateB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\301\001\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\014\n\004name\030\010 \001(\t\"\331\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\022B\n\013autoscaling\030\005 \001(\0132(.google." + + "container.v1.NodePoolAutoscalingB\003\340A\002\022\014\n" + + "\004name\030\006 \001(\t\"\217\001\n\030SetLoggingServiceRequest" + + "\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\021\n\004zone\030\002 \001(" + + "\tB\003\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\034\n\017log" + + "ging_service\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\005 \001(\t\"\227\001" + + "\n\033SetMonitoringServiceRequest\022\031\n\nproject" + + "_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n" + + "\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\037\n\022monitoring_s" + + "ervice\030\004 \001(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\260\001\n\026SetA" + + "ddonsConfigRequest\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\raddons_config\030\004 \001(\0132!.g" + + "oogle.container.v1.AddonsConfigB\003\340A\002\022\014\n\004" + + "name\030\006 \001(\t\"\206\001\n\023SetLocationsRequest\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\026\n\tlocatio" + + "ns\030\004 \003(\tB\003\340A\002\022\014\n\004name\030\006 \001(\t\"\213\001\n\023UpdateMa" + + "sterRequest\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\016master_version\030\004 \001(\tB\003\340A\002\022\014\n\004n" + + "ame\030\007 \001(\t\"\276\002\n\024SetMasterAuthRequest\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\022E\n\006action\030" + + "\004 \001(\01620.google.container.v1.SetMasterAut" + + "hRequest.ActionB\003\340A\002\0224\n\006update\030\005 \001(\0132\037.g" + + "oogle.container.v1.MasterAuthB\003\340A\002\022\014\n\004na" + + "me\030\007 \001(\t\"P\n\006Action\022\013\n\007UNKNOWN\020\000\022\020\n\014SET_P" + + "ASSWORD\020\001\022\025\n\021GENERATE_PASSWORD\020\002\022\020\n\014SET_" + + "USERNAME\020\003\"o\n\024DeleteClusterRequest\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\004 " + + "\001(\t\"U\n\023ListClustersRequest\022\031\n\nproject_id" + + "\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\016\n\006pa" + + "rent\030\004 \001(\t\"]\n\024ListClustersResponse\022.\n\010cl" + + "usters\030\001 \003(\0132\034.google.container.v1.Clust" + + "er\022\025\n\rmissing_zones\030\002 \003(\t\"p\n\023GetOperatio" + + "nRequest\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\033\n\014operation_id\030\003 \001(\tB\005" + + "\030\001\340A\002\022\014\n\004name\030\005 \001(\t\"W\n\025ListOperationsReq" + + "uest\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030" + + "\002 \001(\tB\005\030\001\340A\002\022\016\n\006parent\030\004 \001(\t\"s\n\026CancelOp" + + "erationRequest\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\"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\"V\n\026GetServerConfigRequest\022\031\n\nproj" + + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" + + "\022\014\n\004name\030\004 \001(\t\"\242\001\n\014ServerConfig\022\037\n\027defau" + + "lt_cluster_version\030\001 \001(\t\022\033\n\023valid_node_v" + + "ersions\030\003 \003(\t\022\032\n\022default_image_type\030\004 \001(" + + "\t\022\031\n\021valid_image_types\030\005 \003(\t\022\035\n\025valid_ma" + + "ster_versions\030\006 \003(\t\"\251\001\n\025CreateNodePoolRe" + + "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" + + "\0225\n\tnode_pool\030\004 \001(\0132\035.google.container.v" + + "1.NodePoolB\003\340A\002\022\016\n\006parent\030\006 \001(\t\"\215\001\n\025Dele" + + "teNodePoolRequest\022\031\n\nproject_id\030\001 \001(\tB\005\030" + + "\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030" + + "\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001(\tB\005\030\001\340A" + + "\002\022\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(\t" + + "B\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\016\n\006pa" + + "rent\030\005 \001(\t\"\212\001\n\022GetNodePoolRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_poo" + + "l_id\030\004 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\"\213\005\n\010Node" + + "Pool\022\014\n\004name\030\001 \001(\t\022/\n\006config\030\002 \001(\0132\037.goo" + + "gle.container.v1.NodeConfig\022\032\n\022initial_n" + + "ode_count\030\003 \001(\005\022\021\n\tself_link\030d \001(\t\022\017\n\007ve" + + "rsion\030e \001(\t\022\033\n\023instance_group_urls\030f \003(\t" + + "\0224\n\006status\030g \001(\0162$.google.container.v1.N" + + "odePool.Status\022\026\n\016status_message\030h \001(\t\022=" + + "\n\013autoscaling\030\004 \001(\0132(.google.container.v" + + "1.NodePoolAutoscaling\0227\n\nmanagement\030\005 \001(" + + "\0132#.google.container.v1.NodeManagement\022C" + + "\n\023max_pods_constraint\030\006 \001(\0132&.google.con" + + "tainer.v1.MaxPodsConstraint\0228\n\ncondition" + + "s\030i \003(\0132$.google.container.v1.StatusCond" + + "ition\022\032\n\022pod_ipv4_cidr_size\030\007 \001(\005\"\201\001\n\006St" + + "atus\022\026\n\022STATUS_UNSPECIFIED\020\000\022\020\n\014PROVISIO" + + "NING\020\001\022\013\n\007RUNNING\020\002\022\026\n\022RUNNING_WITH_ERRO" + + "R\020\003\022\017\n\013RECONCILING\020\004\022\014\n\010STOPPING\020\005\022\t\n\005ER" + + "ROR\020\006\"}\n\016NodeManagement\022\024\n\014auto_upgrade\030" + + "\001 \001(\010\022\023\n\013auto_repair\030\002 \001(\010\022@\n\017upgrade_op" + + "tions\030\n \001(\0132\'.google.container.v1.AutoUp" + + "gradeOptions\"J\n\022AutoUpgradeOptions\022\037\n\027au" + + "to_upgrade_start_time\030\001 \001(\t\022\023\n\013descripti" + + "on\030\002 \001(\t\"e\n\021MaintenancePolicy\0226\n\006window\030" + + "\001 \001(\0132&.google.container.v1.MaintenanceW" + + "indow\022\030\n\020resource_version\030\003 \001(\t\"\366\002\n\021Main" + + "tenanceWindow\022O\n\030daily_maintenance_windo" + + "w\030\002 \001(\0132+.google.container.v1.DailyMaint" + + "enanceWindowH\000\022D\n\020recurring_window\030\003 \001(\013" + + "2(.google.container.v1.RecurringTimeWind" + + "owH\000\022a\n\026maintenance_exclusions\030\004 \003(\0132A.g" + + "oogle.container.v1.MaintenanceWindow.Mai" + + "ntenanceExclusionsEntry\032]\n\032MaintenanceEx" + + "clusionsEntry\022\013\n\003key\030\001 \001(\t\022.\n\005value\030\002 \001(" + + "\0132\037.google.container.v1.TimeWindow:\0028\001B\010" + + "\n\006policy\"j\n\nTimeWindow\022.\n\nstart_time\030\001 \001" + + "(\0132\032.google.protobuf.Timestamp\022,\n\010end_ti" + + "me\030\002 \001(\0132\032.google.protobuf.Timestamp\"Z\n\023" + + "RecurringTimeWindow\022/\n\006window\030\001 \001(\0132\037.go" + + "ogle.container.v1.TimeWindow\022\022\n\nrecurren" + + "ce\030\002 \001(\t\">\n\026DailyMaintenanceWindow\022\022\n\nst" + + "art_time\030\002 \001(\t\022\020\n\010duration\030\003 \001(\t\"\322\001\n\034Set" + + "NodePoolManagementRequest\022\031\n\nproject_id\030" + + "\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\nclu" + + "ster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool_id\030\004 \001" + + "(\tB\005\030\001\340A\002\022<\n\nmanagement\030\005 \001(\0132#.google.c" + + "ontainer.v1.NodeManagementB\003\340A\002\022\014\n\004name\030" + + "\007 \001(\t\"\247\001\n\026SetNodePoolSizeRequest\022\031\n\nproj" + + "ect_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002" + + "\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\033\n\014node_pool" + + "_id\030\004 \001(\tB\005\030\001\340A\002\022\027\n\nnode_count\030\005 \001(\005B\003\340A" + + "\002\022\014\n\004name\030\007 \001(\t\"\226\001\n\036RollbackNodePoolUpgr" + + "adeRequest\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\004na" + + "me\030\006 \001(\t\"J\n\025ListNodePoolsResponse\0221\n\nnod" + + "e_pools\030\001 \003(\0132\035.google.container.v1.Node" + + "Pool\"\377\001\n\022ClusterAutoscaling\022$\n\034enable_no" + + "de_autoprovisioning\030\001 \001(\010\022;\n\017resource_li" + + "mits\030\002 \003(\0132\".google.container.v1.Resourc" + + "eLimit\022b\n#autoprovisioning_node_pool_def" + + "aults\030\004 \001(\01325.google.container.v1.Autopr" + + "ovisioningNodePoolDefaults\022\"\n\032autoprovis" + + "ioning_locations\030\005 \003(\t\"Q\n Autoprovisioni" + + "ngNodePoolDefaults\022\024\n\014oauth_scopes\030\001 \003(\t" + + "\022\027\n\017service_account\030\002 \001(\t\"H\n\rResourceLim" + + "it\022\025\n\rresource_type\030\001 \001(\t\022\017\n\007minimum\030\002 \001" + + "(\003\022\017\n\007maximum\030\003 \001(\003\"o\n\023NodePoolAutoscali" + + "ng\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\017autoprovi" + + "sioned\030\004 \001(\010\"\233\002\n\020SetLabelsRequest\022\031\n\npro" + + "ject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A" + + "\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022W\n\017resource" + + "_labels\030\004 \003(\01329.google.container.v1.SetL" + + "abelsRequest.ResourceLabelsEntryB\003\340A\002\022\036\n" + + "\021label_fingerprint\030\005 \001(\tB\003\340A\002\022\014\n\004name\030\007 " + + "\001(\t\0325\n\023ResourceLabelsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"\205\001\n\024SetLegacyAbacRequ" + + "est\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002" + + " \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022\024" + + "\n\007enabled\030\004 \001(\010B\003\340A\002\022\014\n\004name\030\006 \001(\t\"\215\001\n\026S" + + "tartIPRotationRequest\022\031\n\nproject_id\030\001 \001(" + + "\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster" + + "_id\030\003 \001(\tB\005\030\001\340A\002\022\014\n\004name\030\006 \001(\t\022\032\n\022rotate" + + "_credentials\030\007 \001(\010\"t\n\031CompleteIPRotation" + + "Request\022\031\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zo" + + "ne\030\002 \001(\tB\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340" + + "A\002\022\014\n\004name\030\007 \001(\t\"H\n\021AcceleratorConfig\022\031\n" + + "\021accelerator_count\030\001 \001(\003\022\030\n\020accelerator_" + + "type\030\002 \001(\t\"\263\001\n\027SetNetworkPolicyRequest\022\031" + + "\n\nproject_id\030\001 \001(\tB\005\030\001\340A\002\022\023\n\004zone\030\002 \001(\tB" + + "\005\030\001\340A\002\022\031\n\ncluster_id\030\003 \001(\tB\005\030\001\340A\002\022?\n\016net" + "work_policy\030\004 \001(\0132\".google.container.v1." - + "NetworkPolicy\022\014\n\004name\030\006 \001(\t\"\245\001\n\033SetMaint" - + "enancePolicyRequest\022\022\n\nproject_id\030\001 \001(\t\022" - + "\014\n\004zone\030\002 \001(\t\022\022\n\ncluster_id\030\003 \001(\t\022B\n\022mai" - + "ntenance_policy\030\004 \001(\0132&.google.container" - + ".v1.MaintenancePolicy\022\014\n\004name\030\005 \001(\t\"4\n\rN" - + "etworkConfig\022\017\n\007network\030\001 \001(\t\022\022\n\nsubnetw" - + "ork\030\002 \001(\t2\3139\n\016ClusterManager\022\314\001\n\014ListClu" - + "sters\022(.google.container.v1.ListClusters" - + "Request\032).google.container.v1.ListCluste" - + "rsResponse\"g\202\323\344\223\002a\022,/v1/{parent=projects" - + "/*/locations/*}/clustersZ1\022//v1/projects" - + "/{project_id}/zones/{zone}/clusters\022\310\001\n\n" - + "GetCluster\022&.google.container.v1.GetClus" - + "terRequest\032\034.google.container.v1.Cluster" - + "\"t\202\323\344\223\002n\022,/v1/{name=projects/*/locations" - + "/*/clusters/*}Z>\022\022**/v1/{name=projects/*" - + "/locations/*/clusters/*}:setResourceLabe" - + "ls:\001*ZP\"K/v1/projects/{project_id}/zones" - + "/{zone}/clusters/{cluster_id}/resourceLa" - + "bels:\001*\022\361\001\n\rSetLegacyAbac\022).google.conta" - + "iner.v1.SetLegacyAbacRequest\032\036.google.co" - + "ntainer.v1.Operation\"\224\001\202\323\344\223\002\215\001\":/v1/{nam" - + "e=projects/*/locations/*/clusters/*}:set" - + "LegacyAbac:\001*ZL\"G/v1/projects/{project_i" - + "d}/zones/{zone}/clusters/{cluster_id}/le" - + "gacyAbac:\001*\022\374\001\n\017StartIPRotation\022+.google" - + ".container.v1.StartIPRotationRequest\032\036.g" - + "oogle.container.v1.Operation\"\233\001\202\323\344\223\002\224\001\"<" - + "/v1/{name=projects/*/locations/*/cluster" - + "s/*}:startIpRotation:\001*ZQ\"L/v1/projects/" - + "{project_id}/zones/{zone}/clusters/{clus" - + "ter_id}:startIpRotation:\001*\022\210\002\n\022CompleteI" - + "PRotation\022..google.container.v1.Complete" - + "IPRotationRequest\032\036.google.container.v1." - + "Operation\"\241\001\202\323\344\223\002\232\001\"?/v1/{name=projects/" - + "*/locations/*/clusters/*}:completeIpRota" - + "tion:\001*ZT\"O/v1/projects/{project_id}/zon" - + "es/{zone}/clusters/{cluster_id}:complete" - + "IpRotation:\001*\022\221\002\n\017SetNodePoolSize\022+.goog" - + "le.container.v1.SetNodePoolSizeRequest\032\036" - + ".google.container.v1.Operation\"\260\001\202\323\344\223\002\251\001" - + "\"@/v1/{name=projects/*/locations/*/clust" - + "ers/*/nodePools/*}:setSize:\001*Zb\"]/v1/pro" - + "jects/{project_id}/zones/{zone}/clusters" - + "/{cluster_id}/nodePools/{node_pool_id}/s" - + "etSize:\001*\022\200\002\n\020SetNetworkPolicy\022,.google." - + "container.v1.SetNetworkPolicyRequest\032\036.g" - + "oogle.container.v1.Operation\"\235\001\202\323\344\223\002\226\001\"=" - + "/v1/{name=projects/*/locations/*/cluster" - + "s/*}:setNetworkPolicy:\001*ZR\"M/v1/projects" - + "/{project_id}/zones/{zone}/clusters/{clu" - + "ster_id}:setNetworkPolicy:\001*\022\220\002\n\024SetMain" - + "tenancePolicy\0220.google.container.v1.SetM" - + "aintenancePolicyRequest\032\036.google.contain" - + "er.v1.Operation\"\245\001\202\323\344\223\002\236\001\"A/v1/{name=pro" - + "jects/*/locations/*/clusters/*}:setMaint" - + "enancePolicy:\001*ZV\"Q/v1/projects/{project" - + "_id}/zones/{zone}/clusters/{cluster_id}:" - + "setMaintenancePolicy:\001*B\246\001\n\027com.google.c" - + "ontainer.v1B\023ClusterServiceProtoP\001Z/v1/{name=projects/" + + "*/locations/*/clusters/*}:setResourceLab" + + "els:\001*ZP\"K/v1/projects/{project_id}/zone" + + "s/{zone}/clusters/{cluster_id}/resourceL" + + "abels:\001*\022\226\002\n\rSetLegacyAbac\022).google.cont" + + "ainer.v1.SetLegacyAbacRequest\032\036.google.c" + + "ontainer.v1.Operation\"\271\001\202\323\344\223\002\215\001\":/v1/{na" + + "me=projects/*/locations/*/clusters/*}:se" + + "tLegacyAbac:\001*ZL\"G/v1/projects/{project_" + + "id}/zones/{zone}/clusters/{cluster_id}/l" + + "egacyAbac:\001*\332A\"project_id,zone,cluster_i" + + "d,enabled\022\231\002\n\017StartIPRotation\022+.google.c" + + "ontainer.v1.StartIPRotationRequest\032\036.goo" + + "gle.container.v1.Operation\"\270\001\202\323\344\223\002\224\001\" * * string desired_node_version = 4; + * + * @return The desiredNodeVersion. */ public java.lang.String getDesiredNodeVersion() { java.lang.Object ref = desiredNodeVersion_; @@ -250,6 +363,8 @@ public java.lang.String getDesiredNodeVersion() { * * * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. */ public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { java.lang.Object ref = desiredNodeVersion_; @@ -271,11 +386,15 @@ public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { *
    * The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. */ public java.lang.String getDesiredMonitoringService() { java.lang.Object ref = desiredMonitoringService_; @@ -294,11 +413,15 @@ public java.lang.String getDesiredMonitoringService() { *
    * The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. */ public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { java.lang.Object ref = desiredMonitoringService_; @@ -322,6 +445,8 @@ public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. */ public boolean hasDesiredAddonsConfig() { return desiredAddonsConfig_ != null; @@ -334,6 +459,8 @@ public boolean hasDesiredAddonsConfig() { * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. */ public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { return desiredAddonsConfig_ == null @@ -366,6 +493,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBui * * * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. */ public java.lang.String getDesiredNodePoolId() { java.lang.Object ref = desiredNodePoolId_; @@ -389,6 +518,8 @@ public java.lang.String getDesiredNodePoolId() { * * * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. */ public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { java.lang.Object ref = desiredNodePoolId_; @@ -413,6 +544,8 @@ public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { * * * string desired_image_type = 8; + * + * @return The desiredImageType. */ public java.lang.String getDesiredImageType() { java.lang.Object ref = desiredImageType_; @@ -434,6 +567,8 @@ public java.lang.String getDesiredImageType() { * * * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. */ public com.google.protobuf.ByteString getDesiredImageTypeBytes() { java.lang.Object ref = desiredImageType_; @@ -447,6 +582,52 @@ public com.google.protobuf.ByteString getDesiredImageTypeBytes() { } } + 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. + */ + public boolean hasDesiredDatabaseEncryption() { + return desiredDatabaseEncryption_ != null; + } + /** + * + * + *
+   * Configuration of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption desired_database_encryption = 46; + * + * @return The desiredDatabaseEncryption. + */ + 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; + */ + public com.google.container.v1.DatabaseEncryptionOrBuilder + getDesiredDatabaseEncryptionOrBuilder() { + return getDesiredDatabaseEncryption(); + } + public static final int DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER = 9; private com.google.container.v1.NodePoolAutoscaling desiredNodePoolAutoscaling_; /** @@ -460,6 +641,8 @@ public com.google.protobuf.ByteString getDesiredImageTypeBytes() { * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. */ public boolean hasDesiredNodePoolAutoscaling() { return desiredNodePoolAutoscaling_ != null; @@ -475,6 +658,8 @@ public boolean hasDesiredNodePoolAutoscaling() { * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. */ public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { return desiredNodePoolAutoscaling_ == null @@ -505,7 +690,7 @@ public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -513,6 +698,8 @@ public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling
    * 
* * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. */ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { return desiredLocations_; @@ -522,7 +709,7 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -530,6 +717,8 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() {
    * 
* * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. */ public int getDesiredLocationsCount() { return desiredLocations_.size(); @@ -539,7 +728,7 @@ public int getDesiredLocationsCount() { * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -547,6 +736,9 @@ public int getDesiredLocationsCount() {
    * 
* * 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); @@ -556,7 +748,7 @@ public java.lang.String getDesiredLocations(int index) { * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -564,6 +756,9 @@ public java.lang.String getDesiredLocations(int index) {
    * 
* * 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); @@ -582,6 +777,8 @@ public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ public boolean hasDesiredMasterAuthorizedNetworksConfig() { return desiredMasterAuthorizedNetworksConfig_ != null; @@ -596,6 +793,8 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return The desiredMasterAuthorizedNetworksConfig. */ public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { @@ -619,32 +818,124 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { return getDesiredMasterAuthorizedNetworksConfig(); } - public static final int DESIRED_MASTER_VERSION_FIELD_NUMBER = 100; - private volatile java.lang.Object desiredMasterVersion_; + public static final int DESIRED_CLUSTER_AUTOSCALING_FIELD_NUMBER = 15; + private com.google.container.v1.ClusterAutoscaling desiredClusterAutoscaling_; /** * * *
-   * 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
+   * Cluster-level autoscaling configuration.
    * 
* - * string desired_master_version = 100; + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. */ - public java.lang.String getDesiredMasterVersion() { - java.lang.Object ref = desiredMasterVersion_; + public boolean hasDesiredClusterAutoscaling() { + return desiredClusterAutoscaling_ != null; + } + /** + * + * + *
+   * Cluster-level autoscaling configuration.
+   * 
+ * + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return The desiredClusterAutoscaling. + */ + 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; + */ + 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. + */ + 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. + */ + 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; + */ + 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 Google Cloud Logging
+   * service with Kubernetes-native resource model
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * string desired_logging_service = 19; + * + * @return The desiredLoggingService. + */ + 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(); - desiredMasterVersion_ = s; + desiredLoggingService_ = s; return s; } } @@ -652,75 +943,301 @@ public 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
+   * The logging service the cluster should use to write logs.
+   * Currently available options:
+   * * "logging.googleapis.com/kubernetes" - the Google Cloud Logging
+   * service with Kubernetes-native resource model
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
    * 
* - * string desired_master_version = 100; + * string desired_logging_service = 19; + * + * @return The bytes for desiredLoggingService. */ - public com.google.protobuf.ByteString getDesiredMasterVersionBytes() { - java.lang.Object ref = desiredMasterVersion_; + 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); - desiredMasterVersion_ = b; + desiredLoggingService_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public 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. + */ + public boolean hasDesiredResourceUsageExportConfig() { + return desiredResourceUsageExportConfig_ != null; } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDesiredNodeVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); - } - if (!getDesiredMonitoringServiceBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); - } - if (desiredAddonsConfig_ != null) { - output.writeMessage(6, getDesiredAddonsConfig()); - } - if (!getDesiredNodePoolIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); - } - if (!getDesiredImageTypeBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); - } - if (desiredNodePoolAutoscaling_ != null) { - output.writeMessage(9, getDesiredNodePoolAutoscaling()); - } - for (int i = 0; i < desiredLocations_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); - } - if (desiredMasterAuthorizedNetworksConfig_ != null) { - output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); - } - if (!getDesiredMasterVersionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); - } - unknownFields.writeTo(output); + /** + * + * + *
+   * 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() { + 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; + * + */ + public com.google.container.v1.ResourceUsageExportConfigOrBuilder + getDesiredResourceUsageExportConfigOrBuilder() { + return getDesiredResourceUsageExportConfig(); } - @java.lang.Override + 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. + */ + public boolean hasDesiredVerticalPodAutoscaling() { + return 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() { + 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; + */ + public com.google.container.v1.VerticalPodAutoscalingOrBuilder + getDesiredVerticalPodAutoscalingOrBuilder() { + return getDesiredVerticalPodAutoscaling(); + } + + 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. + */ + 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. + */ + 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; + * + */ + public com.google.container.v1.IntraNodeVisibilityConfigOrBuilder + getDesiredIntraNodeVisibilityConfigOrBuilder() { + return getDesiredIntraNodeVisibilityConfig(); + } + + 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. + */ + 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. + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDesiredNodeVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, desiredNodeVersion_); + } + if (!getDesiredMonitoringServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, desiredMonitoringService_); + } + if (desiredAddonsConfig_ != null) { + output.writeMessage(6, getDesiredAddonsConfig()); + } + if (!getDesiredNodePoolIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, desiredNodePoolId_); + } + if (!getDesiredImageTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, desiredImageType_); + } + if (desiredNodePoolAutoscaling_ != null) { + output.writeMessage(9, getDesiredNodePoolAutoscaling()); + } + for (int i = 0; i < desiredLocations_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, desiredLocations_.getRaw(i)); + } + if (desiredMasterAuthorizedNetworksConfig_ != null) { + output.writeMessage(12, getDesiredMasterAuthorizedNetworksConfig()); + } + if (desiredClusterAutoscaling_ != null) { + output.writeMessage(15, getDesiredClusterAutoscaling()); + } + if (desiredBinaryAuthorization_ != null) { + output.writeMessage(16, getDesiredBinaryAuthorization()); + } + if (!getDesiredLoggingServiceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + output.writeMessage(21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + output.writeMessage(22, getDesiredVerticalPodAutoscaling()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + output.writeMessage(26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDatabaseEncryption_ != null) { + output.writeMessage(46, getDesiredDatabaseEncryption()); + } + if (!getDesiredMasterVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 100, desiredMasterVersion_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; @@ -760,6 +1277,39 @@ public int getSerializedSize() { 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 (!getDesiredLoggingServiceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, desiredLoggingService_); + } + if (desiredResourceUsageExportConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, getDesiredResourceUsageExportConfig()); + } + if (desiredVerticalPodAutoscaling_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, getDesiredVerticalPodAutoscaling()); + } + if (desiredIntraNodeVisibilityConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, getDesiredIntraNodeVisibilityConfig()); + } + if (desiredDatabaseEncryption_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 46, getDesiredDatabaseEncryption()); + } if (!getDesiredMasterVersionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, desiredMasterVersion_); } @@ -786,6 +1336,11 @@ public boolean equals(final java.lang.Object obj) { } 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 (hasDesiredNodePoolAutoscaling() != other.hasDesiredNodePoolAutoscaling()) return false; if (hasDesiredNodePoolAutoscaling()) { if (!getDesiredNodePoolAutoscaling().equals(other.getDesiredNodePoolAutoscaling())) @@ -798,6 +1353,35 @@ public boolean equals(final java.lang.Object obj) { 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 (hasDesiredIntraNodeVisibilityConfig() != other.hasDesiredIntraNodeVisibilityConfig()) + return false; + if (hasDesiredIntraNodeVisibilityConfig()) { + if (!getDesiredIntraNodeVisibilityConfig() + .equals(other.getDesiredIntraNodeVisibilityConfig())) return false; + } if (!getDesiredMasterVersion().equals(other.getDesiredMasterVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -822,6 +1406,10 @@ public int hashCode() { 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 (hasDesiredNodePoolAutoscaling()) { hash = (37 * hash) + DESIRED_NODE_POOL_AUTOSCALING_FIELD_NUMBER; hash = (53 * hash) + getDesiredNodePoolAutoscaling().hashCode(); @@ -834,6 +1422,28 @@ public int hashCode() { 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 (hasDesiredIntraNodeVisibilityConfig()) { + hash = (37 * hash) + DESIRED_INTRA_NODE_VISIBILITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getDesiredIntraNodeVisibilityConfig().hashCode(); + } hash = (37 * hash) + DESIRED_MASTER_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDesiredMasterVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); @@ -996,6 +1606,12 @@ public Builder clear() { desiredImageType_ = ""; + if (desiredDatabaseEncryptionBuilder_ == null) { + desiredDatabaseEncryption_ = null; + } else { + desiredDatabaseEncryption_ = null; + desiredDatabaseEncryptionBuilder_ = null; + } if (desiredNodePoolAutoscalingBuilder_ == null) { desiredNodePoolAutoscaling_ = null; } else { @@ -1003,13 +1619,45 @@ public Builder clear() { desiredNodePoolAutoscalingBuilder_ = null; } desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + 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 (desiredIntraNodeVisibilityConfigBuilder_ == null) { + desiredIntraNodeVisibilityConfig_ = null; + } else { + desiredIntraNodeVisibilityConfig_ = null; + desiredIntraNodeVisibilityConfigBuilder_ = null; + } desiredMasterVersion_ = ""; return this; @@ -1040,7 +1688,6 @@ 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) { @@ -1050,14 +1697,19 @@ public com.google.container.v1.ClusterUpdate buildPartial() { } result.desiredNodePoolId_ = desiredNodePoolId_; result.desiredImageType_ = desiredImageType_; + if (desiredDatabaseEncryptionBuilder_ == null) { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryption_; + } else { + result.desiredDatabaseEncryption_ = desiredDatabaseEncryptionBuilder_.build(); + } if (desiredNodePoolAutoscalingBuilder_ == null) { result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscaling_; } else { result.desiredNodePoolAutoscaling_ = desiredNodePoolAutoscalingBuilder_.build(); } - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { desiredLocations_ = desiredLocations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); } result.desiredLocations_ = desiredLocations_; if (desiredMasterAuthorizedNetworksConfigBuilder_ == null) { @@ -1066,8 +1718,33 @@ public com.google.container.v1.ClusterUpdate buildPartial() { 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 (desiredIntraNodeVisibilityConfigBuilder_ == null) { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfig_; + } else { + result.desiredIntraNodeVisibilityConfig_ = desiredIntraNodeVisibilityConfigBuilder_.build(); + } result.desiredMasterVersion_ = desiredMasterVersion_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1136,13 +1813,16 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { desiredImageType_ = other.desiredImageType_; onChanged(); } + if (other.hasDesiredDatabaseEncryption()) { + mergeDesiredDatabaseEncryption(other.getDesiredDatabaseEncryption()); + } if (other.hasDesiredNodePoolAutoscaling()) { mergeDesiredNodePoolAutoscaling(other.getDesiredNodePoolAutoscaling()); } if (!other.desiredLocations_.isEmpty()) { if (desiredLocations_.isEmpty()) { desiredLocations_ = other.desiredLocations_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDesiredLocationsIsMutable(); desiredLocations_.addAll(other.desiredLocations_); @@ -1153,6 +1833,25 @@ public Builder mergeFrom(com.google.container.v1.ClusterUpdate other) { 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.hasDesiredIntraNodeVisibilityConfig()) { + mergeDesiredIntraNodeVisibilityConfig(other.getDesiredIntraNodeVisibilityConfig()); + } if (!other.getDesiredMasterVersion().isEmpty()) { desiredMasterVersion_ = other.desiredMasterVersion_; onChanged(); @@ -1205,6 +1904,8 @@ public Builder mergeFrom( * * * string desired_node_version = 4; + * + * @return The desiredNodeVersion. */ public java.lang.String getDesiredNodeVersion() { java.lang.Object ref = desiredNodeVersion_; @@ -1233,6 +1934,8 @@ public java.lang.String getDesiredNodeVersion() { * * * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. */ public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { java.lang.Object ref = desiredNodeVersion_; @@ -1261,6 +1964,9 @@ public com.google.protobuf.ByteString getDesiredNodeVersionBytes() { * * * 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) { @@ -1287,6 +1993,8 @@ public Builder setDesiredNodeVersion(java.lang.String value) { * * * string desired_node_version = 4; + * + * @return This builder for chaining. */ public Builder clearDesiredNodeVersion() { @@ -1310,6 +2018,9 @@ public Builder clearDesiredNodeVersion() { * * * 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) { @@ -1329,11 +2040,15 @@ public Builder setDesiredNodeVersionBytes(com.google.protobuf.ByteString value) *
      * The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. */ public java.lang.String getDesiredMonitoringService() { java.lang.Object ref = desiredMonitoringService_; @@ -1352,11 +2067,15 @@ public java.lang.String getDesiredMonitoringService() { *
      * The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. */ public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { java.lang.Object ref = desiredMonitoringService_; @@ -1375,11 +2094,16 @@ public com.google.protobuf.ByteString getDesiredMonitoringServiceBytes() { *
      * The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* * 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) { @@ -1396,11 +2120,15 @@ public Builder setDesiredMonitoringService(java.lang.String value) { *
      * The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* * string desired_monitoring_service = 5; + * + * @return This builder for chaining. */ public Builder clearDesiredMonitoringService() { @@ -1414,11 +2142,16 @@ public Builder clearDesiredMonitoringService() { *
      * The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* * 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) { @@ -1445,6 +2178,8 @@ public Builder setDesiredMonitoringServiceBytes(com.google.protobuf.ByteString v * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. */ public boolean hasDesiredAddonsConfig() { return desiredAddonsConfigBuilder_ != null || desiredAddonsConfig_ != null; @@ -1457,6 +2192,8 @@ public boolean hasDesiredAddonsConfig() { * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. */ public com.google.container.v1.AddonsConfig getDesiredAddonsConfig() { if (desiredAddonsConfigBuilder_ == null) { @@ -1625,6 +2362,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getDesiredAddonsConfigOrBui * * * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. */ public java.lang.String getDesiredNodePoolId() { java.lang.Object ref = desiredNodePoolId_; @@ -1648,6 +2387,8 @@ public java.lang.String getDesiredNodePoolId() { * * * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. */ public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { java.lang.Object ref = desiredNodePoolId_; @@ -1671,6 +2412,9 @@ public com.google.protobuf.ByteString getDesiredNodePoolIdBytes() { * * * 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) { @@ -1692,6 +2436,8 @@ public Builder setDesiredNodePoolId(java.lang.String value) { * * * string desired_node_pool_id = 7; + * + * @return This builder for chaining. */ public Builder clearDesiredNodePoolId() { @@ -1710,6 +2456,9 @@ public Builder clearDesiredNodePoolId() { * * * 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) { @@ -1732,6 +2481,8 @@ public Builder setDesiredNodePoolIdBytes(com.google.protobuf.ByteString value) { * * * string desired_image_type = 8; + * + * @return The desiredImageType. */ public java.lang.String getDesiredImageType() { java.lang.Object ref = desiredImageType_; @@ -1753,6 +2504,8 @@ public java.lang.String getDesiredImageType() { * * * string desired_image_type = 8; + * + * @return The bytes for desiredImageType. */ public com.google.protobuf.ByteString getDesiredImageTypeBytes() { java.lang.Object ref = desiredImageType_; @@ -1774,6 +2527,9 @@ public com.google.protobuf.ByteString getDesiredImageTypeBytes() { * * * 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) { @@ -1793,6 +2549,8 @@ public Builder setDesiredImageType(java.lang.String value) { * * * string desired_image_type = 8; + * + * @return This builder for chaining. */ public Builder clearDesiredImageType() { @@ -1809,6 +2567,9 @@ public Builder clearDesiredImageType() { * * * 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) { @@ -1821,6 +2582,195 @@ public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { 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.NodePoolAutoscaling desiredNodePoolAutoscaling_; private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodePoolAutoscaling, @@ -1838,6 +2788,8 @@ public Builder setDesiredImageTypeBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. */ public boolean hasDesiredNodePoolAutoscaling() { return desiredNodePoolAutoscalingBuilder_ != null || desiredNodePoolAutoscaling_ != null; @@ -1853,6 +2805,8 @@ public boolean hasDesiredNodePoolAutoscaling() { * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. */ public com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling() { if (desiredNodePoolAutoscalingBuilder_ == null) { @@ -2038,9 +2992,9 @@ public Builder clearDesiredNodePoolAutoscaling() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDesiredLocationsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { desiredLocations_ = new com.google.protobuf.LazyStringArrayList(desiredLocations_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000001; } } /** @@ -2048,7 +3002,7 @@ private void ensureDesiredLocationsIsMutable() { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2056,6 +3010,8 @@ private void ensureDesiredLocationsIsMutable() {
      * 
* * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. */ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { return desiredLocations_.getUnmodifiableView(); @@ -2065,7 +3021,7 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2073,6 +3029,8 @@ public com.google.protobuf.ProtocolStringList getDesiredLocationsList() {
      * 
* * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. */ public int getDesiredLocationsCount() { return desiredLocations_.size(); @@ -2082,7 +3040,7 @@ public int getDesiredLocationsCount() { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2090,6 +3048,9 @@ public int getDesiredLocationsCount() {
      * 
* * 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); @@ -2099,7 +3060,7 @@ public java.lang.String getDesiredLocations(int index) { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2107,6 +3068,9 @@ public java.lang.String getDesiredLocations(int index) {
      * 
* * 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); @@ -2116,7 +3080,7 @@ public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2124,6 +3088,10 @@ public com.google.protobuf.ByteString getDesiredLocationsBytes(int index) {
      * 
* * 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) { @@ -2139,7 +3107,7 @@ public Builder setDesiredLocations(int index, java.lang.String value) { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2147,6 +3115,9 @@ public Builder setDesiredLocations(int index, java.lang.String value) {
      * 
* * 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) { @@ -2162,7 +3133,7 @@ public Builder addDesiredLocations(java.lang.String value) { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2170,6 +3141,9 @@ public Builder addDesiredLocations(java.lang.String value) {
      * 
* * repeated string desired_locations = 10; + * + * @param values The desiredLocations to add. + * @return This builder for chaining. */ public Builder addAllDesiredLocations(java.lang.Iterable values) { ensureDesiredLocationsIsMutable(); @@ -2182,7 +3156,7 @@ public Builder addAllDesiredLocations(java.lang.Iterable value * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2190,10 +3164,12 @@ public Builder addAllDesiredLocations(java.lang.Iterable value
      * 
* * repeated string desired_locations = 10; + * + * @return This builder for chaining. */ public Builder clearDesiredLocations() { desiredLocations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2202,7 +3178,7 @@ public Builder clearDesiredLocations() { * *
      * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * [zones](/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.
@@ -2210,6 +3186,9 @@ public Builder clearDesiredLocations() {
      * 
* * 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) { @@ -2239,6 +3218,8 @@ public Builder addDesiredLocationsBytes(com.google.protobuf.ByteString value) { * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ public boolean hasDesiredMasterAuthorizedNetworksConfig() { return desiredMasterAuthorizedNetworksConfigBuilder_ != null @@ -2254,6 +3235,8 @@ public boolean hasDesiredMasterAuthorizedNetworksConfig() { * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return The desiredMasterAuthorizedNetworksConfig. */ public com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig() { @@ -2430,123 +3413,1266 @@ public Builder clearDesiredMasterAuthorizedNetworksConfig() { return desiredMasterAuthorizedNetworksConfigBuilder_; } - private java.lang.Object desiredMasterVersion_ = ""; + 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_; /** * * *
-     * 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
+     * Cluster-level autoscaling configuration.
      * 
* - * string desired_master_version = 100; + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; + * + * @return Whether the desiredClusterAutoscaling field is set. */ - 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; + 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 (java.lang.String) ref; + return desiredClusterAutoscalingBuilder_.getMessage(); } } /** * * *
-     * 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
+     * Cluster-level autoscaling configuration.
      * 
* - * string desired_master_version = 100; + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; */ - 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; + public Builder setDesiredClusterAutoscaling(com.google.container.v1.ClusterAutoscaling value) { + if (desiredClusterAutoscalingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + desiredClusterAutoscaling_ = value; + onChanged(); } else { - return (com.google.protobuf.ByteString) ref; + desiredClusterAutoscalingBuilder_.setMessage(value); } + + 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
+     * Cluster-level autoscaling configuration.
      * 
* - * string desired_master_version = 100; + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; */ - public Builder setDesiredMasterVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setDesiredClusterAutoscaling( + com.google.container.v1.ClusterAutoscaling.Builder builderForValue) { + if (desiredClusterAutoscalingBuilder_ == null) { + desiredClusterAutoscaling_ = builderForValue.build(); + onChanged(); + } else { + desiredClusterAutoscalingBuilder_.setMessage(builderForValue.build()); } - 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
+     * Cluster-level autoscaling configuration.
      * 
* - * string desired_master_version = 100; + * .google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15; */ - public Builder clearDesiredMasterVersion() { + 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); + } - 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
+     * Cluster-level autoscaling configuration.
      * 
* - * string desired_master_version = 100; + * .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 Google Cloud Logging
+     * service with Kubernetes-native resource model
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * 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 Google Cloud Logging
+     * service with Kubernetes-native resource model
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * 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 Google Cloud Logging
+     * service with Kubernetes-native resource model
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * 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 Google Cloud Logging
+     * service with Kubernetes-native resource model
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * 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 Google Cloud Logging
+     * service with Kubernetes-native resource model
+     * * "logging.googleapis.com" - the Google Cloud Logging service
+     * * "none" - no logs will be exported from the cluster
+     * 
+ * + * 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.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 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java index 088a27fb..3442f66e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ClusterUpdateOrBuilder.java @@ -39,6 +39,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_node_version = 4; + * + * @return The desiredNodeVersion. */ java.lang.String getDesiredNodeVersion(); /** @@ -57,6 +59,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_node_version = 4; + * + * @return The bytes for desiredNodeVersion. */ com.google.protobuf.ByteString getDesiredNodeVersionBytes(); @@ -66,11 +70,15 @@ public interface ClusterUpdateOrBuilder *
    * The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* * string desired_monitoring_service = 5; + * + * @return The desiredMonitoringService. */ java.lang.String getDesiredMonitoringService(); /** @@ -79,11 +87,15 @@ public interface ClusterUpdateOrBuilder *
    * The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* * string desired_monitoring_service = 5; + * + * @return The bytes for desiredMonitoringService. */ com.google.protobuf.ByteString getDesiredMonitoringServiceBytes(); @@ -95,6 +107,8 @@ public interface ClusterUpdateOrBuilder * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return Whether the desiredAddonsConfig field is set. */ boolean hasDesiredAddonsConfig(); /** @@ -105,6 +119,8 @@ public interface ClusterUpdateOrBuilder * * * .google.container.v1.AddonsConfig desired_addons_config = 6; + * + * @return The desiredAddonsConfig. */ com.google.container.v1.AddonsConfig getDesiredAddonsConfig(); /** @@ -129,6 +145,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_node_pool_id = 7; + * + * @return The desiredNodePoolId. */ java.lang.String getDesiredNodePoolId(); /** @@ -142,6 +160,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_node_pool_id = 7; + * + * @return The bytes for desiredNodePoolId. */ com.google.protobuf.ByteString getDesiredNodePoolIdBytes(); @@ -154,6 +174,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_image_type = 8; + * + * @return The desiredImageType. */ java.lang.String getDesiredImageType(); /** @@ -165,9 +187,46 @@ public interface ClusterUpdateOrBuilder * * * 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(); + /** * * @@ -179,6 +238,8 @@ public interface ClusterUpdateOrBuilder * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return Whether the desiredNodePoolAutoscaling field is set. */ boolean hasDesiredNodePoolAutoscaling(); /** @@ -192,6 +253,8 @@ public interface ClusterUpdateOrBuilder * * * .google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9; + * + * @return The desiredNodePoolAutoscaling. */ com.google.container.v1.NodePoolAutoscaling getDesiredNodePoolAutoscaling(); /** @@ -213,7 +276,7 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -221,6 +284,8 @@ public interface ClusterUpdateOrBuilder
    * 
* * repeated string desired_locations = 10; + * + * @return A list containing the desiredLocations. */ java.util.List getDesiredLocationsList(); /** @@ -228,7 +293,7 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -236,6 +301,8 @@ public interface ClusterUpdateOrBuilder
    * 
* * repeated string desired_locations = 10; + * + * @return The count of desiredLocations. */ int getDesiredLocationsCount(); /** @@ -243,7 +310,7 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -251,6 +318,9 @@ public interface ClusterUpdateOrBuilder
    * 
* * 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); /** @@ -258,7 +328,7 @@ public interface ClusterUpdateOrBuilder * *
    * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * [zones](/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.
@@ -266,6 +336,9 @@ public interface ClusterUpdateOrBuilder
    * 
* * 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); @@ -279,6 +352,8 @@ public interface ClusterUpdateOrBuilder * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return Whether the desiredMasterAuthorizedNetworksConfig field is set. */ boolean hasDesiredMasterAuthorizedNetworksConfig(); /** @@ -291,6 +366,8 @@ public interface ClusterUpdateOrBuilder * * .google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; * + * + * @return The desiredMasterAuthorizedNetworksConfig. */ com.google.container.v1.MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig(); /** @@ -307,6 +384,225 @@ public interface ClusterUpdateOrBuilder 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 Google Cloud Logging
+   * service with Kubernetes-native resource model
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * 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 Google Cloud Logging
+   * service with Kubernetes-native resource model
+   * * "logging.googleapis.com" - the Google Cloud Logging service
+   * * "none" - no logs will be exported from the cluster
+   * 
+ * + * 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 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(); + /** * * @@ -322,6 +618,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_master_version = 100; + * + * @return The desiredMasterVersion. */ java.lang.String getDesiredMasterVersion(); /** @@ -339,6 +637,8 @@ public interface ClusterUpdateOrBuilder * * * string desired_master_version = 100; + * + * @return The bytes for desiredMasterVersion. */ com.google.protobuf.ByteString getDesiredMasterVersionBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java index eef9bad5..de0752b7 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequest.java @@ -44,6 +44,12 @@ private CompleteIPRotationRequest() { 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; @@ -57,7 +63,6 @@ private CompleteIPRotationRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,13 +196,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -209,13 +222,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -236,11 +251,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -258,11 +276,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -288,6 +309,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -309,6 +332,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -693,12 +718,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -716,12 +744,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -739,12 +770,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -760,12 +795,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -778,12 +816,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -802,13 +844,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -826,13 +870,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -850,13 +896,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -872,13 +921,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -891,13 +942,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -916,11 +970,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -938,11 +995,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -960,11 +1020,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -980,11 +1044,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -997,11 +1064,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1025,6 +1096,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1046,6 +1119,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1067,6 +1142,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1086,6 +1164,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1102,6 +1182,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java index 58123b50..3338e0a8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CompleteIPRotationRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface CompleteIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -113,6 +129,8 @@ public interface CompleteIPRotationRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -124,6 +142,8 @@ public interface CompleteIPRotationRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java index 86fb3e18..0f6f6fd3 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequest.java @@ -43,6 +43,12 @@ private CreateClusterRequest() { 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; @@ -56,7 +62,6 @@ private CreateClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -143,12 +148,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -166,12 +174,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -192,13 +203,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -216,13 +229,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -243,11 +258,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. */ public boolean hasCluster() { return cluster_ != null; @@ -256,11 +274,14 @@ public boolean hasCluster() { * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. */ public com.google.container.v1.Cluster getCluster() { return cluster_ == null ? com.google.container.v1.Cluster.getDefaultInstance() : cluster_; @@ -269,11 +290,12 @@ public com.google.container.v1.Cluster getCluster() { * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { return getCluster(); @@ -290,6 +312,8 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -311,6 +335,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -705,12 +731,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -728,12 +757,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -751,12 +783,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -772,12 +808,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -790,12 +829,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -814,13 +857,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -838,13 +883,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -862,13 +909,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -884,13 +934,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -903,13 +955,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -933,11 +988,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .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; @@ -946,11 +1004,14 @@ public boolean hasCluster() { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. */ public com.google.container.v1.Cluster getCluster() { if (clusterBuilder_ == null) { @@ -963,11 +1024,12 @@ public com.google.container.v1.Cluster getCluster() { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCluster(com.google.container.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -986,11 +1048,12 @@ public Builder setCluster(com.google.container.v1.Cluster value) { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { @@ -1006,11 +1069,12 @@ public Builder setCluster(com.google.container.v1.Cluster.Builder builderForValu * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeCluster(com.google.container.v1.Cluster value) { if (clusterBuilder_ == null) { @@ -1031,11 +1095,12 @@ public Builder mergeCluster(com.google.container.v1.Cluster value) { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearCluster() { if (clusterBuilder_ == null) { @@ -1052,11 +1117,12 @@ public Builder clearCluster() { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.Cluster.Builder getClusterBuilder() { @@ -1067,11 +1133,12 @@ public com.google.container.v1.Cluster.Builder getClusterBuilder() { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { if (clusterBuilder_ != null) { @@ -1084,11 +1151,12 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { * * *
-     * A [cluster
+     * Required. A [cluster
      * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
      * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.Cluster, @@ -1117,6 +1185,8 @@ public com.google.container.v1.ClusterOrBuilder getClusterOrBuilder() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1138,6 +1208,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1159,6 +1231,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1178,6 +1253,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 5; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1194,6 +1271,9 @@ public Builder clearParent() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java index 98fd0436..b27c52b1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateClusterRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface CreateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,33 +93,40 @@ public interface CreateClusterRequestOrBuilder * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the cluster field is set. */ boolean hasCluster(); /** * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The cluster. */ com.google.container.v1.Cluster getCluster(); /** * * *
-   * A [cluster
+   * Required. A [cluster
    * resource](/container-engine/reference/rest/v1/projects.zones.clusters)
    * 
* - * .google.container.v1.Cluster cluster = 3; + * .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.ClusterOrBuilder getClusterOrBuilder(); @@ -122,6 +139,8 @@ public interface CreateClusterRequestOrBuilder * * * string parent = 5; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -133,6 +152,8 @@ public interface CreateClusterRequestOrBuilder * * * string parent = 5; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java index 52734e3d..4b5dc82d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequest.java @@ -44,6 +44,12 @@ private CreateNodePoolRequest() { 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; @@ -57,7 +63,6 @@ private CreateNodePoolRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -151,12 +156,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -174,12 +182,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -200,13 +211,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -224,13 +237,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -251,11 +266,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -273,11 +291,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -298,10 +319,13 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. */ public boolean hasNodePool() { return nodePool_ != null; @@ -310,10 +334,13 @@ public boolean hasNodePool() { * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. */ public com.google.container.v1.NodePool getNodePool() { return nodePool_ == null ? com.google.container.v1.NodePool.getDefaultInstance() : nodePool_; @@ -322,10 +349,11 @@ public com.google.container.v1.NodePool getNodePool() { * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { return getNodePool(); @@ -343,6 +371,8 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { * * * string parent = 6; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -365,6 +395,8 @@ public java.lang.String getParent() { * * * string parent = 6; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -775,12 +807,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -798,12 +833,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -821,12 +859,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -842,12 +884,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -860,12 +905,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -884,13 +933,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -908,13 +959,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -932,13 +985,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -954,13 +1010,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -973,13 +1031,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -998,11 +1059,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1020,11 +1084,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1042,11 +1109,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1062,11 +1133,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1079,11 +1153,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1107,10 +1185,13 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .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; @@ -1119,10 +1200,13 @@ public boolean hasNodePool() { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .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) { @@ -1137,10 +1221,11 @@ public com.google.container.v1.NodePool getNodePool() { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNodePool(com.google.container.v1.NodePool value) { if (nodePoolBuilder_ == null) { @@ -1159,10 +1244,11 @@ public Builder setNodePool(com.google.container.v1.NodePool value) { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .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) { @@ -1178,10 +1264,11 @@ public Builder setNodePool(com.google.container.v1.NodePool.Builder builderForVa * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNodePool(com.google.container.v1.NodePool value) { if (nodePoolBuilder_ == null) { @@ -1204,10 +1291,11 @@ public Builder mergeNodePool(com.google.container.v1.NodePool value) { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNodePool() { if (nodePoolBuilder_ == null) { @@ -1224,10 +1312,11 @@ public Builder clearNodePool() { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { @@ -1238,10 +1327,11 @@ public com.google.container.v1.NodePool.Builder getNodePoolBuilder() { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { if (nodePoolBuilder_ != null) { @@ -1256,10 +1346,11 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { * * *
-     * The node pool to create.
+     * Required. The node pool to create.
      * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodePool, @@ -1289,6 +1380,8 @@ public com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder() { * * * string parent = 6; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1311,6 +1404,8 @@ public java.lang.String getParent() { * * * string parent = 6; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1333,6 +1428,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 6; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1353,6 +1451,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 6; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1370,6 +1470,9 @@ public Builder clearParent() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java index 5ff2dbb4..d90dad6a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/CreateNodePoolRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,30 +124,37 @@ public interface CreateNodePoolRequestOrBuilder * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the nodePool field is set. */ boolean hasNodePool(); /** * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePool. */ com.google.container.v1.NodePool getNodePool(); /** * * *
-   * The node pool to create.
+   * Required. The node pool to create.
    * 
* - * .google.container.v1.NodePool node_pool = 4; + * .google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.NodePoolOrBuilder getNodePoolOrBuilder(); @@ -145,6 +168,8 @@ public interface CreateNodePoolRequestOrBuilder * * * string parent = 6; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -157,6 +182,8 @@ public interface CreateNodePoolRequestOrBuilder * * * string parent = 6; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java index 85e2731d..cb391d82 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindow.java @@ -42,6 +42,12 @@ private DailyMaintenanceWindow() { 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; @@ -55,7 +61,6 @@ private DailyMaintenanceWindow( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -122,10 +127,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
    * 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.
+   * 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_; @@ -144,10 +151,12 @@ public 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.
+   * 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_; @@ -174,6 +183,8 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * * string duration = 3; + * + * @return The duration. */ public java.lang.String getDuration() { java.lang.Object ref = duration_; @@ -197,6 +208,8 @@ public java.lang.String getDuration() { * * * string duration = 3; + * + * @return The bytes for duration. */ public com.google.protobuf.ByteString getDurationBytes() { java.lang.Object ref = duration_; @@ -549,10 +562,12 @@ public Builder mergeFrom( *
      * 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.
+     * 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_; @@ -571,10 +586,12 @@ public 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.
+     * 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_; @@ -593,10 +610,13 @@ public com.google.protobuf.ByteString getStartTimeBytes() { *
      * 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.
+     * 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) { @@ -613,10 +633,12 @@ public Builder setStartTime(java.lang.String value) { *
      * 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.
+     * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
      * 
* * string start_time = 2; + * + * @return This builder for chaining. */ public Builder clearStartTime() { @@ -630,10 +652,13 @@ public Builder clearStartTime() { *
      * 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.
+     * 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) { @@ -658,6 +683,8 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * * string duration = 3; + * + * @return The duration. */ public java.lang.String getDuration() { java.lang.Object ref = duration_; @@ -681,6 +708,8 @@ public java.lang.String getDuration() { * * * string duration = 3; + * + * @return The bytes for duration. */ public com.google.protobuf.ByteString getDurationBytes() { java.lang.Object ref = duration_; @@ -704,6 +733,9 @@ public com.google.protobuf.ByteString getDurationBytes() { * * * string duration = 3; + * + * @param value The duration to set. + * @return This builder for chaining. */ public Builder setDuration(java.lang.String value) { if (value == null) { @@ -725,6 +757,8 @@ public Builder setDuration(java.lang.String value) { * * * string duration = 3; + * + * @return This builder for chaining. */ public Builder clearDuration() { @@ -743,6 +777,9 @@ public Builder clearDuration() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java index 0ff01bc8..81797b40 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DailyMaintenanceWindowOrBuilder.java @@ -29,10 +29,12 @@ public interface DailyMaintenanceWindowOrBuilder *
    * 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.
+   * format "HH:MM", where HH : [00-23] and MM : [00-59] GMT.
    * 
* * string start_time = 2; + * + * @return The startTime. */ java.lang.String getStartTime(); /** @@ -41,10 +43,12 @@ public interface DailyMaintenanceWindowOrBuilder *
    * 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.
+   * 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(); @@ -59,6 +63,8 @@ public interface DailyMaintenanceWindowOrBuilder * * * string duration = 3; + * + * @return The duration. */ java.lang.String getDuration(); /** @@ -72,6 +78,8 @@ public interface DailyMaintenanceWindowOrBuilder * * * string duration = 3; + * + * @return The bytes for duration. */ com.google.protobuf.ByteString getDurationBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java new file mode 100644 index 00000000..dce2eafb --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryption.java @@ -0,0 +1,941 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private DatabaseEncryption( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + keyName_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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 GCE 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 GCE 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() { + return getDescriptor().getValues().get(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. + */ + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Denotes the state of etcd encryption.
+   * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * + * @return The state. + */ + 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. + */ + 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. + */ + public com.google.protobuf.ByteString getKeyNameBytes() { + java.lang.Object ref = keyName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + keyName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getKeyNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyName_); + } + if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + output.writeEnum(2, state_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyName_); + } + if (state_ != com.google.container.v1.DatabaseEncryption.State.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, state_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + KEY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getKeyName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + state_ = 0; + + keyName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.DatabaseEncryption parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.DatabaseEncryption) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Denotes the state of etcd encryption.
+     * 
+ * + * .google.container.v1.DatabaseEncryption.State state = 2; + * + * @return The enum numeric value on the wire for state. + */ + 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. + */ + 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 { + return new DatabaseEncryption(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.DatabaseEncryption getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java new file mode 100644 index 00000000..cb72269a --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DatabaseEncryptionOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java index ee92fa9d..298f3593 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequest.java @@ -44,6 +44,12 @@ private DeleteClusterRequest() { 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; @@ -57,7 +63,6 @@ private DeleteClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,13 +196,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -209,13 +222,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -236,11 +251,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to delete.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -258,11 +276,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to delete.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -288,6 +309,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * string name = 4; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -309,6 +332,8 @@ public java.lang.String getName() { * * * string name = 4; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -691,12 +716,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -714,12 +742,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -737,12 +768,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -758,12 +793,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -776,12 +814,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -800,13 +842,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -824,13 +868,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -848,13 +894,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -870,13 +919,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -889,13 +940,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -914,11 +968,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to delete.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -936,11 +993,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to delete.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -958,11 +1018,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to delete.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -978,11 +1042,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to delete.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -995,11 +1062,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to delete.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1023,6 +1094,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * string name = 4; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1044,6 +1117,8 @@ public java.lang.String getName() { * * * string name = 4; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1065,6 +1140,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 4; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1084,6 +1162,8 @@ public Builder setName(java.lang.String value) { * * * string name = 4; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1100,6 +1180,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java index 18f35c5a..7695e948 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteClusterRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to delete.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface DeleteClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to delete.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -113,6 +129,8 @@ public interface DeleteClusterRequestOrBuilder * * * string name = 4; + * + * @return The name. */ java.lang.String getName(); /** @@ -124,6 +142,8 @@ public interface DeleteClusterRequestOrBuilder * * * string name = 4; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java index 4d8f9877..04055247 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequest.java @@ -45,6 +45,12 @@ private DeleteNodePoolRequest() { 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; @@ -58,7 +64,6 @@ private DeleteNodePoolRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,12 +149,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -167,12 +175,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -193,13 +204,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -217,13 +230,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -244,11 +259,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -266,11 +284,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -291,11 +312,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to delete.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -313,11 +337,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to delete.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -344,6 +371,8 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -366,6 +395,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -764,12 +795,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -787,12 +821,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -810,12 +847,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -831,12 +872,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -849,12 +893,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -873,13 +921,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -897,13 +947,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -921,13 +973,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -943,13 +998,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -962,13 +1019,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -987,11 +1047,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1009,11 +1072,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1031,11 +1097,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1051,11 +1121,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1068,11 +1141,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1091,11 +1168,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to delete.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1113,11 +1193,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to delete.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1135,11 +1218,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to delete.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1155,11 +1242,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to delete.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1172,11 +1262,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to delete.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1201,6 +1295,8 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1223,6 +1319,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1245,6 +1343,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1265,6 +1366,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1282,6 +1385,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java index 28bdeb18..d4c4bf4b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/DeleteNodePoolRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to delete.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface DeleteNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to delete.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -139,6 +161,8 @@ public interface DeleteNodePoolRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -151,6 +175,8 @@ public interface DeleteNodePoolRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java index 7b121c1f..86efbfc0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequest.java @@ -44,6 +44,12 @@ private GetClusterRequest() { 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; @@ -57,7 +63,6 @@ private GetClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,13 +196,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -209,13 +222,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -236,11 +251,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to retrieve.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -258,11 +276,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to retrieve.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -288,6 +309,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -309,6 +332,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -691,12 +716,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -714,12 +742,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -737,12 +768,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -758,12 +793,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -776,12 +814,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -800,13 +842,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -824,13 +868,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -848,13 +894,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -870,13 +919,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -889,13 +940,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -914,11 +968,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to retrieve.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -936,11 +993,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to retrieve.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -958,11 +1018,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to retrieve.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -978,11 +1042,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to retrieve.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -995,11 +1062,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to retrieve.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1023,6 +1094,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1044,6 +1117,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1065,6 +1140,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1084,6 +1162,8 @@ public Builder setName(java.lang.String value) { * * * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1100,6 +1180,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java index 4b4550da..098244bd 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetClusterRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to retrieve.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface GetClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to retrieve.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -113,6 +129,8 @@ public interface GetClusterRequestOrBuilder * * * string name = 5; + * + * @return The name. */ java.lang.String getName(); /** @@ -124,6 +142,8 @@ public interface GetClusterRequestOrBuilder * * * string name = 5; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java index cead270f..88fe2420 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequest.java @@ -45,6 +45,12 @@ private GetNodePoolRequest() { 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; @@ -58,7 +64,6 @@ private GetNodePoolRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,12 +149,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -167,12 +175,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -193,13 +204,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -217,13 +230,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -244,11 +259,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -266,11 +284,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -291,11 +312,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -313,11 +337,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -344,6 +371,8 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -366,6 +395,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -764,12 +795,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -787,12 +821,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -810,12 +847,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -831,12 +872,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -849,12 +893,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -873,13 +921,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -897,13 +947,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -921,13 +973,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -943,13 +998,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -962,13 +1019,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -987,11 +1047,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1009,11 +1072,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1031,11 +1097,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1051,11 +1121,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1068,11 +1141,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1091,11 +1168,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1113,11 +1193,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1135,11 +1218,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1155,11 +1242,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1172,11 +1262,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1201,6 +1295,8 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1223,6 +1319,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1245,6 +1343,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1265,6 +1366,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1282,6 +1385,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java index d0e46d87..787dfdc1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetNodePoolRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface GetNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -139,6 +161,8 @@ public interface GetNodePoolRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -151,6 +175,8 @@ public interface GetNodePoolRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java index eb4c2ac6..a94b88b2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequest.java @@ -44,6 +44,12 @@ private GetOperationRequest() { 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; @@ -57,7 +63,6 @@ private GetOperationRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,13 +196,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -209,13 +222,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -236,11 +251,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated public java.lang.String getOperationId() { @@ -258,11 +276,14 @@ public java.lang.String getOperationId() { * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { @@ -288,6 +309,8 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -309,6 +332,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -691,12 +716,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -714,12 +742,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -737,12 +768,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -758,12 +793,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -776,12 +814,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -800,13 +842,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -824,13 +868,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -848,13 +894,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -870,13 +919,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -889,13 +940,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -914,11 +968,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated public java.lang.String getOperationId() { @@ -936,11 +993,14 @@ public java.lang.String getOperationId() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getOperationIdBytes() { @@ -958,11 +1018,15 @@ public com.google.protobuf.ByteString getOperationIdBytes() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operationId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOperationId(java.lang.String value) { @@ -978,11 +1042,14 @@ public Builder setOperationId(java.lang.String value) { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearOperationId() { @@ -995,11 +1062,15 @@ public Builder clearOperationId() { * * *
-     * Deprecated. The server-assigned `name` of the operation.
+     * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for operationId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { @@ -1023,6 +1094,8 @@ public Builder setOperationIdBytes(com.google.protobuf.ByteString value) { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1044,6 +1117,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1065,6 +1140,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1084,6 +1162,8 @@ public Builder setName(java.lang.String value) { * * * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1100,6 +1180,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java index b9857f35..5c37e6f1 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetOperationRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operationId. */ @java.lang.Deprecated java.lang.String getOperationId(); @@ -95,11 +108,14 @@ public interface GetOperationRequestOrBuilder * * *
-   * Deprecated. The server-assigned `name` of the operation.
+   * 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]; + * string operation_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for operationId. */ @java.lang.Deprecated com.google.protobuf.ByteString getOperationIdBytes(); @@ -113,6 +129,8 @@ public interface GetOperationRequestOrBuilder * * * string name = 5; + * + * @return The name. */ java.lang.String getName(); /** @@ -124,6 +142,8 @@ public interface GetOperationRequestOrBuilder * * * string name = 5; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java index cb58bc37..9a31c775 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequest.java @@ -43,6 +43,12 @@ private GetServerConfigRequest() { 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; @@ -56,7 +62,6 @@ private GetServerConfigRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,12 +133,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -151,12 +159,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -177,12 +188,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) to return operations for.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -200,12 +213,14 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) to return operations for.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -226,11 +241,13 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * The name (project and location) of the server config to get
-   * Specified in the format 'projects/*/locations/*'.
+   * 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_; @@ -247,11 +264,13 @@ public java.lang.String getName() { * * *
-   * The name (project and location) of the server config to get
-   * Specified in the format 'projects/*/locations/*'.
+   * 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_; @@ -618,12 +637,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -641,12 +663,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -664,12 +689,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -685,12 +714,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -703,12 +735,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -727,12 +763,14 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) to return operations for.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -750,12 +788,14 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) to return operations for.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -773,12 +813,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) to return operations for.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -794,12 +837,14 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) to return operations for.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -812,12 +857,15 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) to return operations for.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -836,11 +884,13 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * The name (project and location) of the server config to get
-     * Specified in the format 'projects/*/locations/*'.
+     * 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_; @@ -857,11 +907,13 @@ public java.lang.String getName() { * * *
-     * The name (project and location) of the server config to get
-     * Specified in the format 'projects/*/locations/*'.
+     * 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_; @@ -878,11 +930,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * The name (project and location) of the server config to get
-     * Specified in the format 'projects/*/locations/*'.
+     * 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) { @@ -897,11 +952,13 @@ public Builder setName(java.lang.String value) { * * *
-     * The name (project and location) of the server config to get
-     * Specified in the format 'projects/*/locations/*'.
+     * 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() { @@ -913,11 +970,14 @@ public Builder clearName() { * * *
-     * The name (project and location) of the server config to get
-     * Specified in the format 'projects/*/locations/*'.
+     * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java index 55820bed..eb0f4300 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/GetServerConfigRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface GetServerConfigRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface GetServerConfigRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,12 +60,14 @@ public interface GetServerConfigRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) to return operations for.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -67,12 +75,14 @@ public interface GetServerConfigRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) to return operations for.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -81,22 +91,26 @@ public interface GetServerConfigRequestOrBuilder * * *
-   * The name (project and location) of the server config to get
-   * Specified in the format 'projects/*/locations/*'.
+   * 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/*'.
+   * The name (project and location) of the server config to get,
+   * specified in the format 'projects/*/locations/*'.
    * 
* * string name = 4; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java index 5fcb2d28..831f5cfc 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscaling.java @@ -41,6 +41,12 @@ private HorizontalPodAutoscaling(com.google.protobuf.GeneratedMessageV3.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; @@ -54,7 +60,6 @@ private HorizontalPodAutoscaling( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -116,6 +121,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -450,6 +457,8 @@ public Builder mergeFrom( * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -464,6 +473,9 @@ public boolean getDisabled() { * * * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. */ public Builder setDisabled(boolean value) { @@ -481,6 +493,8 @@ public Builder setDisabled(boolean value) { * * * bool disabled = 1; + * + * @return This builder for chaining. */ public Builder clearDisabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java index ce28611c..cb70382d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HorizontalPodAutoscalingOrBuilder.java @@ -33,6 +33,8 @@ public interface HorizontalPodAutoscalingOrBuilder * * * bool disabled = 1; + * + * @return The disabled. */ boolean getDisabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java index 1a7ded3a..93cedad2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancing.java @@ -40,6 +40,12 @@ private HttpLoadBalancing(com.google.protobuf.GeneratedMessageV3.Builder buil 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; @@ -53,7 +59,6 @@ private HttpLoadBalancing( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -115,6 +120,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -447,6 +454,8 @@ public Builder mergeFrom( * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -461,6 +470,9 @@ public boolean getDisabled() { * * * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. */ public Builder setDisabled(boolean value) { @@ -478,6 +490,8 @@ public Builder setDisabled(boolean value) { * * * bool disabled = 1; + * + * @return This builder for chaining. */ public Builder clearDisabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java index 5f859bf9..412d8831 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/HttpLoadBalancingOrBuilder.java @@ -33,6 +33,8 @@ public interface HttpLoadBalancingOrBuilder * * * bool disabled = 1; + * + * @return The disabled. */ boolean getDisabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java index dbb42012..86d815a9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicy.java @@ -47,6 +47,13 @@ private IPAllocationPolicy() { clusterIpv4CidrBlock_ = ""; nodeIpv4CidrBlock_ = ""; servicesIpv4CidrBlock_ = ""; + tpuIpv4CidrBlock_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IPAllocationPolicy(); } @java.lang.Override @@ -62,7 +69,6 @@ private IPAllocationPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -146,6 +152,13 @@ private IPAllocationPolicy( servicesIpv4CidrBlock_ = s; break; } + case 106: + { + java.lang.String s = input.readStringRequireUtf8(); + + tpuIpv4CidrBlock_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -190,6 +203,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool use_ip_aliases = 1; + * + * @return The useIpAliases. */ public boolean getUseIpAliases() { return useIpAliases_; @@ -206,6 +221,8 @@ public boolean getUseIpAliases() { * * * bool create_subnetwork = 2; + * + * @return The createSubnetwork. */ public boolean getCreateSubnetwork() { return createSubnetwork_; @@ -223,6 +240,8 @@ public boolean getCreateSubnetwork() { * * * string subnetwork_name = 3; + * + * @return The subnetworkName. */ public java.lang.String getSubnetworkName() { java.lang.Object ref = subnetworkName_; @@ -245,6 +264,8 @@ public java.lang.String getSubnetworkName() { * * * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. */ public com.google.protobuf.ByteString getSubnetworkNameBytes() { java.lang.Object ref = subnetworkName_; @@ -268,6 +289,8 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { @@ -289,6 +312,8 @@ public java.lang.String getClusterIpv4Cidr() { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { @@ -313,6 +338,8 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { @@ -334,6 +361,8 @@ public java.lang.String getNodeIpv4Cidr() { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { @@ -358,6 +387,8 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { @@ -379,6 +410,8 @@ public java.lang.String getServicesIpv4Cidr() { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { @@ -408,6 +441,8 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. */ public java.lang.String getClusterSecondaryRangeName() { java.lang.Object ref = clusterSecondaryRangeName_; @@ -433,6 +468,8 @@ public java.lang.String getClusterSecondaryRangeName() { * * * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. */ public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { java.lang.Object ref = clusterSecondaryRangeName_; @@ -461,6 +498,8 @@ public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { * * * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. */ public java.lang.String getServicesSecondaryRangeName() { java.lang.Object ref = servicesSecondaryRangeName_; @@ -486,6 +525,8 @@ public java.lang.String getServicesSecondaryRangeName() { * * * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. */ public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { java.lang.Object ref = servicesSecondaryRangeName_; @@ -519,6 +560,8 @@ public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { * * * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. */ public java.lang.String getClusterIpv4CidrBlock() { java.lang.Object ref = clusterIpv4CidrBlock_; @@ -549,6 +592,8 @@ public java.lang.String getClusterIpv4CidrBlock() { * * * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. */ public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { java.lang.Object ref = clusterIpv4CidrBlock_; @@ -581,6 +626,8 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { * * * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. */ public java.lang.String getNodeIpv4CidrBlock() { java.lang.Object ref = nodeIpv4CidrBlock_; @@ -610,6 +657,8 @@ public java.lang.String getNodeIpv4CidrBlock() { * * * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. */ public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { java.lang.Object ref = nodeIpv4CidrBlock_; @@ -643,6 +692,8 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { * * * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. */ public java.lang.String getServicesIpv4CidrBlock() { java.lang.Object ref = servicesIpv4CidrBlock_; @@ -673,6 +724,8 @@ public java.lang.String getServicesIpv4CidrBlock() { * * * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. */ public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { java.lang.Object ref = servicesIpv4CidrBlock_; @@ -686,6 +739,73 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { } } + 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. + */ + 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. + */ + 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; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -733,6 +853,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getServicesIpv4CidrBlockBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, servicesIpv4CidrBlock_); } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, tpuIpv4CidrBlock_); + } unknownFields.writeTo(output); } @@ -777,6 +900,9 @@ public int getSerializedSize() { if (!getServicesIpv4CidrBlockBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, servicesIpv4CidrBlock_); } + if (!getTpuIpv4CidrBlockBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, tpuIpv4CidrBlock_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -805,6 +931,7 @@ public boolean equals(final java.lang.Object obj) { 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -838,6 +965,8 @@ public int hashCode() { 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 = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1005,6 +1134,8 @@ public Builder clear() { servicesIpv4CidrBlock_ = ""; + tpuIpv4CidrBlock_ = ""; + return this; } @@ -1043,6 +1174,7 @@ public com.google.container.v1.IPAllocationPolicy buildPartial() { result.clusterIpv4CidrBlock_ = clusterIpv4CidrBlock_; result.nodeIpv4CidrBlock_ = nodeIpv4CidrBlock_; result.servicesIpv4CidrBlock_ = servicesIpv4CidrBlock_; + result.tpuIpv4CidrBlock_ = tpuIpv4CidrBlock_; onBuilt(); return result; } @@ -1134,6 +1266,10 @@ public Builder mergeFrom(com.google.container.v1.IPAllocationPolicy other) { servicesIpv4CidrBlock_ = other.servicesIpv4CidrBlock_; onChanged(); } + if (!other.getTpuIpv4CidrBlock().isEmpty()) { + tpuIpv4CidrBlock_ = other.tpuIpv4CidrBlock_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1172,6 +1308,8 @@ public Builder mergeFrom( * * * bool use_ip_aliases = 1; + * + * @return The useIpAliases. */ public boolean getUseIpAliases() { return useIpAliases_; @@ -1184,6 +1322,9 @@ public boolean getUseIpAliases() { * * * bool use_ip_aliases = 1; + * + * @param value The useIpAliases to set. + * @return This builder for chaining. */ public Builder setUseIpAliases(boolean value) { @@ -1199,6 +1340,8 @@ public Builder setUseIpAliases(boolean value) { * * * bool use_ip_aliases = 1; + * + * @return This builder for chaining. */ public Builder clearUseIpAliases() { @@ -1217,6 +1360,8 @@ public Builder clearUseIpAliases() { * * * bool create_subnetwork = 2; + * + * @return The createSubnetwork. */ public boolean getCreateSubnetwork() { return createSubnetwork_; @@ -1230,6 +1375,9 @@ public boolean getCreateSubnetwork() { * * * bool create_subnetwork = 2; + * + * @param value The createSubnetwork to set. + * @return This builder for chaining. */ public Builder setCreateSubnetwork(boolean value) { @@ -1246,6 +1394,8 @@ public Builder setCreateSubnetwork(boolean value) { * * * bool create_subnetwork = 2; + * + * @return This builder for chaining. */ public Builder clearCreateSubnetwork() { @@ -1265,6 +1415,8 @@ public Builder clearCreateSubnetwork() { * * * string subnetwork_name = 3; + * + * @return The subnetworkName. */ public java.lang.String getSubnetworkName() { java.lang.Object ref = subnetworkName_; @@ -1287,6 +1439,8 @@ public java.lang.String getSubnetworkName() { * * * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. */ public com.google.protobuf.ByteString getSubnetworkNameBytes() { java.lang.Object ref = subnetworkName_; @@ -1309,6 +1463,9 @@ public com.google.protobuf.ByteString getSubnetworkNameBytes() { * * * 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) { @@ -1329,6 +1486,8 @@ public Builder setSubnetworkName(java.lang.String value) { * * * string subnetwork_name = 3; + * + * @return This builder for chaining. */ public Builder clearSubnetworkName() { @@ -1346,6 +1505,9 @@ public Builder clearSubnetworkName() { * * * 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) { @@ -1367,6 +1529,8 @@ public Builder setSubnetworkNameBytes(com.google.protobuf.ByteString value) { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getClusterIpv4Cidr() { @@ -1388,6 +1552,8 @@ public java.lang.String getClusterIpv4Cidr() { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { @@ -1409,6 +1575,9 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBytes() { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @param value The clusterIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIpv4Cidr(java.lang.String value) { @@ -1428,6 +1597,8 @@ public Builder setClusterIpv4Cidr(java.lang.String value) { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterIpv4Cidr() { @@ -1444,6 +1615,9 @@ public Builder clearClusterIpv4Cidr() { * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @param value The bytes for clusterIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { @@ -1466,6 +1640,8 @@ public Builder setClusterIpv4CidrBytes(com.google.protobuf.ByteString value) { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getNodeIpv4Cidr() { @@ -1487,6 +1663,8 @@ public java.lang.String getNodeIpv4Cidr() { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { @@ -1508,6 +1686,9 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBytes() { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @param value The nodeIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodeIpv4Cidr(java.lang.String value) { @@ -1527,6 +1708,8 @@ public Builder setNodeIpv4Cidr(java.lang.String value) { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodeIpv4Cidr() { @@ -1543,6 +1726,9 @@ public Builder clearNodeIpv4Cidr() { * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @param value The bytes for nodeIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { @@ -1565,6 +1751,8 @@ public Builder setNodeIpv4CidrBytes(com.google.protobuf.ByteString value) { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. */ @java.lang.Deprecated public java.lang.String getServicesIpv4Cidr() { @@ -1586,6 +1774,8 @@ public java.lang.String getServicesIpv4Cidr() { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { @@ -1607,6 +1797,9 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBytes() { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @param value The servicesIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setServicesIpv4Cidr(java.lang.String value) { @@ -1626,6 +1819,8 @@ public Builder setServicesIpv4Cidr(java.lang.String value) { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearServicesIpv4Cidr() { @@ -1642,6 +1837,9 @@ public Builder clearServicesIpv4Cidr() { * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @param value The bytes for servicesIpv4Cidr to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { @@ -1669,6 +1867,8 @@ public Builder setServicesIpv4CidrBytes(com.google.protobuf.ByteString value) { * * * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. */ public java.lang.String getClusterSecondaryRangeName() { java.lang.Object ref = clusterSecondaryRangeName_; @@ -1694,6 +1894,8 @@ public java.lang.String getClusterSecondaryRangeName() { * * * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. */ public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { java.lang.Object ref = clusterSecondaryRangeName_; @@ -1719,6 +1921,9 @@ public com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes() { * * * 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) { @@ -1742,6 +1947,8 @@ public Builder setClusterSecondaryRangeName(java.lang.String value) { * * * string cluster_secondary_range_name = 7; + * + * @return This builder for chaining. */ public Builder clearClusterSecondaryRangeName() { @@ -1762,6 +1969,9 @@ public Builder clearClusterSecondaryRangeName() { * * * 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) { @@ -1788,6 +1998,8 @@ public Builder setClusterSecondaryRangeNameBytes(com.google.protobuf.ByteString * * * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. */ public java.lang.String getServicesSecondaryRangeName() { java.lang.Object ref = servicesSecondaryRangeName_; @@ -1813,6 +2025,8 @@ public java.lang.String getServicesSecondaryRangeName() { * * * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. */ public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { java.lang.Object ref = servicesSecondaryRangeName_; @@ -1838,6 +2052,9 @@ public com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes() { * * * 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) { @@ -1861,6 +2078,8 @@ public Builder setServicesSecondaryRangeName(java.lang.String value) { * * * string services_secondary_range_name = 8; + * + * @return This builder for chaining. */ public Builder clearServicesSecondaryRangeName() { @@ -1881,6 +2100,9 @@ public Builder clearServicesSecondaryRangeName() { * * * 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) { @@ -1912,6 +2134,8 @@ public Builder setServicesSecondaryRangeNameBytes(com.google.protobuf.ByteString * * * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. */ public java.lang.String getClusterIpv4CidrBlock() { java.lang.Object ref = clusterIpv4CidrBlock_; @@ -1942,6 +2166,8 @@ public java.lang.String getClusterIpv4CidrBlock() { * * * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. */ public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { java.lang.Object ref = clusterIpv4CidrBlock_; @@ -1972,6 +2198,9 @@ public com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes() { * * * 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) { @@ -2000,6 +2229,8 @@ public Builder setClusterIpv4CidrBlock(java.lang.String value) { * * * string cluster_ipv4_cidr_block = 9; + * + * @return This builder for chaining. */ public Builder clearClusterIpv4CidrBlock() { @@ -2025,6 +2256,9 @@ public Builder clearClusterIpv4CidrBlock() { * * * 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) { @@ -2055,6 +2289,8 @@ public Builder setClusterIpv4CidrBlockBytes(com.google.protobuf.ByteString value * * * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. */ public java.lang.String getNodeIpv4CidrBlock() { java.lang.Object ref = nodeIpv4CidrBlock_; @@ -2084,6 +2320,8 @@ public java.lang.String getNodeIpv4CidrBlock() { * * * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. */ public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { java.lang.Object ref = nodeIpv4CidrBlock_; @@ -2113,6 +2351,9 @@ public com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes() { * * * 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) { @@ -2140,6 +2381,8 @@ public Builder setNodeIpv4CidrBlock(java.lang.String value) { * * * string node_ipv4_cidr_block = 10; + * + * @return This builder for chaining. */ public Builder clearNodeIpv4CidrBlock() { @@ -2164,6 +2407,9 @@ public Builder clearNodeIpv4CidrBlock() { * * * 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) { @@ -2195,6 +2441,8 @@ public Builder setNodeIpv4CidrBlockBytes(com.google.protobuf.ByteString value) { * * * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. */ public java.lang.String getServicesIpv4CidrBlock() { java.lang.Object ref = servicesIpv4CidrBlock_; @@ -2225,6 +2473,8 @@ public java.lang.String getServicesIpv4CidrBlock() { * * * string services_ipv4_cidr_block = 11; + * + * @return The bytes for servicesIpv4CidrBlock. */ public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { java.lang.Object ref = servicesIpv4CidrBlock_; @@ -2255,6 +2505,9 @@ public com.google.protobuf.ByteString getServicesIpv4CidrBlockBytes() { * * * 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) { @@ -2283,6 +2536,8 @@ public Builder setServicesIpv4CidrBlock(java.lang.String value) { * * * string services_ipv4_cidr_block = 11; + * + * @return This builder for chaining. */ public Builder clearServicesIpv4CidrBlock() { @@ -2308,6 +2563,9 @@ public Builder clearServicesIpv4CidrBlock() { * * * 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) { @@ -2320,6 +2578,162 @@ public Builder setServicesIpv4CidrBlockBytes(com.google.protobuf.ByteString valu 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; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java index a551b757..f3cfff7d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IPAllocationPolicyOrBuilder.java @@ -31,6 +31,8 @@ public interface IPAllocationPolicyOrBuilder * * * bool use_ip_aliases = 1; + * + * @return The useIpAliases. */ boolean getUseIpAliases(); @@ -43,6 +45,8 @@ public interface IPAllocationPolicyOrBuilder * * * bool create_subnetwork = 2; + * + * @return The createSubnetwork. */ boolean getCreateSubnetwork(); @@ -56,6 +60,8 @@ public interface IPAllocationPolicyOrBuilder * * * string subnetwork_name = 3; + * + * @return The subnetworkName. */ java.lang.String getSubnetworkName(); /** @@ -68,6 +74,8 @@ public interface IPAllocationPolicyOrBuilder * * * string subnetwork_name = 3; + * + * @return The bytes for subnetworkName. */ com.google.protobuf.ByteString getSubnetworkNameBytes(); @@ -79,6 +87,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The clusterIpv4Cidr. */ @java.lang.Deprecated java.lang.String getClusterIpv4Cidr(); @@ -90,6 +100,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_ipv4_cidr = 4 [deprecated = true]; + * + * @return The bytes for clusterIpv4Cidr. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIpv4CidrBytes(); @@ -102,6 +114,8 @@ public interface IPAllocationPolicyOrBuilder * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The nodeIpv4Cidr. */ @java.lang.Deprecated java.lang.String getNodeIpv4Cidr(); @@ -113,6 +127,8 @@ public interface IPAllocationPolicyOrBuilder * * * string node_ipv4_cidr = 5 [deprecated = true]; + * + * @return The bytes for nodeIpv4Cidr. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodeIpv4CidrBytes(); @@ -125,6 +141,8 @@ public interface IPAllocationPolicyOrBuilder * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The servicesIpv4Cidr. */ @java.lang.Deprecated java.lang.String getServicesIpv4Cidr(); @@ -136,6 +154,8 @@ public interface IPAllocationPolicyOrBuilder * * * string services_ipv4_cidr = 6 [deprecated = true]; + * + * @return The bytes for servicesIpv4Cidr. */ @java.lang.Deprecated com.google.protobuf.ByteString getServicesIpv4CidrBytes(); @@ -153,6 +173,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_secondary_range_name = 7; + * + * @return The clusterSecondaryRangeName. */ java.lang.String getClusterSecondaryRangeName(); /** @@ -168,6 +190,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_secondary_range_name = 7; + * + * @return The bytes for clusterSecondaryRangeName. */ com.google.protobuf.ByteString getClusterSecondaryRangeNameBytes(); @@ -184,6 +208,8 @@ public interface IPAllocationPolicyOrBuilder * * * string services_secondary_range_name = 8; + * + * @return The servicesSecondaryRangeName. */ java.lang.String getServicesSecondaryRangeName(); /** @@ -199,6 +225,8 @@ public interface IPAllocationPolicyOrBuilder * * * string services_secondary_range_name = 8; + * + * @return The bytes for servicesSecondaryRangeName. */ com.google.protobuf.ByteString getServicesSecondaryRangeNameBytes(); @@ -220,6 +248,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_ipv4_cidr_block = 9; + * + * @return The clusterIpv4CidrBlock. */ java.lang.String getClusterIpv4CidrBlock(); /** @@ -240,6 +270,8 @@ public interface IPAllocationPolicyOrBuilder * * * string cluster_ipv4_cidr_block = 9; + * + * @return The bytes for clusterIpv4CidrBlock. */ com.google.protobuf.ByteString getClusterIpv4CidrBlockBytes(); @@ -260,6 +292,8 @@ public interface IPAllocationPolicyOrBuilder * * * string node_ipv4_cidr_block = 10; + * + * @return The nodeIpv4CidrBlock. */ java.lang.String getNodeIpv4CidrBlock(); /** @@ -279,6 +313,8 @@ public interface IPAllocationPolicyOrBuilder * * * string node_ipv4_cidr_block = 10; + * + * @return The bytes for nodeIpv4CidrBlock. */ com.google.protobuf.ByteString getNodeIpv4CidrBlockBytes(); @@ -300,6 +336,8 @@ public interface IPAllocationPolicyOrBuilder * * * string services_ipv4_cidr_block = 11; + * + * @return The servicesIpv4CidrBlock. */ java.lang.String getServicesIpv4CidrBlock(); /** @@ -320,6 +358,53 @@ public interface IPAllocationPolicyOrBuilder * * * 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(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java new file mode 100644 index 00000000..adf7560c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfig.java @@ -0,0 +1,546 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private IntraNodeVisibilityConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.IntraNodeVisibilityConfig)) { + return super.equals(obj); + } + com.google.container.v1.IntraNodeVisibilityConfig other = + (com.google.container.v1.IntraNodeVisibilityConfig) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.IntraNodeVisibilityConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.IntraNodeVisibilityConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enables intra node visibility for this cluster.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + 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 { + return new IntraNodeVisibilityConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.IntraNodeVisibilityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java new file mode 100644 index 00000000..5b6f56e4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/IntraNodeVisibilityConfigOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java index 31f9b400..c533dc77 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboard.java @@ -39,6 +39,12 @@ private KubernetesDashboard(com.google.protobuf.GeneratedMessageV3.Builder bu 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; @@ -52,7 +58,6 @@ private KubernetesDashboard( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -112,6 +117,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -441,6 +448,8 @@ public Builder mergeFrom( * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -453,6 +462,9 @@ public boolean getDisabled() { * * * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. */ public Builder setDisabled(boolean value) { @@ -468,6 +480,8 @@ public Builder setDisabled(boolean value) { * * * bool disabled = 1; + * + * @return This builder for chaining. */ public Builder clearDisabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java index c87280a1..335bcdc8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/KubernetesDashboardOrBuilder.java @@ -31,6 +31,8 @@ public interface KubernetesDashboardOrBuilder * * * bool disabled = 1; + * + * @return The disabled. */ boolean getDisabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java index 9205346e..4a724540 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbac.java @@ -40,6 +40,12 @@ private LegacyAbac(com.google.protobuf.GeneratedMessageV3.Builder 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; @@ -53,7 +59,6 @@ private LegacyAbac( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -116,6 +121,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -446,6 +453,8 @@ public Builder mergeFrom( * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -461,6 +470,9 @@ public boolean getEnabled() { * * * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. */ public Builder setEnabled(boolean value) { @@ -479,6 +491,8 @@ public Builder setEnabled(boolean value) { * * * bool enabled = 1; + * + * @return This builder for chaining. */ public Builder clearEnabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java index ea5a1a52..582ce2fb 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/LegacyAbacOrBuilder.java @@ -34,6 +34,8 @@ public interface LegacyAbacOrBuilder * * * bool enabled = 1; + * + * @return The enabled. */ boolean getEnabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java index c8343091..b3a0bd43 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequest.java @@ -43,6 +43,12 @@ private ListClustersRequest() { 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; @@ -56,7 +62,6 @@ private ListClustersRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,12 +133,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -151,12 +159,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -177,13 +188,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -201,13 +214,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -234,6 +249,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * string parent = 4; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -256,6 +273,8 @@ public java.lang.String getParent() { * * * string parent = 4; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -622,12 +641,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -645,12 +667,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -668,12 +693,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -689,12 +718,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -707,12 +739,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -731,13 +767,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -755,13 +793,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -779,13 +819,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -801,13 +844,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -820,13 +865,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -851,6 +899,8 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * string parent = 4; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -873,6 +923,8 @@ public java.lang.String getParent() { * * * string parent = 4; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -895,6 +947,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -915,6 +970,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 4; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -932,6 +989,9 @@ public Builder clearParent() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java index 6950a546..69a5f108 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface ListClustersRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface ListClustersRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface ListClustersRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface ListClustersRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -89,6 +99,8 @@ public interface ListClustersRequestOrBuilder * * * string parent = 4; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -101,6 +113,8 @@ public interface ListClustersRequestOrBuilder * * * string parent = 4; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java index f7881bc0..1cb1b7a8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponse.java @@ -42,6 +42,12 @@ private ListClustersResponse() { 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; @@ -206,6 +212,8 @@ public com.google.container.v1.ClusterOrBuilder getClustersOrBuilder(int index) * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ public com.google.protobuf.ProtocolStringList getMissingZonesList() { return missingZones_; @@ -219,6 +227,8 @@ public com.google.protobuf.ProtocolStringList getMissingZonesList() { * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ public int getMissingZonesCount() { return missingZones_.size(); @@ -232,6 +242,9 @@ public int getMissingZonesCount() { * * * 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); @@ -245,6 +258,9 @@ public java.lang.String getMissingZones(int index) { * * * 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); @@ -1023,6 +1039,8 @@ private void ensureMissingZonesIsMutable() { * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ public com.google.protobuf.ProtocolStringList getMissingZonesList() { return missingZones_.getUnmodifiableView(); @@ -1036,6 +1054,8 @@ public com.google.protobuf.ProtocolStringList getMissingZonesList() { * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ public int getMissingZonesCount() { return missingZones_.size(); @@ -1049,6 +1069,9 @@ public int getMissingZonesCount() { * * * 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); @@ -1062,6 +1085,9 @@ public java.lang.String getMissingZones(int index) { * * * 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); @@ -1075,6 +1101,10 @@ public com.google.protobuf.ByteString getMissingZonesBytes(int index) { * * * 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) { @@ -1094,6 +1124,9 @@ public Builder setMissingZones(int index, java.lang.String value) { * * * 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) { @@ -1113,6 +1146,9 @@ public Builder addMissingZones(java.lang.String value) { * * * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. */ public Builder addAllMissingZones(java.lang.Iterable values) { ensureMissingZonesIsMutable(); @@ -1129,6 +1165,8 @@ public Builder addAllMissingZones(java.lang.Iterable values) { * * * repeated string missing_zones = 2; + * + * @return This builder for chaining. */ public Builder clearMissingZones() { missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1145,6 +1183,9 @@ public Builder clearMissingZones() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java index 5c89ab6e..91f6f48e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListClustersResponseOrBuilder.java @@ -88,6 +88,8 @@ public interface ListClustersResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ java.util.List getMissingZonesList(); /** @@ -99,6 +101,8 @@ public interface ListClustersResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ int getMissingZonesCount(); /** @@ -110,6 +114,9 @@ public interface ListClustersResponseOrBuilder * * * 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); /** @@ -121,6 +128,9 @@ public interface ListClustersResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. */ com.google.protobuf.ByteString getMissingZonesBytes(int index); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java index 0baf27e9..a83187b8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequest.java @@ -44,6 +44,12 @@ private ListNodePoolsRequest() { 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; @@ -57,7 +63,6 @@ private ListNodePoolsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,12 +141,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -159,12 +167,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -185,13 +196,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -209,13 +222,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -236,11 +251,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -258,11 +276,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -288,6 +309,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -309,6 +332,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -691,12 +716,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -714,12 +742,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -737,12 +768,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -758,12 +793,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -776,12 +814,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -800,13 +842,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -824,13 +868,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -848,13 +894,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -870,13 +919,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -889,13 +940,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -914,11 +968,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -936,11 +993,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -958,11 +1018,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -978,11 +1042,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -995,11 +1062,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1023,6 +1094,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * string parent = 5; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -1044,6 +1117,8 @@ public java.lang.String getParent() { * * * string parent = 5; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -1065,6 +1140,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 5; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -1084,6 +1162,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 5; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -1100,6 +1180,9 @@ public Builder clearParent() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java index 5ed2a8dd..08fa0707 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface ListNodePoolsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -113,6 +129,8 @@ public interface ListNodePoolsRequestOrBuilder * * * string parent = 5; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -124,6 +142,8 @@ public interface ListNodePoolsRequestOrBuilder * * * string parent = 5; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java index 99a5e6e4..a1a32b66 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListNodePoolsResponse.java @@ -41,6 +41,12 @@ 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; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java index 8497ef35..fc4d6700 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequest.java @@ -43,6 +43,12 @@ private ListOperationsRequest() { 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; @@ -56,7 +62,6 @@ private ListOperationsRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -128,12 +133,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -151,12 +159,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -177,12 +188,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -200,12 +213,14 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -232,6 +247,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * string parent = 4; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -254,6 +271,8 @@ public java.lang.String getParent() { * * * string parent = 4; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -620,12 +639,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -643,12 +665,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -666,12 +691,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -687,12 +716,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -705,12 +737,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the parent field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -729,12 +765,14 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -752,12 +790,14 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -775,12 +815,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -796,12 +839,14 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -814,12 +859,15 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -844,6 +892,8 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * string parent = 4; + * + * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; @@ -866,6 +916,8 @@ public java.lang.String getParent() { * * * string parent = 4; + * + * @return The bytes for parent. */ public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; @@ -888,6 +940,9 @@ public com.google.protobuf.ByteString getParentBytes() { * * * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. */ public Builder setParent(java.lang.String value) { if (value == null) { @@ -908,6 +963,8 @@ public Builder setParent(java.lang.String value) { * * * string parent = 4; + * + * @return This builder for chaining. */ public Builder clearParent() { @@ -925,6 +982,9 @@ public Builder clearParent() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java index dc926252..c0c5c430 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface ListOperationsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface ListOperationsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the parent field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,12 +60,14 @@ public interface ListOperationsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -67,12 +75,14 @@ public interface ListOperationsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/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]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -87,6 +97,8 @@ public interface ListOperationsRequestOrBuilder * * * string parent = 4; + * + * @return The parent. */ java.lang.String getParent(); /** @@ -99,6 +111,8 @@ public interface ListOperationsRequestOrBuilder * * * string parent = 4; + * + * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java index f9fe7b85..4d0bf67a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponse.java @@ -42,6 +42,12 @@ private ListOperationsResponse() { 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; @@ -201,6 +207,8 @@ public com.google.container.v1.OperationOrBuilder getOperationsOrBuilder(int ind * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ public com.google.protobuf.ProtocolStringList getMissingZonesList() { return missingZones_; @@ -214,6 +222,8 @@ public com.google.protobuf.ProtocolStringList getMissingZonesList() { * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ public int getMissingZonesCount() { return missingZones_.size(); @@ -227,6 +237,9 @@ public int getMissingZonesCount() { * * * 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); @@ -240,6 +253,9 @@ public java.lang.String getMissingZones(int index) { * * * 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); @@ -1002,6 +1018,8 @@ private void ensureMissingZonesIsMutable() { * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ public com.google.protobuf.ProtocolStringList getMissingZonesList() { return missingZones_.getUnmodifiableView(); @@ -1015,6 +1033,8 @@ public com.google.protobuf.ProtocolStringList getMissingZonesList() { * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ public int getMissingZonesCount() { return missingZones_.size(); @@ -1028,6 +1048,9 @@ public int getMissingZonesCount() { * * * 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); @@ -1041,6 +1064,9 @@ public java.lang.String getMissingZones(int index) { * * * 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); @@ -1054,6 +1080,10 @@ public com.google.protobuf.ByteString getMissingZonesBytes(int index) { * * * 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) { @@ -1073,6 +1103,9 @@ public Builder setMissingZones(int index, java.lang.String value) { * * * 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) { @@ -1092,6 +1125,9 @@ public Builder addMissingZones(java.lang.String value) { * * * repeated string missing_zones = 2; + * + * @param values The missingZones to add. + * @return This builder for chaining. */ public Builder addAllMissingZones(java.lang.Iterable values) { ensureMissingZonesIsMutable(); @@ -1108,6 +1144,8 @@ public Builder addAllMissingZones(java.lang.Iterable values) { * * * repeated string missing_zones = 2; + * + * @return This builder for chaining. */ public Builder clearMissingZones() { missingZones_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -1124,6 +1162,9 @@ public Builder clearMissingZones() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java index ae5b61c0..c0f274e9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListOperationsResponseOrBuilder.java @@ -83,6 +83,8 @@ public interface ListOperationsResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @return A list containing the missingZones. */ java.util.List getMissingZonesList(); /** @@ -94,6 +96,8 @@ public interface ListOperationsResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @return The count of missingZones. */ int getMissingZonesCount(); /** @@ -105,6 +109,9 @@ public interface ListOperationsResponseOrBuilder * * * 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); /** @@ -116,6 +123,9 @@ public interface ListOperationsResponseOrBuilder * * * repeated string missing_zones = 2; + * + * @param index The index of the value to return. + * @return The bytes of the missingZones at the given index. */ com.google.protobuf.ByteString getMissingZonesBytes(int index); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java new file mode 100644 index 00000000..29528e47 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequest.java @@ -0,0 +1,1125 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private ListUsableSubnetworksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + filter_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!getFilterBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!getFilterBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ListUsableSubnetworksRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ListUsableSubnetworksRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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. + */ + 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 { + return new ListUsableSubnetworksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java new file mode 100644 index 00000000..34a32b70 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java new file mode 100644 index 00000000..9a134d2d --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponse.java @@ -0,0 +1,1147 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private ListUsableSubnetworksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + subnetworks_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + subnetworks_.add( + input.readMessage( + com.google.container.v1.UsableSubnetwork.parser(), extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + subnetworks_ = java.util.Collections.unmodifiableList(subnetworks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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; + */ + public java.util.List getSubnetworksList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + public java.util.List + getSubnetworksOrBuilderList() { + return subnetworks_; + } + /** + * + * + *
+   * A list of usable subnetworks in the specified network project.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetwork subnetworks = 1; + */ + public int getSubnetworksCount() { + return subnetworks_.size(); + } + /** + * + * + *
+   * 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) { + return subnetworks_.get(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) { + 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. + */ + 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. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < subnetworks_.size(); i++) { + output.writeMessage(1, subnetworks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subnetworks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, subnetworks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getSubnetworksCount() > 0) { + hash = (37 * hash) + SUBNETWORKS_FIELD_NUMBER; + hash = (53 * hash) + getSubnetworksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSubnetworksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (subnetworksBuilder_ == null) { + subnetworks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + subnetworksBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ListUsableSubnetworksResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ListUsableSubnetworksResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List subnetworks_ = + java.util.Collections.emptyList(); + + private void ensureSubnetworksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + subnetworks_ = + new java.util.ArrayList(subnetworks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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 { + return new ListUsableSubnetworksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ListUsableSubnetworksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java new file mode 100644 index 00000000..43a1f729 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ListUsableSubnetworksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java index 359ec60e..390b8781 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicy.java @@ -37,7 +37,15 @@ private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder buil super(builder); } - private MaintenancePolicy() {} + 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() { @@ -52,7 +60,6 @@ private MaintenancePolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -77,6 +84,13 @@ private MaintenancePolicy( window_ = subBuilder.buildPartial(); } + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceVersion_ = s; break; } default: @@ -123,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return window_ != null; @@ -135,6 +151,8 @@ public boolean hasWindow() { * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return The window. */ public com.google.container.v1.MaintenanceWindow getWindow() { return window_ == null @@ -154,6 +172,61 @@ 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 <code>get()</code> 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) { + 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 <code>get()</code> 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 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 @@ -171,6 +244,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (window_ != null) { output.writeMessage(1, getWindow()); } + if (!getResourceVersionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, resourceVersion_); + } unknownFields.writeTo(output); } @@ -183,6 +259,9 @@ public int getSerializedSize() { if (window_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); } + if (!getResourceVersionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, resourceVersion_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -203,6 +282,7 @@ public boolean equals(final java.lang.Object obj) { if (hasWindow()) { if (!getWindow().equals(other.getWindow())) return false; } + if (!getResourceVersion().equals(other.getResourceVersion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -218,6 +298,8 @@ public int hashCode() { hash = (37 * hash) + WINDOW_FIELD_NUMBER; hash = (53 * hash) + getWindow().hashCode(); } + hash = (37 * hash) + RESOURCE_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getResourceVersion().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -369,6 +451,8 @@ public Builder clear() { window_ = null; windowBuilder_ = null; } + resourceVersion_ = ""; + return this; } @@ -401,6 +485,7 @@ public com.google.container.v1.MaintenancePolicy buildPartial() { } else { result.window_ = windowBuilder_.build(); } + result.resourceVersion_ = resourceVersion_; onBuilt(); return result; } @@ -453,6 +538,10 @@ public Builder mergeFrom(com.google.container.v1.MaintenancePolicy other) { if (other.hasWindow()) { mergeWindow(other.getWindow()); } + if (!other.getResourceVersion().isEmpty()) { + resourceVersion_ = other.resourceVersion_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -496,6 +585,8 @@ public Builder mergeFrom( * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. */ public boolean hasWindow() { return windowBuilder_ != null || window_ != null; @@ -508,6 +599,8 @@ public boolean hasWindow() { * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return The window. */ public com.google.container.v1.MaintenanceWindow getWindow() { if (windowBuilder_ == null) { @@ -663,6 +756,132 @@ public com.google.container.v1.MaintenanceWindowOrBuilder getWindowOrBuilder() { 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 <code>get()</code> 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 <code>get()</code> 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 <code>get()</code> 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 <code>get()</code> 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 <code>get()</code> 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); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java index f9c5edc1..31d9263e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenancePolicyOrBuilder.java @@ -31,6 +31,8 @@ public interface MaintenancePolicyOrBuilder * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return Whether the window field is set. */ boolean hasWindow(); /** @@ -41,6 +43,8 @@ public interface MaintenancePolicyOrBuilder * * * .google.container.v1.MaintenanceWindow window = 1; + * + * @return The window. */ com.google.container.v1.MaintenanceWindow getWindow(); /** @@ -53,4 +57,37 @@ public interface MaintenancePolicyOrBuilder * .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 <code>get()</code> 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 <code>get()</code> request to the cluster to get the current
+   * resource version and include it with requests to set the policy.
+   * 
+ * + * string resource_version = 3; + * + * @return The bytes for resourceVersion. + */ + com.google.protobuf.ByteString getResourceVersionBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java index 530aef8c..bff26fd6 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindow.java @@ -39,6 +39,12 @@ private MaintenanceWindow(com.google.protobuf.GeneratedMessageV3.Builder buil 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; @@ -79,6 +85,40 @@ private MaintenanceWindow( policyCase_ = 2; break; } + case 26: + { + com.google.container.v1.RecurringTimeWindow.Builder subBuilder = null; + if (policyCase_ == 3) { + subBuilder = ((com.google.container.v1.RecurringTimeWindow) policy_).toBuilder(); + } + policy_ = + input.readMessage( + com.google.container.v1.RecurringTimeWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.container.v1.RecurringTimeWindow) policy_); + policy_ = subBuilder.buildPartial(); + } + policyCase_ = 3; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + maintenanceExclusions_ = + com.google.protobuf.MapField.newMapField( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + maintenanceExclusions__ = + input.readMessage( + MaintenanceExclusionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + maintenanceExclusions_ + .getMutableMap() + .put(maintenanceExclusions__.getKey(), maintenanceExclusions__.getValue()); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -103,6 +143,17 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .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() { @@ -116,15 +167,23 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { private int policyCase_ = 0; private java.lang.Object policy_; - public enum PolicyCase implements com.google.protobuf.Internal.EnumLite { + 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; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @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); @@ -134,6 +193,8 @@ 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: @@ -159,6 +220,8 @@ public PolicyCase getPolicyCase() { * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. */ public boolean hasDailyMaintenanceWindow() { return policyCase_ == 2; @@ -171,6 +234,8 @@ public boolean hasDailyMaintenanceWindow() { * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. */ public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { if (policyCase_ == 2) { @@ -195,6 +260,167 @@ public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow( 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. + */ + 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. + */ + 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; + */ + 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; + */ + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMaintenanceExclusions().getMap().containsKey(key); + } + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.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; + */ + 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; + */ + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, com.google.container.v1.TimeWindow defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+   * Exceptions to maintenance window. Non-emergency maintenance should not
+   * occur in these windows.
+   * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -212,6 +438,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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); unknownFields.writeTo(output); } @@ -226,6 +460,22 @@ public int getSerializedSize() { 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 += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -242,11 +492,16 @@ public boolean equals(final java.lang.Object 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: } @@ -261,11 +516,19 @@ public int hashCode() { } 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: } @@ -387,6 +650,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .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() { @@ -414,6 +697,7 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); + internalGetMutableMaintenanceExclusions().clear(); policyCase_ = 0; policy_ = null; return this; @@ -443,6 +727,7 @@ public com.google.container.v1.MaintenanceWindow build() { 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_; @@ -450,6 +735,15 @@ public com.google.container.v1.MaintenanceWindow buildPartial() { 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; @@ -500,12 +794,18 @@ public Builder mergeFrom(com.google.protobuf.Message other) { 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; @@ -554,6 +854,8 @@ public Builder clearPolicy() { return this; } + private int bitField0_; + private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.DailyMaintenanceWindow, com.google.container.v1.DailyMaintenanceWindow.Builder, @@ -567,6 +869,8 @@ public Builder clearPolicy() { * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. */ public boolean hasDailyMaintenanceWindow() { return policyCase_ == 2; @@ -579,6 +883,8 @@ public boolean hasDailyMaintenanceWindow() { * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. */ public com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow() { if (dailyMaintenanceWindowBuilder_ == null) { @@ -759,6 +1065,402 @@ public Builder clearDailyMaintenanceWindow() { 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. + */ + 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. + */ + 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); + } + 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; + */ + 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; + */ + public boolean containsMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + return internalGetMaintenanceExclusions().getMap().containsKey(key); + } + /** Use {@link #getMaintenanceExclusionsMap()} instead. */ + @java.lang.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; + */ + 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; + */ + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, com.google.container.v1.TimeWindow defaultValue) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public com.google.container.v1.TimeWindow getMaintenanceExclusionsOrThrow( + java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + java.util.Map map = + internalGetMaintenanceExclusions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMaintenanceExclusions() { + internalGetMutableMaintenanceExclusions().getMutableMap().clear(); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder removeMaintenanceExclusions(java.lang.String key) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMaintenanceExclusions().getMutableMap().remove(key); + return this; + } + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableMaintenanceExclusions() { + return internalGetMutableMaintenanceExclusions().getMutableMap(); + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.v1.TimeWindow> maintenance_exclusions = 4; + */ + public Builder putMaintenanceExclusions( + java.lang.String key, com.google.container.v1.TimeWindow value) { + if (key == null) { + throw new java.lang.NullPointerException(); + } + if (value == null) { + throw new java.lang.NullPointerException(); + } + internalGetMutableMaintenanceExclusions().getMutableMap().put(key, value); + return this; + } + /** + * + * + *
+     * Exceptions to maintenance window. Non-emergency maintenance should not
+     * occur in these windows.
+     * 
+ * + * map<string, .google.container.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); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java index 5e7f3e06..d90efbcf 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaintenanceWindowOrBuilder.java @@ -31,6 +31,8 @@ public interface MaintenanceWindowOrBuilder * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return Whether the dailyMaintenanceWindow field is set. */ boolean hasDailyMaintenanceWindow(); /** @@ -41,6 +43,8 @@ public interface MaintenanceWindowOrBuilder * * * .google.container.v1.DailyMaintenanceWindow daily_maintenance_window = 2; + * + * @return The dailyMaintenanceWindow. */ com.google.container.v1.DailyMaintenanceWindow getDailyMaintenanceWindow(); /** @@ -54,5 +58,106 @@ public interface MaintenanceWindowOrBuilder */ 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; + */ + com.google.container.v1.TimeWindow getMaintenanceExclusionsOrDefault( + java.lang.String key, 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java index f13ec49d..f0aedabb 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuth.java @@ -47,6 +47,12 @@ private MasterAuth() { 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; @@ -60,7 +66,6 @@ private MasterAuth( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -163,11 +168,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
    * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, you can disable basic authentication by
-   * providing an empty username.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
    * 
* * string username = 1; + * + * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -185,11 +192,13 @@ public java.lang.String getUsername() { * *
    * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, you can disable basic authentication by
-   * providing an empty username.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
    * 
* * string username = 1; + * + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -216,6 +225,8 @@ public com.google.protobuf.ByteString getUsernameBytes() { * * * string password = 2; + * + * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -239,6 +250,8 @@ public java.lang.String getPassword() { * * * string password = 2; + * + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -264,6 +277,8 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. */ public boolean hasClientCertificateConfig() { return clientCertificateConfig_ != null; @@ -278,6 +293,8 @@ public boolean hasClientCertificateConfig() { * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. */ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { return clientCertificateConfig_ == null @@ -311,6 +328,8 @@ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfi * * * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. */ public java.lang.String getClusterCaCertificate() { java.lang.Object ref = clusterCaCertificate_; @@ -332,6 +351,8 @@ public java.lang.String getClusterCaCertificate() { * * * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. */ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { java.lang.Object ref = clusterCaCertificate_; @@ -356,6 +377,8 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * * string client_certificate = 101; + * + * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; @@ -377,6 +400,8 @@ public java.lang.String getClientCertificate() { * * * string client_certificate = 101; + * + * @return The bytes for clientCertificate. */ public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; @@ -401,6 +426,8 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * * string client_key = 102; + * + * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; @@ -422,6 +449,8 @@ public java.lang.String getClientKey() { * * * string client_key = 102; + * + * @return The bytes for clientKey. */ public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; @@ -849,11 +878,13 @@ public Builder mergeFrom( * *
      * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, you can disable basic authentication by
-     * providing an empty username.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
      * 
* * string username = 1; + * + * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; @@ -871,11 +902,13 @@ public java.lang.String getUsername() { * *
      * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, you can disable basic authentication by
-     * providing an empty username.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
      * 
* * string username = 1; + * + * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; @@ -893,11 +926,14 @@ public com.google.protobuf.ByteString getUsernameBytes() { * *
      * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, you can disable basic authentication by
-     * providing an empty username.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
      * 
* * string username = 1; + * + * @param value The username to set. + * @return This builder for chaining. */ public Builder setUsername(java.lang.String value) { if (value == null) { @@ -913,11 +949,13 @@ public Builder setUsername(java.lang.String value) { * *
      * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, you can disable basic authentication by
-     * providing an empty username.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
      * 
* * string username = 1; + * + * @return This builder for chaining. */ public Builder clearUsername() { @@ -930,11 +968,14 @@ public Builder clearUsername() { * *
      * The username to use for HTTP basic authentication to the master endpoint.
-     * For clusters v1.6.0 and later, you can disable basic authentication by
-     * providing an empty username.
+     * For clusters v1.6.0 and later, basic authentication can be disabled by
+     * leaving username unspecified (or setting it to the empty string).
      * 
* * string username = 1; + * + * @param value The bytes for username to set. + * @return This builder for chaining. */ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -959,6 +1000,8 @@ public Builder setUsernameBytes(com.google.protobuf.ByteString value) { * * * string password = 2; + * + * @return The password. */ public java.lang.String getPassword() { java.lang.Object ref = password_; @@ -982,6 +1025,8 @@ public java.lang.String getPassword() { * * * string password = 2; + * + * @return The bytes for password. */ public com.google.protobuf.ByteString getPasswordBytes() { java.lang.Object ref = password_; @@ -1005,6 +1050,9 @@ public com.google.protobuf.ByteString getPasswordBytes() { * * * string password = 2; + * + * @param value The password to set. + * @return This builder for chaining. */ public Builder setPassword(java.lang.String value) { if (value == null) { @@ -1026,6 +1074,8 @@ public Builder setPassword(java.lang.String value) { * * * string password = 2; + * + * @return This builder for chaining. */ public Builder clearPassword() { @@ -1044,6 +1094,9 @@ public Builder clearPassword() { * * * string password = 2; + * + * @param value The bytes for password to set. + * @return This builder for chaining. */ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -1072,6 +1125,8 @@ public Builder setPasswordBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. */ public boolean hasClientCertificateConfig() { return clientCertificateConfigBuilder_ != null || clientCertificateConfig_ != null; @@ -1086,6 +1141,8 @@ public boolean hasClientCertificateConfig() { * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. */ public com.google.container.v1.ClientCertificateConfig getClientCertificateConfig() { if (clientCertificateConfigBuilder_ == null) { @@ -1270,6 +1327,8 @@ public Builder clearClientCertificateConfig() { * * * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. */ public java.lang.String getClusterCaCertificate() { java.lang.Object ref = clusterCaCertificate_; @@ -1291,6 +1350,8 @@ public java.lang.String getClusterCaCertificate() { * * * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. */ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { java.lang.Object ref = clusterCaCertificate_; @@ -1312,6 +1373,9 @@ public com.google.protobuf.ByteString getClusterCaCertificateBytes() { * * * 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) { @@ -1331,6 +1395,8 @@ public Builder setClusterCaCertificate(java.lang.String value) { * * * string cluster_ca_certificate = 100; + * + * @return This builder for chaining. */ public Builder clearClusterCaCertificate() { @@ -1347,6 +1413,9 @@ public Builder clearClusterCaCertificate() { * * * 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) { @@ -1369,6 +1438,8 @@ public Builder setClusterCaCertificateBytes(com.google.protobuf.ByteString value * * * string client_certificate = 101; + * + * @return The clientCertificate. */ public java.lang.String getClientCertificate() { java.lang.Object ref = clientCertificate_; @@ -1390,6 +1461,8 @@ public java.lang.String getClientCertificate() { * * * string client_certificate = 101; + * + * @return The bytes for clientCertificate. */ public com.google.protobuf.ByteString getClientCertificateBytes() { java.lang.Object ref = clientCertificate_; @@ -1411,6 +1484,9 @@ public com.google.protobuf.ByteString getClientCertificateBytes() { * * * 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) { @@ -1430,6 +1506,8 @@ public Builder setClientCertificate(java.lang.String value) { * * * string client_certificate = 101; + * + * @return This builder for chaining. */ public Builder clearClientCertificate() { @@ -1446,6 +1524,9 @@ public Builder clearClientCertificate() { * * * 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) { @@ -1468,6 +1549,8 @@ public Builder setClientCertificateBytes(com.google.protobuf.ByteString value) { * * * string client_key = 102; + * + * @return The clientKey. */ public java.lang.String getClientKey() { java.lang.Object ref = clientKey_; @@ -1489,6 +1572,8 @@ public java.lang.String getClientKey() { * * * string client_key = 102; + * + * @return The bytes for clientKey. */ public com.google.protobuf.ByteString getClientKeyBytes() { java.lang.Object ref = clientKey_; @@ -1510,6 +1595,9 @@ public com.google.protobuf.ByteString getClientKeyBytes() { * * * 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) { @@ -1529,6 +1617,8 @@ public Builder setClientKey(java.lang.String value) { * * * string client_key = 102; + * + * @return This builder for chaining. */ public Builder clearClientKey() { @@ -1545,6 +1635,9 @@ public Builder clearClientKey() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java index 029a377c..eb1a353b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthOrBuilder.java @@ -28,11 +28,13 @@ public interface MasterAuthOrBuilder * *
    * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, you can disable basic authentication by
-   * providing an empty username.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
    * 
* * string username = 1; + * + * @return The username. */ java.lang.String getUsername(); /** @@ -40,11 +42,13 @@ public interface MasterAuthOrBuilder * *
    * The username to use for HTTP basic authentication to the master endpoint.
-   * For clusters v1.6.0 and later, you can disable basic authentication by
-   * providing an empty username.
+   * For clusters v1.6.0 and later, basic authentication can be disabled by
+   * leaving username unspecified (or setting it to the empty string).
    * 
* * string username = 1; + * + * @return The bytes for username. */ com.google.protobuf.ByteString getUsernameBytes(); @@ -59,6 +63,8 @@ public interface MasterAuthOrBuilder * * * string password = 2; + * + * @return The password. */ java.lang.String getPassword(); /** @@ -72,6 +78,8 @@ public interface MasterAuthOrBuilder * * * string password = 2; + * + * @return The bytes for password. */ com.google.protobuf.ByteString getPasswordBytes(); @@ -85,6 +93,8 @@ public interface MasterAuthOrBuilder * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return Whether the clientCertificateConfig field is set. */ boolean hasClientCertificateConfig(); /** @@ -97,6 +107,8 @@ public interface MasterAuthOrBuilder * * * .google.container.v1.ClientCertificateConfig client_certificate_config = 3; + * + * @return The clientCertificateConfig. */ com.google.container.v1.ClientCertificateConfig getClientCertificateConfig(); /** @@ -121,6 +133,8 @@ public interface MasterAuthOrBuilder * * * string cluster_ca_certificate = 100; + * + * @return The clusterCaCertificate. */ java.lang.String getClusterCaCertificate(); /** @@ -132,6 +146,8 @@ public interface MasterAuthOrBuilder * * * string cluster_ca_certificate = 100; + * + * @return The bytes for clusterCaCertificate. */ com.google.protobuf.ByteString getClusterCaCertificateBytes(); @@ -144,6 +160,8 @@ public interface MasterAuthOrBuilder * * * string client_certificate = 101; + * + * @return The clientCertificate. */ java.lang.String getClientCertificate(); /** @@ -155,6 +173,8 @@ public interface MasterAuthOrBuilder * * * string client_certificate = 101; + * + * @return The bytes for clientCertificate. */ com.google.protobuf.ByteString getClientCertificateBytes(); @@ -167,6 +187,8 @@ public interface MasterAuthOrBuilder * * * string client_key = 102; + * + * @return The clientKey. */ java.lang.String getClientKey(); /** @@ -178,6 +200,8 @@ public interface MasterAuthOrBuilder * * * string client_key = 102; + * + * @return The bytes for clientKey. */ com.google.protobuf.ByteString getClientKeyBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java index 6cdde30a..116a65c9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfig.java @@ -45,6 +45,12 @@ 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; @@ -76,11 +82,11 @@ private MasterAuthorizedNetworksConfig( } case 18: { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { cidrBlocks_ = new java.util.ArrayList< com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } cidrBlocks_.add( input.readMessage( @@ -102,7 +108,7 @@ private MasterAuthorizedNetworksConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); } this.unknownFields = unknownFields.build(); @@ -138,6 +144,8 @@ public interface CidrBlockOrBuilder * * * string display_name = 1; + * + * @return The displayName. */ java.lang.String getDisplayName(); /** @@ -148,6 +156,8 @@ public interface CidrBlockOrBuilder * * * string display_name = 1; + * + * @return The bytes for displayName. */ com.google.protobuf.ByteString getDisplayNameBytes(); @@ -159,6 +169,8 @@ public interface CidrBlockOrBuilder * * * string cidr_block = 2; + * + * @return The cidrBlock. */ java.lang.String getCidrBlock(); /** @@ -169,6 +181,8 @@ public interface CidrBlockOrBuilder * * * string cidr_block = 2; + * + * @return The bytes for cidrBlock. */ com.google.protobuf.ByteString getCidrBlockBytes(); } @@ -196,6 +210,12 @@ private CidrBlock() { 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; @@ -209,7 +229,6 @@ private CidrBlock( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -278,6 +297,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string display_name = 1; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -298,6 +319,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 1; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -321,6 +344,8 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * string cidr_block = 2; + * + * @return The cidrBlock. */ public java.lang.String getCidrBlock() { java.lang.Object ref = cidrBlock_; @@ -341,6 +366,8 @@ public java.lang.String getCidrBlock() { * * * string cidr_block = 2; + * + * @return The bytes for cidrBlock. */ public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; @@ -710,6 +737,8 @@ public Builder mergeFrom( * * * string display_name = 1; + * + * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; @@ -730,6 +759,8 @@ public java.lang.String getDisplayName() { * * * string display_name = 1; + * + * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; @@ -750,6 +781,9 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * * * 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) { @@ -768,6 +802,8 @@ public Builder setDisplayName(java.lang.String value) { * * * string display_name = 1; + * + * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -783,6 +819,9 @@ public Builder clearDisplayName() { * * * 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) { @@ -804,6 +843,8 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * * * string cidr_block = 2; + * + * @return The cidrBlock. */ public java.lang.String getCidrBlock() { java.lang.Object ref = cidrBlock_; @@ -824,6 +865,8 @@ public java.lang.String getCidrBlock() { * * * string cidr_block = 2; + * + * @return The bytes for cidrBlock. */ public com.google.protobuf.ByteString getCidrBlockBytes() { java.lang.Object ref = cidrBlock_; @@ -844,6 +887,9 @@ public com.google.protobuf.ByteString getCidrBlockBytes() { * * * 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) { @@ -862,6 +908,8 @@ public Builder setCidrBlock(java.lang.String value) { * * * string cidr_block = 2; + * + * @return This builder for chaining. */ public Builder clearCidrBlock() { @@ -877,6 +925,9 @@ public Builder clearCidrBlock() { * * * 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) { @@ -944,7 +995,6 @@ public com.google.protobuf.Parser getParserForType() { } } - private int bitField0_; public static final int ENABLED_FIELD_NUMBER = 1; private boolean enabled_; /** @@ -955,6 +1005,8 @@ public com.google.protobuf.Parser getParserForType() { * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -967,7 +1019,7 @@ public boolean getEnabled() { * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -982,7 +1034,7 @@ public boolean getEnabled() { * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -998,7 +1050,7 @@ public boolean getEnabled() { * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -1012,7 +1064,7 @@ public int getCidrBlocksCount() { * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -1026,7 +1078,7 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrB * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -1263,7 +1315,7 @@ public Builder clear() { if (cidrBlocksBuilder_ == null) { cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { cidrBlocksBuilder_.clear(); } @@ -1295,18 +1347,16 @@ 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_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { cidrBlocks_ = java.util.Collections.unmodifiableList(cidrBlocks_); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.cidrBlocks_ = cidrBlocks_; } else { result.cidrBlocks_ = cidrBlocksBuilder_.build(); } - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -1364,7 +1414,7 @@ public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig if (!other.cidrBlocks_.isEmpty()) { if (cidrBlocks_.isEmpty()) { cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureCidrBlocksIsMutable(); cidrBlocks_.addAll(other.cidrBlocks_); @@ -1377,7 +1427,7 @@ public Builder mergeFrom(com.google.container.v1.MasterAuthorizedNetworksConfig cidrBlocksBuilder_.dispose(); cidrBlocksBuilder_ = null; cidrBlocks_ = other.cidrBlocks_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); cidrBlocksBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCidrBlocksFieldBuilder() @@ -1428,6 +1478,8 @@ public Builder mergeFrom( * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -1440,6 +1492,9 @@ public boolean getEnabled() { * * * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. */ public Builder setEnabled(boolean value) { @@ -1455,6 +1510,8 @@ public Builder setEnabled(boolean value) { * * * bool enabled = 1; + * + * @return This builder for chaining. */ public Builder clearEnabled() { @@ -1467,11 +1524,11 @@ public Builder clearEnabled() { cidrBlocks_ = java.util.Collections.emptyList(); private void ensureCidrBlocksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { cidrBlocks_ = new java.util.ArrayList< com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock>(cidrBlocks_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } @@ -1485,7 +1542,7 @@ private void ensureCidrBlocksIsMutable() { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1504,7 +1561,7 @@ private void ensureCidrBlocksIsMutable() { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1522,7 +1579,7 @@ public int getCidrBlocksCount() { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1541,7 +1598,7 @@ public com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock getCidrB * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1566,7 +1623,7 @@ public Builder setCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1589,7 +1646,7 @@ public Builder setCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1614,7 +1671,7 @@ public Builder addCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1639,7 +1696,7 @@ public Builder addCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1661,7 +1718,7 @@ public Builder addCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1684,7 +1741,7 @@ public Builder addCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1708,7 +1765,7 @@ public Builder addAllCidrBlocks( * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1718,7 +1775,7 @@ public Builder addAllCidrBlocks( public Builder clearCidrBlocks() { if (cidrBlocksBuilder_ == null) { cidrBlocks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { cidrBlocksBuilder_.clear(); @@ -1729,7 +1786,7 @@ public Builder clearCidrBlocks() { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1750,7 +1807,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1765,7 +1822,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1784,7 +1841,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1804,7 +1861,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1822,7 +1879,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1841,7 +1898,7 @@ public Builder removeCidrBlocks(int index) { * * *
-     * cidr_blocks define up to 10 external networks that could access
+     * cidr_blocks define up to 50 external networks that could access
      * Kubernetes master through HTTPS.
      * 
* @@ -1864,7 +1921,7 @@ public Builder removeCidrBlocks(int index) { com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlock.Builder, com.google.container.v1.MasterAuthorizedNetworksConfig.CidrBlockOrBuilder>( - cidrBlocks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + cidrBlocks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); cidrBlocks_ = null; } return cidrBlocksBuilder_; diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java index d766f9cf..ccde2394 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MasterAuthorizedNetworksConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * * bool enabled = 1; + * + * @return The enabled. */ boolean getEnabled(); @@ -38,7 +40,7 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -51,7 +53,7 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -63,7 +65,7 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -75,7 +77,7 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* @@ -89,7 +91,7 @@ public interface MasterAuthorizedNetworksConfigOrBuilder * * *
-   * cidr_blocks define up to 10 external networks that could access
+   * cidr_blocks define up to 50 external networks that could access
    * Kubernetes master through HTTPS.
    * 
* diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java new file mode 100644 index 00000000..4107aba1 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraint.java @@ -0,0 +1,542 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private MaxPodsConstraint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxPodsPerNode_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + public long getMaxPodsPerNode() { + return maxPodsPerNode_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (maxPodsPerNode_ != 0L) { + output.writeInt64(1, maxPodsPerNode_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxPodsPerNode_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxPodsPerNode_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_PODS_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxPodsPerNode()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + maxPodsPerNode_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.MaxPodsConstraint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.MaxPodsConstraint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long maxPodsPerNode_; + /** + * + * + *
+     * Constraint enforced on the max num of pods per node.
+     * 
+ * + * int64 max_pods_per_node = 1; + * + * @return The maxPodsPerNode. + */ + 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 { + return new MaxPodsConstraint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.MaxPodsConstraint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java new file mode 100644 index 00000000..be2b53eb --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/MaxPodsConstraintOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java index e8d6d4e6..db618e10 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfig.java @@ -42,6 +42,12 @@ private NetworkConfig() { subnetwork_ = ""; } + @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; @@ -55,7 +61,6 @@ private NetworkConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -80,6 +85,11 @@ private NetworkConfig( subnetwork_ = s; break; } + case 40: + { + enableIntraNodeVisibility_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -127,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string network = 1; + * + * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; @@ -150,6 +162,8 @@ public java.lang.String getNetwork() { * * * string network = 1; + * + * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; @@ -175,6 +189,8 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * * string subnetwork = 2; + * + * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; @@ -197,6 +213,8 @@ public java.lang.String getSubnetwork() { * * * string subnetwork = 2; + * + * @return The bytes for subnetwork. */ public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; @@ -210,6 +228,24 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { } } + 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. + */ + public boolean getEnableIntraNodeVisibility() { + return enableIntraNodeVisibility_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -230,6 +266,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getSubnetworkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, subnetwork_); } + if (enableIntraNodeVisibility_ != false) { + output.writeBool(5, enableIntraNodeVisibility_); + } unknownFields.writeTo(output); } @@ -245,6 +284,9 @@ public int getSerializedSize() { if (!getSubnetworkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, subnetwork_); } + if (enableIntraNodeVisibility_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, enableIntraNodeVisibility_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -262,6 +304,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNetwork().equals(other.getNetwork())) return false; if (!getSubnetwork().equals(other.getSubnetwork())) return false; + if (getEnableIntraNodeVisibility() != other.getEnableIntraNodeVisibility()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -277,6 +320,8 @@ public int hashCode() { 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()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -425,6 +470,8 @@ public Builder clear() { subnetwork_ = ""; + enableIntraNodeVisibility_ = false; + return this; } @@ -454,6 +501,7 @@ public com.google.container.v1.NetworkConfig buildPartial() { new com.google.container.v1.NetworkConfig(this); result.network_ = network_; result.subnetwork_ = subnetwork_; + result.enableIntraNodeVisibility_ = enableIntraNodeVisibility_; onBuilt(); return result; } @@ -511,6 +559,9 @@ public Builder mergeFrom(com.google.container.v1.NetworkConfig other) { subnetwork_ = other.subnetwork_; onChanged(); } + if (other.getEnableIntraNodeVisibility() != false) { + setEnableIntraNodeVisibility(other.getEnableIntraNodeVisibility()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -552,6 +603,8 @@ public Builder mergeFrom( * * * string network = 1; + * + * @return The network. */ public java.lang.String getNetwork() { java.lang.Object ref = network_; @@ -575,6 +628,8 @@ public java.lang.String getNetwork() { * * * string network = 1; + * + * @return The bytes for network. */ public com.google.protobuf.ByteString getNetworkBytes() { java.lang.Object ref = network_; @@ -598,6 +653,9 @@ public com.google.protobuf.ByteString getNetworkBytes() { * * * string network = 1; + * + * @param value The network to set. + * @return This builder for chaining. */ public Builder setNetwork(java.lang.String value) { if (value == null) { @@ -619,6 +677,8 @@ public Builder setNetwork(java.lang.String value) { * * * string network = 1; + * + * @return This builder for chaining. */ public Builder clearNetwork() { @@ -637,6 +697,9 @@ public Builder clearNetwork() { * * * 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) { @@ -660,6 +723,8 @@ public Builder setNetworkBytes(com.google.protobuf.ByteString value) { * * * string subnetwork = 2; + * + * @return The subnetwork. */ public java.lang.String getSubnetwork() { java.lang.Object ref = subnetwork_; @@ -682,6 +747,8 @@ public java.lang.String getSubnetwork() { * * * string subnetwork = 2; + * + * @return The bytes for subnetwork. */ public com.google.protobuf.ByteString getSubnetworkBytes() { java.lang.Object ref = subnetwork_; @@ -704,6 +771,9 @@ public com.google.protobuf.ByteString getSubnetworkBytes() { * * * string subnetwork = 2; + * + * @param value The subnetwork to set. + * @return This builder for chaining. */ public Builder setSubnetwork(java.lang.String value) { if (value == null) { @@ -724,6 +794,8 @@ public Builder setSubnetwork(java.lang.String value) { * * * string subnetwork = 2; + * + * @return This builder for chaining. */ public Builder clearSubnetwork() { @@ -741,6 +813,9 @@ public Builder clearSubnetwork() { * * * 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) { @@ -753,6 +828,60 @@ public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { 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. + */ + 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; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java index e2b8e17e..c3031de5 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkConfigOrBuilder.java @@ -34,6 +34,8 @@ public interface NetworkConfigOrBuilder * * * string network = 1; + * + * @return The network. */ java.lang.String getNetwork(); /** @@ -47,6 +49,8 @@ public interface NetworkConfigOrBuilder * * * string network = 1; + * + * @return The bytes for network. */ com.google.protobuf.ByteString getNetworkBytes(); @@ -60,6 +64,8 @@ public interface NetworkConfigOrBuilder * * * string subnetwork = 2; + * + * @return The subnetwork. */ java.lang.String getSubnetwork(); /** @@ -72,6 +78,22 @@ public interface NetworkConfigOrBuilder * * * 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(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java index 32158902..e0d034fa 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicy.java @@ -42,6 +42,12 @@ 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; @@ -55,7 +61,6 @@ private NetworkPolicy( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -174,12 +179,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -245,6 +258,8 @@ private Provider(int value) { * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. */ public int getProviderValue() { return provider_; @@ -257,6 +272,8 @@ public int getProviderValue() { * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. */ public com.google.container.v1.NetworkPolicy.Provider getProvider() { @SuppressWarnings("deprecation") @@ -275,6 +292,8 @@ public com.google.container.v1.NetworkPolicy.Provider getProvider() { * * * bool enabled = 2; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -620,6 +639,8 @@ public Builder mergeFrom( * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. */ public int getProviderValue() { return provider_; @@ -632,6 +653,9 @@ public int getProviderValue() { * * * .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; @@ -646,6 +670,8 @@ public Builder setProviderValue(int value) { * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. */ public com.google.container.v1.NetworkPolicy.Provider getProvider() { @SuppressWarnings("deprecation") @@ -661,6 +687,9 @@ public com.google.container.v1.NetworkPolicy.Provider getProvider() { * * * .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) { @@ -679,6 +708,8 @@ public Builder setProvider(com.google.container.v1.NetworkPolicy.Provider value) * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return This builder for chaining. */ public Builder clearProvider() { @@ -696,6 +727,8 @@ public Builder clearProvider() { * * * bool enabled = 2; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -708,6 +741,9 @@ public boolean getEnabled() { * * * bool enabled = 2; + * + * @param value The enabled to set. + * @return This builder for chaining. */ public Builder setEnabled(boolean value) { @@ -723,6 +759,8 @@ public Builder setEnabled(boolean value) { * * * bool enabled = 2; + * + * @return This builder for chaining. */ public Builder clearEnabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java index 9d7f933b..6154c759 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfig.java @@ -41,6 +41,12 @@ private NetworkPolicyConfig(com.google.protobuf.GeneratedMessageV3.Builder bu 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; @@ -54,7 +60,6 @@ private NetworkPolicyConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -114,6 +119,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -445,6 +452,8 @@ public Builder mergeFrom( * * * bool disabled = 1; + * + * @return The disabled. */ public boolean getDisabled() { return disabled_; @@ -457,6 +466,9 @@ public boolean getDisabled() { * * * bool disabled = 1; + * + * @param value The disabled to set. + * @return This builder for chaining. */ public Builder setDisabled(boolean value) { @@ -472,6 +484,8 @@ public Builder setDisabled(boolean value) { * * * bool disabled = 1; + * + * @return This builder for chaining. */ public Builder clearDisabled() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java index 932f0fcd..12f3deb5 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface NetworkPolicyConfigOrBuilder * * * bool disabled = 1; + * + * @return The disabled. */ boolean getDisabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java index 342ac607..ca88d75d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NetworkPolicyOrBuilder.java @@ -31,6 +31,8 @@ public interface NetworkPolicyOrBuilder * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The enum numeric value on the wire for provider. */ int getProviderValue(); /** @@ -41,6 +43,8 @@ public interface NetworkPolicyOrBuilder * * * .google.container.v1.NetworkPolicy.Provider provider = 1; + * + * @return The provider. */ com.google.container.v1.NetworkPolicy.Provider getProvider(); @@ -52,6 +56,8 @@ public interface NetworkPolicyOrBuilder * * * bool enabled = 2; + * + * @return The enabled. */ boolean getEnabled(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java index f90a7715..ba115572 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfig.java @@ -46,6 +46,13 @@ private NodeConfig() { accelerators_ = java.util.Collections.emptyList(); diskType_ = ""; minCpuPlatform_ = ""; + taints_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodeConfig(); } @java.lang.Override @@ -87,20 +94,20 @@ private NodeConfig( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000004) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { oauthScopes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000004; + mutable_bitField0_ |= 0x00000001; } oauthScopes_.add(s); break; } case 34: { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000002; } com.google.protobuf.MapEntry metadata__ = input.readMessage( @@ -118,10 +125,10 @@ private NodeConfig( } case 50: { - if (!((mutable_bitField0_ & 0x00000040) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000040; + mutable_bitField0_ |= 0x00000004; } com.google.protobuf.MapEntry labels__ = input.readMessage( @@ -137,9 +144,9 @@ private NodeConfig( case 66: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000100) != 0)) { + if (!((mutable_bitField0_ & 0x00000008) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000100; + mutable_bitField0_ |= 0x00000008; } tags_.add(s); break; @@ -158,10 +165,10 @@ private NodeConfig( } case 90: { - if (!((mutable_bitField0_ & 0x00000400) != 0)) { + if (!((mutable_bitField0_ & 0x00000010) != 0)) { accelerators_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000400; + mutable_bitField0_ |= 0x00000010; } accelerators_.add( input.readMessage( @@ -180,6 +187,32 @@ private NodeConfig( java.lang.String s = input.readStringRequireUtf8(); minCpuPlatform_ = s; + break; + } + case 122: + { + if (!((mutable_bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000020; + } + taints_.add( + input.readMessage(com.google.container.v1.NodeTaint.parser(), extensionRegistry)); + break; + } + case 162: + { + com.google.container.v1.ShieldedInstanceConfig.Builder subBuilder = null; + if (shieldedInstanceConfig_ != null) { + subBuilder = shieldedInstanceConfig_.toBuilder(); + } + shieldedInstanceConfig_ = + input.readMessage( + com.google.container.v1.ShieldedInstanceConfig.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(shieldedInstanceConfig_); + shieldedInstanceConfig_ = subBuilder.buildPartial(); + } + break; } default: @@ -196,15 +229,18 @@ private NodeConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000004) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { oauthScopes_ = oauthScopes_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000100) != 0)) { + if (((mutable_bitField0_ & 0x00000008) != 0)) { tags_ = tags_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000400) != 0)) { + if (((mutable_bitField0_ & 0x00000010) != 0)) { accelerators_ = java.util.Collections.unmodifiableList(accelerators_); } + if (((mutable_bitField0_ & 0x00000020) != 0)) { + taints_ = java.util.Collections.unmodifiableList(taints_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -238,7 +274,6 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.container.v1.NodeConfig.Builder.class); } - private int bitField0_; public static final int MACHINE_TYPE_FIELD_NUMBER = 1; private volatile java.lang.Object machineType_; /** @@ -253,6 +288,8 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { * * * string machine_type = 1; + * + * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; @@ -277,6 +314,8 @@ public java.lang.String getMachineType() { * * * string machine_type = 1; + * + * @return The bytes for machineType. */ public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; @@ -302,6 +341,8 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { * * * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. */ public int getDiskSizeGb() { return diskSizeGb_; @@ -327,6 +368,8 @@ public int getDiskSizeGb() { * * * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. */ public com.google.protobuf.ProtocolStringList getOauthScopesList() { return oauthScopes_; @@ -349,6 +392,8 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * * * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. */ public int getOauthScopesCount() { return oauthScopes_.size(); @@ -371,6 +416,9 @@ public int getOauthScopesCount() { * * * 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); @@ -393,6 +441,9 @@ public java.lang.String getOauthScopes(int index) { * * * 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); @@ -409,6 +460,8 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * * * string service_account = 9; + * + * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; @@ -430,6 +483,8 @@ public java.lang.String getServiceAccount() { * * * string service_account = 9; + * + * @return The bytes for serviceAccount. */ public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; @@ -481,6 +536,7 @@ public int getMetadataCount() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -488,6 +544,13 @@ public int getMetadataCount() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -520,6 +583,7 @@ public java.util.Map getMetadata() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -527,6 +591,13 @@ public java.util.Map getMetadata() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -551,6 +622,7 @@ public java.util.Map getMetadataMap() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -558,6 +630,13 @@ public java.util.Map getMetadataMap() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -587,6 +666,7 @@ public java.lang.String getMetadataOrDefault( * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -594,6 +674,13 @@ public java.lang.String getMetadataOrDefault( * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -624,6 +711,8 @@ public java.lang.String getMetadataOrThrow(java.lang.String key) { * * * string image_type = 5; + * + * @return The imageType. */ public java.lang.String getImageType() { java.lang.Object ref = imageType_; @@ -645,6 +734,8 @@ public java.lang.String getImageType() { * * * string image_type = 5; + * + * @return The bytes for imageType. */ public com.google.protobuf.ByteString getImageTypeBytes() { java.lang.Object ref = imageType_; @@ -786,13 +877,15 @@ public 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 dependant upon the maximum number of
+   * 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#local_ssd_limits
+   * https://cloud.google.com/compute/docs/disks/local-ssd
    * for more information.
    * 
* * int32 local_ssd_count = 7; + * + * @return The localSsdCount. */ public int getLocalSsdCount() { return localSsdCount_; @@ -811,6 +904,8 @@ public int getLocalSsdCount() { * * * repeated string tags = 8; + * + * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; @@ -826,6 +921,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * * * repeated string tags = 8; + * + * @return The count of tags. */ public int getTagsCount() { return tags_.size(); @@ -841,6 +938,9 @@ public int getTagsCount() { * * * 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); @@ -856,6 +956,9 @@ public java.lang.String getTags(int index) { * * * 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); @@ -873,6 +976,8 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { * * * bool preemptible = 10; + * + * @return The preemptible. */ public boolean getPreemptible() { return preemptible_; @@ -963,6 +1068,8 @@ public com.google.container.v1.AcceleratorConfigOrBuilder getAcceleratorsOrBuild * * * string disk_type = 12; + * + * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; @@ -984,6 +1091,8 @@ public java.lang.String getDiskType() { * * * string disk_type = 12; + * + * @return The bytes for diskType. */ public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; @@ -1013,6 +1122,8 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { * * * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. */ public java.lang.String getMinCpuPlatform() { java.lang.Object ref = minCpuPlatform_; @@ -1039,6 +1150,8 @@ public java.lang.String getMinCpuPlatform() { * * * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. */ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { java.lang.Object ref = minCpuPlatform_; @@ -1052,6 +1165,126 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { } } + 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; + */ + 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; + */ + 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; + */ + 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; + */ + 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; + */ + public com.google.container.v1.NodeTaintOrBuilder getTaintsOrBuilder(int index) { + return taints_.get(index); + } + + 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. + */ + public boolean hasShieldedInstanceConfig() { + return shieldedInstanceConfig_ != null; + } + /** + * + * + *
+   * Shielded Instance options.
+   * 
+ * + * .google.container.v1.ShieldedInstanceConfig shielded_instance_config = 20; + * + * @return The shieldedInstanceConfig. + */ + 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; + */ + public com.google.container.v1.ShieldedInstanceConfigOrBuilder + getShieldedInstanceConfigOrBuilder() { + return getShieldedInstanceConfig(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1103,6 +1336,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getMinCpuPlatformBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 13, minCpuPlatform_); } + for (int i = 0; i < taints_.size(); i++) { + output.writeMessage(15, taints_.get(i)); + } + if (shieldedInstanceConfig_ != null) { + output.writeMessage(20, getShieldedInstanceConfig()); + } unknownFields.writeTo(output); } @@ -1175,6 +1414,13 @@ public int getSerializedSize() { if (!getMinCpuPlatformBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, minCpuPlatform_); } + for (int i = 0; i < taints_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(15, taints_.get(i)); + } + if (shieldedInstanceConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(20, getShieldedInstanceConfig()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1203,6 +1449,11 @@ public boolean equals(final java.lang.Object obj) { if (!getAcceleratorsList().equals(other.getAcceleratorsList())) return false; if (!getDiskType().equals(other.getDiskType())) return false; if (!getMinCpuPlatform().equals(other.getMinCpuPlatform())) return false; + if (!getTaintsList().equals(other.getTaintsList())) return false; + if (hasShieldedInstanceConfig() != other.hasShieldedInstanceConfig()) return false; + if (hasShieldedInstanceConfig()) { + if (!getShieldedInstanceConfig().equals(other.getShieldedInstanceConfig())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1250,6 +1501,14 @@ public int hashCode() { hash = (53 * hash) + getDiskType().hashCode(); hash = (37 * hash) + MIN_CPU_PLATFORM_FIELD_NUMBER; hash = (53 * hash) + getMinCpuPlatform().hashCode(); + if (getTaintsCount() > 0) { + hash = (37 * hash) + TAINTS_FIELD_NUMBER; + hash = (53 * hash) + getTaintsList().hashCode(); + } + if (hasShieldedInstanceConfig()) { + hash = (37 * hash) + SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getShieldedInstanceConfig().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1414,6 +1673,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getAcceleratorsFieldBuilder(); + getTaintsFieldBuilder(); } } @@ -1425,7 +1685,7 @@ public Builder clear() { diskSizeGb_ = 0; oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); serviceAccount_ = ""; internalGetMutableMetadata().clear(); @@ -1435,12 +1695,12 @@ public Builder clear() { localSsdCount_ = 0; tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000008); preemptible_ = false; if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000010); } else { acceleratorsBuilder_.clear(); } @@ -1448,6 +1708,18 @@ public Builder clear() { minCpuPlatform_ = ""; + if (taintsBuilder_ == null) { + taints_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + } else { + taintsBuilder_.clear(); + } + if (shieldedInstanceConfigBuilder_ == null) { + shieldedInstanceConfig_ = null; + } else { + shieldedInstanceConfig_ = null; + shieldedInstanceConfigBuilder_ = null; + } return this; } @@ -1475,12 +1747,11 @@ public com.google.container.v1.NodeConfig build() { public com.google.container.v1.NodeConfig buildPartial() { com.google.container.v1.NodeConfig result = new com.google.container.v1.NodeConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.machineType_ = machineType_; result.diskSizeGb_ = diskSizeGb_; - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { oauthScopes_ = oauthScopes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } result.oauthScopes_ = oauthScopes_; result.serviceAccount_ = serviceAccount_; @@ -1490,16 +1761,16 @@ public com.google.container.v1.NodeConfig buildPartial() { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); result.localSsdCount_ = localSsdCount_; - if (((bitField0_ & 0x00000100) != 0)) { + if (((bitField0_ & 0x00000008) != 0)) { tags_ = tags_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000008); } result.tags_ = tags_; result.preemptible_ = preemptible_; if (acceleratorsBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { accelerators_ = java.util.Collections.unmodifiableList(accelerators_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000010); } result.accelerators_ = accelerators_; } else { @@ -1507,7 +1778,20 @@ public com.google.container.v1.NodeConfig buildPartial() { } result.diskType_ = diskType_; result.minCpuPlatform_ = minCpuPlatform_; - result.bitField0_ = to_bitField0_; + 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 (shieldedInstanceConfigBuilder_ == null) { + result.shieldedInstanceConfig_ = shieldedInstanceConfig_; + } else { + result.shieldedInstanceConfig_ = shieldedInstanceConfigBuilder_.build(); + } onBuilt(); return result; } @@ -1567,7 +1851,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (!other.oauthScopes_.isEmpty()) { if (oauthScopes_.isEmpty()) { oauthScopes_ = other.oauthScopes_; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureOauthScopesIsMutable(); oauthScopes_.addAll(other.oauthScopes_); @@ -1590,7 +1874,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000008); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); @@ -1604,7 +1888,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { if (!other.accelerators_.isEmpty()) { if (accelerators_.isEmpty()) { accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureAcceleratorsIsMutable(); accelerators_.addAll(other.accelerators_); @@ -1617,7 +1901,7 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { acceleratorsBuilder_.dispose(); acceleratorsBuilder_ = null; accelerators_ = other.accelerators_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000010); acceleratorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAcceleratorsFieldBuilder() @@ -1635,6 +1919,36 @@ public Builder mergeFrom(com.google.container.v1.NodeConfig other) { minCpuPlatform_ = other.minCpuPlatform_; onChanged(); } + 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.hasShieldedInstanceConfig()) { + mergeShieldedInstanceConfig(other.getShieldedInstanceConfig()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1679,6 +1993,8 @@ public Builder mergeFrom( * * * string machine_type = 1; + * + * @return The machineType. */ public java.lang.String getMachineType() { java.lang.Object ref = machineType_; @@ -1703,6 +2019,8 @@ public java.lang.String getMachineType() { * * * string machine_type = 1; + * + * @return The bytes for machineType. */ public com.google.protobuf.ByteString getMachineTypeBytes() { java.lang.Object ref = machineType_; @@ -1727,6 +2045,9 @@ public com.google.protobuf.ByteString getMachineTypeBytes() { * * * 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) { @@ -1749,6 +2070,8 @@ public Builder setMachineType(java.lang.String value) { * * * string machine_type = 1; + * + * @return This builder for chaining. */ public Builder clearMachineType() { @@ -1768,6 +2091,9 @@ public Builder clearMachineType() { * * * 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) { @@ -1791,6 +2117,8 @@ public Builder setMachineTypeBytes(com.google.protobuf.ByteString value) { * * * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. */ public int getDiskSizeGb() { return diskSizeGb_; @@ -1805,6 +2133,9 @@ public int getDiskSizeGb() { * * * int32 disk_size_gb = 2; + * + * @param value The diskSizeGb to set. + * @return This builder for chaining. */ public Builder setDiskSizeGb(int value) { @@ -1822,6 +2153,8 @@ public Builder setDiskSizeGb(int value) { * * * int32 disk_size_gb = 2; + * + * @return This builder for chaining. */ public Builder clearDiskSizeGb() { @@ -1834,9 +2167,9 @@ public Builder clearDiskSizeGb() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureOauthScopesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { oauthScopes_ = new com.google.protobuf.LazyStringArrayList(oauthScopes_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } } /** @@ -1857,6 +2190,8 @@ private void ensureOauthScopesIsMutable() { * * * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. */ public com.google.protobuf.ProtocolStringList getOauthScopesList() { return oauthScopes_.getUnmodifiableView(); @@ -1879,6 +2214,8 @@ public com.google.protobuf.ProtocolStringList getOauthScopesList() { * * * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. */ public int getOauthScopesCount() { return oauthScopes_.size(); @@ -1901,6 +2238,9 @@ public int getOauthScopesCount() { * * * 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); @@ -1923,6 +2263,9 @@ public java.lang.String getOauthScopes(int index) { * * * 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); @@ -1945,6 +2288,10 @@ public com.google.protobuf.ByteString getOauthScopesBytes(int index) { * * * 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) { @@ -1973,6 +2320,9 @@ public Builder setOauthScopes(int index, java.lang.String value) { * * * 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) { @@ -2001,6 +2351,9 @@ public Builder addOauthScopes(java.lang.String value) { * * * repeated string oauth_scopes = 3; + * + * @param values The oauthScopes to add. + * @return This builder for chaining. */ public Builder addAllOauthScopes(java.lang.Iterable values) { ensureOauthScopesIsMutable(); @@ -2026,10 +2379,12 @@ public Builder addAllOauthScopes(java.lang.Iterable values) { * * * repeated string oauth_scopes = 3; + * + * @return This builder for chaining. */ public Builder clearOauthScopes() { oauthScopes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2051,6 +2406,9 @@ public Builder clearOauthScopes() { * * * 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) { @@ -2073,6 +2431,8 @@ public Builder addOauthScopesBytes(com.google.protobuf.ByteString value) { * * * string service_account = 9; + * + * @return The serviceAccount. */ public java.lang.String getServiceAccount() { java.lang.Object ref = serviceAccount_; @@ -2094,6 +2454,8 @@ public java.lang.String getServiceAccount() { * * * string service_account = 9; + * + * @return The bytes for serviceAccount. */ public com.google.protobuf.ByteString getServiceAccountBytes() { java.lang.Object ref = serviceAccount_; @@ -2115,6 +2477,9 @@ public com.google.protobuf.ByteString getServiceAccountBytes() { * * * 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) { @@ -2134,6 +2499,8 @@ public Builder setServiceAccount(java.lang.String value) { * * * string service_account = 9; + * + * @return This builder for chaining. */ public Builder clearServiceAccount() { @@ -2150,6 +2517,9 @@ public Builder clearServiceAccount() { * * * 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) { @@ -2201,6 +2571,7 @@ public int getMetadataCount() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2208,6 +2579,13 @@ public int getMetadataCount() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2240,6 +2618,7 @@ public java.util.Map getMetadata() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2247,6 +2626,13 @@ public java.util.Map getMetadata() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2271,6 +2657,7 @@ public java.util.Map getMetadataMap() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2278,6 +2665,13 @@ public java.util.Map getMetadataMap() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2307,6 +2701,7 @@ public java.lang.String getMetadataOrDefault( * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2314,6 +2709,13 @@ public java.lang.String getMetadataOrDefault( * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2350,6 +2752,7 @@ public Builder clearMetadata() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2357,6 +2760,13 @@ public Builder clearMetadata() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2390,6 +2800,7 @@ public java.util.Map getMutableMetadata() { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2397,6 +2808,13 @@ public java.util.Map getMutableMetadata() { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2428,6 +2846,7 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -2435,6 +2854,13 @@ public Builder putMetadata(java.lang.String key, java.lang.String value) { * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -2458,6 +2884,8 @@ public Builder putAllMetadata(java.util.Map * * * string image_type = 5; + * + * @return The imageType. */ public java.lang.String getImageType() { java.lang.Object ref = imageType_; @@ -2479,6 +2907,8 @@ public java.lang.String getImageType() { * * * string image_type = 5; + * + * @return The bytes for imageType. */ public com.google.protobuf.ByteString getImageTypeBytes() { java.lang.Object ref = imageType_; @@ -2500,6 +2930,9 @@ public com.google.protobuf.ByteString getImageTypeBytes() { * * * 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) { @@ -2519,6 +2952,8 @@ public Builder setImageType(java.lang.String value) { * * * string image_type = 5; + * + * @return This builder for chaining. */ public Builder clearImageType() { @@ -2535,6 +2970,9 @@ public Builder clearImageType() { * * * 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) { @@ -2754,13 +3192,15 @@ public Builder putAllLabels(java.util.Map va * *
      * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependant upon the maximum number of
+     * 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#local_ssd_limits
+     * https://cloud.google.com/compute/docs/disks/local-ssd
      * for more information.
      * 
* * int32 local_ssd_count = 7; + * + * @return The localSsdCount. */ public int getLocalSsdCount() { return localSsdCount_; @@ -2770,13 +3210,16 @@ public int getLocalSsdCount() { * *
      * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependant upon the maximum number of
+     * 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#local_ssd_limits
+     * 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) { @@ -2789,13 +3232,15 @@ public Builder setLocalSsdCount(int value) { * *
      * The number of local SSD disks to be attached to the node.
-     * The limit for this value is dependant upon the maximum number of
+     * 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#local_ssd_limits
+     * 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() { @@ -2808,9 +3253,9 @@ public Builder clearLocalSsdCount() { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000100) != 0)) { + if (!((bitField0_ & 0x00000008) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000008; } } /** @@ -2824,6 +3269,8 @@ private void ensureTagsIsMutable() { * * * repeated string tags = 8; + * + * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); @@ -2839,6 +3286,8 @@ public com.google.protobuf.ProtocolStringList getTagsList() { * * * repeated string tags = 8; + * + * @return The count of tags. */ public int getTagsCount() { return tags_.size(); @@ -2854,6 +3303,9 @@ public int getTagsCount() { * * * 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); @@ -2869,6 +3321,9 @@ public java.lang.String getTags(int index) { * * * 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); @@ -2884,6 +3339,10 @@ public com.google.protobuf.ByteString getTagsBytes(int index) { * * * 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) { @@ -2905,6 +3364,9 @@ public Builder setTags(int index, java.lang.String value) { * * * 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) { @@ -2926,6 +3388,9 @@ public Builder addTags(java.lang.String value) { * * * repeated string tags = 8; + * + * @param values The tags to add. + * @return This builder for chaining. */ public Builder addAllTags(java.lang.Iterable values) { ensureTagsIsMutable(); @@ -2944,10 +3409,12 @@ public Builder addAllTags(java.lang.Iterable values) { * * * repeated string tags = 8; + * + * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -2962,6 +3429,9 @@ public Builder clearTags() { * * * 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) { @@ -2985,6 +3455,8 @@ public Builder addTagsBytes(com.google.protobuf.ByteString value) { * * * bool preemptible = 10; + * + * @return The preemptible. */ public boolean getPreemptible() { return preemptible_; @@ -2999,6 +3471,9 @@ public boolean getPreemptible() { * * * bool preemptible = 10; + * + * @param value The preemptible to set. + * @return This builder for chaining. */ public Builder setPreemptible(boolean value) { @@ -3016,6 +3491,8 @@ public Builder setPreemptible(boolean value) { * * * bool preemptible = 10; + * + * @return This builder for chaining. */ public Builder clearPreemptible() { @@ -3028,10 +3505,10 @@ public Builder clearPreemptible() { java.util.Collections.emptyList(); private void ensureAcceleratorsIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { accelerators_ = new java.util.ArrayList(accelerators_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000010; } } @@ -3269,7 +3746,7 @@ public Builder addAllAccelerators( public Builder clearAccelerators() { if (acceleratorsBuilder_ == null) { accelerators_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { acceleratorsBuilder_.clear(); @@ -3405,7 +3882,7 @@ public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( com.google.container.v1.AcceleratorConfig, com.google.container.v1.AcceleratorConfig.Builder, com.google.container.v1.AcceleratorConfigOrBuilder>( - accelerators_, ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); + accelerators_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); accelerators_ = null; } return acceleratorsBuilder_; @@ -3421,6 +3898,8 @@ public com.google.container.v1.AcceleratorConfig.Builder addAcceleratorsBuilder( * * * string disk_type = 12; + * + * @return The diskType. */ public java.lang.String getDiskType() { java.lang.Object ref = diskType_; @@ -3442,6 +3921,8 @@ public java.lang.String getDiskType() { * * * string disk_type = 12; + * + * @return The bytes for diskType. */ public com.google.protobuf.ByteString getDiskTypeBytes() { java.lang.Object ref = diskType_; @@ -3463,6 +3944,9 @@ public com.google.protobuf.ByteString getDiskTypeBytes() { * * * 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) { @@ -3482,6 +3966,8 @@ public Builder setDiskType(java.lang.String value) { * * * string disk_type = 12; + * + * @return This builder for chaining. */ public Builder clearDiskType() { @@ -3498,6 +3984,9 @@ public Builder clearDiskType() { * * * 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) { @@ -3525,6 +4014,8 @@ public Builder setDiskTypeBytes(com.google.protobuf.ByteString value) { * * * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. */ public java.lang.String getMinCpuPlatform() { java.lang.Object ref = minCpuPlatform_; @@ -3551,6 +4042,8 @@ public java.lang.String getMinCpuPlatform() { * * * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. */ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { java.lang.Object ref = minCpuPlatform_; @@ -3577,6 +4070,9 @@ public com.google.protobuf.ByteString getMinCpuPlatformBytes() { * * * 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) { @@ -3601,6 +4097,8 @@ public Builder setMinCpuPlatform(java.lang.String value) { * * * string min_cpu_platform = 13; + * + * @return This builder for chaining. */ public Builder clearMinCpuPlatform() { @@ -3622,6 +4120,9 @@ public Builder clearMinCpuPlatform() { * * * 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) { @@ -3634,6 +4135,577 @@ public Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value) { return this; } + private java.util.List taints_ = + java.util.Collections.emptyList(); + + private void ensureTaintsIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + taints_ = new java.util.ArrayList(taints_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.v1.NodeTaint, + com.google.container.v1.NodeTaint.Builder, + com.google.container.v1.NodeTaintOrBuilder> + taintsBuilder_; + + /** + * + * + *
+     * 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.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_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java index 5cabe3d8..514f462c 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeConfigOrBuilder.java @@ -35,6 +35,8 @@ public interface NodeConfigOrBuilder * * * string machine_type = 1; + * + * @return The machineType. */ java.lang.String getMachineType(); /** @@ -49,6 +51,8 @@ public interface NodeConfigOrBuilder * * * string machine_type = 1; + * + * @return The bytes for machineType. */ com.google.protobuf.ByteString getMachineTypeBytes(); @@ -62,6 +66,8 @@ public interface NodeConfigOrBuilder * * * int32 disk_size_gb = 2; + * + * @return The diskSizeGb. */ int getDiskSizeGb(); @@ -83,6 +89,8 @@ public interface NodeConfigOrBuilder * * * repeated string oauth_scopes = 3; + * + * @return A list containing the oauthScopes. */ java.util.List getOauthScopesList(); /** @@ -103,6 +111,8 @@ public interface NodeConfigOrBuilder * * * repeated string oauth_scopes = 3; + * + * @return The count of oauthScopes. */ int getOauthScopesCount(); /** @@ -123,6 +133,9 @@ public interface NodeConfigOrBuilder * * * 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); /** @@ -143,6 +156,9 @@ public interface NodeConfigOrBuilder * * * 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); @@ -155,6 +171,8 @@ public interface NodeConfigOrBuilder * * * string service_account = 9; + * + * @return The serviceAccount. */ java.lang.String getServiceAccount(); /** @@ -166,6 +184,8 @@ public interface NodeConfigOrBuilder * * * string service_account = 9; + * + * @return The bytes for serviceAccount. */ com.google.protobuf.ByteString getServiceAccountBytes(); @@ -182,6 +202,7 @@ public interface NodeConfigOrBuilder * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -189,6 +210,13 @@ public interface NodeConfigOrBuilder * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -211,6 +239,7 @@ public interface NodeConfigOrBuilder * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -218,6 +247,13 @@ public interface NodeConfigOrBuilder * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -243,6 +279,7 @@ public interface NodeConfigOrBuilder * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -250,6 +287,13 @@ public interface NodeConfigOrBuilder * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -272,6 +316,7 @@ public interface NodeConfigOrBuilder * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -279,6 +324,13 @@ public interface NodeConfigOrBuilder * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -301,6 +353,7 @@ public interface NodeConfigOrBuilder * "cluster-name" * "cluster-uid" * "configure-sh" + * "containerd-configure-sh" * "enable-os-login" * "gci-update-strategy" * "gci-ensure-gke-docker" @@ -308,6 +361,13 @@ public interface NodeConfigOrBuilder * "kube-env" * "startup-script" * "user-data" + * "disable-address-manager" + * "windows-startup-script-ps1" + * "common-psm1" + * "k8s-node-setup-psm1" + * "install-ssh-psm1" + * "user-profile-psm1" + * "serial-port-logging-enable" * 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. @@ -327,6 +387,8 @@ public interface NodeConfigOrBuilder * * * string image_type = 5; + * + * @return The imageType. */ java.lang.String getImageType(); /** @@ -338,6 +400,8 @@ public interface NodeConfigOrBuilder * * * string image_type = 5; + * + * @return The bytes for imageType. */ com.google.protobuf.ByteString getImageTypeBytes(); @@ -435,13 +499,15 @@ public interface NodeConfigOrBuilder * *
    * The number of local SSD disks to be attached to the node.
-   * The limit for this value is dependant upon the maximum number of
+   * 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#local_ssd_limits
+   * https://cloud.google.com/compute/docs/disks/local-ssd
    * for more information.
    * 
* * int32 local_ssd_count = 7; + * + * @return The localSsdCount. */ int getLocalSsdCount(); @@ -456,6 +522,8 @@ public interface NodeConfigOrBuilder * * * repeated string tags = 8; + * + * @return A list containing the tags. */ java.util.List getTagsList(); /** @@ -469,6 +537,8 @@ public interface NodeConfigOrBuilder * * * repeated string tags = 8; + * + * @return The count of tags. */ int getTagsCount(); /** @@ -482,6 +552,9 @@ public interface NodeConfigOrBuilder * * * 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); /** @@ -495,6 +568,9 @@ public interface NodeConfigOrBuilder * * * 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); @@ -508,6 +584,8 @@ public interface NodeConfigOrBuilder * * * bool preemptible = 10; + * + * @return The preemptible. */ boolean getPreemptible(); @@ -582,6 +660,8 @@ public interface NodeConfigOrBuilder * * * string disk_type = 12; + * + * @return The diskType. */ java.lang.String getDiskType(); /** @@ -593,6 +673,8 @@ public interface NodeConfigOrBuilder * * * string disk_type = 12; + * + * @return The bytes for diskType. */ com.google.protobuf.ByteString getDiskTypeBytes(); @@ -610,6 +692,8 @@ public interface NodeConfigOrBuilder * * * string min_cpu_platform = 13; + * + * @return The minCpuPlatform. */ java.lang.String getMinCpuPlatform(); /** @@ -626,6 +710,104 @@ public interface NodeConfigOrBuilder * * * string min_cpu_platform = 13; + * + * @return The bytes for minCpuPlatform. */ com.google.protobuf.ByteString getMinCpuPlatformBytes(); + + /** + * + * + *
+   * 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); + + /** + * + * + *
+   * 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(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java index 6eeebf41..63c246e0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagement.java @@ -40,6 +40,12 @@ private NodeManagement(com.google.protobuf.GeneratedMessageV3.Builder 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; @@ -53,7 +59,6 @@ private NodeManagement( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -136,6 +141,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool auto_upgrade = 1; + * + * @return The autoUpgrade. */ public boolean getAutoUpgrade() { return autoUpgrade_; @@ -154,6 +161,8 @@ public boolean getAutoUpgrade() { * * * bool auto_repair = 2; + * + * @return The autoRepair. */ public boolean getAutoRepair() { return autoRepair_; @@ -169,6 +178,8 @@ public boolean getAutoRepair() { * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. */ public boolean hasUpgradeOptions() { return upgradeOptions_ != null; @@ -181,6 +192,8 @@ public boolean hasUpgradeOptions() { * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. */ public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { return upgradeOptions_ == null @@ -569,6 +582,8 @@ public Builder mergeFrom( * * * bool auto_upgrade = 1; + * + * @return The autoUpgrade. */ public boolean getAutoUpgrade() { return autoUpgrade_; @@ -583,6 +598,9 @@ public boolean getAutoUpgrade() { * * * bool auto_upgrade = 1; + * + * @param value The autoUpgrade to set. + * @return This builder for chaining. */ public Builder setAutoUpgrade(boolean value) { @@ -600,6 +618,8 @@ public Builder setAutoUpgrade(boolean value) { * * * bool auto_upgrade = 1; + * + * @return This builder for chaining. */ public Builder clearAutoUpgrade() { @@ -620,6 +640,8 @@ public Builder clearAutoUpgrade() { * * * bool auto_repair = 2; + * + * @return The autoRepair. */ public boolean getAutoRepair() { return autoRepair_; @@ -635,6 +657,9 @@ public boolean getAutoRepair() { * * * bool auto_repair = 2; + * + * @param value The autoRepair to set. + * @return This builder for chaining. */ public Builder setAutoRepair(boolean value) { @@ -653,6 +678,8 @@ public Builder setAutoRepair(boolean value) { * * * bool auto_repair = 2; + * + * @return This builder for chaining. */ public Builder clearAutoRepair() { @@ -675,6 +702,8 @@ public Builder clearAutoRepair() { * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. */ public boolean hasUpgradeOptions() { return upgradeOptionsBuilder_ != null || upgradeOptions_ != null; @@ -687,6 +716,8 @@ public boolean hasUpgradeOptions() { * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. */ public com.google.container.v1.AutoUpgradeOptions getUpgradeOptions() { if (upgradeOptionsBuilder_ == null) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java index 1a580f10..6aa52d50 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeManagementOrBuilder.java @@ -33,6 +33,8 @@ public interface NodeManagementOrBuilder * * * bool auto_upgrade = 1; + * + * @return The autoUpgrade. */ boolean getAutoUpgrade(); @@ -47,6 +49,8 @@ public interface NodeManagementOrBuilder * * * bool auto_repair = 2; + * + * @return The autoRepair. */ boolean getAutoRepair(); @@ -58,6 +62,8 @@ public interface NodeManagementOrBuilder * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return Whether the upgradeOptions field is set. */ boolean hasUpgradeOptions(); /** @@ -68,6 +74,8 @@ public interface NodeManagementOrBuilder * * * .google.container.v1.AutoUpgradeOptions upgrade_options = 10; + * + * @return The upgradeOptions. */ com.google.container.v1.AutoUpgradeOptions getUpgradeOptions(); /** diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java index 18a4ee74..83368ae4 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePool.java @@ -49,6 +49,13 @@ private NodePool() { 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 @@ -132,6 +139,27 @@ private NodePool( management_ = subBuilder.buildPartial(); } + break; + } + case 50: + { + com.google.container.v1.MaxPodsConstraint.Builder subBuilder = null; + if (maxPodsConstraint_ != null) { + subBuilder = maxPodsConstraint_.toBuilder(); + } + maxPodsConstraint_ = + input.readMessage( + com.google.container.v1.MaxPodsConstraint.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(maxPodsConstraint_); + maxPodsConstraint_ = subBuilder.buildPartial(); + } + + break; + } + case 56: + { + podIpv4CidrSize_ = input.readInt32(); break; } case 802: @@ -151,9 +179,9 @@ private NodePool( case 818: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000020) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000020; + mutable_bitField0_ |= 0x00000001; } instanceGroupUrls_.add(s); break; @@ -172,6 +200,17 @@ private NodePool( statusMessage_ = s; break; } + case 842: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + conditions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + conditions_.add( + input.readMessage( + com.google.container.v1.StatusCondition.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -186,9 +225,12 @@ private NodePool( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000020) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -384,12 +426,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -455,7 +505,6 @@ private Status(int value) { // @@protoc_insertion_point(enum_scope:google.container.v1.NodePool.Status) } - private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** @@ -466,6 +515,8 @@ private Status(int value) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -486,6 +537,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -509,6 +562,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * .google.container.v1.NodeConfig config = 2; + * + * @return Whether the config field is set. */ public boolean hasConfig() { return config_ != null; @@ -521,6 +576,8 @@ public boolean hasConfig() { * * * .google.container.v1.NodeConfig config = 2; + * + * @return The config. */ public com.google.container.v1.NodeConfig getConfig() { return config_ == null ? com.google.container.v1.NodeConfig.getDefaultInstance() : config_; @@ -551,6 +608,8 @@ public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { * * * int32 initial_node_count = 3; + * + * @return The initialNodeCount. */ public int getInitialNodeCount() { return initialNodeCount_; @@ -566,6 +625,8 @@ public int getInitialNodeCount() { * * * string self_link = 100; + * + * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; @@ -586,6 +647,8 @@ public java.lang.String getSelfLink() { * * * string self_link = 100; + * + * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; @@ -609,6 +672,8 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * * string version = 101; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -629,6 +694,8 @@ public java.lang.String getVersion() { * * * string version = 101; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -654,6 +721,8 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. */ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { return instanceGroupUrls_; @@ -668,6 +737,8 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. */ public int getInstanceGroupUrlsCount() { return instanceGroupUrls_.size(); @@ -682,6 +753,9 @@ public int getInstanceGroupUrlsCount() { * * * 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); @@ -696,6 +770,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * 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); @@ -711,6 +788,8 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. */ public int getStatusValue() { return status_; @@ -723,6 +802,8 @@ public int getStatusValue() { * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The status. */ public com.google.container.v1.NodePool.Status getStatus() { @SuppressWarnings("deprecation") @@ -742,6 +823,8 @@ public com.google.container.v1.NodePool.Status getStatus() { * * * string status_message = 104; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -763,6 +846,8 @@ public java.lang.String getStatusMessage() { * * * string status_message = 104; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -787,6 +872,8 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. */ public boolean hasAutoscaling() { return autoscaling_ != null; @@ -800,6 +887,8 @@ public boolean hasAutoscaling() { * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. */ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { return autoscaling_ == null @@ -830,6 +919,8 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil * * * .google.container.v1.NodeManagement management = 5; + * + * @return Whether the management field is set. */ public boolean hasManagement() { return management_ != null; @@ -842,6 +933,8 @@ public boolean hasManagement() { * * * .google.container.v1.NodeManagement management = 5; + * + * @return The management. */ public com.google.container.v1.NodeManagement getManagement() { return management_ == null @@ -861,6 +954,135 @@ 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. + */ + 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. + */ + 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; + */ + 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; + */ + public java.util.List getConditionsList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public java.util.List + getConditionsOrBuilderList() { + return conditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + public int getConditionsCount() { + return conditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition conditions = 105; + */ + 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; + */ + 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. + */ + public int getPodIpv4CidrSize() { + return podIpv4CidrSize_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -890,6 +1112,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (management_ != null) { output.writeMessage(5, getManagement()); } + if (maxPodsConstraint_ != null) { + output.writeMessage(6, getMaxPodsConstraint()); + } + if (podIpv4CidrSize_ != 0) { + output.writeInt32(7, podIpv4CidrSize_); + } if (!getSelfLinkBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 100, selfLink_); } @@ -905,6 +1133,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getStatusMessageBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 104, statusMessage_); } + for (int i = 0; i < conditions_.size(); i++) { + output.writeMessage(105, conditions_.get(i)); + } unknownFields.writeTo(output); } @@ -929,6 +1160,12 @@ public int getSerializedSize() { 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_); + } if (!getSelfLinkBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(100, selfLink_); } @@ -949,6 +1186,9 @@ public int getSerializedSize() { if (!getStatusMessageBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(104, statusMessage_); } + for (int i = 0; i < conditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(105, conditions_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -983,6 +1223,12 @@ public boolean equals(final java.lang.Object obj) { 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 (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1022,6 +1268,16 @@ public int hashCode() { 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(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1165,7 +1421,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConditionsFieldBuilder(); + } } @java.lang.Override @@ -1186,7 +1444,7 @@ public Builder clear() { version_ = ""; instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); status_ = 0; statusMessage_ = ""; @@ -1203,6 +1461,20 @@ public Builder clear() { management_ = null; managementBuilder_ = null; } + if (maxPodsConstraintBuilder_ == null) { + maxPodsConstraint_ = null; + } else { + maxPodsConstraint_ = null; + maxPodsConstraintBuilder_ = null; + } + if (conditionsBuilder_ == null) { + conditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + conditionsBuilder_.clear(); + } + podIpv4CidrSize_ = 0; + return this; } @@ -1230,7 +1502,6 @@ public com.google.container.v1.NodePool build() { public com.google.container.v1.NodePool buildPartial() { com.google.container.v1.NodePool result = new com.google.container.v1.NodePool(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.name_ = name_; if (configBuilder_ == null) { result.config_ = config_; @@ -1240,9 +1511,9 @@ public com.google.container.v1.NodePool buildPartial() { result.initialNodeCount_ = initialNodeCount_; result.selfLink_ = selfLink_; result.version_ = version_; - if (((bitField0_ & 0x00000020) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { instanceGroupUrls_ = instanceGroupUrls_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); } result.instanceGroupUrls_ = instanceGroupUrls_; result.status_ = status_; @@ -1257,7 +1528,21 @@ public com.google.container.v1.NodePool buildPartial() { } else { result.management_ = managementBuilder_.build(); } - result.bitField0_ = to_bitField0_; + if (maxPodsConstraintBuilder_ == null) { + result.maxPodsConstraint_ = maxPodsConstraint_; + } else { + result.maxPodsConstraint_ = maxPodsConstraintBuilder_.build(); + } + if (conditionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + conditions_ = java.util.Collections.unmodifiableList(conditions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.conditions_ = conditions_; + } else { + result.conditions_ = conditionsBuilder_.build(); + } + result.podIpv4CidrSize_ = podIpv4CidrSize_; onBuilt(); return result; } @@ -1328,7 +1613,7 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { if (!other.instanceGroupUrls_.isEmpty()) { if (instanceGroupUrls_.isEmpty()) { instanceGroupUrls_ = other.instanceGroupUrls_; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureInstanceGroupUrlsIsMutable(); instanceGroupUrls_.addAll(other.instanceGroupUrls_); @@ -1348,6 +1633,39 @@ public Builder mergeFrom(com.google.container.v1.NodePool other) { 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_ & ~0x00000002); + } else { + ensureConditionsIsMutable(); + conditions_.addAll(other.conditions_); + } + onChanged(); + } + } else { + if (!other.conditions_.isEmpty()) { + if (conditionsBuilder_.isEmpty()) { + conditionsBuilder_.dispose(); + conditionsBuilder_ = null; + conditions_ = other.conditions_; + bitField0_ = (bitField0_ & ~0x00000002); + conditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConditionsFieldBuilder() + : null; + } else { + conditionsBuilder_.addAllMessages(other.conditions_); + } + } + } + if (other.getPodIpv4CidrSize() != 0) { + setPodIpv4CidrSize(other.getPodIpv4CidrSize()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1388,6 +1706,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1408,6 +1728,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1428,6 +1750,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1446,6 +1771,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1461,6 +1788,9 @@ public Builder clearName() { * * * 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) { @@ -1487,6 +1817,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.NodeConfig config = 2; + * + * @return Whether the config field is set. */ public boolean hasConfig() { return configBuilder_ != null || config_ != null; @@ -1499,6 +1831,8 @@ public boolean hasConfig() { * * * .google.container.v1.NodeConfig config = 2; + * + * @return The config. */ public com.google.container.v1.NodeConfig getConfig() { if (configBuilder_ == null) { @@ -1662,6 +1996,8 @@ public com.google.container.v1.NodeConfigOrBuilder getConfigOrBuilder() { * * * int32 initial_node_count = 3; + * + * @return The initialNodeCount. */ public int getInitialNodeCount() { return initialNodeCount_; @@ -1677,6 +2013,9 @@ public int getInitialNodeCount() { * * * int32 initial_node_count = 3; + * + * @param value The initialNodeCount to set. + * @return This builder for chaining. */ public Builder setInitialNodeCount(int value) { @@ -1695,6 +2034,8 @@ public Builder setInitialNodeCount(int value) { * * * int32 initial_node_count = 3; + * + * @return This builder for chaining. */ public Builder clearInitialNodeCount() { @@ -1712,6 +2053,8 @@ public Builder clearInitialNodeCount() { * * * string self_link = 100; + * + * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; @@ -1732,6 +2075,8 @@ public java.lang.String getSelfLink() { * * * string self_link = 100; + * + * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; @@ -1752,6 +2097,9 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * * 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) { @@ -1770,6 +2118,8 @@ public Builder setSelfLink(java.lang.String value) { * * * string self_link = 100; + * + * @return This builder for chaining. */ public Builder clearSelfLink() { @@ -1785,6 +2135,9 @@ public Builder clearSelfLink() { * * * 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) { @@ -1806,6 +2159,8 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * * string version = 101; + * + * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; @@ -1826,6 +2181,8 @@ public java.lang.String getVersion() { * * * string version = 101; + * + * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; @@ -1846,6 +2203,9 @@ public com.google.protobuf.ByteString getVersionBytes() { * * * string version = 101; + * + * @param value The version to set. + * @return This builder for chaining. */ public Builder setVersion(java.lang.String value) { if (value == null) { @@ -1864,6 +2224,8 @@ public Builder setVersion(java.lang.String value) { * * * string version = 101; + * + * @return This builder for chaining. */ public Builder clearVersion() { @@ -1879,6 +2241,9 @@ public Builder clearVersion() { * * * 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) { @@ -1895,9 +2260,9 @@ public Builder setVersionBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureInstanceGroupUrlsIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { instanceGroupUrls_ = new com.google.protobuf.LazyStringArrayList(instanceGroupUrls_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000001; } } /** @@ -1910,6 +2275,8 @@ private void ensureInstanceGroupUrlsIsMutable() { * * * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. */ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { return instanceGroupUrls_.getUnmodifiableView(); @@ -1924,6 +2291,8 @@ public com.google.protobuf.ProtocolStringList getInstanceGroupUrlsList() { * * * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. */ public int getInstanceGroupUrlsCount() { return instanceGroupUrls_.size(); @@ -1938,6 +2307,9 @@ public int getInstanceGroupUrlsCount() { * * * 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); @@ -1952,6 +2324,9 @@ public java.lang.String getInstanceGroupUrls(int index) { * * * 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); @@ -1966,6 +2341,10 @@ public com.google.protobuf.ByteString getInstanceGroupUrlsBytes(int index) { * * * 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) { @@ -1986,6 +2365,9 @@ public Builder setInstanceGroupUrls(int index, java.lang.String value) { * * * 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) { @@ -2006,6 +2388,9 @@ public Builder addInstanceGroupUrls(java.lang.String value) { * * * 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(); @@ -2023,10 +2408,12 @@ public Builder addAllInstanceGroupUrls(java.lang.Iterable valu * * * repeated string instance_group_urls = 102; + * + * @return This builder for chaining. */ public Builder clearInstanceGroupUrls() { instanceGroupUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -2040,6 +2427,9 @@ public Builder clearInstanceGroupUrls() { * * * 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) { @@ -2061,6 +2451,8 @@ public Builder addInstanceGroupUrlsBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. */ public int getStatusValue() { return status_; @@ -2073,6 +2465,9 @@ public int getStatusValue() { * * * .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; @@ -2087,6 +2482,8 @@ public Builder setStatusValue(int value) { * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The status. */ public com.google.container.v1.NodePool.Status getStatus() { @SuppressWarnings("deprecation") @@ -2102,6 +2499,9 @@ public com.google.container.v1.NodePool.Status getStatus() { * * * .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) { @@ -2120,6 +2520,8 @@ public Builder setStatus(com.google.container.v1.NodePool.Status value) { * * * .google.container.v1.NodePool.Status status = 103; + * + * @return This builder for chaining. */ public Builder clearStatus() { @@ -2138,6 +2540,8 @@ public Builder clearStatus() { * * * string status_message = 104; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -2159,6 +2563,8 @@ public java.lang.String getStatusMessage() { * * * string status_message = 104; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -2180,6 +2586,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * string status_message = 104; + * + * @param value The statusMessage to set. + * @return This builder for chaining. */ public Builder setStatusMessage(java.lang.String value) { if (value == null) { @@ -2199,6 +2608,8 @@ public Builder setStatusMessage(java.lang.String value) { * * * string status_message = 104; + * + * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -2215,6 +2626,9 @@ public Builder clearStatusMessage() { * * * string status_message = 104; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. */ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { if (value == null) { @@ -2242,6 +2656,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. */ public boolean hasAutoscaling() { return autoscalingBuilder_ != null || autoscaling_ != null; @@ -2255,6 +2671,8 @@ public boolean hasAutoscaling() { * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. */ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { if (autoscalingBuilder_ == null) { @@ -2432,6 +2850,8 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil * * * .google.container.v1.NodeManagement management = 5; + * + * @return Whether the management field is set. */ public boolean hasManagement() { return managementBuilder_ != null || management_ != null; @@ -2444,6 +2864,8 @@ public boolean hasManagement() { * * * .google.container.v1.NodeManagement management = 5; + * + * @return The management. */ public com.google.container.v1.NodeManagement getManagement() { if (managementBuilder_ == null) { @@ -2599,6 +3021,601 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() 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_ & 0x00000002) != 0)) { + conditions_ = new java.util.ArrayList(conditions_); + bitField0_ |= 0x00000002; + } + } + + 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_ & ~0x00000002); + 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_ & 0x00000002) != 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. + */ + 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; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java index 5db03801..f46c08e3 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscaling.java @@ -40,6 +40,12 @@ private NodePoolAutoscaling(com.google.protobuf.GeneratedMessageV3.Builder bu private NodePoolAutoscaling() {} + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NodePoolAutoscaling(); + } + @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; @@ -53,7 +59,6 @@ private NodePoolAutoscaling( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -79,6 +84,11 @@ private NodePoolAutoscaling( maxNodeCount_ = input.readInt32(); break; } + case 32: + { + autoprovisioned_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -123,6 +133,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -139,6 +151,8 @@ public boolean getEnabled() { * * * int32 min_node_count = 2; + * + * @return The minNodeCount. */ public int getMinNodeCount() { return minNodeCount_; @@ -155,11 +169,30 @@ public int getMinNodeCount() { * * * int32 max_node_count = 3; + * + * @return The maxNodeCount. */ 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. + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -183,6 +216,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (maxNodeCount_ != 0) { output.writeInt32(3, maxNodeCount_); } + if (autoprovisioned_ != false) { + output.writeBool(4, autoprovisioned_); + } unknownFields.writeTo(output); } @@ -201,6 +237,9 @@ public int getSerializedSize() { if (maxNodeCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxNodeCount_); } + if (autoprovisioned_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, autoprovisioned_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -220,6 +259,7 @@ public boolean equals(final java.lang.Object obj) { if (getEnabled() != other.getEnabled()) return false; if (getMinNodeCount() != other.getMinNodeCount()) return false; if (getMaxNodeCount() != other.getMaxNodeCount()) return false; + if (getAutoprovisioned() != other.getAutoprovisioned()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,6 +277,8 @@ public int hashCode() { hash = (53 * hash) + getMinNodeCount(); hash = (37 * hash) + MAX_NODE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getMaxNodeCount(); + hash = (37 * hash) + AUTOPROVISIONED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutoprovisioned()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -389,6 +431,8 @@ public Builder clear() { maxNodeCount_ = 0; + autoprovisioned_ = false; + return this; } @@ -419,6 +463,7 @@ public com.google.container.v1.NodePoolAutoscaling buildPartial() { result.enabled_ = enabled_; result.minNodeCount_ = minNodeCount_; result.maxNodeCount_ = maxNodeCount_; + result.autoprovisioned_ = autoprovisioned_; onBuilt(); return result; } @@ -477,6 +522,9 @@ public Builder mergeFrom(com.google.container.v1.NodePoolAutoscaling other) { if (other.getMaxNodeCount() != 0) { setMaxNodeCount(other.getMaxNodeCount()); } + if (other.getAutoprovisioned() != false) { + setAutoprovisioned(other.getAutoprovisioned()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -515,6 +563,8 @@ public Builder mergeFrom( * * * bool enabled = 1; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -527,6 +577,9 @@ public boolean getEnabled() { * * * bool enabled = 1; + * + * @param value The enabled to set. + * @return This builder for chaining. */ public Builder setEnabled(boolean value) { @@ -542,6 +595,8 @@ public Builder setEnabled(boolean value) { * * * bool enabled = 1; + * + * @return This builder for chaining. */ public Builder clearEnabled() { @@ -560,6 +615,8 @@ public Builder clearEnabled() { * * * int32 min_node_count = 2; + * + * @return The minNodeCount. */ public int getMinNodeCount() { return minNodeCount_; @@ -573,6 +630,9 @@ public int getMinNodeCount() { * * * int32 min_node_count = 2; + * + * @param value The minNodeCount to set. + * @return This builder for chaining. */ public Builder setMinNodeCount(int value) { @@ -589,6 +649,8 @@ public Builder setMinNodeCount(int value) { * * * int32 min_node_count = 2; + * + * @return This builder for chaining. */ public Builder clearMinNodeCount() { @@ -607,6 +669,8 @@ public Builder clearMinNodeCount() { * * * int32 max_node_count = 3; + * + * @return The maxNodeCount. */ public int getMaxNodeCount() { return maxNodeCount_; @@ -620,6 +684,9 @@ public int getMaxNodeCount() { * * * int32 max_node_count = 3; + * + * @param value The maxNodeCount to set. + * @return This builder for chaining. */ public Builder setMaxNodeCount(int value) { @@ -636,6 +703,8 @@ public Builder setMaxNodeCount(int value) { * * * int32 max_node_count = 3; + * + * @return This builder for chaining. */ public Builder clearMaxNodeCount() { @@ -644,6 +713,57 @@ public Builder clearMaxNodeCount() { return this; } + private boolean autoprovisioned_; + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + public boolean getAutoprovisioned() { + return autoprovisioned_; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @param value The autoprovisioned to set. + * @return This builder for chaining. + */ + public Builder setAutoprovisioned(boolean value) { + + autoprovisioned_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Can this node pool be deleted automatically.
+     * 
+ * + * bool autoprovisioned = 4; + * + * @return This builder for chaining. + */ + public Builder clearAutoprovisioned() { + + autoprovisioned_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java index 9444e70c..0be6d2db 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolAutoscalingOrBuilder.java @@ -31,6 +31,8 @@ public interface NodePoolAutoscalingOrBuilder * * * bool enabled = 1; + * + * @return The enabled. */ boolean getEnabled(); @@ -43,6 +45,8 @@ public interface NodePoolAutoscalingOrBuilder * * * int32 min_node_count = 2; + * + * @return The minNodeCount. */ int getMinNodeCount(); @@ -55,6 +59,21 @@ public interface NodePoolAutoscalingOrBuilder * * * int32 max_node_count = 3; + * + * @return The maxNodeCount. */ int getMaxNodeCount(); + + /** + * + * + *
+   * Can this node pool be deleted automatically.
+   * 
+ * + * bool autoprovisioned = 4; + * + * @return The autoprovisioned. + */ + boolean getAutoprovisioned(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java index 233080dc..05f256ff 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodePoolOrBuilder.java @@ -31,6 +31,8 @@ public interface NodePoolOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -41,6 +43,8 @@ public interface NodePoolOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -52,6 +56,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodeConfig config = 2; + * + * @return Whether the config field is set. */ boolean hasConfig(); /** @@ -62,6 +68,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodeConfig config = 2; + * + * @return The config. */ com.google.container.v1.NodeConfig getConfig(); /** @@ -86,6 +94,8 @@ public interface NodePoolOrBuilder * * * int32 initial_node_count = 3; + * + * @return The initialNodeCount. */ int getInitialNodeCount(); @@ -97,6 +107,8 @@ public interface NodePoolOrBuilder * * * string self_link = 100; + * + * @return The selfLink. */ java.lang.String getSelfLink(); /** @@ -107,6 +119,8 @@ public interface NodePoolOrBuilder * * * string self_link = 100; + * + * @return The bytes for selfLink. */ com.google.protobuf.ByteString getSelfLinkBytes(); @@ -118,6 +132,8 @@ public interface NodePoolOrBuilder * * * string version = 101; + * + * @return The version. */ java.lang.String getVersion(); /** @@ -128,6 +144,8 @@ public interface NodePoolOrBuilder * * * string version = 101; + * + * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); @@ -141,6 +159,8 @@ public interface NodePoolOrBuilder * * * repeated string instance_group_urls = 102; + * + * @return A list containing the instanceGroupUrls. */ java.util.List getInstanceGroupUrlsList(); /** @@ -153,6 +173,8 @@ public interface NodePoolOrBuilder * * * repeated string instance_group_urls = 102; + * + * @return The count of instanceGroupUrls. */ int getInstanceGroupUrlsCount(); /** @@ -165,6 +187,9 @@ public interface NodePoolOrBuilder * * * 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); /** @@ -177,6 +202,9 @@ public interface NodePoolOrBuilder * * * 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); @@ -188,6 +216,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** @@ -198,6 +228,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodePool.Status status = 103; + * + * @return The status. */ com.google.container.v1.NodePool.Status getStatus(); @@ -210,6 +242,8 @@ public interface NodePoolOrBuilder * * * string status_message = 104; + * + * @return The statusMessage. */ java.lang.String getStatusMessage(); /** @@ -221,6 +255,8 @@ public interface NodePoolOrBuilder * * * string status_message = 104; + * + * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); @@ -233,6 +269,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return Whether the autoscaling field is set. */ boolean hasAutoscaling(); /** @@ -244,6 +282,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodePoolAutoscaling autoscaling = 4; + * + * @return The autoscaling. */ com.google.container.v1.NodePoolAutoscaling getAutoscaling(); /** @@ -266,6 +306,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodeManagement management = 5; + * + * @return Whether the management field is set. */ boolean hasManagement(); /** @@ -276,6 +318,8 @@ public interface NodePoolOrBuilder * * * .google.container.v1.NodeManagement management = 5; + * + * @return The management. */ com.google.container.v1.NodeManagement getManagement(); /** @@ -288,4 +332,107 @@ public interface NodePoolOrBuilder * .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(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java new file mode 100644 index 00000000..f890f16c --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaint.java @@ -0,0 +1,1132 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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.
+ * For more information, including usage and the valid values, see:
+ * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+ * 
+ * + * 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; + } + + private NodeTaint( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + key_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + value_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + effect_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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() { + return getDescriptor().getValues().get(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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + public int getEffectValue() { + return effect_; + } + /** + * + * + *
+   * Effect for taint.
+   * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * + * @return The effect. + */ + 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 (!getKeyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (!getValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + output.writeEnum(3, effect_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getKeyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (!getValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (effect_ != com.google.container.v1.NodeTaint.Effect.EFFECT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, effect_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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.
+   * For more information, including usage and the valid values, see:
+   * https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
+   * 
+ * + * 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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + value_ = ""; + + effect_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.NodeTaint parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.NodeTaint) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object key_ = ""; + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return The bytes for key. + */ + public com.google.protobuf.ByteString getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + key_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @return This builder for chaining. + */ + public Builder clearKey() { + + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * + * + *
+     * Key for taint.
+     * 
+ * + * string key = 1; + * + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + key_ = value; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + value_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Value for taint.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + value_ = value; + onChanged(); + return this; + } + + private int effect_ = 0; + /** + * + * + *
+     * Effect for taint.
+     * 
+ * + * .google.container.v1.NodeTaint.Effect effect = 3; + * + * @return The enum numeric value on the wire for effect. + */ + 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. + */ + 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 { + return new NodeTaint(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.NodeTaint getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java new file mode 100644 index 00000000..96380ed3 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/NodeTaintOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java index 6b3f4675..f1aa9b45 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/Operation.java @@ -50,6 +50,14 @@ private Operation() { 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 @@ -153,6 +161,30 @@ private Operation( endTime_ = s; break; } + case 106: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + clusterConditions_.add( + input.readMessage( + com.google.container.v1.StatusCondition.parser(), extensionRegistry)); + break; + } + case 114: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + nodepoolConditions_.add( + input.readMessage( + com.google.container.v1.StatusCondition.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -167,6 +199,12 @@ private Operation( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + clusterConditions_ = java.util.Collections.unmodifiableList(clusterConditions_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + nodepoolConditions_ = java.util.Collections.unmodifiableList(nodepoolConditions_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -309,12 +347,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -738,12 +784,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -839,6 +893,8 @@ private Type(int value) { * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -859,6 +915,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -885,6 +943,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string zone = 2 [deprecated = true]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -909,6 +969,8 @@ public java.lang.String getZone() { * * * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -933,6 +995,8 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. */ public int getOperationTypeValue() { return operationType_; @@ -945,6 +1009,8 @@ public int getOperationTypeValue() { * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The operationType. */ public com.google.container.v1.Operation.Type getOperationType() { @SuppressWarnings("deprecation") @@ -963,6 +1029,8 @@ public com.google.container.v1.Operation.Type getOperationType() { * * * .google.container.v1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. */ public int getStatusValue() { return status_; @@ -975,6 +1043,8 @@ public int getStatusValue() { * * * .google.container.v1.Operation.Status status = 4; + * + * @return The status. */ public com.google.container.v1.Operation.Status getStatus() { @SuppressWarnings("deprecation") @@ -993,6 +1063,8 @@ public com.google.container.v1.Operation.Status getStatus() { * * * string detail = 8; + * + * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; @@ -1013,6 +1085,8 @@ public java.lang.String getDetail() { * * * string detail = 8; + * + * @return The bytes for detail. */ public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; @@ -1036,6 +1110,8 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * string status_message = 5; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -1056,6 +1132,8 @@ public java.lang.String getStatusMessage() { * * * string status_message = 5; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -1079,6 +1157,8 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * string self_link = 6; + * + * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; @@ -1099,6 +1179,8 @@ public java.lang.String getSelfLink() { * * * string self_link = 6; + * + * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; @@ -1122,6 +1204,8 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * * string target_link = 7; + * + * @return The targetLink. */ public java.lang.String getTargetLink() { java.lang.Object ref = targetLink_; @@ -1142,6 +1226,8 @@ public java.lang.String getTargetLink() { * * * string target_link = 7; + * + * @return The bytes for targetLink. */ public com.google.protobuf.ByteString getTargetLinkBytes() { java.lang.Object ref = targetLink_; @@ -1168,6 +1254,8 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * * string location = 9; + * + * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; @@ -1191,6 +1279,8 @@ public java.lang.String getLocation() { * * * string location = 9; + * + * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; @@ -1215,6 +1305,8 @@ public com.google.protobuf.ByteString getLocationBytes() { * * * string start_time = 10; + * + * @return The startTime. */ public java.lang.String getStartTime() { java.lang.Object ref = startTime_; @@ -1236,6 +1328,8 @@ public java.lang.String getStartTime() { * * * string start_time = 10; + * + * @return The bytes for startTime. */ public com.google.protobuf.ByteString getStartTimeBytes() { java.lang.Object ref = startTime_; @@ -1260,6 +1354,8 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * * string end_time = 11; + * + * @return The endTime. */ public java.lang.String getEndTime() { java.lang.Object ref = endTime_; @@ -1281,6 +1377,8 @@ public java.lang.String getEndTime() { * * * string end_time = 11; + * + * @return The bytes for endTime. */ public com.google.protobuf.ByteString getEndTimeBytes() { java.lang.Object ref = endTime_; @@ -1294,6 +1392,135 @@ public com.google.protobuf.ByteString getEndTimeBytes() { } } + public static final int CLUSTER_CONDITIONS_FIELD_NUMBER = 13; + private java.util.List clusterConditions_; + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public java.util.List getClusterConditionsList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public java.util.List + getClusterConditionsOrBuilderList() { + return clusterConditions_; + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + return clusterConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1.StatusCondition getClusterConditions(int index) { + return clusterConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List getNodepoolConditionsList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public java.util.List + getNodepoolConditionsOrBuilderList() { + return nodepoolConditions_; + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + return nodepoolConditions_.size(); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1.StatusCondition getNodepoolConditions(int index) { + return nodepoolConditions_.get(index); + } + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder( + int index) { + return nodepoolConditions_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1341,6 +1568,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getEndTimeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, endTime_); } + 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)); + } unknownFields.writeTo(output); } @@ -1383,6 +1616,14 @@ public int getSerializedSize() { if (!getEndTimeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, endTime_); } + 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)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1409,6 +1650,8 @@ public boolean equals(final java.lang.Object obj) { if (!getLocation().equals(other.getLocation())) return false; if (!getStartTime().equals(other.getStartTime())) return false; if (!getEndTime().equals(other.getEndTime())) return false; + if (!getClusterConditionsList().equals(other.getClusterConditionsList())) return false; + if (!getNodepoolConditionsList().equals(other.getNodepoolConditionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1442,6 +1685,14 @@ public int hashCode() { hash = (53 * hash) + getStartTime().hashCode(); hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().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(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1581,7 +1832,10 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { } private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getClusterConditionsFieldBuilder(); + getNodepoolConditionsFieldBuilder(); + } } @java.lang.Override @@ -1609,6 +1863,18 @@ public Builder clear() { endTime_ = ""; + if (clusterConditionsBuilder_ == null) { + clusterConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + clusterConditionsBuilder_.clear(); + } + if (nodepoolConditionsBuilder_ == null) { + nodepoolConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + nodepoolConditionsBuilder_.clear(); + } return this; } @@ -1635,6 +1901,7 @@ public com.google.container.v1.Operation build() { @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_; @@ -1646,6 +1913,24 @@ public com.google.container.v1.Operation buildPartial() { result.location_ = location_; result.startTime_ = startTime_; result.endTime_ = endTime_; + 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(); + } onBuilt(); return result; } @@ -1737,6 +2022,60 @@ public Builder mergeFrom(com.google.container.v1.Operation other) { endTime_ = other.endTime_; onChanged(); } + 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_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1766,6 +2105,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1775,6 +2116,8 @@ public Builder mergeFrom( * * * string name = 1; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1795,6 +2138,8 @@ public java.lang.String getName() { * * * string name = 1; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1815,6 +2160,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1833,6 +2181,8 @@ public Builder setName(java.lang.String value) { * * * string name = 1; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1848,6 +2198,9 @@ public Builder clearName() { * * * 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) { @@ -1872,6 +2225,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * string zone = 2 [deprecated = true]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -1896,6 +2251,8 @@ public java.lang.String getZone() { * * * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1920,6 +2277,9 @@ public com.google.protobuf.ByteString getZoneBytes() { * * * string zone = 2 [deprecated = true]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1942,6 +2302,8 @@ public Builder setZone(java.lang.String value) { * * * string zone = 2 [deprecated = true]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1961,6 +2323,9 @@ public Builder clearZone() { * * * string zone = 2 [deprecated = true]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1983,6 +2348,8 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. */ public int getOperationTypeValue() { return operationType_; @@ -1995,6 +2362,9 @@ public int getOperationTypeValue() { * * * .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; @@ -2009,6 +2379,8 @@ public Builder setOperationTypeValue(int value) { * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The operationType. */ public com.google.container.v1.Operation.Type getOperationType() { @SuppressWarnings("deprecation") @@ -2024,6 +2396,9 @@ public com.google.container.v1.Operation.Type getOperationType() { * * * .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) { @@ -2042,6 +2417,8 @@ public Builder setOperationType(com.google.container.v1.Operation.Type value) { * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return This builder for chaining. */ public Builder clearOperationType() { @@ -2059,6 +2436,8 @@ public Builder clearOperationType() { * * * .google.container.v1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. */ public int getStatusValue() { return status_; @@ -2071,6 +2450,9 @@ public int getStatusValue() { * * * .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; @@ -2085,6 +2467,8 @@ public Builder setStatusValue(int value) { * * * .google.container.v1.Operation.Status status = 4; + * + * @return The status. */ public com.google.container.v1.Operation.Status getStatus() { @SuppressWarnings("deprecation") @@ -2100,6 +2484,9 @@ public com.google.container.v1.Operation.Status getStatus() { * * * .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) { @@ -2118,6 +2505,8 @@ public Builder setStatus(com.google.container.v1.Operation.Status value) { * * * .google.container.v1.Operation.Status status = 4; + * + * @return This builder for chaining. */ public Builder clearStatus() { @@ -2135,6 +2524,8 @@ public Builder clearStatus() { * * * string detail = 8; + * + * @return The detail. */ public java.lang.String getDetail() { java.lang.Object ref = detail_; @@ -2155,6 +2546,8 @@ public java.lang.String getDetail() { * * * string detail = 8; + * + * @return The bytes for detail. */ public com.google.protobuf.ByteString getDetailBytes() { java.lang.Object ref = detail_; @@ -2175,6 +2568,9 @@ public com.google.protobuf.ByteString getDetailBytes() { * * * string detail = 8; + * + * @param value The detail to set. + * @return This builder for chaining. */ public Builder setDetail(java.lang.String value) { if (value == null) { @@ -2193,6 +2589,8 @@ public Builder setDetail(java.lang.String value) { * * * string detail = 8; + * + * @return This builder for chaining. */ public Builder clearDetail() { @@ -2208,6 +2606,9 @@ public Builder clearDetail() { * * * 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) { @@ -2229,6 +2630,8 @@ public Builder setDetailBytes(com.google.protobuf.ByteString value) { * * * string status_message = 5; + * + * @return The statusMessage. */ public java.lang.String getStatusMessage() { java.lang.Object ref = statusMessage_; @@ -2249,6 +2652,8 @@ public java.lang.String getStatusMessage() { * * * string status_message = 5; + * + * @return The bytes for statusMessage. */ public com.google.protobuf.ByteString getStatusMessageBytes() { java.lang.Object ref = statusMessage_; @@ -2269,6 +2674,9 @@ public com.google.protobuf.ByteString getStatusMessageBytes() { * * * 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) { @@ -2287,6 +2695,8 @@ public Builder setStatusMessage(java.lang.String value) { * * * string status_message = 5; + * + * @return This builder for chaining. */ public Builder clearStatusMessage() { @@ -2302,6 +2712,9 @@ public Builder clearStatusMessage() { * * * 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) { @@ -2323,6 +2736,8 @@ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { * * * string self_link = 6; + * + * @return The selfLink. */ public java.lang.String getSelfLink() { java.lang.Object ref = selfLink_; @@ -2343,6 +2758,8 @@ public java.lang.String getSelfLink() { * * * string self_link = 6; + * + * @return The bytes for selfLink. */ public com.google.protobuf.ByteString getSelfLinkBytes() { java.lang.Object ref = selfLink_; @@ -2363,6 +2780,9 @@ public com.google.protobuf.ByteString getSelfLinkBytes() { * * * 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) { @@ -2381,6 +2801,8 @@ public Builder setSelfLink(java.lang.String value) { * * * string self_link = 6; + * + * @return This builder for chaining. */ public Builder clearSelfLink() { @@ -2396,6 +2818,9 @@ public Builder clearSelfLink() { * * * 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) { @@ -2417,6 +2842,8 @@ public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) { * * * string target_link = 7; + * + * @return The targetLink. */ public java.lang.String getTargetLink() { java.lang.Object ref = targetLink_; @@ -2437,6 +2864,8 @@ public java.lang.String getTargetLink() { * * * string target_link = 7; + * + * @return The bytes for targetLink. */ public com.google.protobuf.ByteString getTargetLinkBytes() { java.lang.Object ref = targetLink_; @@ -2457,6 +2886,9 @@ public com.google.protobuf.ByteString getTargetLinkBytes() { * * * 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) { @@ -2475,6 +2907,8 @@ public Builder setTargetLink(java.lang.String value) { * * * string target_link = 7; + * + * @return This builder for chaining. */ public Builder clearTargetLink() { @@ -2490,6 +2924,9 @@ public Builder clearTargetLink() { * * * 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) { @@ -2514,6 +2951,8 @@ public Builder setTargetLinkBytes(com.google.protobuf.ByteString value) { * * * string location = 9; + * + * @return The location. */ public java.lang.String getLocation() { java.lang.Object ref = location_; @@ -2537,6 +2976,8 @@ public java.lang.String getLocation() { * * * string location = 9; + * + * @return The bytes for location. */ public com.google.protobuf.ByteString getLocationBytes() { java.lang.Object ref = location_; @@ -2560,6 +3001,9 @@ public com.google.protobuf.ByteString getLocationBytes() { * * * string location = 9; + * + * @param value The location to set. + * @return This builder for chaining. */ public Builder setLocation(java.lang.String value) { if (value == null) { @@ -2581,6 +3025,8 @@ public Builder setLocation(java.lang.String value) { * * * string location = 9; + * + * @return This builder for chaining. */ public Builder clearLocation() { @@ -2599,6 +3045,9 @@ public Builder clearLocation() { * * * 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) { @@ -2621,6 +3070,8 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { * * * string start_time = 10; + * + * @return The startTime. */ public java.lang.String getStartTime() { java.lang.Object ref = startTime_; @@ -2642,6 +3093,8 @@ public java.lang.String getStartTime() { * * * string start_time = 10; + * + * @return The bytes for startTime. */ public com.google.protobuf.ByteString getStartTimeBytes() { java.lang.Object ref = startTime_; @@ -2663,6 +3116,9 @@ public com.google.protobuf.ByteString getStartTimeBytes() { * * * 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) { @@ -2682,6 +3138,8 @@ public Builder setStartTime(java.lang.String value) { * * * string start_time = 10; + * + * @return This builder for chaining. */ public Builder clearStartTime() { @@ -2698,6 +3156,9 @@ public Builder clearStartTime() { * * * 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) { @@ -2720,6 +3181,8 @@ public Builder setStartTimeBytes(com.google.protobuf.ByteString value) { * * * string end_time = 11; + * + * @return The endTime. */ public java.lang.String getEndTime() { java.lang.Object ref = endTime_; @@ -2741,6 +3204,8 @@ public java.lang.String getEndTime() { * * * string end_time = 11; + * + * @return The bytes for endTime. */ public com.google.protobuf.ByteString getEndTimeBytes() { java.lang.Object ref = endTime_; @@ -2762,6 +3227,9 @@ public com.google.protobuf.ByteString getEndTimeBytes() { * * * 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) { @@ -2781,6 +3249,8 @@ public Builder setEndTime(java.lang.String value) { * * * string end_time = 11; + * + * @return This builder for chaining. */ public Builder clearEndTime() { @@ -2797,6 +3267,9 @@ public Builder clearEndTime() { * * * 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) { @@ -2809,6 +3282,716 @@ public Builder setEndTimeBytes(com.google.protobuf.ByteString value) { return this; } + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public int getClusterConditionsCount() { + if (clusterConditionsBuilder_ == null) { + return clusterConditions_.size(); + } else { + return clusterConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1.StatusCondition.Builder getClusterConditionsBuilder(int index) { + return getClusterConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + public com.google.container.v1.StatusCondition.Builder addClusterConditionsBuilder() { + return getClusterConditionsFieldBuilder() + .addBuilder(com.google.container.v1.StatusCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Which conditions caused the current cluster state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public int getNodepoolConditionsCount() { + if (nodepoolConditionsBuilder_ == null) { + return nodepoolConditions_.size(); + } else { + return nodepoolConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + public com.google.container.v1.StatusCondition.Builder getNodepoolConditionsBuilder(int index) { + return getNodepoolConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Which conditions caused the current node pool state.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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.
+     * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + 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_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java index 780422d5..8e3c5407 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/OperationOrBuilder.java @@ -31,6 +31,8 @@ public interface OperationOrBuilder * * * string name = 1; + * + * @return The name. */ java.lang.String getName(); /** @@ -41,6 +43,8 @@ public interface OperationOrBuilder * * * string name = 1; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -55,6 +59,8 @@ public interface OperationOrBuilder * * * string zone = 2 [deprecated = true]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -69,6 +75,8 @@ public interface OperationOrBuilder * * * string zone = 2 [deprecated = true]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -81,6 +89,8 @@ public interface OperationOrBuilder * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The enum numeric value on the wire for operationType. */ int getOperationTypeValue(); /** @@ -91,6 +101,8 @@ public interface OperationOrBuilder * * * .google.container.v1.Operation.Type operation_type = 3; + * + * @return The operationType. */ com.google.container.v1.Operation.Type getOperationType(); @@ -102,6 +114,8 @@ public interface OperationOrBuilder * * * .google.container.v1.Operation.Status status = 4; + * + * @return The enum numeric value on the wire for status. */ int getStatusValue(); /** @@ -112,6 +126,8 @@ public interface OperationOrBuilder * * * .google.container.v1.Operation.Status status = 4; + * + * @return The status. */ com.google.container.v1.Operation.Status getStatus(); @@ -123,6 +139,8 @@ public interface OperationOrBuilder * * * string detail = 8; + * + * @return The detail. */ java.lang.String getDetail(); /** @@ -133,6 +151,8 @@ public interface OperationOrBuilder * * * string detail = 8; + * + * @return The bytes for detail. */ com.google.protobuf.ByteString getDetailBytes(); @@ -144,6 +164,8 @@ public interface OperationOrBuilder * * * string status_message = 5; + * + * @return The statusMessage. */ java.lang.String getStatusMessage(); /** @@ -154,6 +176,8 @@ public interface OperationOrBuilder * * * string status_message = 5; + * + * @return The bytes for statusMessage. */ com.google.protobuf.ByteString getStatusMessageBytes(); @@ -165,6 +189,8 @@ public interface OperationOrBuilder * * * string self_link = 6; + * + * @return The selfLink. */ java.lang.String getSelfLink(); /** @@ -175,6 +201,8 @@ public interface OperationOrBuilder * * * string self_link = 6; + * + * @return The bytes for selfLink. */ com.google.protobuf.ByteString getSelfLinkBytes(); @@ -186,6 +214,8 @@ public interface OperationOrBuilder * * * string target_link = 7; + * + * @return The targetLink. */ java.lang.String getTargetLink(); /** @@ -196,6 +226,8 @@ public interface OperationOrBuilder * * * string target_link = 7; + * + * @return The bytes for targetLink. */ com.google.protobuf.ByteString getTargetLinkBytes(); @@ -210,6 +242,8 @@ public interface OperationOrBuilder * * * string location = 9; + * + * @return The location. */ java.lang.String getLocation(); /** @@ -223,6 +257,8 @@ public interface OperationOrBuilder * * * string location = 9; + * + * @return The bytes for location. */ com.google.protobuf.ByteString getLocationBytes(); @@ -235,6 +271,8 @@ public interface OperationOrBuilder * * * string start_time = 10; + * + * @return The startTime. */ java.lang.String getStartTime(); /** @@ -246,6 +284,8 @@ public interface OperationOrBuilder * * * string start_time = 10; + * + * @return The bytes for startTime. */ com.google.protobuf.ByteString getStartTimeBytes(); @@ -258,6 +298,8 @@ public interface OperationOrBuilder * * * string end_time = 11; + * + * @return The endTime. */ java.lang.String getEndTime(); /** @@ -269,6 +311,112 @@ public interface OperationOrBuilder * * * string end_time = 11; + * + * @return The bytes for endTime. */ com.google.protobuf.ByteString getEndTimeBytes(); + + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + java.util.List getClusterConditionsList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1.StatusCondition getClusterConditions(int index); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + int getClusterConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + java.util.List + getClusterConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current cluster state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition cluster_conditions = 13; + */ + com.google.container.v1.StatusConditionOrBuilder getClusterConditionsOrBuilder(int index); + + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + java.util.List getNodepoolConditionsList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1.StatusCondition getNodepoolConditions(int index); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + int getNodepoolConditionsCount(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + java.util.List + getNodepoolConditionsOrBuilderList(); + /** + * + * + *
+   * Which conditions caused the current node pool state.
+   * 
+ * + * repeated .google.container.v1.StatusCondition nodepool_conditions = 14; + */ + com.google.container.v1.StatusConditionOrBuilder getNodepoolConditionsOrBuilder(int index); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java index 0de135b5..a5d7c530 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfig.java @@ -43,6 +43,12 @@ private PrivateClusterConfig() { publicEndpoint_ = ""; } + @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; @@ -56,7 +62,6 @@ private PrivateClusterConfig( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,6 +149,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. */ public boolean getEnablePrivateNodes() { return enablePrivateNodes_; @@ -159,6 +166,8 @@ public boolean getEnablePrivateNodes() { * * * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. */ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; @@ -177,6 +186,8 @@ public boolean getEnablePrivateEndpoint() { * * * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. */ public java.lang.String getMasterIpv4CidrBlock() { java.lang.Object ref = masterIpv4CidrBlock_; @@ -200,6 +211,8 @@ public java.lang.String getMasterIpv4CidrBlock() { * * * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. */ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { java.lang.Object ref = masterIpv4CidrBlock_; @@ -223,6 +236,8 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * * * string private_endpoint = 4; + * + * @return The privateEndpoint. */ public java.lang.String getPrivateEndpoint() { java.lang.Object ref = privateEndpoint_; @@ -243,6 +258,8 @@ public java.lang.String getPrivateEndpoint() { * * * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. */ public com.google.protobuf.ByteString getPrivateEndpointBytes() { java.lang.Object ref = privateEndpoint_; @@ -266,6 +283,8 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * string public_endpoint = 5; + * + * @return The publicEndpoint. */ public java.lang.String getPublicEndpoint() { java.lang.Object ref = publicEndpoint_; @@ -286,6 +305,8 @@ public java.lang.String getPublicEndpoint() { * * * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. */ public com.google.protobuf.ByteString getPublicEndpointBytes() { java.lang.Object ref = publicEndpoint_; @@ -688,6 +709,8 @@ public Builder mergeFrom( * * * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. */ public boolean getEnablePrivateNodes() { return enablePrivateNodes_; @@ -702,6 +725,9 @@ public boolean getEnablePrivateNodes() { * * * bool enable_private_nodes = 1; + * + * @param value The enablePrivateNodes to set. + * @return This builder for chaining. */ public Builder setEnablePrivateNodes(boolean value) { @@ -719,6 +745,8 @@ public Builder setEnablePrivateNodes(boolean value) { * * * bool enable_private_nodes = 1; + * + * @return This builder for chaining. */ public Builder clearEnablePrivateNodes() { @@ -736,6 +764,8 @@ public Builder clearEnablePrivateNodes() { * * * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. */ public boolean getEnablePrivateEndpoint() { return enablePrivateEndpoint_; @@ -748,6 +778,9 @@ public boolean getEnablePrivateEndpoint() { * * * bool enable_private_endpoint = 2; + * + * @param value The enablePrivateEndpoint to set. + * @return This builder for chaining. */ public Builder setEnablePrivateEndpoint(boolean value) { @@ -763,6 +796,8 @@ public Builder setEnablePrivateEndpoint(boolean value) { * * * bool enable_private_endpoint = 2; + * + * @return This builder for chaining. */ public Builder clearEnablePrivateEndpoint() { @@ -783,6 +818,8 @@ public Builder clearEnablePrivateEndpoint() { * * * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. */ public java.lang.String getMasterIpv4CidrBlock() { java.lang.Object ref = masterIpv4CidrBlock_; @@ -806,6 +843,8 @@ public java.lang.String getMasterIpv4CidrBlock() { * * * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. */ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { java.lang.Object ref = masterIpv4CidrBlock_; @@ -829,6 +868,9 @@ public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes() { * * * 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) { @@ -850,6 +892,8 @@ public Builder setMasterIpv4CidrBlock(java.lang.String value) { * * * string master_ipv4_cidr_block = 3; + * + * @return This builder for chaining. */ public Builder clearMasterIpv4CidrBlock() { @@ -868,6 +912,9 @@ public Builder clearMasterIpv4CidrBlock() { * * * 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) { @@ -889,6 +936,8 @@ public Builder setMasterIpv4CidrBlockBytes(com.google.protobuf.ByteString value) * * * string private_endpoint = 4; + * + * @return The privateEndpoint. */ public java.lang.String getPrivateEndpoint() { java.lang.Object ref = privateEndpoint_; @@ -909,6 +958,8 @@ public java.lang.String getPrivateEndpoint() { * * * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. */ public com.google.protobuf.ByteString getPrivateEndpointBytes() { java.lang.Object ref = privateEndpoint_; @@ -929,6 +980,9 @@ public com.google.protobuf.ByteString getPrivateEndpointBytes() { * * * 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) { @@ -947,6 +1001,8 @@ public Builder setPrivateEndpoint(java.lang.String value) { * * * string private_endpoint = 4; + * + * @return This builder for chaining. */ public Builder clearPrivateEndpoint() { @@ -962,6 +1018,9 @@ public Builder clearPrivateEndpoint() { * * * 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) { @@ -983,6 +1042,8 @@ public Builder setPrivateEndpointBytes(com.google.protobuf.ByteString value) { * * * string public_endpoint = 5; + * + * @return The publicEndpoint. */ public java.lang.String getPublicEndpoint() { java.lang.Object ref = publicEndpoint_; @@ -1003,6 +1064,8 @@ public java.lang.String getPublicEndpoint() { * * * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. */ public com.google.protobuf.ByteString getPublicEndpointBytes() { java.lang.Object ref = publicEndpoint_; @@ -1023,6 +1086,9 @@ public com.google.protobuf.ByteString getPublicEndpointBytes() { * * * 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) { @@ -1041,6 +1107,8 @@ public Builder setPublicEndpoint(java.lang.String value) { * * * string public_endpoint = 5; + * + * @return This builder for chaining. */ public Builder clearPublicEndpoint() { @@ -1056,6 +1124,9 @@ public Builder clearPublicEndpoint() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java index f6445873..0d676332 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/PrivateClusterConfigOrBuilder.java @@ -33,6 +33,8 @@ public interface PrivateClusterConfigOrBuilder * * * bool enable_private_nodes = 1; + * + * @return The enablePrivateNodes. */ boolean getEnablePrivateNodes(); @@ -44,6 +46,8 @@ public interface PrivateClusterConfigOrBuilder * * * bool enable_private_endpoint = 2; + * + * @return The enablePrivateEndpoint. */ boolean getEnablePrivateEndpoint(); @@ -58,6 +62,8 @@ public interface PrivateClusterConfigOrBuilder * * * string master_ipv4_cidr_block = 3; + * + * @return The masterIpv4CidrBlock. */ java.lang.String getMasterIpv4CidrBlock(); /** @@ -71,6 +77,8 @@ public interface PrivateClusterConfigOrBuilder * * * string master_ipv4_cidr_block = 3; + * + * @return The bytes for masterIpv4CidrBlock. */ com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes(); @@ -82,6 +90,8 @@ public interface PrivateClusterConfigOrBuilder * * * string private_endpoint = 4; + * + * @return The privateEndpoint. */ java.lang.String getPrivateEndpoint(); /** @@ -92,6 +102,8 @@ public interface PrivateClusterConfigOrBuilder * * * string private_endpoint = 4; + * + * @return The bytes for privateEndpoint. */ com.google.protobuf.ByteString getPrivateEndpointBytes(); @@ -103,6 +115,8 @@ public interface PrivateClusterConfigOrBuilder * * * string public_endpoint = 5; + * + * @return The publicEndpoint. */ java.lang.String getPublicEndpoint(); /** @@ -113,6 +127,8 @@ public interface PrivateClusterConfigOrBuilder * * * string public_endpoint = 5; + * + * @return The bytes for publicEndpoint. */ com.google.protobuf.ByteString getPublicEndpointBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java new file mode 100644 index 00000000..c9b17308 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindow.java @@ -0,0 +1,1074 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private RecurringTimeWindow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.container.v1.TimeWindow.Builder subBuilder = null; + if (window_ != null) { + subBuilder = window_.toBuilder(); + } + window_ = + input.readMessage(com.google.container.v1.TimeWindow.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(window_); + window_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + recurrence_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + public boolean hasWindow() { + return window_ != null; + } + /** + * + * + *
+   * The window of the first recurrence.
+   * 
+ * + * .google.container.v1.TimeWindow window = 1; + * + * @return The window. + */ + 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; + */ + 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:
+   *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   *   <code>FREQ=DAILY</code>
+   * For the first weekend of every month:
+   *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * <code>
+   *   start time = 2019-01-01T09:00:00-0400
+   *   end time = 2019-01-01T17:00:00-0400
+   *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * </code>
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * <code>
+   *   start time = 2019-01-05T00:00:00Z
+   *   end time = 2019-01-07T23:59:00Z
+   *   recurrence = FREQ=WEEKLY;BYDAY=SA
+   * </code>
+   * 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) { + 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:
+   *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   *   <code>FREQ=DAILY</code>
+   * For the first weekend of every month:
+   *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * <code>
+   *   start time = 2019-01-01T09:00:00-0400
+   *   end time = 2019-01-01T17:00:00-0400
+   *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * </code>
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * <code>
+   *   start time = 2019-01-05T00:00:00Z
+   *   end time = 2019-01-07T23:59:00Z
+   *   recurrence = FREQ=WEEKLY;BYDAY=SA
+   * </code>
+   * 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 java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + recurrence_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (window_ != null) { + output.writeMessage(1, getWindow()); + } + if (!getRecurrenceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recurrence_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (window_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWindow()); + } + if (!getRecurrenceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recurrence_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasWindow()) { + hash = (37 * hash) + WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getWindow().hashCode(); + } + hash = (37 * hash) + RECURRENCE_FIELD_NUMBER; + hash = (53 * hash) + getRecurrence().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.RecurringTimeWindow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.RecurringTimeWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.RecurringTimeWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents an arbitrary window of time that recurs.
+   * 
+ * + * Protobuf type {@code google.container.v1.RecurringTimeWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.RecurringTimeWindow) + com.google.container.v1.RecurringTimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RecurringTimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_RecurringTimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.RecurringTimeWindow.class, + com.google.container.v1.RecurringTimeWindow.Builder.class); + } + + // Construct using com.google.container.v1.RecurringTimeWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.RecurringTimeWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.RecurringTimeWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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:
+     *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     *   <code>FREQ=DAILY</code>
+     * For the first weekend of every month:
+     *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * <code>
+     *   start time = 2019-01-01T09:00:00-0400
+     *   end time = 2019-01-01T17:00:00-0400
+     *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * </code>
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * <code>
+     *   start time = 2019-01-05T00:00:00Z
+     *   end time = 2019-01-07T23:59:00Z
+     *   recurrence = FREQ=WEEKLY;BYDAY=SA
+     * </code>
+     * 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:
+     *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     *   <code>FREQ=DAILY</code>
+     * For the first weekend of every month:
+     *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * <code>
+     *   start time = 2019-01-01T09:00:00-0400
+     *   end time = 2019-01-01T17:00:00-0400
+     *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * </code>
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * <code>
+     *   start time = 2019-01-05T00:00:00Z
+     *   end time = 2019-01-07T23:59:00Z
+     *   recurrence = FREQ=WEEKLY;BYDAY=SA
+     * </code>
+     * 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:
+     *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     *   <code>FREQ=DAILY</code>
+     * For the first weekend of every month:
+     *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * <code>
+     *   start time = 2019-01-01T09:00:00-0400
+     *   end time = 2019-01-01T17:00:00-0400
+     *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * </code>
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * <code>
+     *   start time = 2019-01-05T00:00:00Z
+     *   end time = 2019-01-07T23:59:00Z
+     *   recurrence = FREQ=WEEKLY;BYDAY=SA
+     * </code>
+     * 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:
+     *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     *   <code>FREQ=DAILY</code>
+     * For the first weekend of every month:
+     *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * <code>
+     *   start time = 2019-01-01T09:00:00-0400
+     *   end time = 2019-01-01T17:00:00-0400
+     *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * </code>
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * <code>
+     *   start time = 2019-01-05T00:00:00Z
+     *   end time = 2019-01-07T23:59:00Z
+     *   recurrence = FREQ=WEEKLY;BYDAY=SA
+     * </code>
+     * 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:
+     *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+     * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+     *   <code>FREQ=DAILY</code>
+     * For the first weekend of every month:
+     *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+     * This specifies how frequently the window starts. Eg, if you wanted to have
+     * a 9-5 UTC-4 window every weekday, you'd use something like:
+     * <code>
+     *   start time = 2019-01-01T09:00:00-0400
+     *   end time = 2019-01-01T17:00:00-0400
+     *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+     * </code>
+     * Windows can span multiple days. Eg, to make the window encompass every
+     * weekend from midnight Saturday till the last minute of Sunday UTC:
+     * <code>
+     *   start time = 2019-01-05T00:00:00Z
+     *   end time = 2019-01-07T23:59:00Z
+     *   recurrence = FREQ=WEEKLY;BYDAY=SA
+     * </code>
+     * 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 { + return new RecurringTimeWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.RecurringTimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java new file mode 100644 index 00000000..e2712f13 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RecurringTimeWindowOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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:
+   *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   *   <code>FREQ=DAILY</code>
+   * For the first weekend of every month:
+   *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * <code>
+   *   start time = 2019-01-01T09:00:00-0400
+   *   end time = 2019-01-01T17:00:00-0400
+   *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * </code>
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * <code>
+   *   start time = 2019-01-05T00:00:00Z
+   *   end time = 2019-01-07T23:59:00Z
+   *   recurrence = FREQ=WEEKLY;BYDAY=SA
+   * </code>
+   * 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:
+   *   <code>FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR</code>
+   * To repeat some window daily (equivalent to the DailyMaintenanceWindow):
+   *   <code>FREQ=DAILY</code>
+   * For the first weekend of every month:
+   *   <code>FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU</code>
+   * This specifies how frequently the window starts. Eg, if you wanted to have
+   * a 9-5 UTC-4 window every weekday, you'd use something like:
+   * <code>
+   *   start time = 2019-01-01T09:00:00-0400
+   *   end time = 2019-01-01T17:00:00-0400
+   *   recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR
+   * </code>
+   * Windows can span multiple days. Eg, to make the window encompass every
+   * weekend from midnight Saturday till the last minute of Sunday UTC:
+   * <code>
+   *   start time = 2019-01-05T00:00:00Z
+   *   end time = 2019-01-07T23:59:00Z
+   *   recurrence = FREQ=WEEKLY;BYDAY=SA
+   * </code>
+   * Note the start and end time's specific dates are largely arbitrary except
+   * to specify duration of the window and when it first starts.
+   * The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported.
+   * 
+ * + * string recurrence = 2; + * + * @return The bytes for recurrence. + */ + com.google.protobuf.ByteString getRecurrenceBytes(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java new file mode 100644 index 00000000..707597e4 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimit.java @@ -0,0 +1,808 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private ResourceLimit( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + resourceType_ = s; + break; + } + case 16: + { + minimum_ = input.readInt64(); + break; + } + case 24: + { + maximum_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + 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. + */ + 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. + */ + public long getMaximum() { + return maximum_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getResourceTypeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resourceType_); + } + if (minimum_ != 0L) { + output.writeInt64(2, minimum_); + } + if (maximum_ != 0L) { + output.writeInt64(3, maximum_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceTypeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resourceType_); + } + if (minimum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minimum_); + } + if (maximum_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maximum_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getResourceType().hashCode(); + hash = (37 * hash) + MINIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinimum()); + hash = (37 * hash) + MAXIMUM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaximum()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + resourceType_ = ""; + + minimum_ = 0L; + + maximum_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ResourceLimit parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ResourceLimit) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resourceType_ = ""; + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The resourceType. + */ + public java.lang.String getResourceType() { + java.lang.Object ref = resourceType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resourceType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return The bytes for resourceType. + */ + public com.google.protobuf.ByteString getResourceTypeBytes() { + java.lang.Object ref = resourceType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resourceType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resourceType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + + resourceType_ = getDefaultInstance().getResourceType(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name "cpu", "memory" or gpu-specific string.
+     * 
+ * + * string resource_type = 1; + * + * @param value The bytes for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resourceType_ = value; + onChanged(); + return this; + } + + private long minimum_; + /** + * + * + *
+     * Minimum amount of the resource in the cluster.
+     * 
+ * + * int64 minimum = 2; + * + * @return The minimum. + */ + 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. + */ + 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 { + return new ResourceLimit(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceLimit getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java new file mode 100644 index 00000000..1f25e283 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceLimitOrBuilder.java @@ -0,0 +1,76 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java new file mode 100644 index 00000000..b121ddee --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfig.java @@ -0,0 +1,2434 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private ResourceUsageExportConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination.Builder + subBuilder = null; + if (bigqueryDestination_ != null) { + subBuilder = bigqueryDestination_.toBuilder(); + } + bigqueryDestination_ = + input.readMessage( + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(bigqueryDestination_); + bigqueryDestination_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + enableNetworkEgressMetering_ = input.readBool(); + break; + } + case 26: + { + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig.Builder + subBuilder = null; + if (consumptionMeteringConfig_ != null) { + subBuilder = consumptionMeteringConfig_.toBuilder(); + } + consumptionMeteringConfig_ = + input.readMessage( + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(consumptionMeteringConfig_); + consumptionMeteringConfig_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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; + } + + private BigQueryDestination( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + datasetId_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getDatasetIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, datasetId_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getDatasetIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, datasetId_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + datasetId_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ResourceUsageExportConfig.BigQueryDestination) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object datasetId_ = ""; + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The datasetId. + */ + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + datasetId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return The bytes for datasetId. + */ + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + datasetId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + datasetId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearDatasetId() { + + datasetId_ = getDefaultInstance().getDatasetId(); + onChanged(); + return this; + } + /** + * + * + *
+       * The ID of a BigQuery Dataset.
+       * 
+ * + * string dataset_id = 1; + * + * @param value The bytes for datasetId to set. + * @return This builder for chaining. + */ + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + datasetId_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 { + return new BigQueryDestination(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.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; + } + + private ConsumptionMeteringConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.container.v1.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ResourceUsageExportConfig.ConsumptionMeteringConfig) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+       * Whether to enable consumption metering for this cluster. If enabled, a
+       * second BigQuery table will be created to hold resource consumption
+       * records.
+       * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + 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 { + return new ConsumptionMeteringConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.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. + */ + 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. + */ + 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; + * + */ + 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. + */ + 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. + */ + public boolean hasConsumptionMeteringConfig() { + return 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() { + 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; + * + */ + 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()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (bigqueryDestination_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBigqueryDestination()); + } + if (enableNetworkEgressMetering_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableNetworkEgressMetering_); + } + if (consumptionMeteringConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getConsumptionMeteringConfig()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasBigqueryDestination()) { + hash = (37 * hash) + BIGQUERY_DESTINATION_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryDestination().hashCode(); + } + hash = (37 * hash) + ENABLE_NETWORK_EGRESS_METERING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableNetworkEgressMetering()); + if (hasConsumptionMeteringConfig()) { + hash = (37 * hash) + CONSUMPTION_METERING_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConsumptionMeteringConfig().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.ResourceUsageExportConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.ResourceUsageExportConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Configuration for exporting cluster resource usages.
+   * 
+ * + * Protobuf type {@code google.container.v1.ResourceUsageExportConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.ResourceUsageExportConfig) + com.google.container.v1.ResourceUsageExportConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ResourceUsageExportConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_ResourceUsageExportConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.ResourceUsageExportConfig.class, + com.google.container.v1.ResourceUsageExportConfig.Builder.class); + } + + // Construct using com.google.container.v1.ResourceUsageExportConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ResourceUsageExportConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.ResourceUsageExportConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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. + */ + 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 { + return new ResourceUsageExportConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ResourceUsageExportConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java new file mode 100644 index 00000000..0c994f50 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ResourceUsageExportConfigOrBuilder.java @@ -0,0 +1,124 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java index 3990691b..7321f556 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequest.java @@ -48,6 +48,12 @@ private RollbackNodePoolUpgradeRequest() { 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; @@ -61,7 +67,6 @@ private RollbackNodePoolUpgradeRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -147,12 +152,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -170,12 +178,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -196,13 +207,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -220,13 +233,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -247,11 +262,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to rollback.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -269,11 +287,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to rollback.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -294,11 +315,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to rollback.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -316,11 +340,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to rollback.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -347,6 +374,8 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -369,6 +398,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -772,12 +803,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -795,12 +829,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -818,12 +855,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -839,12 +880,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -857,12 +901,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -881,13 +929,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -905,13 +955,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -929,13 +981,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -951,13 +1006,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -970,13 +1027,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -995,11 +1055,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to rollback.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1017,11 +1080,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to rollback.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1039,11 +1105,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to rollback.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1059,11 +1129,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to rollback.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1076,11 +1149,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to rollback.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1099,11 +1176,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to rollback.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1121,11 +1201,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to rollback.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1143,11 +1226,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to rollback.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1163,11 +1250,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to rollback.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1180,11 +1270,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to rollback.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1209,6 +1303,8 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1231,6 +1327,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1253,6 +1351,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1273,6 +1374,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1290,6 +1393,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java index 68f08938..d2fa17dc 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/RollbackNodePoolUpgradeRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to rollback.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to rollback.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to rollback.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to rollback.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -139,6 +161,8 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -151,6 +175,8 @@ public interface RollbackNodePoolUpgradeRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java index 36c4ea49..4cec3a4d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfig.java @@ -45,6 +45,12 @@ private ServerConfig() { validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; } + @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; @@ -79,9 +85,9 @@ private ServerConfig( case 26: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; + mutable_bitField0_ |= 0x00000001; } validNodeVersions_.add(s); break; @@ -96,9 +102,9 @@ private ServerConfig( case 42: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { validImageTypes_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000002; } validImageTypes_.add(s); break; @@ -106,9 +112,9 @@ private ServerConfig( case 50: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000010) != 0)) { + if (!((mutable_bitField0_ & 0x00000004) != 0)) { validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000010; + mutable_bitField0_ |= 0x00000004; } validMasterVersions_.add(s); break; @@ -127,13 +133,13 @@ private ServerConfig( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000002) != 0)) { validImageTypes_ = validImageTypes_.getUnmodifiableView(); } - if (((mutable_bitField0_ & 0x00000010) != 0)) { + if (((mutable_bitField0_ & 0x00000004) != 0)) { validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -156,7 +162,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.ServerConfig.Builder.class); } - private int bitField0_; public static final int DEFAULT_CLUSTER_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object defaultClusterVersion_; /** @@ -167,6 +172,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. */ public java.lang.String getDefaultClusterVersion() { java.lang.Object ref = defaultClusterVersion_; @@ -187,6 +194,8 @@ public java.lang.String getDefaultClusterVersion() { * * * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. */ public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { java.lang.Object ref = defaultClusterVersion_; @@ -210,6 +219,8 @@ public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { * * * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. */ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { return validNodeVersions_; @@ -222,6 +233,8 @@ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { * * * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. */ public int getValidNodeVersionsCount() { return validNodeVersions_.size(); @@ -234,6 +247,9 @@ public int getValidNodeVersionsCount() { * * * 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); @@ -246,6 +262,9 @@ public java.lang.String getValidNodeVersions(int index) { * * * 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); @@ -261,6 +280,8 @@ public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { * * * string default_image_type = 4; + * + * @return The defaultImageType. */ public java.lang.String getDefaultImageType() { java.lang.Object ref = defaultImageType_; @@ -281,6 +302,8 @@ public java.lang.String getDefaultImageType() { * * * string default_image_type = 4; + * + * @return The bytes for defaultImageType. */ public com.google.protobuf.ByteString getDefaultImageTypeBytes() { java.lang.Object ref = defaultImageType_; @@ -304,6 +327,8 @@ public com.google.protobuf.ByteString getDefaultImageTypeBytes() { * * * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. */ public com.google.protobuf.ProtocolStringList getValidImageTypesList() { return validImageTypes_; @@ -316,6 +341,8 @@ public com.google.protobuf.ProtocolStringList getValidImageTypesList() { * * * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. */ public int getValidImageTypesCount() { return validImageTypes_.size(); @@ -328,6 +355,9 @@ public int getValidImageTypesCount() { * * * 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); @@ -340,6 +370,9 @@ public java.lang.String getValidImageTypes(int index) { * * * 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); @@ -355,6 +388,8 @@ public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { * * * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. */ public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { return validMasterVersions_; @@ -367,6 +402,8 @@ public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { * * * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. */ public int getValidMasterVersionsCount() { return validMasterVersions_.size(); @@ -379,6 +416,9 @@ public int getValidMasterVersionsCount() { * * * 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); @@ -391,6 +431,9 @@ public java.lang.String getValidMasterVersions(int index) { * * * 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); @@ -658,13 +701,13 @@ public Builder clear() { defaultClusterVersion_ = ""; validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); defaultImageType_ = ""; validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); return this; } @@ -692,25 +735,23 @@ public com.google.container.v1.ServerConfig build() { public com.google.container.v1.ServerConfig buildPartial() { com.google.container.v1.ServerConfig result = new com.google.container.v1.ServerConfig(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.defaultClusterVersion_ = defaultClusterVersion_; - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { validNodeVersions_ = validNodeVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } result.validNodeVersions_ = validNodeVersions_; result.defaultImageType_ = defaultImageType_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { validImageTypes_ = validImageTypes_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } result.validImageTypes_ = validImageTypes_; - if (((bitField0_ & 0x00000010) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { validMasterVersions_ = validMasterVersions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } result.validMasterVersions_ = validMasterVersions_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -767,7 +808,7 @@ public Builder mergeFrom(com.google.container.v1.ServerConfig other) { if (!other.validNodeVersions_.isEmpty()) { if (validNodeVersions_.isEmpty()) { validNodeVersions_ = other.validNodeVersions_; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureValidNodeVersionsIsMutable(); validNodeVersions_.addAll(other.validNodeVersions_); @@ -781,7 +822,7 @@ public Builder mergeFrom(com.google.container.v1.ServerConfig other) { if (!other.validImageTypes_.isEmpty()) { if (validImageTypes_.isEmpty()) { validImageTypes_ = other.validImageTypes_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); } else { ensureValidImageTypesIsMutable(); validImageTypes_.addAll(other.validImageTypes_); @@ -791,7 +832,7 @@ public Builder mergeFrom(com.google.container.v1.ServerConfig other) { if (!other.validMasterVersions_.isEmpty()) { if (validMasterVersions_.isEmpty()) { validMasterVersions_ = other.validMasterVersions_; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); } else { ensureValidMasterVersionsIsMutable(); validMasterVersions_.addAll(other.validMasterVersions_); @@ -838,6 +879,8 @@ public Builder mergeFrom( * * * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. */ public java.lang.String getDefaultClusterVersion() { java.lang.Object ref = defaultClusterVersion_; @@ -858,6 +901,8 @@ public java.lang.String getDefaultClusterVersion() { * * * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. */ public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { java.lang.Object ref = defaultClusterVersion_; @@ -878,6 +923,9 @@ public com.google.protobuf.ByteString getDefaultClusterVersionBytes() { * * * 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) { @@ -896,6 +944,8 @@ public Builder setDefaultClusterVersion(java.lang.String value) { * * * string default_cluster_version = 1; + * + * @return This builder for chaining. */ public Builder clearDefaultClusterVersion() { @@ -911,6 +961,9 @@ public Builder clearDefaultClusterVersion() { * * * 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) { @@ -927,9 +980,9 @@ public Builder setDefaultClusterVersionBytes(com.google.protobuf.ByteString valu com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValidNodeVersionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { validNodeVersions_ = new com.google.protobuf.LazyStringArrayList(validNodeVersions_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000001; } } /** @@ -940,6 +993,8 @@ private void ensureValidNodeVersionsIsMutable() { * * * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. */ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { return validNodeVersions_.getUnmodifiableView(); @@ -952,6 +1007,8 @@ public com.google.protobuf.ProtocolStringList getValidNodeVersionsList() { * * * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. */ public int getValidNodeVersionsCount() { return validNodeVersions_.size(); @@ -964,6 +1021,9 @@ public int getValidNodeVersionsCount() { * * * 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); @@ -976,6 +1036,9 @@ public java.lang.String getValidNodeVersions(int index) { * * * 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); @@ -988,6 +1051,10 @@ public com.google.protobuf.ByteString getValidNodeVersionsBytes(int index) { * * * 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) { @@ -1006,6 +1073,9 @@ public Builder setValidNodeVersions(int index, java.lang.String value) { * * * 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) { @@ -1024,6 +1094,9 @@ public Builder addValidNodeVersions(java.lang.String value) { * * * 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(); @@ -1039,10 +1112,12 @@ public Builder addAllValidNodeVersions(java.lang.Iterable valu * * * repeated string valid_node_versions = 3; + * + * @return This builder for chaining. */ public Builder clearValidNodeVersions() { validNodeVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1054,6 +1129,9 @@ public Builder clearValidNodeVersions() { * * * 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) { @@ -1075,6 +1153,8 @@ public Builder addValidNodeVersionsBytes(com.google.protobuf.ByteString value) { * * * string default_image_type = 4; + * + * @return The defaultImageType. */ public java.lang.String getDefaultImageType() { java.lang.Object ref = defaultImageType_; @@ -1095,6 +1175,8 @@ public java.lang.String getDefaultImageType() { * * * string default_image_type = 4; + * + * @return The bytes for defaultImageType. */ public com.google.protobuf.ByteString getDefaultImageTypeBytes() { java.lang.Object ref = defaultImageType_; @@ -1115,6 +1197,9 @@ public com.google.protobuf.ByteString getDefaultImageTypeBytes() { * * * 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) { @@ -1133,6 +1218,8 @@ public Builder setDefaultImageType(java.lang.String value) { * * * string default_image_type = 4; + * + * @return This builder for chaining. */ public Builder clearDefaultImageType() { @@ -1148,6 +1235,9 @@ public Builder clearDefaultImageType() { * * * 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) { @@ -1164,9 +1254,9 @@ public Builder setDefaultImageTypeBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValidImageTypesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000002) != 0)) { validImageTypes_ = new com.google.protobuf.LazyStringArrayList(validImageTypes_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } } /** @@ -1177,6 +1267,8 @@ private void ensureValidImageTypesIsMutable() { * * * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. */ public com.google.protobuf.ProtocolStringList getValidImageTypesList() { return validImageTypes_.getUnmodifiableView(); @@ -1189,6 +1281,8 @@ public com.google.protobuf.ProtocolStringList getValidImageTypesList() { * * * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. */ public int getValidImageTypesCount() { return validImageTypes_.size(); @@ -1201,6 +1295,9 @@ public int getValidImageTypesCount() { * * * 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); @@ -1213,6 +1310,9 @@ public java.lang.String getValidImageTypes(int index) { * * * 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); @@ -1225,6 +1325,10 @@ public com.google.protobuf.ByteString getValidImageTypesBytes(int index) { * * * 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) { @@ -1243,6 +1347,9 @@ public Builder setValidImageTypes(int index, java.lang.String value) { * * * 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) { @@ -1261,6 +1368,9 @@ public Builder addValidImageTypes(java.lang.String value) { * * * 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(); @@ -1276,10 +1386,12 @@ public Builder addAllValidImageTypes(java.lang.Iterable values * * * repeated string valid_image_types = 5; + * + * @return This builder for chaining. */ public Builder clearValidImageTypes() { validImageTypes_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } @@ -1291,6 +1403,9 @@ public Builder clearValidImageTypes() { * * * 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) { @@ -1307,9 +1422,9 @@ public Builder addValidImageTypesBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValidMasterVersionsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { + if (!((bitField0_ & 0x00000004) != 0)) { validMasterVersions_ = new com.google.protobuf.LazyStringArrayList(validMasterVersions_); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; } } /** @@ -1320,6 +1435,8 @@ private void ensureValidMasterVersionsIsMutable() { * * * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. */ public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { return validMasterVersions_.getUnmodifiableView(); @@ -1332,6 +1449,8 @@ public com.google.protobuf.ProtocolStringList getValidMasterVersionsList() { * * * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. */ public int getValidMasterVersionsCount() { return validMasterVersions_.size(); @@ -1344,6 +1463,9 @@ public int getValidMasterVersionsCount() { * * * 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); @@ -1356,6 +1478,9 @@ public java.lang.String getValidMasterVersions(int index) { * * * 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); @@ -1368,6 +1493,10 @@ public com.google.protobuf.ByteString getValidMasterVersionsBytes(int index) { * * * 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) { @@ -1386,6 +1515,9 @@ public Builder setValidMasterVersions(int index, java.lang.String value) { * * * 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) { @@ -1404,6 +1536,9 @@ public Builder addValidMasterVersions(java.lang.String value) { * * * 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(); @@ -1419,10 +1554,12 @@ public Builder addAllValidMasterVersions(java.lang.Iterable va * * * repeated string valid_master_versions = 6; + * + * @return This builder for chaining. */ public Builder clearValidMasterVersions() { validMasterVersions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1434,6 +1571,9 @@ public Builder clearValidMasterVersions() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java index 574cab70..18af940d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ServerConfigOrBuilder.java @@ -31,6 +31,8 @@ public interface ServerConfigOrBuilder * * * string default_cluster_version = 1; + * + * @return The defaultClusterVersion. */ java.lang.String getDefaultClusterVersion(); /** @@ -41,6 +43,8 @@ public interface ServerConfigOrBuilder * * * string default_cluster_version = 1; + * + * @return The bytes for defaultClusterVersion. */ com.google.protobuf.ByteString getDefaultClusterVersionBytes(); @@ -52,6 +56,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_node_versions = 3; + * + * @return A list containing the validNodeVersions. */ java.util.List getValidNodeVersionsList(); /** @@ -62,6 +68,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_node_versions = 3; + * + * @return The count of validNodeVersions. */ int getValidNodeVersionsCount(); /** @@ -72,6 +80,9 @@ public interface ServerConfigOrBuilder * * * 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); /** @@ -82,6 +93,9 @@ public interface ServerConfigOrBuilder * * * 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); @@ -93,6 +107,8 @@ public interface ServerConfigOrBuilder * * * string default_image_type = 4; + * + * @return The defaultImageType. */ java.lang.String getDefaultImageType(); /** @@ -103,6 +119,8 @@ public interface ServerConfigOrBuilder * * * string default_image_type = 4; + * + * @return The bytes for defaultImageType. */ com.google.protobuf.ByteString getDefaultImageTypeBytes(); @@ -114,6 +132,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_image_types = 5; + * + * @return A list containing the validImageTypes. */ java.util.List getValidImageTypesList(); /** @@ -124,6 +144,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_image_types = 5; + * + * @return The count of validImageTypes. */ int getValidImageTypesCount(); /** @@ -134,6 +156,9 @@ public interface ServerConfigOrBuilder * * * 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); /** @@ -144,6 +169,9 @@ public interface ServerConfigOrBuilder * * * 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); @@ -155,6 +183,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_master_versions = 6; + * + * @return A list containing the validMasterVersions. */ java.util.List getValidMasterVersionsList(); /** @@ -165,6 +195,8 @@ public interface ServerConfigOrBuilder * * * repeated string valid_master_versions = 6; + * + * @return The count of validMasterVersions. */ int getValidMasterVersionsCount(); /** @@ -175,6 +207,9 @@ public interface ServerConfigOrBuilder * * * 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); /** @@ -185,6 +220,9 @@ public interface ServerConfigOrBuilder * * * 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); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java index 704c61db..e929a1f8 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequest.java @@ -44,6 +44,12 @@ private SetAddonsConfigRequest() { 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; @@ -57,7 +63,6 @@ private SetAddonsConfigRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,12 +157,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -175,12 +183,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -201,13 +212,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -225,13 +238,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -252,11 +267,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -274,11 +292,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -299,11 +320,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. */ public boolean hasAddonsConfig() { return addonsConfig_ != null; @@ -312,11 +337,15 @@ public boolean hasAddonsConfig() { * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. */ public com.google.container.v1.AddonsConfig getAddonsConfig() { return addonsConfig_ == null @@ -327,11 +356,13 @@ public com.google.container.v1.AddonsConfig getAddonsConfig() { * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { return getAddonsConfig(); @@ -348,6 +379,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -369,6 +402,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -779,12 +814,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -802,12 +840,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -825,12 +866,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -846,12 +891,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -864,12 +912,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -888,13 +940,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -912,13 +966,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -936,13 +992,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -958,13 +1017,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -977,13 +1038,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1002,11 +1066,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1024,11 +1091,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1046,11 +1116,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1066,11 +1140,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1083,11 +1160,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1111,11 +1192,15 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .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; @@ -1124,11 +1209,15 @@ public boolean hasAddonsConfig() { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .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) { @@ -1143,11 +1232,13 @@ public com.google.container.v1.AddonsConfig getAddonsConfig() { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { if (addonsConfigBuilder_ == null) { @@ -1166,11 +1257,13 @@ public Builder setAddonsConfig(com.google.container.v1.AddonsConfig value) { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .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) { @@ -1186,11 +1279,13 @@ public Builder setAddonsConfig(com.google.container.v1.AddonsConfig.Builder buil * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { if (addonsConfigBuilder_ == null) { @@ -1213,11 +1308,13 @@ public Builder mergeAddonsConfig(com.google.container.v1.AddonsConfig value) { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAddonsConfig() { if (addonsConfigBuilder_ == null) { @@ -1234,11 +1331,13 @@ public Builder clearAddonsConfig() { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { @@ -1249,11 +1348,13 @@ public com.google.container.v1.AddonsConfig.Builder getAddonsConfigBuilder() { * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() { if (addonsConfigBuilder_ != null) { @@ -1268,11 +1369,13 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * * *
-     * The desired configurations for the various addons available to run in the
+     * Required. The desired configurations for the various addons available to run in the
      * cluster.
      * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.AddonsConfig, @@ -1301,6 +1404,8 @@ public com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder() * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1322,6 +1427,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1343,6 +1450,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1362,6 +1472,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1378,6 +1490,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java index b7aa7f20..3cc9220e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetAddonsConfigRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,33 +124,43 @@ public interface SetAddonsConfigRequestOrBuilder * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the addonsConfig field is set. */ boolean hasAddonsConfig(); /** * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The addonsConfig. */ com.google.container.v1.AddonsConfig getAddonsConfig(); /** * * *
-   * The desired configurations for the various addons available to run in the
+   * Required. The desired configurations for the various addons available to run in the
    * cluster.
    * 
* - * .google.container.v1.AddonsConfig addons_config = 4; + * + * .google.container.v1.AddonsConfig addons_config = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.AddonsConfigOrBuilder getAddonsConfigOrBuilder(); @@ -147,6 +173,8 @@ public interface SetAddonsConfigRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -158,6 +186,8 @@ public interface SetAddonsConfigRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java index 03970f9e..eedbfc41 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequest.java @@ -47,6 +47,12 @@ private SetLabelsRequest() { 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; @@ -94,11 +100,11 @@ private SetLabelsRequest( } case 34: { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { resourceLabels_ = com.google.protobuf.MapField.newMapField( ResourceLabelsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry resourceLabels__ = input.readMessage( @@ -168,19 +174,21 @@ protected com.google.protobuf.MapField internalGetMapField(int number) { com.google.container.v1.SetLabelsRequest.Builder.class); } - private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -198,12 +206,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -224,13 +235,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -248,13 +261,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -275,11 +290,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -297,11 +315,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -347,10 +368,11 @@ public int getResourceLabelsCount() { * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean containsResourceLabels(java.lang.String key) { if (key == null) { @@ -367,10 +389,11 @@ public java.util.Map getResourceLabels() { * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.Map getResourceLabelsMap() { return internalGetResourceLabels().getMap(); @@ -379,10 +402,11 @@ public java.util.Map getResourceLabelsMap() * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.lang.String getResourceLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { @@ -396,10 +420,11 @@ public java.lang.String getResourceLabelsOrDefault( * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { if (key == null) { @@ -418,7 +443,7 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { * * *
-   * The fingerprint of the previous set of labels for this resource,
+   * 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
@@ -426,7 +451,9 @@ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) {
    * resource to get the latest fingerprint.
    * 
* - * string label_fingerprint = 5; + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. */ public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; @@ -443,7 +470,7 @@ public java.lang.String getLabelFingerprint() { * * *
-   * The fingerprint of the previous set of labels for this resource,
+   * 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
@@ -451,7 +478,9 @@ public java.lang.String getLabelFingerprint() {
    * resource to get the latest fingerprint.
    * 
* - * string label_fingerprint = 5; + * 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_; @@ -476,6 +505,8 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -497,6 +528,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -827,7 +860,6 @@ public com.google.container.v1.SetLabelsRequest buildPartial() { com.google.container.v1.SetLabelsRequest result = new com.google.container.v1.SetLabelsRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; @@ -835,7 +867,6 @@ public com.google.container.v1.SetLabelsRequest buildPartial() { result.resourceLabels_.makeImmutable(); result.labelFingerprint_ = labelFingerprint_; result.name_ = name_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -942,12 +973,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -965,12 +999,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -988,12 +1025,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -1009,12 +1050,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -1027,12 +1071,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -1051,13 +1099,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -1075,13 +1125,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1099,13 +1151,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1121,13 +1176,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1140,13 +1197,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1165,11 +1225,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1187,11 +1250,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1209,11 +1275,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1229,11 +1299,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1246,11 +1319,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1296,10 +1373,12 @@ public int getResourceLabelsCount() { * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public boolean containsResourceLabels(java.lang.String key) { if (key == null) { @@ -1316,10 +1395,12 @@ public java.util.Map getResourceLabels() { * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.util.Map getResourceLabelsMap() { return internalGetResourceLabels().getMap(); @@ -1328,10 +1409,12 @@ public java.util.Map getResourceLabelsMap() * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.lang.String getResourceLabelsOrDefault( java.lang.String key, java.lang.String defaultValue) { @@ -1345,10 +1428,12 @@ public java.lang.String getResourceLabelsOrDefault( * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public java.lang.String getResourceLabelsOrThrow(java.lang.String key) { if (key == null) { @@ -1369,10 +1454,12 @@ public Builder clearResourceLabels() { * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder removeResourceLabels(java.lang.String key) { if (key == null) { @@ -1390,10 +1477,12 @@ public java.util.Map getMutableResourceLabel * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * 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) { @@ -1409,10 +1498,12 @@ public Builder putResourceLabels(java.lang.String key, java.lang.String value) { * * *
-     * The labels to set for that cluster.
+     * Required. The labels to set for that cluster.
      * 
* - * map<string, string> resource_labels = 4; + * + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder putAllResourceLabels(java.util.Map values) { internalGetMutableResourceLabels().getMutableMap().putAll(values); @@ -1424,7 +1515,7 @@ public Builder putAllResourceLabels(java.util.Map - * The fingerprint of the previous set of labels for this resource, + * 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 @@ -1432,7 +1523,9 @@ public Builder putAllResourceLabels(java.util.Map * - * string label_fingerprint = 5; + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. */ public java.lang.String getLabelFingerprint() { java.lang.Object ref = labelFingerprint_; @@ -1449,7 +1542,7 @@ public java.lang.String getLabelFingerprint() { * * *
-     * The fingerprint of the previous set of labels for this resource,
+     * 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
@@ -1457,7 +1550,9 @@ public java.lang.String getLabelFingerprint() {
      * resource to get the latest fingerprint.
      * 
* - * string label_fingerprint = 5; + * 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_; @@ -1474,7 +1569,7 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() { * * *
-     * The fingerprint of the previous set of labels for this resource,
+     * 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
@@ -1482,7 +1577,10 @@ public com.google.protobuf.ByteString getLabelFingerprintBytes() {
      * resource to get the latest fingerprint.
      * 
* - * string label_fingerprint = 5; + * 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) { @@ -1497,7 +1595,7 @@ public Builder setLabelFingerprint(java.lang.String value) { * * *
-     * The fingerprint of the previous set of labels for this resource,
+     * 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
@@ -1505,7 +1603,9 @@ public Builder setLabelFingerprint(java.lang.String value) {
      * resource to get the latest fingerprint.
      * 
* - * string label_fingerprint = 5; + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearLabelFingerprint() { @@ -1517,7 +1617,7 @@ public Builder clearLabelFingerprint() { * * *
-     * The fingerprint of the previous set of labels for this resource,
+     * 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
@@ -1525,7 +1625,10 @@ public Builder clearLabelFingerprint() {
      * resource to get the latest fingerprint.
      * 
* - * string label_fingerprint = 5; + * 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) { @@ -1548,6 +1651,8 @@ public Builder setLabelFingerprintBytes(com.google.protobuf.ByteString value) { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1569,6 +1674,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1590,6 +1697,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1609,6 +1719,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1625,6 +1737,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java index e5469fdb..ba38871e 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLabelsRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetLabelsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,20 +124,22 @@ public interface SetLabelsRequestOrBuilder * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ int getResourceLabelsCount(); /** * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ boolean containsResourceLabels(java.lang.String key); /** Use {@link #getResourceLabelsMap()} instead. */ @@ -131,30 +149,33 @@ public interface SetLabelsRequestOrBuilder * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ java.util.Map getResourceLabelsMap(); /** * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ java.lang.String getResourceLabelsOrDefault(java.lang.String key, java.lang.String defaultValue); /** * * *
-   * The labels to set for that cluster.
+   * Required. The labels to set for that cluster.
    * 
* - * map<string, string> resource_labels = 4; + * map<string, string> resource_labels = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ java.lang.String getResourceLabelsOrThrow(java.lang.String key); @@ -162,7 +183,7 @@ public interface SetLabelsRequestOrBuilder * * *
-   * The fingerprint of the previous set of labels for this resource,
+   * 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
@@ -170,14 +191,16 @@ public interface SetLabelsRequestOrBuilder
    * resource to get the latest fingerprint.
    * 
* - * string label_fingerprint = 5; + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The labelFingerprint. */ java.lang.String getLabelFingerprint(); /** * * *
-   * The fingerprint of the previous set of labels for this resource,
+   * 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
@@ -185,7 +208,9 @@ public interface SetLabelsRequestOrBuilder
    * resource to get the latest fingerprint.
    * 
* - * string label_fingerprint = 5; + * string label_fingerprint = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for labelFingerprint. */ com.google.protobuf.ByteString getLabelFingerprintBytes(); @@ -198,6 +223,8 @@ public interface SetLabelsRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -209,6 +236,8 @@ public interface SetLabelsRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java index 018f2f3e..815fa98f 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequest.java @@ -45,6 +45,12 @@ private SetLegacyAbacRequest() { 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; @@ -58,7 +64,6 @@ private SetLegacyAbacRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,12 +147,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -165,12 +173,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -191,13 +202,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -215,13 +228,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -242,11 +257,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -264,11 +282,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -289,10 +310,12 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Whether ABAC authorization will be enabled in the cluster.
+   * Required. Whether ABAC authorization will be enabled in the cluster.
    * 
* - * bool enabled = 4; + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -309,6 +332,8 @@ public boolean getEnabled() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -330,6 +355,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -728,12 +755,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -751,12 +781,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -774,12 +807,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -795,12 +832,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -813,12 +853,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -837,13 +881,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -861,13 +907,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -885,13 +933,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -907,13 +958,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -926,13 +979,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -951,11 +1007,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -973,11 +1032,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -995,11 +1057,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1015,11 +1081,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1032,11 +1101,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1055,10 +1128,12 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Whether ABAC authorization will be enabled in the cluster.
+     * Required. Whether ABAC authorization will be enabled in the cluster.
      * 
* - * bool enabled = 4; + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. */ public boolean getEnabled() { return enabled_; @@ -1067,10 +1142,13 @@ public boolean getEnabled() { * * *
-     * Whether ABAC authorization will be enabled in the cluster.
+     * Required. Whether ABAC authorization will be enabled in the cluster.
      * 
* - * bool enabled = 4; + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The enabled to set. + * @return This builder for chaining. */ public Builder setEnabled(boolean value) { @@ -1082,10 +1160,12 @@ public Builder setEnabled(boolean value) { * * *
-     * Whether ABAC authorization will be enabled in the cluster.
+     * Required. Whether ABAC authorization will be enabled in the cluster.
      * 
* - * bool enabled = 4; + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearEnabled() { @@ -1104,6 +1184,8 @@ public Builder clearEnabled() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1125,6 +1207,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1146,6 +1230,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1165,6 +1252,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1181,6 +1270,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java index 3465ebe6..f5516a89 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLegacyAbacRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,10 +124,12 @@ public interface SetLegacyAbacRequestOrBuilder * * *
-   * Whether ABAC authorization will be enabled in the cluster.
+   * Required. Whether ABAC authorization will be enabled in the cluster.
    * 
* - * bool enabled = 4; + * bool enabled = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The enabled. */ boolean getEnabled(); @@ -124,6 +142,8 @@ public interface SetLegacyAbacRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -135,6 +155,8 @@ public interface SetLegacyAbacRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java index 0cb52d7f..bbe6ad25 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequest.java @@ -45,6 +45,12 @@ private SetLocationsRequest() { 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; @@ -93,9 +99,9 @@ private SetLocationsRequest( case 34: { java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000008; + mutable_bitField0_ |= 0x00000001; } locations_.add(s); break; @@ -121,7 +127,7 @@ private SetLocationsRequest( } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000008) != 0)) { + if (((mutable_bitField0_ & 0x00000001) != 0)) { locations_ = locations_.getUnmodifiableView(); } this.unknownFields = unknownFields.build(); @@ -144,19 +150,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.container.v1.SetLocationsRequest.Builder.class); } - private int bitField0_; public static final int PROJECT_ID_FIELD_NUMBER = 1; private volatile java.lang.Object projectId_; /** * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -174,12 +182,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -200,13 +211,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -224,13 +237,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -251,11 +266,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -273,11 +291,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -298,15 +319,17 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. */ public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_; @@ -315,15 +338,17 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); @@ -332,15 +357,18 @@ public int getLocationsCount() { * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * 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); @@ -349,15 +377,18 @@ public java.lang.String getLocations(int index) { * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * 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); @@ -374,6 +405,8 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -395,6 +428,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -662,7 +697,7 @@ public Builder clear() { clusterId_ = ""; locations_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; return this; @@ -693,17 +728,15 @@ public com.google.container.v1.SetLocationsRequest buildPartial() { com.google.container.v1.SetLocationsRequest result = new com.google.container.v1.SetLocationsRequest(this); int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; result.projectId_ = projectId_; result.zone_ = zone_; result.clusterId_ = clusterId_; - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { locations_ = locations_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } result.locations_ = locations_; result.name_ = name_; - result.bitField0_ = to_bitField0_; onBuilt(); return result; } @@ -768,7 +801,7 @@ public Builder mergeFrom(com.google.container.v1.SetLocationsRequest other) { if (!other.locations_.isEmpty()) { if (locations_.isEmpty()) { locations_ = other.locations_; - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocationsIsMutable(); locations_.addAll(other.locations_); @@ -815,12 +848,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -838,12 +874,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -861,12 +900,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -882,12 +925,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -900,12 +946,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -924,13 +974,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -948,13 +1000,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -972,13 +1026,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -994,13 +1051,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1013,13 +1072,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1038,11 +1100,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1060,11 +1125,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1082,11 +1150,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1102,11 +1174,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1119,11 +1194,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1141,24 +1220,26 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLocationsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { + if (!((bitField0_ & 0x00000001) != 0)) { locations_ = new com.google.protobuf.LazyStringArrayList(locations_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000001; } } /** * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. */ public com.google.protobuf.ProtocolStringList getLocationsList() { return locations_.getUnmodifiableView(); @@ -1167,15 +1248,17 @@ public com.google.protobuf.ProtocolStringList getLocationsList() { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. */ public int getLocationsCount() { return locations_.size(); @@ -1184,15 +1267,18 @@ public int getLocationsCount() { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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); @@ -1201,15 +1287,18 @@ public java.lang.String getLocations(int index) { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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); @@ -1218,15 +1307,19 @@ public com.google.protobuf.ByteString getLocationsBytes(int index) { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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) { @@ -1241,15 +1334,18 @@ public Builder setLocations(int index, java.lang.String value) { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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) { @@ -1264,15 +1360,18 @@ public Builder addLocations(java.lang.String value) { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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(); @@ -1284,19 +1383,21 @@ public Builder addAllLocations(java.lang.Iterable values) { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @@ -1304,15 +1405,18 @@ public Builder clearLocations() { * * *
-     * The desired list of Google Compute Engine
-     * [locations](/compute/docs/zones#available) in which the cluster's nodes
+     * Required. The desired list of Google Compute Engine
+     * [zones](/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; + * 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) { @@ -1335,6 +1439,8 @@ public Builder addLocationsBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1356,6 +1462,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1377,6 +1485,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1396,6 +1507,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1412,6 +1525,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java index c7a9cfb3..d50daceb 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLocationsRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetLocationsRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,60 +124,70 @@ public interface SetLocationsRequestOrBuilder * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the locations. */ java.util.List getLocationsList(); /** * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * repeated string locations = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of locations. */ int getLocationsCount(); /** * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * 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); /** * * *
-   * The desired list of Google Compute Engine
-   * [locations](/compute/docs/zones#available) in which the cluster's nodes
+   * Required. The desired list of Google Compute Engine
+   * [zones](/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; + * 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); @@ -174,6 +200,8 @@ public interface SetLocationsRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -185,6 +213,8 @@ public interface SetLocationsRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java index e78e0baf..a19428e6 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequest.java @@ -45,6 +45,12 @@ private SetLoggingServiceRequest() { 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; @@ -58,7 +64,6 @@ private SetLoggingServiceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,12 +149,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -167,12 +175,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -193,13 +204,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; @@ -216,13 +229,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; @@ -242,11 +257,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -264,11 +282,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -289,13 +310,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write metrics.
    * Currently available options:
    * * "logging.googleapis.com" - the Google Cloud Logging service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string logging_service = 4; + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. */ public java.lang.String getLoggingService() { java.lang.Object ref = loggingService_; @@ -312,13 +335,15 @@ public java.lang.String getLoggingService() { * * *
-   * The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write metrics.
    * Currently available options:
    * * "logging.googleapis.com" - the Google Cloud Logging service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string logging_service = 4; + * 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_; @@ -343,6 +368,8 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -364,6 +391,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -763,12 +792,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -786,12 +818,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -809,12 +844,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -830,12 +869,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -848,12 +890,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -872,13 +918,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; @@ -895,13 +943,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; @@ -918,13 +968,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * 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) { @@ -939,13 +992,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearZone() { @@ -957,13 +1012,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2; + * 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) { @@ -981,11 +1039,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1003,11 +1064,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1025,11 +1089,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1045,11 +1113,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1062,11 +1133,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1085,13 +1160,15 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write metrics.
      * Currently available options:
      * * "logging.googleapis.com" - the Google Cloud Logging service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string logging_service = 4; + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. */ public java.lang.String getLoggingService() { java.lang.Object ref = loggingService_; @@ -1108,13 +1185,15 @@ public java.lang.String getLoggingService() { * * *
-     * The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write metrics.
      * Currently available options:
      * * "logging.googleapis.com" - the Google Cloud Logging service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string logging_service = 4; + * 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_; @@ -1131,13 +1210,16 @@ public com.google.protobuf.ByteString getLoggingServiceBytes() { * * *
-     * The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write metrics.
      * Currently available options:
      * * "logging.googleapis.com" - the Google Cloud Logging service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string logging_service = 4; + * 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) { @@ -1152,13 +1234,15 @@ public Builder setLoggingService(java.lang.String value) { * * *
-     * The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write metrics.
      * Currently available options:
      * * "logging.googleapis.com" - the Google Cloud Logging service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string logging_service = 4; + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearLoggingService() { @@ -1170,13 +1254,16 @@ public Builder clearLoggingService() { * * *
-     * The logging service the cluster should use to write metrics.
+     * Required. The logging service the cluster should use to write metrics.
      * Currently available options:
      * * "logging.googleapis.com" - the Google Cloud Logging service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string logging_service = 4; + * 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) { @@ -1199,6 +1286,8 @@ public Builder setLoggingServiceBytes(com.google.protobuf.ByteString value) { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1220,6 +1309,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1241,6 +1332,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1260,6 +1354,8 @@ public Builder setName(java.lang.String value) { * * * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1276,6 +1372,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java index 21694679..94012c2d 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetLoggingServiceRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,26 +60,30 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ java.lang.String getZone(); /** * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ com.google.protobuf.ByteString getZoneBytes(); @@ -81,11 +91,14 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -93,11 +106,14 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -106,26 +122,30 @@ public interface SetLoggingServiceRequestOrBuilder * * *
-   * The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write metrics.
    * Currently available options:
    * * "logging.googleapis.com" - the Google Cloud Logging service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string logging_service = 4; + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The loggingService. */ java.lang.String getLoggingService(); /** * * *
-   * The logging service the cluster should use to write metrics.
+   * Required. The logging service the cluster should use to write metrics.
    * Currently available options:
    * * "logging.googleapis.com" - the Google Cloud Logging service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string logging_service = 4; + * string logging_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for loggingService. */ com.google.protobuf.ByteString getLoggingServiceBytes(); @@ -138,6 +158,8 @@ public interface SetLoggingServiceRequestOrBuilder * * * string name = 5; + * + * @return The name. */ java.lang.String getName(); /** @@ -149,6 +171,8 @@ public interface SetLoggingServiceRequestOrBuilder * * * string name = 5; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java index 321d8abe..ef88c611 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequest.java @@ -44,6 +44,12 @@ private SetMaintenancePolicyRequest() { 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; @@ -57,7 +63,6 @@ private SetMaintenancePolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,11 +157,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The Google Developers Console [project ID or project
+   * Required. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * 
* - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; @@ -173,11 +180,13 @@ public java.lang.String getProjectId() { * * *
-   * The Google Developers Console [project ID or project
+   * Required. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * 
* - * string project_id = 1; + * 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_; @@ -197,12 +206,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * The name of the Google Compute Engine
+   * Required. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; @@ -219,12 +230,14 @@ public java.lang.String getZone() { * * *
-   * The name of the Google Compute Engine
+   * Required. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; @@ -244,10 +257,12 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * The name of the cluster to update.
+   * Required. The name of the cluster to update.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; @@ -264,10 +279,12 @@ public java.lang.String getClusterId() { * * *
-   * The name of the cluster to update.
+   * Required. The name of the cluster to update.
    * 
* - * string cluster_id = 3; + * 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_; @@ -287,11 +304,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. */ public boolean hasMaintenancePolicy() { return maintenancePolicy_ != null; @@ -300,11 +321,15 @@ public boolean hasMaintenancePolicy() { * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. */ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { return maintenancePolicy_ == null @@ -315,11 +340,13 @@ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { return getMaintenancePolicy(); @@ -337,6 +364,8 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -359,6 +388,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -771,11 +802,13 @@ public Builder mergeFrom( * * *
-     * The Google Developers Console [project ID or project
+     * Required. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * 
* - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. */ public java.lang.String getProjectId() { java.lang.Object ref = projectId_; @@ -792,11 +825,13 @@ public java.lang.String getProjectId() { * * *
-     * The Google Developers Console [project ID or project
+     * Required. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * 
* - * string project_id = 1; + * 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_; @@ -813,11 +848,14 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * The Google Developers Console [project ID or project
+     * Required. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * 
* - * string project_id = 1; + * 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) { @@ -832,11 +870,13 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * The Google Developers Console [project ID or project
+     * Required. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * 
* - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearProjectId() { @@ -848,11 +888,14 @@ public Builder clearProjectId() { * * *
-     * The Google Developers Console [project ID or project
+     * Required. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * 
* - * string project_id = 1; + * 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) { @@ -870,12 +913,14 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the Google Compute Engine
+     * Required. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ public java.lang.String getZone() { java.lang.Object ref = zone_; @@ -892,12 +937,14 @@ public java.lang.String getZone() { * * *
-     * The name of the Google Compute Engine
+     * Required. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ public com.google.protobuf.ByteString getZoneBytes() { java.lang.Object ref = zone_; @@ -914,12 +961,15 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * The name of the Google Compute Engine
+     * Required. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * 
* - * string zone = 2; + * 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) { @@ -934,12 +984,14 @@ public Builder setZone(java.lang.String value) { * * *
-     * The name of the Google Compute Engine
+     * Required. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearZone() { @@ -951,12 +1003,15 @@ public Builder clearZone() { * * *
-     * The name of the Google Compute Engine
+     * Required. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * 
* - * string zone = 2; + * 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) { @@ -974,10 +1029,12 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * The name of the cluster to update.
+     * Required. The name of the cluster to update.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. */ public java.lang.String getClusterId() { java.lang.Object ref = clusterId_; @@ -994,10 +1051,12 @@ public java.lang.String getClusterId() { * * *
-     * The name of the cluster to update.
+     * Required. The name of the cluster to update.
      * 
* - * string cluster_id = 3; + * 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_; @@ -1014,10 +1073,13 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * The name of the cluster to update.
+     * Required. The name of the cluster to update.
      * 
* - * string cluster_id = 3; + * 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) { @@ -1032,10 +1094,12 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * The name of the cluster to update.
+     * Required. The name of the cluster to update.
      * 
* - * string cluster_id = 3; + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearClusterId() { @@ -1047,10 +1111,13 @@ public Builder clearClusterId() { * * *
-     * The name of the cluster to update.
+     * Required. The name of the cluster to update.
      * 
* - * string cluster_id = 3; + * 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) { @@ -1073,11 +1140,15 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.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; @@ -1086,11 +1157,15 @@ public boolean hasMaintenancePolicy() { * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. */ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -1105,11 +1180,13 @@ public com.google.container.v1.MaintenancePolicy getMaintenancePolicy() { * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -1128,11 +1205,13 @@ public Builder setMaintenancePolicy(com.google.container.v1.MaintenancePolicy va * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setMaintenancePolicy( com.google.container.v1.MaintenancePolicy.Builder builderForValue) { @@ -1149,11 +1228,13 @@ public Builder setMaintenancePolicy( * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy value) { if (maintenancePolicyBuilder_ == null) { @@ -1176,11 +1257,13 @@ public Builder mergeMaintenancePolicy(com.google.container.v1.MaintenancePolicy * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearMaintenancePolicy() { if (maintenancePolicyBuilder_ == null) { @@ -1197,11 +1280,13 @@ public Builder clearMaintenancePolicy() { * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() { @@ -1212,11 +1297,13 @@ public com.google.container.v1.MaintenancePolicy.Builder getMaintenancePolicyBui * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() { if (maintenancePolicyBuilder_ != null) { @@ -1231,11 +1318,13 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr * * *
-     * The maintenance policy to be set for the cluster. An empty field
+     * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.MaintenancePolicy, @@ -1265,6 +1354,8 @@ public com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOr * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1287,6 +1378,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1309,6 +1402,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1329,6 +1425,8 @@ public Builder setName(java.lang.String value) { * * * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1346,6 +1444,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java index 46140698..a3a3a0c2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMaintenancePolicyRequestOrBuilder.java @@ -27,22 +27,26 @@ public interface SetMaintenancePolicyRequestOrBuilder * * *
-   * The Google Developers Console [project ID or project
+   * Required. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * 
* - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The projectId. */ java.lang.String getProjectId(); /** * * *
-   * The Google Developers Console [project ID or project
+   * Required. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * 
* - * string project_id = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for projectId. */ com.google.protobuf.ByteString getProjectIdBytes(); @@ -50,24 +54,28 @@ public interface SetMaintenancePolicyRequestOrBuilder * * *
-   * The name of the Google Compute Engine
+   * Required. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ java.lang.String getZone(); /** * * *
-   * The name of the Google Compute Engine
+   * Required. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * 
* - * string zone = 2; + * string zone = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ com.google.protobuf.ByteString getZoneBytes(); @@ -75,20 +83,24 @@ public interface SetMaintenancePolicyRequestOrBuilder * * *
-   * The name of the cluster to update.
+   * Required. The name of the cluster to update.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The clusterId. */ java.lang.String getClusterId(); /** * * *
-   * The name of the cluster to update.
+   * Required. The name of the cluster to update.
    * 
* - * string cluster_id = 3; + * string cluster_id = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for clusterId. */ com.google.protobuf.ByteString getClusterIdBytes(); @@ -96,33 +108,43 @@ public interface SetMaintenancePolicyRequestOrBuilder * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the maintenancePolicy field is set. */ boolean hasMaintenancePolicy(); /** * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The maintenancePolicy. */ com.google.container.v1.MaintenancePolicy getMaintenancePolicy(); /** * * *
-   * The maintenance policy to be set for the cluster. An empty field
+   * 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.container.v1.MaintenancePolicy maintenance_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder(); @@ -136,6 +158,8 @@ public interface SetMaintenancePolicyRequestOrBuilder * * * string name = 5; + * + * @return The name. */ java.lang.String getName(); /** @@ -148,6 +172,8 @@ public interface SetMaintenancePolicyRequestOrBuilder * * * string name = 5; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java index 6a9988a1..30415519 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequest.java @@ -45,6 +45,12 @@ private SetMasterAuthRequest() { 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; @@ -58,7 +64,6 @@ private SetMasterAuthRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -261,12 +266,20 @@ public final int getNumber() { return value; } - /** @deprecated Use {@link #forNumber(int)} instead. */ + /** + * @param value The numeric wire value of the 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: @@ -332,12 +345,15 @@ private Action(int value) { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -355,12 +371,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -381,13 +400,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -405,13 +426,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -432,11 +455,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -454,11 +480,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -479,10 +508,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The exact form of action to be taken on the master auth.
+   * Required. The exact form of action to be taken on the master auth.
    * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. */ public int getActionValue() { return action_; @@ -491,10 +524,14 @@ public int getActionValue() { * * *
-   * The exact form of action to be taken on the master auth.
+   * Required. The exact form of action to be taken on the master auth.
    * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. */ public com.google.container.v1.SetMasterAuthRequest.Action getAction() { @SuppressWarnings("deprecation") @@ -511,10 +548,13 @@ public com.google.container.v1.SetMasterAuthRequest.Action getAction() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. */ public boolean hasUpdate() { return update_ != null; @@ -523,10 +563,13 @@ public boolean hasUpdate() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ public com.google.container.v1.MasterAuth getUpdate() { return update_ == null ? com.google.container.v1.MasterAuth.getDefaultInstance() : update_; @@ -535,10 +578,11 @@ public com.google.container.v1.MasterAuth getUpdate() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { return getUpdate(); @@ -555,6 +599,8 @@ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -576,6 +622,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1001,12 +1049,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -1024,12 +1075,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -1047,12 +1101,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -1068,12 +1126,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -1086,12 +1147,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -1110,13 +1175,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -1134,13 +1201,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1158,13 +1227,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1180,13 +1252,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1199,13 +1273,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1224,11 +1301,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1246,11 +1326,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1268,11 +1351,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1288,11 +1375,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1305,11 +1395,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1328,10 +1422,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The exact form of action to be taken on the master auth.
+     * Required. The exact form of action to be taken on the master auth.
      * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. */ public int getActionValue() { return action_; @@ -1340,10 +1438,15 @@ public int getActionValue() { * * *
-     * The exact form of action to be taken on the master auth.
+     * Required. The exact form of action to be taken on the master auth.
      * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .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; @@ -1354,10 +1457,14 @@ public Builder setActionValue(int value) { * * *
-     * The exact form of action to be taken on the master auth.
+     * Required. The exact form of action to be taken on the master auth.
      * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. */ public com.google.container.v1.SetMasterAuthRequest.Action getAction() { @SuppressWarnings("deprecation") @@ -1371,10 +1478,15 @@ public com.google.container.v1.SetMasterAuthRequest.Action getAction() { * * *
-     * The exact form of action to be taken on the master auth.
+     * Required. The exact form of action to be taken on the master auth.
      * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .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) { @@ -1389,10 +1501,14 @@ public Builder setAction(com.google.container.v1.SetMasterAuthRequest.Action val * * *
-     * The exact form of action to be taken on the master auth.
+     * Required. The exact form of action to be taken on the master auth.
      * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ public Builder clearAction() { @@ -1411,10 +1527,13 @@ public Builder clearAction() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .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; @@ -1423,10 +1542,13 @@ public boolean hasUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ public com.google.container.v1.MasterAuth getUpdate() { if (updateBuilder_ == null) { @@ -1439,10 +1561,11 @@ public com.google.container.v1.MasterAuth getUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdate(com.google.container.v1.MasterAuth value) { if (updateBuilder_ == null) { @@ -1461,10 +1584,11 @@ public Builder setUpdate(com.google.container.v1.MasterAuth value) { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdate(com.google.container.v1.MasterAuth.Builder builderForValue) { if (updateBuilder_ == null) { @@ -1480,10 +1604,11 @@ public Builder setUpdate(com.google.container.v1.MasterAuth.Builder builderForVa * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdate(com.google.container.v1.MasterAuth value) { if (updateBuilder_ == null) { @@ -1506,10 +1631,11 @@ public Builder mergeUpdate(com.google.container.v1.MasterAuth value) { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdate() { if (updateBuilder_ == null) { @@ -1526,10 +1652,11 @@ public Builder clearUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { @@ -1540,10 +1667,11 @@ public com.google.container.v1.MasterAuth.Builder getUpdateBuilder() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { @@ -1556,10 +1684,11 @@ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.MasterAuth, @@ -1588,6 +1717,8 @@ public com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1609,6 +1740,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1630,6 +1763,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1649,6 +1785,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1665,6 +1803,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java index d2ebd196..26d009f5 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMasterAuthRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,20 +124,28 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * The exact form of action to be taken on the master auth.
+   * Required. The exact form of action to be taken on the master auth.
    * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for action. */ int getActionValue(); /** * * *
-   * The exact form of action to be taken on the master auth.
+   * Required. The exact form of action to be taken on the master auth.
    * 
* - * .google.container.v1.SetMasterAuthRequest.Action action = 4; + * + * .google.container.v1.SetMasterAuthRequest.Action action = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The action. */ com.google.container.v1.SetMasterAuthRequest.Action getAction(); @@ -129,30 +153,37 @@ public interface SetMasterAuthRequestOrBuilder * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. */ boolean hasUpdate(); /** * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ com.google.container.v1.MasterAuth getUpdate(); /** * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.MasterAuth update = 5; + * .google.container.v1.MasterAuth update = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.MasterAuthOrBuilder getUpdateOrBuilder(); @@ -165,6 +196,8 @@ public interface SetMasterAuthRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -176,6 +209,8 @@ public interface SetMasterAuthRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java index 7addc2b4..559fa4b2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequest.java @@ -45,6 +45,12 @@ private SetMonitoringServiceRequest() { 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; @@ -58,7 +64,6 @@ private SetMonitoringServiceRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,12 +149,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -167,12 +175,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -193,13 +204,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -217,13 +230,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -244,11 +259,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -266,11 +284,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -291,13 +312,17 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The monitoring service the cluster should use to write metrics.
+   * Required. The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string monitoring_service = 4; + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. */ public java.lang.String getMonitoringService() { java.lang.Object ref = monitoringService_; @@ -314,13 +339,17 @@ public java.lang.String getMonitoringService() { * * *
-   * The monitoring service the cluster should use to write metrics.
+   * Required. The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string monitoring_service = 4; + * 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_; @@ -345,6 +374,8 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -366,6 +397,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -766,12 +799,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -789,12 +825,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -812,12 +851,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -833,12 +876,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -851,12 +897,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -875,13 +925,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -899,13 +951,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -923,13 +977,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -945,13 +1002,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -964,13 +1023,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -989,11 +1051,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1011,11 +1076,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1033,11 +1101,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1053,11 +1125,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1070,11 +1145,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1093,13 +1172,17 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The monitoring service the cluster should use to write metrics.
+     * Required. The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string monitoring_service = 4; + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. */ public java.lang.String getMonitoringService() { java.lang.Object ref = monitoringService_; @@ -1116,13 +1199,17 @@ public java.lang.String getMonitoringService() { * * *
-     * The monitoring service the cluster should use to write metrics.
+     * Required. The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string monitoring_service = 4; + * 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_; @@ -1139,13 +1226,18 @@ public com.google.protobuf.ByteString getMonitoringServiceBytes() { * * *
-     * The monitoring service the cluster should use to write metrics.
+     * Required. The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string monitoring_service = 4; + * 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) { @@ -1160,13 +1252,17 @@ public Builder setMonitoringService(java.lang.String value) { * * *
-     * The monitoring service the cluster should use to write metrics.
+     * Required. The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string monitoring_service = 4; + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearMonitoringService() { @@ -1178,13 +1274,18 @@ public Builder clearMonitoringService() { * * *
-     * The monitoring service the cluster should use to write metrics.
+     * Required. The monitoring service the cluster should use to write metrics.
      * Currently available options:
+     * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+     * service with Kubernetes-native resource model
      * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
      * * "none" - no metrics will be exported from the cluster
      * 
* - * string monitoring_service = 4; + * 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) { @@ -1207,6 +1308,8 @@ public Builder setMonitoringServiceBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1228,6 +1331,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1249,6 +1354,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1268,6 +1376,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1284,6 +1394,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java index 21579d5b..d6d43599 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetMonitoringServiceRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,26 +124,34 @@ public interface SetMonitoringServiceRequestOrBuilder * * *
-   * The monitoring service the cluster should use to write metrics.
+   * Required. The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string monitoring_service = 4; + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The monitoringService. */ java.lang.String getMonitoringService(); /** * * *
-   * The monitoring service the cluster should use to write metrics.
+   * Required. The monitoring service the cluster should use to write metrics.
    * Currently available options:
+   * * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring
+   * service with Kubernetes-native resource model
    * * "monitoring.googleapis.com" - the Google Cloud Monitoring service
    * * "none" - no metrics will be exported from the cluster
    * 
* - * string monitoring_service = 4; + * string monitoring_service = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for monitoringService. */ com.google.protobuf.ByteString getMonitoringServiceBytes(); @@ -140,6 +164,8 @@ public interface SetMonitoringServiceRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -151,6 +177,8 @@ public interface SetMonitoringServiceRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java index 3734662e..a439d11b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequest.java @@ -44,6 +44,12 @@ private SetNetworkPolicyRequest() { 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; @@ -57,7 +63,6 @@ private SetNetworkPolicyRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,12 +157,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -175,12 +183,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -201,13 +212,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -225,13 +238,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -252,11 +267,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -274,11 +292,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -299,10 +320,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. */ public boolean hasNetworkPolicy() { return networkPolicy_ != null; @@ -311,10 +336,14 @@ public boolean hasNetworkPolicy() { * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. */ public com.google.container.v1.NetworkPolicy getNetworkPolicy() { return networkPolicy_ == null @@ -325,10 +354,12 @@ public com.google.container.v1.NetworkPolicy getNetworkPolicy() { * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { return getNetworkPolicy(); @@ -345,6 +376,8 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -366,6 +399,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -777,12 +812,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -800,12 +838,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -823,12 +864,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -844,12 +889,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -862,12 +910,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -886,13 +938,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -910,13 +964,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -934,13 +990,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -956,13 +1015,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -975,13 +1036,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1000,11 +1064,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1022,11 +1089,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1044,11 +1114,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1064,11 +1138,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1081,11 +1158,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1109,10 +1190,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .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; @@ -1121,10 +1206,14 @@ public boolean hasNetworkPolicy() { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .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) { @@ -1139,10 +1228,12 @@ public com.google.container.v1.NetworkPolicy getNetworkPolicy() { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { if (networkPolicyBuilder_ == null) { @@ -1161,10 +1252,12 @@ public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy value) { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .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) { @@ -1180,10 +1273,12 @@ public Builder setNetworkPolicy(com.google.container.v1.NetworkPolicy.Builder bu * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { if (networkPolicyBuilder_ == null) { @@ -1206,10 +1301,12 @@ public Builder mergeNetworkPolicy(com.google.container.v1.NetworkPolicy value) { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearNetworkPolicy() { if (networkPolicyBuilder_ == null) { @@ -1226,10 +1323,12 @@ public Builder clearNetworkPolicy() { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { @@ -1240,10 +1339,12 @@ public com.google.container.v1.NetworkPolicy.Builder getNetworkPolicyBuilder() { * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder() { if (networkPolicyBuilder_ != null) { @@ -1258,10 +1359,12 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( * * *
-     * Configuration options for the NetworkPolicy feature.
+     * Required. Configuration options for the NetworkPolicy feature.
      * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NetworkPolicy, @@ -1290,6 +1393,8 @@ public com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder( * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1311,6 +1416,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1332,6 +1439,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1351,6 +1461,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1367,6 +1479,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java index 7d045c7b..869a1bab 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNetworkPolicyRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,30 +124,40 @@ public interface SetNetworkPolicyRequestOrBuilder * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the networkPolicy field is set. */ boolean hasNetworkPolicy(); /** * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The networkPolicy. */ com.google.container.v1.NetworkPolicy getNetworkPolicy(); /** * * *
-   * Configuration options for the NetworkPolicy feature.
+   * Required. Configuration options for the NetworkPolicy feature.
    * 
* - * .google.container.v1.NetworkPolicy network_policy = 4; + * + * .google.container.v1.NetworkPolicy network_policy = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.NetworkPolicyOrBuilder getNetworkPolicyOrBuilder(); @@ -144,6 +170,8 @@ public interface SetNetworkPolicyRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -155,6 +183,8 @@ public interface SetNetworkPolicyRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java index c6012465..5c40283b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequest.java @@ -45,6 +45,12 @@ private SetNodePoolAutoscalingRequest() { 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; @@ -58,7 +64,6 @@ private SetNodePoolAutoscalingRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -160,12 +165,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -183,12 +191,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -209,13 +220,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -233,13 +246,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -260,11 +275,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -282,11 +300,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -307,11 +328,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -329,11 +353,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -354,10 +381,14 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. */ public boolean hasAutoscaling() { return autoscaling_ != null; @@ -366,10 +397,14 @@ public boolean hasAutoscaling() { * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. */ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { return autoscaling_ == null @@ -380,10 +415,12 @@ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { return getAutoscaling(); @@ -401,6 +438,8 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -423,6 +462,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -852,12 +893,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -875,12 +919,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -898,12 +945,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -919,12 +970,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -937,12 +991,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -961,13 +1019,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -985,13 +1045,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1009,13 +1071,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1031,13 +1096,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1050,13 +1117,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1075,11 +1145,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1097,11 +1170,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1119,11 +1195,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1139,11 +1219,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1156,11 +1239,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1179,11 +1266,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1201,11 +1291,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1223,11 +1316,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1243,11 +1340,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1260,11 +1360,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1288,10 +1392,14 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .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; @@ -1300,10 +1408,14 @@ public boolean hasAutoscaling() { * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. */ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { if (autoscalingBuilder_ == null) { @@ -1318,10 +1430,12 @@ public com.google.container.v1.NodePoolAutoscaling getAutoscaling() { * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { if (autoscalingBuilder_ == null) { @@ -1340,10 +1454,12 @@ public Builder setAutoscaling(com.google.container.v1.NodePoolAutoscaling value) * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setAutoscaling( com.google.container.v1.NodePoolAutoscaling.Builder builderForValue) { @@ -1360,10 +1476,12 @@ public Builder setAutoscaling( * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling value) { if (autoscalingBuilder_ == null) { @@ -1386,10 +1504,12 @@ public Builder mergeAutoscaling(com.google.container.v1.NodePoolAutoscaling valu * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearAutoscaling() { if (autoscalingBuilder_ == null) { @@ -1406,10 +1526,12 @@ public Builder clearAutoscaling() { * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder() { @@ -1420,10 +1542,12 @@ public com.google.container.v1.NodePoolAutoscaling.Builder getAutoscalingBuilder * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder() { if (autoscalingBuilder_ != null) { @@ -1438,10 +1562,12 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil * * *
-     * Autoscaling configuration for the node pool.
+     * Required. Autoscaling configuration for the node pool.
      * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodePoolAutoscaling, @@ -1471,6 +1597,8 @@ public com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuil * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1493,6 +1621,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1515,6 +1645,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1535,6 +1668,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1552,6 +1687,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java index 03483e7b..b153e9e9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolAutoscalingRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -133,30 +155,40 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the autoscaling field is set. */ boolean hasAutoscaling(); /** * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The autoscaling. */ com.google.container.v1.NodePoolAutoscaling getAutoscaling(); /** * * *
-   * Autoscaling configuration for the node pool.
+   * Required. Autoscaling configuration for the node pool.
    * 
* - * .google.container.v1.NodePoolAutoscaling autoscaling = 5; + * + * .google.container.v1.NodePoolAutoscaling autoscaling = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.NodePoolAutoscalingOrBuilder getAutoscalingOrBuilder(); @@ -170,6 +202,8 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -182,6 +216,8 @@ public interface SetNodePoolAutoscalingRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java index b7d82aeb..2234ed38 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequest.java @@ -46,6 +46,12 @@ private SetNodePoolManagementRequest() { 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; @@ -59,7 +65,6 @@ private SetNodePoolManagementRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -161,12 +166,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -184,12 +192,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -210,13 +221,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -234,13 +247,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -261,11 +276,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -283,11 +301,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -308,11 +329,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -330,11 +354,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -355,10 +382,14 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. */ public boolean hasManagement() { return management_ != null; @@ -367,10 +398,14 @@ public boolean hasManagement() { * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. */ public com.google.container.v1.NodeManagement getManagement() { return management_ == null @@ -381,10 +416,12 @@ public com.google.container.v1.NodeManagement getManagement() { * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { return getManagement(); @@ -402,6 +439,8 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -424,6 +463,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -853,12 +894,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -876,12 +920,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -899,12 +946,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -920,12 +971,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -938,12 +992,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -962,13 +1020,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -986,13 +1046,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1010,13 +1072,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1032,13 +1097,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1051,13 +1118,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1076,11 +1146,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1098,11 +1171,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1120,11 +1196,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1140,11 +1220,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1157,11 +1240,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1180,11 +1267,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1202,11 +1292,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1224,11 +1317,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1244,11 +1341,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1261,11 +1361,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1289,10 +1393,14 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .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; @@ -1301,10 +1409,14 @@ public boolean hasManagement() { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. */ public com.google.container.v1.NodeManagement getManagement() { if (managementBuilder_ == null) { @@ -1319,10 +1431,12 @@ public com.google.container.v1.NodeManagement getManagement() { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setManagement(com.google.container.v1.NodeManagement value) { if (managementBuilder_ == null) { @@ -1341,10 +1455,12 @@ public Builder setManagement(com.google.container.v1.NodeManagement value) { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setManagement(com.google.container.v1.NodeManagement.Builder builderForValue) { if (managementBuilder_ == null) { @@ -1360,10 +1476,12 @@ public Builder setManagement(com.google.container.v1.NodeManagement.Builder buil * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeManagement(com.google.container.v1.NodeManagement value) { if (managementBuilder_ == null) { @@ -1386,10 +1504,12 @@ public Builder mergeManagement(com.google.container.v1.NodeManagement value) { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearManagement() { if (managementBuilder_ == null) { @@ -1406,10 +1526,12 @@ public Builder clearManagement() { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { @@ -1420,10 +1542,12 @@ public com.google.container.v1.NodeManagement.Builder getManagementBuilder() { * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() { if (managementBuilder_ != null) { @@ -1438,10 +1562,12 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * * *
-     * NodeManagement configuration for the node pool.
+     * Required. NodeManagement configuration for the node pool.
      * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.NodeManagement, @@ -1471,6 +1597,8 @@ public com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder() * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1493,6 +1621,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1515,6 +1645,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1535,6 +1668,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1552,6 +1687,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java index cb15960c..1e3d63c9 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolManagementRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -133,30 +155,40 @@ public interface SetNodePoolManagementRequestOrBuilder * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the management field is set. */ boolean hasManagement(); /** * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The management. */ com.google.container.v1.NodeManagement getManagement(); /** * * *
-   * NodeManagement configuration for the node pool.
+   * Required. NodeManagement configuration for the node pool.
    * 
* - * .google.container.v1.NodeManagement management = 5; + * + * .google.container.v1.NodeManagement management = 5 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.NodeManagementOrBuilder getManagementOrBuilder(); @@ -170,6 +202,8 @@ public interface SetNodePoolManagementRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -182,6 +216,8 @@ public interface SetNodePoolManagementRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java index bbb48593..46792995 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequest.java @@ -46,6 +46,12 @@ private SetNodePoolSizeRequest() { 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; @@ -59,7 +65,6 @@ private SetNodePoolSizeRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -150,12 +155,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -173,12 +181,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -199,13 +210,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -223,13 +236,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -250,11 +265,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -272,11 +290,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -297,11 +318,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -319,11 +343,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -344,10 +371,12 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-   * The desired node count for the pool.
+   * Required. The desired node count for the pool.
    * 
* - * int32 node_count = 5; + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. */ public int getNodeCount() { return nodeCount_; @@ -365,6 +394,8 @@ public int getNodeCount() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -387,6 +418,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -801,12 +834,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -824,12 +860,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -847,12 +886,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -868,12 +911,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -886,12 +932,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -910,13 +960,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -934,13 +986,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -958,13 +1012,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -980,13 +1037,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -999,13 +1058,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1024,11 +1086,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1046,11 +1111,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1068,11 +1136,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1088,11 +1160,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1105,11 +1180,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to update.
+     * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1128,11 +1207,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1150,11 +1232,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1172,11 +1257,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1192,11 +1281,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1209,11 +1301,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to update.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1232,10 +1328,12 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The desired node count for the pool.
+     * Required. The desired node count for the pool.
      * 
* - * int32 node_count = 5; + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. */ public int getNodeCount() { return nodeCount_; @@ -1244,10 +1342,13 @@ public int getNodeCount() { * * *
-     * The desired node count for the pool.
+     * Required. The desired node count for the pool.
      * 
* - * int32 node_count = 5; + * 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) { @@ -1259,10 +1360,12 @@ public Builder setNodeCount(int value) { * * *
-     * The desired node count for the pool.
+     * Required. The desired node count for the pool.
      * 
* - * int32 node_count = 5; + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearNodeCount() { @@ -1282,6 +1385,8 @@ public Builder clearNodeCount() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1304,6 +1409,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1326,6 +1433,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1346,6 +1456,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1363,6 +1475,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java index c11f9187..aee239b2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/SetNodePoolSizeRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to update.
+   * 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]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to update.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -133,10 +155,12 @@ public interface SetNodePoolSizeRequestOrBuilder * * *
-   * The desired node count for the pool.
+   * Required. The desired node count for the pool.
    * 
* - * int32 node_count = 5; + * int32 node_count = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeCount. */ int getNodeCount(); @@ -150,6 +174,8 @@ public interface SetNodePoolSizeRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -162,6 +188,8 @@ public interface SetNodePoolSizeRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java new file mode 100644 index 00000000..a88f6303 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfig.java @@ -0,0 +1,658 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private ShieldedInstanceConfig( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enableSecureBoot_ = input.readBool(); + break; + } + case 16: + { + enableIntegrityMonitoring_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + public boolean getEnableIntegrityMonitoring() { + return enableIntegrityMonitoring_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enableSecureBoot_ != false) { + output.writeBool(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + output.writeBool(2, enableIntegrityMonitoring_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSecureBoot_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSecureBoot_); + } + if (enableIntegrityMonitoring_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, enableIntegrityMonitoring_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_SECURE_BOOT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSecureBoot()); + hash = (37 * hash) + ENABLE_INTEGRITY_MONITORING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableIntegrityMonitoring()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enableSecureBoot_ = false; + + enableIntegrityMonitoring_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.ShieldedInstanceConfig parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.ShieldedInstanceConfig) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enableSecureBoot_; + /** + * + * + *
+     * Defines whether the instance has Secure Boot enabled.
+     * Secure Boot helps ensure that the system only runs authentic software by
+     * verifying the digital signature of all boot components, and halting the
+     * boot process if signature verification fails.
+     * 
+ * + * bool enable_secure_boot = 1; + * + * @return The enableSecureBoot. + */ + 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. + */ + 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 { + return new ShieldedInstanceConfig(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.ShieldedInstanceConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java new file mode 100644 index 00000000..f7ceef57 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/ShieldedInstanceConfigOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java index c1e209ea..dee0bd1b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequest.java @@ -45,6 +45,12 @@ private StartIPRotationRequest() { 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; @@ -58,7 +64,6 @@ private StartIPRotationRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -142,12 +147,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -165,12 +173,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -191,13 +202,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -215,13 +228,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -242,11 +257,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -264,11 +282,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -294,6 +315,8 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -315,6 +338,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -338,6 +363,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * * bool rotate_credentials = 7; + * + * @return The rotateCredentials. */ public boolean getRotateCredentials() { return rotateCredentials_; @@ -728,12 +755,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -751,12 +781,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -774,12 +807,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -795,12 +832,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -813,12 +853,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://developers.google.com/console/help/new/#projectnumber).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -837,13 +881,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -861,13 +907,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -885,13 +933,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -907,13 +958,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -926,13 +979,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -951,11 +1007,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -973,11 +1032,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -995,11 +1057,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1015,11 +1081,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1032,11 +1101,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster.
+     * Required. Deprecated. The name of the cluster.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1060,6 +1133,8 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * * string name = 6; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1081,6 +1156,8 @@ public java.lang.String getName() { * * * string name = 6; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1102,6 +1179,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 6; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1121,6 +1201,8 @@ public Builder setName(java.lang.String value) { * * * string name = 6; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1137,6 +1219,9 @@ public Builder clearName() { * * * 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) { @@ -1158,6 +1243,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * bool rotate_credentials = 7; + * + * @return The rotateCredentials. */ public boolean getRotateCredentials() { return rotateCredentials_; @@ -1170,6 +1257,9 @@ public boolean getRotateCredentials() { * * * bool rotate_credentials = 7; + * + * @param value The rotateCredentials to set. + * @return This builder for chaining. */ public Builder setRotateCredentials(boolean value) { @@ -1185,6 +1275,8 @@ public Builder setRotateCredentials(boolean value) { * * * bool rotate_credentials = 7; + * + * @return This builder for chaining. */ public Builder clearRotateCredentials() { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java index c6756d59..7f01430b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StartIPRotationRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://developers.google.com/console/help/new/#projectnumber).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface StartIPRotationRequestOrBuilder * * *
-   * Deprecated. The name of the cluster.
+   * Required. Deprecated. The name of the cluster.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -113,6 +129,8 @@ public interface StartIPRotationRequestOrBuilder * * * string name = 6; + * + * @return The name. */ java.lang.String getName(); /** @@ -124,6 +142,8 @@ public interface StartIPRotationRequestOrBuilder * * * string name = 6; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); @@ -135,6 +155,8 @@ public interface StartIPRotationRequestOrBuilder * * * bool rotate_credentials = 7; + * + * @return The rotateCredentials. */ boolean getRotateCredentials(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java new file mode 100644 index 00000000..b9703381 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusCondition.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StatusCondition(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private StatusCondition( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + code_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + message_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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 a Google Compute Engine stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + GCE_STOCKOUT(1), + /** + * + * + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + GKE_SERVICE_ACCOUNT_DELETED(2), + /** + * + * + *
+     * Google Compute Engine quota was exceeded.
+     * 
+ * + * GCE_QUOTA_EXCEEDED = 3; + */ + GCE_QUOTA_EXCEEDED(3), + /** + * + * + *
+     * Cluster state was manually changed by an SRE due to a system logic error.
+     * 
+ * + * SET_BY_OPERATOR = 4; + */ + SET_BY_OPERATOR(4), + /** + * + * + *
+     * Unable to perform an encrypt operation against the CloudKMS key used for
+     * etcd level encryption.
+     * More codes TBA
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + CLOUD_KMS_KEY_ERROR(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * UNKNOWN indicates a generic condition.
+     * 
+ * + * UNKNOWN = 0; + */ + public static final int UNKNOWN_VALUE = 0; + /** + * + * + *
+     * GCE_STOCKOUT indicates a Google Compute Engine stockout.
+     * 
+ * + * GCE_STOCKOUT = 1; + */ + public static final int GCE_STOCKOUT_VALUE = 1; + /** + * + * + *
+     * GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot
+     * service account.
+     * 
+ * + * GKE_SERVICE_ACCOUNT_DELETED = 2; + */ + public static final int GKE_SERVICE_ACCOUNT_DELETED_VALUE = 2; + /** + * + * + *
+     * Google Compute Engine quota was exceeded.
+     * 
+ * + * GCE_QUOTA_EXCEEDED = 3; + */ + public static final int GCE_QUOTA_EXCEEDED_VALUE = 3; + /** + * + * + *
+     * Cluster state was manually changed by an SRE due to a system logic error.
+     * 
+ * + * SET_BY_OPERATOR = 4; + */ + public static final int SET_BY_OPERATOR_VALUE = 4; + /** + * + * + *
+     * Unable to perform an encrypt operation against the CloudKMS key used for
+     * etcd level encryption.
+     * More codes TBA
+     * 
+ * + * CLOUD_KMS_KEY_ERROR = 7; + */ + public static final int CLOUD_KMS_KEY_ERROR_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Code valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Code forNumber(int value) { + switch (value) { + case 0: + return UNKNOWN; + case 1: + return GCE_STOCKOUT; + case 2: + return GKE_SERVICE_ACCOUNT_DELETED; + case 3: + return GCE_QUOTA_EXCEEDED; + case 4: + return SET_BY_OPERATOR; + case 7: + return CLOUD_KMS_KEY_ERROR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Code findValueByNumber(int number) { + return Code.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + return getDescriptor().getValues().get(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
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The enum numeric value on the wire for code. + */ + public int getCodeValue() { + return code_; + } + /** + * + * + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The code. + */ + 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. + */ + 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. + */ + 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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!getMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); + } + unknownFields.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 (!getMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + CODE_FIELD_NUMBER; + hash = (53 * hash) + code_; + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + unknownFields.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + code_ = 0; + + message_ = ""; + + 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_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object 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(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.StatusCondition parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.StatusCondition) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int code_ = 0; + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The enum numeric value on the wire for code. + */ + public int getCodeValue() { + return code_; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @param value The enum numeric value on the wire for code to set. + * @return This builder for chaining. + */ + public Builder setCodeValue(int value) { + code_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Machine-friendly representation of the condition
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The code. + */ + 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
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @param value The code to set. + * @return This builder for chaining. + */ + 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
+     * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return This builder for chaining. + */ + 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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.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 { + return new StatusCondition(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.StatusCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java new file mode 100644 index 00000000..8a05187a --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/StatusConditionOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The enum numeric value on the wire for code. + */ + int getCodeValue(); + /** + * + * + *
+   * Machine-friendly representation of the condition
+   * 
+ * + * .google.container.v1.StatusCondition.Code code = 1; + * + * @return The code. + */ + 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(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java new file mode 100644 index 00000000..e09920e1 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindow.java @@ -0,0 +1,993 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private TimeWindow( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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); + } + + 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. + */ + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + 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; + */ + 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. + */ + 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. + */ + 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; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (startTime_ != null) { + output.writeMessage(1, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.v1.TimeWindow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.TimeWindow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.TimeWindow parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.TimeWindow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.TimeWindow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.container.v1.TimeWindow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.container.v1.TimeWindow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.TimeWindow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.TimeWindow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.container.v1.TimeWindow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.container.v1.TimeWindow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.container.v1.TimeWindow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.container.v1.TimeWindow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Represents an arbitrary window of time.
+   * 
+ * + * Protobuf type {@code google.container.v1.TimeWindow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.container.v1.TimeWindow) + com.google.container.v1.TimeWindowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_TimeWindow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_TimeWindow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.container.v1.TimeWindow.class, + com.google.container.v1.TimeWindow.Builder.class); + } + + // Construct using com.google.container.v1.TimeWindow.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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 (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.container.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()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.TimeWindow parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.TimeWindow) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time that the window first starts.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time that the window ends. The end time should take place after the
+     * start time.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.container.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 { + return new TimeWindow(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.TimeWindow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java new file mode 100644 index 00000000..aa024133 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/TimeWindowOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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 { + + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time that the window first starts.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time that the window ends. The end time should take place after the
+   * start time.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java index 601bf274..ded4b1b2 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequest.java @@ -44,6 +44,12 @@ private UpdateClusterRequest() { 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; @@ -57,7 +63,6 @@ private UpdateClusterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -152,12 +157,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -175,12 +183,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -201,13 +212,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -225,13 +238,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -252,11 +267,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -274,11 +292,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -299,10 +320,13 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. */ public boolean hasUpdate() { return update_ != null; @@ -311,10 +335,13 @@ public boolean hasUpdate() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ public com.google.container.v1.ClusterUpdate getUpdate() { return update_ == null ? com.google.container.v1.ClusterUpdate.getDefaultInstance() : update_; @@ -323,10 +350,11 @@ public com.google.container.v1.ClusterUpdate getUpdate() { * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { return getUpdate(); @@ -343,6 +371,8 @@ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -364,6 +394,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -774,12 +806,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -797,12 +832,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -820,12 +858,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -841,12 +883,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -859,12 +904,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -883,13 +932,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -907,13 +958,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -931,13 +984,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -953,13 +1009,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -972,13 +1030,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -997,11 +1058,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1019,11 +1083,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1041,11 +1108,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1061,11 +1132,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1078,11 +1152,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1106,10 +1184,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .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; @@ -1118,10 +1200,14 @@ public boolean hasUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ public com.google.container.v1.ClusterUpdate getUpdate() { if (updateBuilder_ == null) { @@ -1136,10 +1222,12 @@ public com.google.container.v1.ClusterUpdate getUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdate(com.google.container.v1.ClusterUpdate value) { if (updateBuilder_ == null) { @@ -1158,10 +1246,12 @@ public Builder setUpdate(com.google.container.v1.ClusterUpdate value) { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setUpdate(com.google.container.v1.ClusterUpdate.Builder builderForValue) { if (updateBuilder_ == null) { @@ -1177,10 +1267,12 @@ public Builder setUpdate(com.google.container.v1.ClusterUpdate.Builder builderFo * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeUpdate(com.google.container.v1.ClusterUpdate value) { if (updateBuilder_ == null) { @@ -1203,10 +1295,12 @@ public Builder mergeUpdate(com.google.container.v1.ClusterUpdate value) { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearUpdate() { if (updateBuilder_ == null) { @@ -1223,10 +1317,12 @@ public Builder clearUpdate() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { @@ -1237,10 +1333,12 @@ public com.google.container.v1.ClusterUpdate.Builder getUpdateBuilder() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { if (updateBuilder_ != null) { @@ -1255,10 +1353,12 @@ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { * * *
-     * A description of the update.
+     * Required. A description of the update.
      * 
* - * .google.container.v1.ClusterUpdate update = 4; + * + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.container.v1.ClusterUpdate, @@ -1287,6 +1387,8 @@ public com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder() { * * * string name = 5; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1308,6 +1410,8 @@ public java.lang.String getName() { * * * string name = 5; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1329,6 +1433,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 5; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1348,6 +1455,8 @@ public Builder setName(java.lang.String value) { * * * string name = 5; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1364,6 +1473,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java index fa3eabb7..17a7bba0 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateClusterRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,30 +124,37 @@ public interface UpdateClusterRequestOrBuilder * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the update field is set. */ boolean hasUpdate(); /** * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The update. */ com.google.container.v1.ClusterUpdate getUpdate(); /** * * *
-   * A description of the update.
+   * Required. A description of the update.
    * 
* - * .google.container.v1.ClusterUpdate update = 4; + * .google.container.v1.ClusterUpdate update = 4 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.container.v1.ClusterUpdateOrBuilder getUpdateOrBuilder(); @@ -144,6 +167,8 @@ public interface UpdateClusterRequestOrBuilder * * * string name = 5; + * + * @return The name. */ java.lang.String getName(); /** @@ -155,6 +180,8 @@ public interface UpdateClusterRequestOrBuilder * * * string name = 5; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java index 42eba598..4ce54f3b 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequest.java @@ -45,6 +45,12 @@ private UpdateMasterRequest() { 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; @@ -58,7 +64,6 @@ private UpdateMasterRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -144,12 +149,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -167,12 +175,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -193,13 +204,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -217,13 +230,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -244,11 +259,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -266,11 +284,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -291,7 +312,7 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * The Kubernetes version to change the master to.
+   * 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
@@ -301,7 +322,9 @@ public com.google.protobuf.ByteString getClusterIdBytes() {
    * - "-": picks the default Kubernetes version
    * 
* - * string master_version = 4; + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. */ public java.lang.String getMasterVersion() { java.lang.Object ref = masterVersion_; @@ -318,7 +341,7 @@ public java.lang.String getMasterVersion() { * * *
-   * The Kubernetes version to change the master to.
+   * 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
@@ -328,7 +351,9 @@ public java.lang.String getMasterVersion() {
    * - "-": picks the default Kubernetes version
    * 
* - * string master_version = 4; + * 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_; @@ -353,6 +378,8 @@ public com.google.protobuf.ByteString getMasterVersionBytes() { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -374,6 +401,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -772,12 +801,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -795,12 +827,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -818,12 +853,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -839,12 +878,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -857,12 +899,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -881,13 +927,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -905,13 +953,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -929,13 +979,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -951,13 +1004,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -970,13 +1025,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -995,11 +1053,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1017,11 +1078,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1039,11 +1103,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1059,11 +1127,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1076,11 +1147,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1099,7 +1174,7 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The Kubernetes version to change the master to.
+     * 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
@@ -1109,7 +1184,9 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) {
      * - "-": picks the default Kubernetes version
      * 
* - * string master_version = 4; + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. */ public java.lang.String getMasterVersion() { java.lang.Object ref = masterVersion_; @@ -1126,7 +1203,7 @@ public java.lang.String getMasterVersion() { * * *
-     * The Kubernetes version to change the master to.
+     * 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
@@ -1136,7 +1213,9 @@ public java.lang.String getMasterVersion() {
      * - "-": picks the default Kubernetes version
      * 
* - * string master_version = 4; + * 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_; @@ -1153,7 +1232,7 @@ public com.google.protobuf.ByteString getMasterVersionBytes() { * * *
-     * The Kubernetes version to change the master to.
+     * 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
@@ -1163,7 +1242,10 @@ public com.google.protobuf.ByteString getMasterVersionBytes() {
      * - "-": picks the default Kubernetes version
      * 
* - * string master_version = 4; + * 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) { @@ -1178,7 +1260,7 @@ public Builder setMasterVersion(java.lang.String value) { * * *
-     * The Kubernetes version to change the master to.
+     * 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
@@ -1188,7 +1270,9 @@ public Builder setMasterVersion(java.lang.String value) {
      * - "-": picks the default Kubernetes version
      * 
* - * string master_version = 4; + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearMasterVersion() { @@ -1200,7 +1284,7 @@ public Builder clearMasterVersion() { * * *
-     * The Kubernetes version to change the master to.
+     * 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
@@ -1210,7 +1294,10 @@ public Builder clearMasterVersion() {
      * - "-": picks the default Kubernetes version
      * 
* - * string master_version = 4; + * 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) { @@ -1233,6 +1320,8 @@ public Builder setMasterVersionBytes(com.google.protobuf.ByteString value) { * * * string name = 7; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1254,6 +1343,8 @@ public java.lang.String getName() { * * * string name = 7; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1275,6 +1366,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 7; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1294,6 +1388,8 @@ public Builder setName(java.lang.String value) { * * * string name = 7; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1310,6 +1406,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java index 51d814e7..9b390b48 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateMasterRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,7 +124,7 @@ public interface UpdateMasterRequestOrBuilder * * *
-   * The Kubernetes version to change the master to.
+   * 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
@@ -118,14 +134,16 @@ public interface UpdateMasterRequestOrBuilder
    * - "-": picks the default Kubernetes version
    * 
* - * string master_version = 4; + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The masterVersion. */ java.lang.String getMasterVersion(); /** * * *
-   * The Kubernetes version to change the master to.
+   * 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
@@ -135,7 +153,9 @@ public interface UpdateMasterRequestOrBuilder
    * - "-": picks the default Kubernetes version
    * 
* - * string master_version = 4; + * string master_version = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for masterVersion. */ com.google.protobuf.ByteString getMasterVersionBytes(); @@ -148,6 +168,8 @@ public interface UpdateMasterRequestOrBuilder * * * string name = 7; + * + * @return The name. */ java.lang.String getName(); /** @@ -159,6 +181,8 @@ public interface UpdateMasterRequestOrBuilder * * * string name = 7; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java index 61906f52..47fc493c 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequest.java @@ -47,6 +47,12 @@ private UpdateNodePoolRequest() { 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; @@ -60,7 +66,6 @@ private UpdateNodePoolRequest( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -160,12 +165,15 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -183,12 +191,15 @@ public java.lang.String getProjectId() { * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -209,13 +220,15 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -233,13 +246,15 @@ public java.lang.String getZone() { * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -260,11 +275,14 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -282,11 +300,14 @@ public java.lang.String getClusterId() { * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -307,11 +328,14 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -329,11 +353,14 @@ public java.lang.String getNodePoolId() { * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -354,7 +381,7 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-   * The Kubernetes version to change the nodes to (typically an
+   * 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:
@@ -365,7 +392,9 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() {
    * - "-": picks the Kubernetes master version
    * 
* - * string node_version = 5; + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. */ public java.lang.String getNodeVersion() { java.lang.Object ref = nodeVersion_; @@ -382,7 +411,7 @@ public java.lang.String getNodeVersion() { * * *
-   * The Kubernetes version to change the nodes to (typically an
+   * 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:
@@ -393,7 +422,9 @@ public java.lang.String getNodeVersion() {
    * - "-": picks the Kubernetes master version
    * 
* - * string node_version = 5; + * 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_; @@ -413,10 +444,12 @@ public com.google.protobuf.ByteString getNodeVersionBytes() { * * *
-   * The desired image type for the node pool.
+   * Required. The desired image type for the node pool.
    * 
* - * string image_type = 6; + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. */ public java.lang.String getImageType() { java.lang.Object ref = imageType_; @@ -433,10 +466,12 @@ public java.lang.String getImageType() { * * *
-   * The desired image type for the node pool.
+   * Required. The desired image type for the node pool.
    * 
* - * string image_type = 6; + * 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_; @@ -462,6 +497,8 @@ public com.google.protobuf.ByteString getImageTypeBytes() { * * * string name = 8; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -484,6 +521,8 @@ public java.lang.String getName() { * * * string name = 8; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -914,12 +953,15 @@ public Builder mergeFrom( * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated public java.lang.String getProjectId() { @@ -937,12 +979,15 @@ public java.lang.String getProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getProjectIdBytes() { @@ -960,12 +1005,16 @@ public com.google.protobuf.ByteString getProjectIdBytes() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectId(java.lang.String value) { @@ -981,12 +1030,15 @@ public Builder setProjectId(java.lang.String value) { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearProjectId() { @@ -999,12 +1051,16 @@ public Builder clearProjectId() { * * *
-     * Deprecated. The Google Developers Console [project ID or project
+     * Required. Deprecated. The Google Developers Console [project ID or project
      * number](https://support.google.com/cloud/answer/6158840).
      * This field has been deprecated and replaced by the name field.
      * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for projectId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { @@ -1023,13 +1079,15 @@ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated public java.lang.String getZone() { @@ -1047,13 +1105,15 @@ public java.lang.String getZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated public com.google.protobuf.ByteString getZoneBytes() { @@ -1071,13 +1131,16 @@ public com.google.protobuf.ByteString getZoneBytes() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZone(java.lang.String value) { @@ -1093,13 +1156,15 @@ public Builder setZone(java.lang.String value) { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearZone() { @@ -1112,13 +1177,16 @@ public Builder clearZone() { * * *
-     * Deprecated. The name of the Google Compute Engine
+     * Required. Deprecated. The name of the Google Compute Engine
      * [zone](/compute/docs/zones#available) in which the cluster
      * resides.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for zone to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setZoneBytes(com.google.protobuf.ByteString value) { @@ -1137,11 +1205,14 @@ public Builder setZoneBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated public java.lang.String getClusterId() { @@ -1159,11 +1230,14 @@ public java.lang.String getClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getClusterIdBytes() { @@ -1181,11 +1255,15 @@ public com.google.protobuf.ByteString getClusterIdBytes() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterId(java.lang.String value) { @@ -1201,11 +1279,14 @@ public Builder setClusterId(java.lang.String value) { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearClusterId() { @@ -1218,11 +1299,15 @@ public Builder clearClusterId() { * * *
-     * Deprecated. The name of the cluster to upgrade.
+     * Required. Deprecated. The name of the cluster to upgrade.
      * This field has been deprecated and replaced by the name field.
      * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for clusterId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { @@ -1241,11 +1326,14 @@ public Builder setClusterIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated public java.lang.String getNodePoolId() { @@ -1263,11 +1351,14 @@ public java.lang.String getNodePoolId() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNodePoolIdBytes() { @@ -1285,11 +1376,15 @@ public com.google.protobuf.ByteString getNodePoolIdBytes() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolId(java.lang.String value) { @@ -1305,11 +1400,14 @@ public Builder setNodePoolId(java.lang.String value) { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearNodePoolId() { @@ -1322,11 +1420,15 @@ public Builder clearNodePoolId() { * * *
-     * Deprecated. The name of the node pool to upgrade.
+     * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for nodePoolId to set. + * @return This builder for chaining. */ @java.lang.Deprecated public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { @@ -1345,7 +1447,7 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) { * * *
-     * The Kubernetes version to change the nodes to (typically an
+     * 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:
@@ -1356,7 +1458,9 @@ public Builder setNodePoolIdBytes(com.google.protobuf.ByteString value) {
      * - "-": picks the Kubernetes master version
      * 
* - * string node_version = 5; + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. */ public java.lang.String getNodeVersion() { java.lang.Object ref = nodeVersion_; @@ -1373,7 +1477,7 @@ public java.lang.String getNodeVersion() { * * *
-     * The Kubernetes version to change the nodes to (typically an
+     * 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:
@@ -1384,7 +1488,9 @@ public java.lang.String getNodeVersion() {
      * - "-": picks the Kubernetes master version
      * 
* - * string node_version = 5; + * 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_; @@ -1401,7 +1507,7 @@ public com.google.protobuf.ByteString getNodeVersionBytes() { * * *
-     * The Kubernetes version to change the nodes to (typically an
+     * 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:
@@ -1412,7 +1518,10 @@ public com.google.protobuf.ByteString getNodeVersionBytes() {
      * - "-": picks the Kubernetes master version
      * 
* - * string node_version = 5; + * 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) { @@ -1427,7 +1536,7 @@ public Builder setNodeVersion(java.lang.String value) { * * *
-     * The Kubernetes version to change the nodes to (typically an
+     * 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:
@@ -1438,7 +1547,9 @@ public Builder setNodeVersion(java.lang.String value) {
      * - "-": picks the Kubernetes master version
      * 
* - * string node_version = 5; + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearNodeVersion() { @@ -1450,7 +1561,7 @@ public Builder clearNodeVersion() { * * *
-     * The Kubernetes version to change the nodes to (typically an
+     * 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:
@@ -1461,7 +1572,10 @@ public Builder clearNodeVersion() {
      * - "-": picks the Kubernetes master version
      * 
* - * string node_version = 5; + * 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) { @@ -1479,10 +1593,12 @@ public Builder setNodeVersionBytes(com.google.protobuf.ByteString value) { * * *
-     * The desired image type for the node pool.
+     * Required. The desired image type for the node pool.
      * 
* - * string image_type = 6; + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. */ public java.lang.String getImageType() { java.lang.Object ref = imageType_; @@ -1499,10 +1615,12 @@ public java.lang.String getImageType() { * * *
-     * The desired image type for the node pool.
+     * Required. The desired image type for the node pool.
      * 
* - * string image_type = 6; + * 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_; @@ -1519,10 +1637,13 @@ public com.google.protobuf.ByteString getImageTypeBytes() { * * *
-     * The desired image type for the node pool.
+     * Required. The desired image type for the node pool.
      * 
* - * string image_type = 6; + * 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) { @@ -1537,10 +1658,12 @@ public Builder setImageType(java.lang.String value) { * * *
-     * The desired image type for the node pool.
+     * Required. The desired image type for the node pool.
      * 
* - * string image_type = 6; + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. */ public Builder clearImageType() { @@ -1552,10 +1675,13 @@ public Builder clearImageType() { * * *
-     * The desired image type for the node pool.
+     * Required. The desired image type for the node pool.
      * 
* - * string image_type = 6; + * 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) { @@ -1579,6 +1705,8 @@ public Builder setImageTypeBytes(com.google.protobuf.ByteString value) { * * * string name = 8; + * + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1601,6 +1729,8 @@ public java.lang.String getName() { * * * string name = 8; + * + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; @@ -1623,6 +1753,9 @@ public com.google.protobuf.ByteString getNameBytes() { * * * string name = 8; + * + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { @@ -1643,6 +1776,8 @@ public Builder setName(java.lang.String value) { * * * string name = 8; + * + * @return This builder for chaining. */ public Builder clearName() { @@ -1660,6 +1795,9 @@ public Builder clearName() { * * * 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) { diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java index 0c688913..80b9486a 100644 --- a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UpdateNodePoolRequestOrBuilder.java @@ -27,12 +27,15 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The projectId. */ @java.lang.Deprecated java.lang.String getProjectId(); @@ -40,12 +43,15 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The Google Developers Console [project ID or project
+   * Required. Deprecated. The Google Developers Console [project ID or project
    * number](https://support.google.com/cloud/answer/6158840).
    * This field has been deprecated and replaced by the name field.
    * 
* - * string project_id = 1 [deprecated = true]; + * string project_id = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for projectId. */ @java.lang.Deprecated com.google.protobuf.ByteString getProjectIdBytes(); @@ -54,13 +60,15 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The zone. */ @java.lang.Deprecated java.lang.String getZone(); @@ -68,13 +76,15 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the Google Compute Engine
+   * Required. Deprecated. The name of the Google Compute Engine
    * [zone](/compute/docs/zones#available) in which the cluster
    * resides.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string zone = 2 [deprecated = true]; + * string zone = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for zone. */ @java.lang.Deprecated com.google.protobuf.ByteString getZoneBytes(); @@ -83,11 +93,14 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clusterId. */ @java.lang.Deprecated java.lang.String getClusterId(); @@ -95,11 +108,14 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the cluster to upgrade.
+   * Required. Deprecated. The name of the cluster to upgrade.
    * This field has been deprecated and replaced by the name field.
    * 
* - * string cluster_id = 3 [deprecated = true]; + * string cluster_id = 3 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for clusterId. */ @java.lang.Deprecated com.google.protobuf.ByteString getClusterIdBytes(); @@ -108,11 +124,14 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The nodePoolId. */ @java.lang.Deprecated java.lang.String getNodePoolId(); @@ -120,11 +139,14 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * Deprecated. The name of the node pool to upgrade.
+   * 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]; + * string node_pool_id = 4 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for nodePoolId. */ @java.lang.Deprecated com.google.protobuf.ByteString getNodePoolIdBytes(); @@ -133,7 +155,7 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * The Kubernetes version to change the nodes to (typically an
+   * 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:
@@ -144,14 +166,16 @@ public interface UpdateNodePoolRequestOrBuilder
    * - "-": picks the Kubernetes master version
    * 
* - * string node_version = 5; + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The nodeVersion. */ java.lang.String getNodeVersion(); /** * * *
-   * The Kubernetes version to change the nodes to (typically an
+   * 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:
@@ -162,7 +186,9 @@ public interface UpdateNodePoolRequestOrBuilder
    * - "-": picks the Kubernetes master version
    * 
* - * string node_version = 5; + * string node_version = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for nodeVersion. */ com.google.protobuf.ByteString getNodeVersionBytes(); @@ -170,20 +196,24 @@ public interface UpdateNodePoolRequestOrBuilder * * *
-   * The desired image type for the node pool.
+   * Required. The desired image type for the node pool.
    * 
* - * string image_type = 6; + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The imageType. */ java.lang.String getImageType(); /** * * *
-   * The desired image type for the node pool.
+   * Required. The desired image type for the node pool.
    * 
* - * string image_type = 6; + * string image_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for imageType. */ com.google.protobuf.ByteString getImageTypeBytes(); @@ -197,6 +227,8 @@ public interface UpdateNodePoolRequestOrBuilder * * * string name = 8; + * + * @return The name. */ java.lang.String getName(); /** @@ -209,6 +241,8 @@ public interface UpdateNodePoolRequestOrBuilder * * * string name = 8; + * + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java new file mode 100644 index 00000000..94e7e371 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetwork.java @@ -0,0 +1,1731 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private UsableSubnetwork( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + subnetwork_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + network_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList< + com.google.container.v1.UsableSubnetworkSecondaryRange>(); + mutable_bitField0_ |= 0x00000001; + } + secondaryIpRanges_.add( + input.readMessage( + com.google.container.v1.UsableSubnetworkSecondaryRange.parser(), + extensionRegistry)); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + statusMessage_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = java.util.Collections.unmodifiableList(secondaryIpRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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; + * + */ + public java.util.List + getSecondaryIpRangesList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public java.util.List + getSecondaryIpRangesOrBuilderList() { + return secondaryIpRanges_; + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + public int getSecondaryIpRangesCount() { + return secondaryIpRanges_.size(); + } + /** + * + * + *
+   * Secondary IP ranges.
+   * 
+ * + * repeated .google.container.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + * + */ + 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; + * + */ + 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. + */ + 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. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = statusMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + statusMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getSubnetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + output.writeMessage(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusMessage_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getSubnetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subnetwork_); + } + if (!getNetworkBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, network_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, ipCidrRange_); + } + for (int i = 0; i < secondaryIpRanges_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, secondaryIpRanges_.get(i)); + } + if (!getStatusMessageBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusMessage_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + SUBNETWORK_FIELD_NUMBER; + hash = (53 * hash) + getSubnetwork().hashCode(); + hash = (37 * hash) + NETWORK_FIELD_NUMBER; + hash = (53 * hash) + getNetwork().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + if (getSecondaryIpRangesCount() > 0) { + hash = (37 * hash) + SECONDARY_IP_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getSecondaryIpRangesList().hashCode(); + } + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSecondaryIpRangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + subnetwork_ = ""; + + network_ = ""; + + ipCidrRange_ = ""; + + if (secondaryIpRangesBuilder_ == null) { + secondaryIpRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + secondaryIpRangesBuilder_.clear(); + } + statusMessage_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.UsableSubnetwork parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.UsableSubnetwork) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object subnetwork_ = ""; + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return The subnetwork. + */ + public java.lang.String getSubnetwork() { + java.lang.Object ref = subnetwork_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subnetwork_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return The bytes for subnetwork. + */ + public com.google.protobuf.ByteString getSubnetworkBytes() { + java.lang.Object ref = subnetwork_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + subnetwork_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + subnetwork_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @return This builder for chaining. + */ + public Builder clearSubnetwork() { + + subnetwork_ = getDefaultInstance().getSubnetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Subnetwork Name.
+     * Example: projects/my-project/regions/us-central1/subnetworks/my-subnet
+     * 
+ * + * string subnetwork = 1; + * + * @param value The bytes for subnetwork to set. + * @return This builder for chaining. + */ + public Builder setSubnetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + subnetwork_ = value; + onChanged(); + return this; + } + + private java.lang.Object network_ = ""; + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The network. + */ + public java.lang.String getNetwork() { + java.lang.Object ref = network_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + network_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return The bytes for network. + */ + public com.google.protobuf.ByteString getNetworkBytes() { + java.lang.Object ref = network_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + network_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The network to set. + * @return This builder for chaining. + */ + public Builder setNetwork(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + network_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @return This builder for chaining. + */ + public Builder clearNetwork() { + + network_ = getDefaultInstance().getNetwork(); + onChanged(); + return this; + } + /** + * + * + *
+     * Network Name.
+     * Example: projects/my-project/global/networks/my-network
+     * 
+ * + * string network = 2; + * + * @param value The bytes for network to set. + * @return This builder for chaining. + */ + public Builder setNetworkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + network_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of internal addresses that are owned by this subnetwork.
+     * 
+ * + * string ip_cidr_range = 3; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private java.util.List + secondaryIpRanges_ = java.util.Collections.emptyList(); + + private void ensureSecondaryIpRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + secondaryIpRanges_ = + new java.util.ArrayList( + secondaryIpRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.container.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 { + return new UsableSubnetwork(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetwork getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java new file mode 100644 index 00000000..1bbac2db --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java new file mode 100644 index 00000000..c30c88dd --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRange.java @@ -0,0 +1,1178 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private UsableSubnetworkSecondaryRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + rangeName_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + ipCidrRange_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + status_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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() { + return getDescriptor().getValues().get(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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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. + */ + 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 (!getRangeNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipCidrRange_); + } + if (status_ + != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + output.writeEnum(3, status_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getRangeNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, rangeName_); + } + if (!getIpCidrRangeBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, ipCidrRange_); + } + if (status_ + != com.google.container.v1.UsableSubnetworkSecondaryRange.Status.UNKNOWN.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, status_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.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 (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RANGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getRangeName().hashCode(); + hash = (37 * hash) + IP_CIDR_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getIpCidrRange().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + rangeName_ = ""; + + ipCidrRange_ = ""; + + status_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.UsableSubnetworkSecondaryRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.container.v1.UsableSubnetworkSecondaryRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object rangeName_ = ""; + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The rangeName. + */ + public java.lang.String getRangeName() { + java.lang.Object ref = rangeName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rangeName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return The bytes for rangeName. + */ + public com.google.protobuf.ByteString getRangeNameBytes() { + java.lang.Object ref = rangeName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rangeName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + rangeName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearRangeName() { + + rangeName_ = getDefaultInstance().getRangeName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name associated with this subnetwork secondary range, used when adding
+     * an alias IP range to a VM instance.
+     * 
+ * + * string range_name = 1; + * + * @param value The bytes for rangeName to set. + * @return This builder for chaining. + */ + public Builder setRangeNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + rangeName_ = value; + onChanged(); + return this; + } + + private java.lang.Object ipCidrRange_ = ""; + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The ipCidrRange. + */ + public java.lang.String getIpCidrRange() { + java.lang.Object ref = ipCidrRange_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + ipCidrRange_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return The bytes for ipCidrRange. + */ + public com.google.protobuf.ByteString getIpCidrRangeBytes() { + java.lang.Object ref = ipCidrRange_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + ipCidrRange_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRange(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + ipCidrRange_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @return This builder for chaining. + */ + public Builder clearIpCidrRange() { + + ipCidrRange_ = getDefaultInstance().getIpCidrRange(); + onChanged(); + return this; + } + /** + * + * + *
+     * The range of IP addresses belonging to this subnetwork secondary range.
+     * 
+ * + * string ip_cidr_range = 2; + * + * @param value The bytes for ipCidrRange to set. + * @return This builder for chaining. + */ + public Builder setIpCidrRangeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + ipCidrRange_ = value; + onChanged(); + return this; + } + + private int status_ = 0; + /** + * + * + *
+     * This field is to determine the status of the secondary range programmably.
+     * 
+ * + * .google.container.v1.UsableSubnetworkSecondaryRange.Status status = 3; + * + * @return The enum numeric value on the wire for status. + */ + 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. + */ + 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 { + return new UsableSubnetworkSecondaryRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.UsableSubnetworkSecondaryRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java new file mode 100644 index 00000000..c84486b3 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/UsableSubnetworkSecondaryRangeOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java new file mode 100644 index 00000000..c9f7418b --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscaling.java @@ -0,0 +1,546 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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; + } + + private VerticalPodAutoscaling( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enabled_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.container.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. + */ + public boolean getEnabled() { + return enabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enabled_ != false) { + output.writeBool(1, enabled_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enabled_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.container.v1.VerticalPodAutoscaling)) { + return super.equals(obj); + } + com.google.container.v1.VerticalPodAutoscaling other = + (com.google.container.v1.VerticalPodAutoscaling) obj; + + if (getEnabled() != other.getEnabled()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnabled()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.container.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() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + enabled_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.container.v1.ClusterServiceProto + .internal_static_google_container_v1_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.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.container.v1.VerticalPodAutoscaling parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.container.v1.VerticalPodAutoscaling) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean enabled_; + /** + * + * + *
+     * Enables vertical pod autoscaling.
+     * 
+ * + * bool enabled = 1; + * + * @return The enabled. + */ + 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 { + return new VerticalPodAutoscaling(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.container.v1.VerticalPodAutoscaling getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java new file mode 100644 index 00000000..ba9c3323 --- /dev/null +++ b/proto-google-cloud-container-v1/src/main/java/com/google/container/v1/VerticalPodAutoscalingOrBuilder.java @@ -0,0 +1,38 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations 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/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto b/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto index db7744d0..86475baa 100644 --- a/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto +++ b/proto-google-cloud-container-v1/src/main/proto/google/container/v1/cluster_service.proto @@ -1,4 +1,4 @@ -// Copyright 2018 Google LLC. +// Copyright 2019 Google LLC. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,18 +18,23 @@ syntax = "proto3"; package google.container.v1; import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; +option csharp_namespace = "Google.Cloud.Container.V1"; option go_package = "google.golang.org/genproto/googleapis/container/v1;container"; option java_multiple_files = true; option java_outer_classname = "ClusterServiceProto"; option java_package = "com.google.container.v1"; -option csharp_namespace = "Google.Cloud.Container.V1"; option php_namespace = "Google\\Cloud\\Container\\V1"; - // Google Kubernetes Engine Cluster Manager v1 service ClusterManager { + option (google.api.default_host) = "container.googleapis.com"; + option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; + // Lists all clusters owned by a project in either the specified zone or all // zones. rpc ListClusters(ListClustersRequest) returns (ListClustersResponse) { @@ -39,6 +44,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters" } }; + option (google.api.method_signature) = "project_id,zone"; } // Gets the details of a specific cluster. @@ -49,6 +55,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Creates a cluster, consisting of the specified number and type of Google @@ -58,12 +65,12 @@ service ClusterManager { // [default network](/compute/docs/networks-and-firewalls#networks). // // One firewall is added for the cluster. After cluster creation, - // the cluster creates routes for each node to allow the containers + // 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 is being used by the cluster. + // which CIDR range the cluster is using. rpc CreateCluster(CreateClusterRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{parent=projects/*/locations/*}/clusters" @@ -73,6 +80,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster"; } // Updates the settings of a specific cluster. @@ -85,9 +93,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,update"; } - // Updates the version and/or image type for a specific node pool. + // Updates the version and/or image type for the specified node pool. rpc UpdateNodePool(UpdateNodePoolRequest) returns (Operation) { option (google.api.http) = { put: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" @@ -99,7 +108,7 @@ service ClusterManager { }; } - // Sets the autoscaling settings for a specific node pool. + // Sets the autoscaling settings for the specified node pool. rpc SetNodePoolAutoscaling(SetNodePoolAutoscalingRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:setAutoscaling" @@ -121,6 +130,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,logging_service"; } // Sets the monitoring service for a specific cluster. @@ -133,6 +143,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,monitoring_service"; } // Sets the addons for a specific cluster. @@ -145,6 +156,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,addons_config"; } // Sets the locations for a specific cluster. @@ -157,6 +169,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,locations"; } // Updates the master for a specific cluster. @@ -169,11 +182,12 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,master_version"; } - // Used to set master auth materials. Currently supports :- - // Changing the admin password for a specific cluster. - // This can be either via password generation or explicitly set the password. + // Sets master auth materials. Currently supports changing the admin password + // or a specific cluster, either via password generation or explicitly setting + // the password. rpc SetMasterAuth(SetMasterAuthRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setMasterAuth" @@ -191,9 +205,9 @@ service ClusterManager { // 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 - // (e.g. load balancer resources) will not be deleted if they weren't present - // at the initial create time. + // Other Google Compute Engine resources that might be in use by the cluster, + // such as load balancer resources, are not deleted if they weren't present + // when the cluster was initially created. rpc DeleteCluster(DeleteClusterRequest) returns (Operation) { option (google.api.http) = { delete: "/v1/{name=projects/*/locations/*/clusters/*}" @@ -201,6 +215,7 @@ service ClusterManager { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Lists all operations in a project in a specific zone or all zones. @@ -211,6 +226,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/operations" } }; + option (google.api.method_signature) = "project_id,zone"; } // Gets the specified operation. @@ -221,6 +237,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/operations/{operation_id}" } }; + option (google.api.method_signature) = "project_id,zone,operation_id"; } // Cancels the specified operation. @@ -233,9 +250,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,operation_id"; } - // Returns configuration info about the Kubernetes Engine service. + // Returns configuration info about the Google Kubernetes Engine service. rpc GetServerConfig(GetServerConfigRequest) returns (ServerConfig) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*}/serverConfig" @@ -243,6 +261,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/serverconfig" } }; + option (google.api.method_signature) = "project_id,zone"; } // Lists the node pools for a cluster. @@ -253,9 +272,10 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } - // Retrieves the node pool requested. + // Retrieves the requested node pool. rpc GetNodePool(GetNodePoolRequest) returns (NodePool) { option (google.api.http) = { get: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}" @@ -263,6 +283,7 @@ service ClusterManager { get: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Creates a node pool for a cluster. @@ -275,6 +296,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool"; } // Deletes a node pool from a cluster. @@ -285,10 +307,11 @@ service ClusterManager { delete: "/v1/projects/{project_id}/zones/{zone}/clusters/{cluster_id}/nodePools/{node_pool_id}" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } - // Roll back the previously Aborted or Failed NodePool upgrade. - // This will be an no-op if the last upgrade successfully completed. + // Rolls back a previously Aborted or Failed NodePool upgrade. + // This makes no changes if the last upgrade successfully completed. rpc RollbackNodePoolUpgrade(RollbackNodePoolUpgradeRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*/nodePools/*}:rollback" @@ -298,6 +321,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,node_pool_id"; } // Sets the NodeManagement options for a node pool. @@ -334,9 +358,10 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,enabled"; } - // Start master IP rotation. + // Starts master IP rotation. rpc StartIPRotation(StartIPRotationRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:startIpRotation" @@ -346,6 +371,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Completes master IP rotation. @@ -358,6 +384,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id"; } // Sets the size for a specific node pool. @@ -372,7 +399,7 @@ service ClusterManager { }; } - // Enables/Disables Network Policy for a cluster. + // Enables or disables Network Policy for a cluster. rpc SetNetworkPolicy(SetNetworkPolicyRequest) returns (Operation) { option (google.api.http) = { post: "/v1/{name=projects/*/locations/*/clusters/*}:setNetworkPolicy" @@ -382,6 +409,7 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,network_policy"; } // Sets the maintenance policy for a cluster. @@ -394,6 +422,14 @@ service ClusterManager { body: "*" } }; + option (google.api.method_signature) = "project_id,zone,cluster_id,maintenance_policy"; + } + + // Lists subnetworks that are usable for creating clusters in a project. + rpc ListUsableSubnetworks(ListUsableSubnetworksRequest) returns (ListUsableSubnetworksResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*}/aggregated/usableSubnetworks" + }; } } @@ -443,6 +479,7 @@ message NodeConfig { // "cluster-name" // "cluster-uid" // "configure-sh" + // "containerd-configure-sh" // "enable-os-login" // "gci-update-strategy" // "gci-ensure-gke-docker" @@ -450,6 +487,13 @@ message NodeConfig { // "kube-env" // "startup-script" // "user-data" + // "disable-address-manager" + // "windows-startup-script-ps1" + // "common-psm1" + // "k8s-node-setup-psm1" + // "install-ssh-psm1" + // "user-profile-psm1" + // "serial-port-logging-enable" // // 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 @@ -474,9 +518,9 @@ message NodeConfig { // The number of local SSD disks to be attached to the node. // - // The limit for this value is dependant upon the maximum number of + // 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#local_ssd_limits + // https://cloud.google.com/compute/docs/disks/local-ssd // for more information. int32 local_ssd_count = 7; @@ -509,6 +553,64 @@ message NodeConfig { // information, read [how to specify min CPU // platform](https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform) string min_cpu_platform = 13; + + // List of kubernetes taints to be applied to each node. + // + // For more information, including usage and the valid values, see: + // https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ + repeated NodeTaint taints = 15; + + // Shielded Instance options. + ShieldedInstanceConfig shielded_instance_config = 20; +} + +// A set of Shielded Instance options. +message ShieldedInstanceConfig { + // Defines whether the instance has Secure Boot enabled. + // + // Secure Boot helps ensure that the system only runs authentic software by + // verifying the digital signature of all boot components, and halting the + // boot process if signature verification fails. + bool enable_secure_boot = 1; + + // Defines whether the instance has integrity monitoring enabled. + // + // Enables monitoring and attestation of the boot integrity of the instance. + // The attestation is performed against the integrity policy baseline. This + // baseline is initially derived from the implicitly trusted boot image when + // the instance is created. + bool enable_integrity_monitoring = 2; +} + +// Kubernetes taint is comprised of three fields: key, value, and effect. Effect +// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute. +// +// For more information, including usage and the valid values, see: +// https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +message NodeTaint { + // Possible values for Effect in taint. + enum Effect { + // Not set + EFFECT_UNSPECIFIED = 0; + + // NoSchedule + NO_SCHEDULE = 1; + + // PreferNoSchedule + PREFER_NO_SCHEDULE = 2; + + // NoExecute + NO_EXECUTE = 3; + } + + // Key for taint. + string key = 1; + + // Value for taint. + string value = 2; + + // Effect for taint. + Effect effect = 3; } // The authentication information for accessing the master endpoint. @@ -516,8 +618,8 @@ message NodeConfig { // certificates. message MasterAuth { // The username to use for HTTP basic authentication to the master endpoint. - // For clusters v1.6.0 and later, you can disable basic authentication by - // providing an empty username. + // For clusters v1.6.0 and later, basic authentication can be disabled by + // leaving username unspecified (or setting it to the empty string). string username = 1; // The password to use for HTTP basic authentication to the master endpoint. @@ -563,12 +665,20 @@ message AddonsConfig { HorizontalPodAutoscaling horizontal_pod_autoscaling = 2; // Configuration for the Kubernetes Dashboard. - KubernetesDashboard kubernetes_dashboard = 3; + // This addon is deprecated, and will be disabled in 1.15. It is recommended + // to use the Cloud Console to manage and monitor your Kubernetes clusters, + // workloads and applications. For more information, see: + // https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards + KubernetesDashboard kubernetes_dashboard = 3 [deprecated = true]; // Configuration for NetworkPolicy. This only tracks whether the addon // is enabled or not on the Master, it does not track whether network policy // is enabled for the nodes. NetworkPolicyConfig network_policy_config = 4; + + // Configuration for the Cloud Run addon, which allows the user to use a + // managed Knative service. + CloudRunConfig cloud_run_config = 7; } // Configuration options for the HTTP (L7) load balancing controller addon, @@ -627,6 +737,23 @@ message PrivateClusterConfig { string public_endpoint = 5; } +// Configuration for returning group information from authenticators. +message AuthenticatorGroupsConfig { + // Whether this cluster should return group membership lookups + // during authentication using a group of security groups. + bool enabled = 1; + + // The name of the security group-of-groups to be used. Only relevant + // if enabled = true. + string security_group = 2; +} + +// Configuration options for the Cloud Run feature. +message CloudRunConfig { + // Whether Cloud Run addon is enabled for this cluster. + bool disabled = 1; +} + // Configuration options for the master authorized networks feature. Enabled // master authorized networks will disallow all external traffic to access // Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -644,7 +771,7 @@ message MasterAuthorizedNetworksConfig { // Whether or not master authorized networks is enabled. bool enabled = 1; - // cidr_blocks define up to 10 external networks that could access + // cidr_blocks define up to 50 external networks that could access // Kubernetes master through HTTPS. repeated CidrBlock cidr_blocks = 2; } @@ -678,6 +805,13 @@ message NetworkPolicy { bool enabled = 2; } +// Configuration for Binary Authorization. +message BinaryAuthorization { + // Enable Binary Authorization for this cluster. If enabled, all container + // images will be validated by Binary Authorization. + bool enabled = 1; +} + // Configuration for controlling how IPs are allocated in the cluster. message IPAllocationPolicy { // Whether alias IPs will be used for pod IPs in the cluster. @@ -769,6 +903,23 @@ message IPAllocationPolicy { // `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`) to pick a specific range // to use. string services_ipv4_cidr_block = 11; + + // 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; } // A Google Kubernetes Engine cluster. @@ -803,7 +954,8 @@ message Cluster { } // The name of this cluster. The name must be unique within this project - // and zone, and can be up to 40 characters with the following restrictions: + // 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. @@ -821,26 +973,35 @@ message Cluster { // "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. - int32 initial_node_count = 3; + // + // This field is deprecated, use node_pool.initial_node_count instead. + int32 initial_node_count = 3 [deprecated = true]; // Parameters used in creating the cluster's nodes. - // See `nodeConfig` for the description of its properties. // 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. + // the first node pool. (For configuration of each node pool, see + // `node_pool.config`) // // If unspecified, the defaults are used. - NodeConfig node_config = 4; + // This field is deprecated, use node_pool.config instead. + NodeConfig node_config = 4 [deprecated = true]; // The authentication information for accessing the master endpoint. + // If unspecified, the defaults are used: + // For clusters before v1.12, if master_auth is unspecified, `username` will + // be set to "admin", a random password will be generated, and a client + // certificate will be issued. MasterAuth master_auth = 5; // The logging service the cluster should use to write logs. // Currently available options: // + // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + // service with Kubernetes-native resource model // * `logging.googleapis.com` - the Google Cloud Logging service. // * `none` - no logs will be exported from the cluster. // * if left as an empty string,`logging.googleapis.com` will be used. @@ -880,7 +1041,7 @@ message Cluster { repeated NodePool node_pools = 12; // The list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // [zones](/compute/docs/zones#available) in which the cluster's nodes // should be located. repeated string locations = 13; @@ -914,12 +1075,36 @@ message Cluster { // Configure the maintenance policy for this cluster. MaintenancePolicy maintenance_policy = 23; + // Configuration for Binary Authorization. + BinaryAuthorization binary_authorization = 24; + + // Cluster-level autoscaling configuration. + ClusterAutoscaling autoscaling = 26; + // Configuration for cluster networking. NetworkConfig network_config = 27; + // The default constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool of this cluster. Only honored + // if cluster created with IP Alias support. + MaxPodsConstraint default_max_pods_constraint = 30; + + // Configuration for exporting resource usages. Resource usage export is + // disabled when this config is unspecified. + ResourceUsageExportConfig resource_usage_export_config = 33; + + // Configuration controlling RBAC group membership information. + AuthenticatorGroupsConfig authenticator_groups_config = 34; + // Configuration for private cluster. PrivateClusterConfig private_cluster_config = 37; + // Configuration of etcd encryption. + DatabaseEncryption database_encryption = 38; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling vertical_pod_autoscaling = 39; + // [Output only] Server-defined URL for the resource. string self_link = 100; @@ -956,7 +1141,7 @@ message Cluster { string current_master_version = 104; // [Output only] Deprecated, use - // [NodePool.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.clusters.nodePool) + // [NodePools.version](/kubernetes-engine/docs/reference/rest/v1/projects.zones.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. @@ -975,7 +1160,8 @@ message Cluster { // [Output only] The size of the address space on each node for hosting // containers. This is provisioned from within the `container_ipv4_cidr` - // range. + // range. This field will only be set when cluster is in route-based network + // mode. int32 node_ipv4_cidr_size = 109; // [Output only] The IP address range of the Kubernetes services in @@ -988,8 +1174,9 @@ message Cluster { // Deprecated. Use node_pools.instance_group_urls. repeated string instance_group_urls = 111 [deprecated = true]; - // [Output only] The number of nodes currently in the cluster. - int32 current_node_count = 112; + // [Output only] The number of nodes currently in the cluster. Deprecated. + // Call Kubernetes API directly to retrieve node information. + int32 current_node_count = 112 [deprecated = true]; // [Output only] The time the cluster will be automatically // deleted in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. @@ -1000,6 +1187,17 @@ message Cluster { // [region](/compute/docs/regions-zones/regions-zones#available) in which // the cluster resides. string location = 114; + + // Enable the ability to use Cloud TPUs in this cluster. + bool enable_tpu = 115; + + // [Output only] The IP address range of the Cloud TPUs in this cluster, in + // [CIDR](http://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) + // notation (e.g. `1.2.3.4/29`). + string tpu_ipv4_cidr_block = 116; + + // Which conditions caused the current cluster state. + repeated StatusCondition conditions = 118; } // ClusterUpdate describes an update to the cluster. Exactly one update can @@ -1022,6 +1220,8 @@ message ClusterUpdate { // The monitoring service the cluster should use to write metrics. // Currently available options: // + // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + // service with Kubernetes-native resource model // * "monitoring.googleapis.com" - the Google Cloud Monitoring service // * "none" - no metrics will be exported from the cluster string desired_monitoring_service = 5; @@ -1039,6 +1239,9 @@ message ClusterUpdate { // NOTE: Set the "desired_node_pool" field as well. string desired_image_type = 8; + // Configuration of etcd encryption. + DatabaseEncryption desired_database_encryption = 46; + // 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 @@ -1046,7 +1249,7 @@ message ClusterUpdate { NodePoolAutoscaling desired_node_pool_autoscaling = 9; // The desired list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // [zones](/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. @@ -1057,6 +1260,30 @@ message ClusterUpdate { // The desired configuration options for master authorized networks feature. MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12; + // Cluster-level autoscaling configuration. + ClusterAutoscaling desired_cluster_autoscaling = 15; + + // The desired configuration options for the Binary Authorization feature. + BinaryAuthorization desired_binary_authorization = 16; + + // The logging service the cluster should use to write logs. + // Currently available options: + // + // * "logging.googleapis.com/kubernetes" - the Google Cloud Logging + // service with Kubernetes-native resource model + // * "logging.googleapis.com" - the Google Cloud Logging service + // * "none" - no logs will be exported from the cluster + string desired_logging_service = 19; + + // The desired configuration for exporting resource usage. + ResourceUsageExportConfig desired_resource_usage_export_config = 21; + + // Cluster-level Vertical Pod Autoscaling configuration. + VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22; + + // The desired config of Intra-node visibility. + IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26; + // The Kubernetes version to change the master to. // // Users may specify either explicit versions offered by @@ -1185,24 +1412,36 @@ message Operation { // [Output only] The time the operation completed, in // [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. string end_time = 11; + + // Which conditions caused the current cluster state. + repeated StatusCondition cluster_conditions = 13; + + // Which conditions caused the current node pool state. + repeated StatusCondition nodepool_conditions = 14; } // CreateClusterRequest creates a cluster. message CreateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the parent field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // A [cluster + // Required. A [cluster // resource](/container-engine/reference/rest/v1/projects.zones.clusters) - Cluster cluster = 3; + Cluster cluster = 3 [(google.api.field_behavior) = REQUIRED]; // The parent (project and location) where the cluster will be created. // Specified in the format 'projects/*/locations/*'. @@ -1211,20 +1450,29 @@ message CreateClusterRequest { // GetClusterRequest gets the settings of a cluster. message GetClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to retrieve. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to retrieve. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1233,23 +1481,32 @@ message GetClusterRequest { // UpdateClusterRequest updates the settings of a cluster. message UpdateClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // A description of the update. - ClusterUpdate update = 4; + // Required. A description of the update. + ClusterUpdate update = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1258,26 +1515,38 @@ message UpdateClusterRequest { // UpdateNodePoolRequests update a node pool's image and/or version. message UpdateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to upgrade. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The Kubernetes version to change the nodes to (typically an + // Required. The Kubernetes version to change the nodes to (typically an // upgrade). // // Users may specify either explicit versions offered by Kubernetes Engine or @@ -1288,10 +1557,10 @@ message UpdateNodePoolRequest { // - "1.X.Y": picks 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; + string node_version = 5 [(google.api.field_behavior) = REQUIRED]; - // The desired image type for the node pool. - string image_type = 6; + // Required. The desired image type for the node pool. + string image_type = 6 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool) of the node pool to // update. Specified in the format @@ -1301,27 +1570,39 @@ message UpdateNodePoolRequest { // SetNodePoolAutoscalingRequest sets the autoscaler settings of a node pool. message SetNodePoolAutoscalingRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to upgrade. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Autoscaling configuration for the node pool. - NodePoolAutoscaling autoscaling = 5; + // Required. Autoscaling configuration for the node pool. + NodePoolAutoscaling autoscaling = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool) of the node pool to set // autoscaler settings. Specified in the format @@ -1331,27 +1612,33 @@ message SetNodePoolAutoscalingRequest { // SetLoggingServiceRequest sets the logging service of a cluster. message SetLoggingServiceRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2; + string zone = 2 [(google.api.field_behavior) = REQUIRED]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The logging service the cluster should use to write metrics. + // Required. The logging service the cluster should use to write metrics. // Currently available options: // // * "logging.googleapis.com" - the Google Cloud Logging service // * "none" - no metrics will be exported from the cluster - string logging_service = 4; + string logging_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set logging. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1360,27 +1647,38 @@ message SetLoggingServiceRequest { // SetMonitoringServiceRequest sets the monitoring service of a cluster. message SetMonitoringServiceRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The monitoring service the cluster should use to write metrics. + // Required. The monitoring service the cluster should use to write metrics. // Currently available options: // + // * "monitoring.googleapis.com/kubernetes" - the Google Cloud Monitoring + // service with Kubernetes-native resource model // * "monitoring.googleapis.com" - the Google Cloud Monitoring service // * "none" - no metrics will be exported from the cluster - string monitoring_service = 4; + string monitoring_service = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set monitoring. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1389,24 +1687,33 @@ message SetMonitoringServiceRequest { // SetAddonsConfigRequest sets the addons associated with the cluster. message SetAddonsConfigRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired configurations for the various addons available to run in the + // Required. The desired configurations for the various addons available to run in the // cluster. - AddonsConfig addons_config = 4; + AddonsConfig addons_config = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set addons. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1415,29 +1722,38 @@ message SetAddonsConfigRequest { // SetLocationsRequest sets the locations of the cluster. message SetLocationsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired list of Google Compute Engine - // [locations](/compute/docs/zones#available) in which the cluster's nodes + // Required. The desired list of Google Compute Engine + // [zones](/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; + repeated string locations = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set locations. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1446,22 +1762,31 @@ message SetLocationsRequest { // UpdateMasterRequest updates the master of the cluster. message UpdateMasterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The Kubernetes version to change the master to. + // 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: @@ -1471,7 +1796,7 @@ message UpdateMasterRequest { // - "1.X.Y": picks the highest valid 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; + string master_version = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to update. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1498,26 +1823,35 @@ message SetMasterAuthRequest { SET_USERNAME = 3; } - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to upgrade. + // Required. Deprecated. The name of the cluster to upgrade. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The exact form of action to be taken on the master auth. - Action action = 4; + // Required. The exact form of action to be taken on the master auth. + Action action = 4 [(google.api.field_behavior) = REQUIRED]; - // A description of the update. - MasterAuth update = 5; + // Required. A description of the update. + MasterAuth update = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster) of the cluster to set auth. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1526,20 +1860,29 @@ message SetMasterAuthRequest { // DeleteClusterRequest deletes a cluster. message DeleteClusterRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to delete. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster) of the cluster to delete. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1548,16 +1891,22 @@ message DeleteClusterRequest { // ListClustersRequest lists clusters. message ListClustersRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the clusters will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1578,20 +1927,29 @@ message ListClustersResponse { // GetOperationRequest gets a single operation. message GetOperationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The server-assigned `name` of the operation. + // 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]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to get. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -1600,15 +1958,21 @@ message GetOperationRequest { // ListOperationsRequest lists operations. message ListOperationsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project and location) where the operations will be listed. // Specified in the format 'projects/*/locations/*'. @@ -1618,19 +1982,28 @@ message ListOperationsRequest { // CancelOperationRequest cancels a single operation. message CancelOperationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/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]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The server-assigned `name` of the operation. + // 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]; + string operation_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, operation id) of the operation to cancel. // Specified in the format 'projects/*/locations/*/operations/*'. @@ -1649,18 +2022,24 @@ message ListOperationsResponse { // Gets the current Kubernetes Engine service configuration. message GetServerConfigRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) to return operations for. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The name (project and location) of the server config to get - // Specified in the format 'projects/*/locations/*'. + // The name (project and location) of the server config to get, + // specified in the format 'projects/*/locations/*'. string name = 4; } @@ -1684,23 +2063,32 @@ message ServerConfig { // CreateNodePoolRequest creates a node pool for a cluster. message CreateNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the parent field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The node pool to create. - NodePool node_pool = 4; + // Required. The node pool to create. + NodePool node_pool = 4 [(google.api.field_behavior) = REQUIRED]; // The parent (project, location, cluster id) where the node pool will be // created. Specified in the format @@ -1710,24 +2098,36 @@ message CreateNodePoolRequest { // DeleteNodePoolRequest deletes a node pool for a cluster. message DeleteNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to delete. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // delete. Specified in the format @@ -1737,20 +2137,29 @@ message DeleteNodePoolRequest { // ListNodePoolsRequest lists the node pool(s) for a cluster. message ListNodePoolsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the parent field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the parent field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the parent field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The parent (project, location, cluster id) where the node pools will be // listed. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -1759,24 +2168,36 @@ message ListNodePoolsRequest { // GetNodePoolRequest retrieves a node pool for a cluster. message GetNodePoolRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node pool to // get. Specified in the format @@ -1858,6 +2279,16 @@ message NodePool { // NodeManagement configuration for this NodePool. NodeManagement management = 5; + + // The constraint on the maximum number of pods that can be run + // simultaneously on a node in the node pool. + MaxPodsConstraint max_pods_constraint = 6; + + // Which conditions caused the current node pool state. + repeated StatusCondition conditions = 105; + + // [Output only] The pod CIDR block size per node in this node pool. + int32 pod_ipv4_cidr_size = 7; } // NodeManagement defines the set of node management services turned on for the @@ -1895,6 +2326,13 @@ message AutoUpgradeOptions { message MaintenancePolicy { // Specifies the maintenance window in which maintenance may be performed. MaintenanceWindow window = 1; + + // A hash identifying the version of this policy, so that updates to fields of + // the policy won't accidentally undo intermediate changes (and so that users + // of the API unaware of some fields won't accidentally remove other fields). + // Make a get() request to the cluster to get the current + // resource version and include it with requests to set the policy. + string resource_version = 3; } // MaintenanceWindow defines the maintenance window to be used for the cluster. @@ -1902,14 +2340,68 @@ message MaintenanceWindow { oneof policy { // DailyMaintenanceWindow specifies a daily maintenance operation window. DailyMaintenanceWindow daily_maintenance_window = 2; + + // RecurringWindow specifies some number of recurring time periods for + // maintenance to occur. The time windows may be overlapping. If no + // maintenance windows are set, maintenance can occur at any time. + RecurringTimeWindow recurring_window = 3; } + + // Exceptions to maintenance window. Non-emergency maintenance should not + // occur in these windows. + map maintenance_exclusions = 4; +} + +// Represents an arbitrary window of time. +message TimeWindow { + // The time that the window first starts. + google.protobuf.Timestamp start_time = 1; + + // The time that the window ends. The end time should take place after the + // start time. + google.protobuf.Timestamp end_time = 2; +} + +// Represents an arbitrary window of time that recurs. +message RecurringTimeWindow { + // The window of the first recurrence. + TimeWindow window = 1; + + // An RRULE (https://tools.ietf.org/html/rfc5545#section-3.8.5.3) for how + // this window reccurs. They go on for the span of time between the start and + // end time. + // + // For example, to have something repeat every weekday, you'd use: + // FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // To repeat some window daily (equivalent to the DailyMaintenanceWindow): + // FREQ=DAILY + // For the first weekend of every month: + // FREQ=MONTHLY;BYSETPOS=1;BYDAY=SA,SU + // This specifies how frequently the window starts. Eg, if you wanted to have + // a 9-5 UTC-4 window every weekday, you'd use something like: + // + // start time = 2019-01-01T09:00:00-0400 + // end time = 2019-01-01T17:00:00-0400 + // recurrence = FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR + // + // Windows can span multiple days. Eg, to make the window encompass every + // weekend from midnight Saturday till the last minute of Sunday UTC: + // + // start time = 2019-01-05T00:00:00Z + // end time = 2019-01-07T23:59:00Z + // recurrence = FREQ=WEEKLY;BYDAY=SA + // + // Note the start and end time's specific dates are largely arbitrary except + // to specify duration of the window and when it first starts. + // The FREQ values of HOURLY, MINUTELY, and SECONDLY are not supported. + string recurrence = 2; } // Time window specified for daily maintenance operations. message DailyMaintenanceWindow { // Time within the maintenance window to start the maintenance operations. // 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. + // format "HH:MM", where HH : [00-23] and MM : [00-59] GMT. string start_time = 2; // [Output only] Duration of the time window, automatically chosen to be @@ -1922,27 +2414,39 @@ message DailyMaintenanceWindow { // SetNodePoolManagementRequest sets the node management properties of a node // pool. message SetNodePoolManagementRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to update. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // NodeManagement configuration for the node pool. - NodeManagement management = 5; + // Required. NodeManagement configuration for the node pool. + NodeManagement management = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool id) of the node pool to set // management properties. Specified in the format @@ -1953,27 +2457,39 @@ message SetNodePoolManagementRequest { // SetNodePoolSizeRequest sets the size a node // pool. message SetNodePoolSizeRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to update. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The desired node count for the pool. - int32 node_count = 5; + // Required. The desired node count for the pool. + int32 node_count = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster, node pool id) of the node pool to set // size. @@ -1985,24 +2501,36 @@ message SetNodePoolSizeRequest { // NodePool upgrade. This will be an no-op if the last upgrade successfully // completed. message RollbackNodePoolUpgradeRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to rollback. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the node pool to rollback. + // 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]; + string node_pool_id = 4 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster, node pool id) of the node poll to // rollback upgrade. @@ -2016,6 +2544,52 @@ message ListNodePoolsResponse { repeated NodePool node_pools = 1; } +// ClusterAutoscaling contains global, per-cluster information +// required by Cluster Autoscaler to automatically adjust +// the size of the cluster and create/delete +// node pools based on the current needs. +message ClusterAutoscaling { + // Enables automatic node pool creation and deletion. + bool enable_node_autoprovisioning = 1; + + // Contains global constraints regarding minimum and maximum + // amount of resources in the cluster. + repeated ResourceLimit resource_limits = 2; + + // AutoprovisioningNodePoolDefaults contains defaults for a node pool + // created by NAP. + AutoprovisioningNodePoolDefaults autoprovisioning_node_pool_defaults = 4; + + // The list of Google Compute Engine [zones](/compute/docs/zones#available) + // in which the NodePool's nodes can be created by NAP. + repeated string autoprovisioning_locations = 5; +} + +// AutoprovisioningNodePoolDefaults contains defaults for a node pool created +// by NAP. +message AutoprovisioningNodePoolDefaults { + // Scopes that are used by NAP when creating node pools. If oauth_scopes are + // specified, service_account should be empty. + repeated string oauth_scopes = 1; + + // The Google Cloud Platform Service Account to be used by the node VMs. If + // service_account is specified, scopes should be empty. + string service_account = 2; +} + +// Contains information about amount of some resource in the cluster. +// For memory, value should be in GB. +message ResourceLimit { + // Resource name "cpu", "memory" or gpu-specific string. + string resource_type = 1; + + // Minimum amount of the resource in the cluster. + int64 minimum = 2; + + // Maximum amount of the resource in the cluster. + int64 maximum = 3; +} + // NodePoolAutoscaling contains information required by cluster autoscaler to // adjust the size of the node pool to the current cluster usage. message NodePoolAutoscaling { @@ -2029,37 +2603,49 @@ message NodePoolAutoscaling { // Maximum number of nodes in the NodePool. Must be >= min_node_count. There // has to enough quota to scale up the cluster. int32 max_node_count = 3; + + // Can this node pool be deleted automatically. + bool autoprovisioned = 4; } // SetLabelsRequest sets the Google Cloud Platform labels on a Google Container // Engine cluster, which will in turn set them for Google Compute Engine // resources used by that cluster message SetLabelsRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // The labels to set for that cluster. - map resource_labels = 4; + // Required. The labels to set for that cluster. + map resource_labels = 4 [(google.api.field_behavior) = REQUIRED]; - // The fingerprint of the previous set of labels for this resource, + // 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; + string label_fingerprint = 5 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set labels. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2069,23 +2655,32 @@ message SetLabelsRequest { // SetLegacyAbacRequest enables or disables the ABAC authorization mechanism for // a cluster. message SetLegacyAbacRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster to update. + // 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]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Whether ABAC authorization will be enabled in the cluster. - bool enabled = 4; + // Required. Whether ABAC authorization will be enabled in the cluster. + bool enabled = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set legacy abac. // Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2095,20 +2690,29 @@ message SetLegacyAbacRequest { // StartIPRotationRequest creates a new IP for the cluster and then performs // a node upgrade on each node pool to point to the new IP. message StartIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to start IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2120,20 +2724,29 @@ message StartIPRotationRequest { // CompleteIPRotationRequest moves the cluster master back into single-IP mode. message CompleteIPRotationRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; // The name (project, location, cluster id) of the cluster to complete IP // rotation. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2146,29 +2759,38 @@ message AcceleratorConfig { int64 accelerator_count = 1; // The accelerator type resource name. List of supported accelerators - // [here](/compute/docs/gpus/#Introduction) + // [here](/compute/docs/gpus) string accelerator_type = 2; } // SetNetworkPolicyRequest enables/disables network policy for a cluster. message SetNetworkPolicyRequest { - // Deprecated. The Google Developers Console [project ID or project + // Required. Deprecated. The Google Developers Console [project ID or project // number](https://developers.google.com/console/help/new/#projectnumber). // This field has been deprecated and replaced by the name field. - string project_id = 1 [deprecated = true]; + string project_id = 1 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the Google Compute Engine + // Required. Deprecated. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. // This field has been deprecated and replaced by the name field. - string zone = 2 [deprecated = true]; + string zone = 2 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Deprecated. The name of the cluster. + // Required. Deprecated. The name of the cluster. // This field has been deprecated and replaced by the name field. - string cluster_id = 3 [deprecated = true]; + string cluster_id = 3 [ + deprecated = true, + (google.api.field_behavior) = REQUIRED + ]; - // Configuration options for the NetworkPolicy feature. - NetworkPolicy network_policy = 4; + // Required. Configuration options for the NetworkPolicy feature. + NetworkPolicy network_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set networking // policy. Specified in the format 'projects/*/locations/*/clusters/*'. @@ -2177,21 +2799,21 @@ message SetNetworkPolicyRequest { // SetMaintenancePolicyRequest sets the maintenance policy for a cluster. message SetMaintenancePolicyRequest { - // The Google Developers Console [project ID or project + // Required. The Google Developers Console [project ID or project // number](https://support.google.com/cloud/answer/6158840). - string project_id = 1; + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; - // The name of the Google Compute Engine + // Required. The name of the Google Compute Engine // [zone](/compute/docs/zones#available) in which the cluster // resides. - string zone = 2; + string zone = 2 [(google.api.field_behavior) = REQUIRED]; - // The name of the cluster to update. - string cluster_id = 3; + // Required. The name of the cluster to update. + string cluster_id = 3 [(google.api.field_behavior) = REQUIRED]; - // The maintenance policy to be set for the cluster. An empty field + // Required. The maintenance policy to be set for the cluster. An empty field // clears the existing maintenance policy. - MaintenancePolicy maintenance_policy = 4; + MaintenancePolicy maintenance_policy = 4 [(google.api.field_behavior) = REQUIRED]; // The name (project, location, cluster id) of the cluster to set maintenance // policy. @@ -2199,6 +2821,40 @@ message SetMaintenancePolicyRequest { string name = 5; } +// StatusCondition describes why a cluster or a node pool has a certain status +// (e.g., ERROR or DEGRADED). +message StatusCondition { + // Code for each condition + enum Code { + // UNKNOWN indicates a generic condition. + UNKNOWN = 0; + + // GCE_STOCKOUT indicates a Google Compute Engine stockout. + GCE_STOCKOUT = 1; + + // GKE_SERVICE_ACCOUNT_DELETED indicates that the user deleted their robot + // service account. + GKE_SERVICE_ACCOUNT_DELETED = 2; + + // Google Compute Engine quota was exceeded. + GCE_QUOTA_EXCEEDED = 3; + + // Cluster state was manually changed by an SRE due to a system logic error. + SET_BY_OPERATOR = 4; + + // Unable to perform an encrypt operation against the CloudKMS key used for + // etcd level encryption. + // More codes TBA + CLOUD_KMS_KEY_ERROR = 7; + } + + // Machine-friendly representation of the condition + Code code = 1; + + // Human-friendly representation of the condition + string message = 2; +} + // NetworkConfig reports the relative names of network & subnetwork. message NetworkConfig { // Output only. The relative name of the Google Compute Engine @@ -2211,4 +2867,175 @@ message NetworkConfig { // [subnetwork](/compute/docs/vpc) to which the cluster is connected. // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet string subnetwork = 2; + + // Whether Intra-node visibility is enabled for this cluster. + // This makes same node pod to pod traffic visible for VPC network. + bool enable_intra_node_visibility = 5; +} + +// IntraNodeVisibilityConfig contains the desired config of the intra-node +// visibility on this cluster. +message IntraNodeVisibilityConfig { + // Enables intra node visibility for this cluster. + bool enabled = 1; +} + +// Constraints applied to pods. +message MaxPodsConstraint { + // Constraint enforced on the max num of pods per node. + int64 max_pods_per_node = 1; +} + +// Configuration of etcd encryption. +message DatabaseEncryption { + // State of etcd encryption. + enum State { + // Should never be set + UNKNOWN = 0; + + // Secrets in etcd are encrypted. + ENCRYPTED = 1; + + // Secrets in etcd are stored in plain text (at etcd level) - this is + // unrelated to GCE level full disk encryption. + DECRYPTED = 2; + } + + // Denotes the state of etcd encryption. + State state = 2; + + // Name of CloudKMS key to use for the encryption of secrets in etcd. + // Ex. projects/my-project/locations/global/keyRings/my-ring/cryptoKeys/my-key + string key_name = 1; +} + +// ListUsableSubnetworksRequest requests the list of usable subnetworks +// available to a user for creating clusters. +message ListUsableSubnetworksRequest { + // The parent project where subnetworks are usable. + // Specified in the format 'projects/*'. + string parent = 1; + + // Filtering currently only supports equality on the networkProjectId and must + // be in the form: "networkProjectId=[PROJECTID]", where `networkProjectId` + // is the project which owns the listed subnetworks. This defaults to the + // parent project ID. + string filter = 2; + + // The max number of results per page that should be returned. If the number + // of available results is larger than `page_size`, a `next_page_token` is + // returned which can be used to get the next page of results in subsequent + // requests. Acceptable values are 0 to 500, inclusive. (Default: 500) + int32 page_size = 3; + + // Specifies a page token to use. Set this to the nextPageToken returned by + // previous list requests to get the next page of results. + string page_token = 4; +} + +// ListUsableSubnetworksResponse is the response of +// ListUsableSubnetworksRequest. +message ListUsableSubnetworksResponse { + // A list of usable subnetworks in the specified network project. + repeated UsableSubnetwork subnetworks = 1; + + // This token allows you to get the next page of results for list requests. + // If the number of results is larger than `page_size`, use the + // `next_page_token` as a value for the query parameter `page_token` in the + // next request. The value will become empty when there are no more pages. + string next_page_token = 2; +} + +// Secondary IP range of a usable subnetwork. +message UsableSubnetworkSecondaryRange { + // Status shows the current usage of a secondary IP range. + enum Status { + // UNKNOWN is the zero value of the Status enum. It's not a valid status. + UNKNOWN = 0; + + // UNUSED denotes that this range is unclaimed by any cluster. + UNUSED = 1; + + // IN_USE_SERVICE denotes that this range is claimed by a cluster for + // services. It cannot be used for other clusters. + IN_USE_SERVICE = 2; + + // IN_USE_SHAREABLE_POD denotes this range was created by the network admin + // and is currently claimed by a cluster for pods. It can only be used by + // other clusters as a pod range. + IN_USE_SHAREABLE_POD = 3; + + // IN_USE_MANAGED_POD denotes this range was created by GKE and is claimed + // for pods. It cannot be used for other clusters. + IN_USE_MANAGED_POD = 4; + } + + // The name associated with this subnetwork secondary range, used when adding + // an alias IP range to a VM instance. + string range_name = 1; + + // The range of IP addresses belonging to this subnetwork secondary range. + string ip_cidr_range = 2; + + // This field is to determine the status of the secondary range programmably. + Status status = 3; +} + +// UsableSubnetwork resource returns the subnetwork name, its associated network +// and the primary CIDR range. +message UsableSubnetwork { + // Subnetwork Name. + // Example: projects/my-project/regions/us-central1/subnetworks/my-subnet + string subnetwork = 1; + + // Network Name. + // Example: projects/my-project/global/networks/my-network + string network = 2; + + // The range of internal addresses that are owned by this subnetwork. + string ip_cidr_range = 3; + + // Secondary IP ranges. + repeated UsableSubnetworkSecondaryRange secondary_ip_ranges = 4; + + // A human readable status message representing the reasons for cases where + // the caller cannot use the secondary ranges under the subnet. For example if + // the secondary_ip_ranges is empty due to a permission issue, an insufficient + // permission message will be given by status_message. + string status_message = 5; +} + +// Configuration for exporting cluster resource usages. +message ResourceUsageExportConfig { + // Parameters for using BigQuery as the destination of resource usage export. + message BigQueryDestination { + // The ID of a BigQuery Dataset. + string dataset_id = 1; + } + + // Parameters for controlling consumption metering. + message ConsumptionMeteringConfig { + // Whether to enable consumption metering for this cluster. If enabled, a + // second BigQuery table will be created to hold resource consumption + // records. + bool enabled = 1; + } + + // Configuration to use BigQuery as usage export destination. + BigQueryDestination bigquery_destination = 1; + + // Whether to enable network egress metering for this cluster. If enabled, a + // daemonset will be created in the cluster to meter network egress traffic. + bool enable_network_egress_metering = 2; + + // Configuration to enable resource consumption metering. + ConsumptionMeteringConfig consumption_metering_config = 3; +} + +// VerticalPodAutoscaling contains global, per-cluster information +// required by Vertical Pod Autoscaler to automatically adjust +// the resources of pods controlled by it. +message VerticalPodAutoscaling { + // Enables vertical pod autoscaling. + bool enabled = 1; } diff --git a/synth.metadata b/synth.metadata index 52e24b19..e84223be 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,19 +1,26 @@ { - "updateTime": "2019-08-02T07:38:47.415571Z", + "updateTime": "2019-12-23T19:21:57.819709Z", "sources": [ { "generator": { "name": "artman", - "version": "0.32.0", - "dockerImage": "googleapis/artman@sha256:6929f343c400122d85818195b18613330a12a014bffc1e08499550d40571479d" + "version": "0.42.3", + "dockerImage": "googleapis/artman@sha256:feed210b5723c6f524b52ef6d7740a030f2d1a8f7c29a71c5e5b4481ceaad7f5" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "1b1ef1ca146c2119f077bca5e2b638c6bacb0925", - "internalRef": "261214002" + "sha": "1a380ea21dea9b6ac6ad28c60ad96d9d73574e19", + "internalRef": "286616241" + } + }, + { + "template": { + "name": "java_library", + "origin": "synthtool.gcp", + "version": "2019.10.17" } } ], diff --git a/synth.py b/synth.py index 1b35d41a..e75db0f4 100644 --- a/synth.py +++ b/synth.py @@ -25,23 +25,13 @@ config_pattern = '/google/container/artman_container_{version}.yaml' for version in versions: - library = gapic.java_library( + library = java.gapic_library( service=service, version=version, - config_path=config_pattern.format(version=version), - artman_output_name='') - - package_name = f'com.google.cloud.{service}.{version}' - java.fix_proto_headers(library / f'proto-google-cloud-{service}-{version}') - java.fix_grpc_headers(library / f'grpc-google-cloud-{service}-{version}', package_name) - - s.copy(library / f'gapic-google-cloud-{service}-{version}/src', f'google-cloud-{service}/src') - s.copy(library / f'grpc-google-cloud-{service}-{version}/src', f'grpc-google-cloud-{service}-{version}/src') - s.copy(library / f'proto-google-cloud-{service}-{version}/src', f'proto-google-cloud-{service}-{version}/src') - - java.format_code(f'google-cloud-{service}/src') - java.format_code(f'grpc-google-cloud-{service}-{version}/src') - java.format_code(f'proto-google-cloud-{service}-{version}/src') + config_pattern=config_pattern, + package_pattern='com.google.{service}.{version}', + gapic=gapic + ) common_templates = gcp.CommonTemplates() templates = common_templates.java_library()