Class ClusterUpdate.Builder

public static final class ClusterUpdate.Builder extends GeneratedMessageV3.Builder<ClusterUpdate.Builder> implements ClusterUpdateOrBuilder

ClusterUpdate describes an update to the cluster. Exactly one update can be applied to a cluster with each request, so at most one field can be provided.

Protobuf type google.container.v1.ClusterUpdate

Methods

addAllDesiredLocations(Iterable<String> values)

public ClusterUpdate.Builder addAllDesiredLocations(Iterable<String> values)

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Parameter
NameDescription
valuesIterable<String>

The desiredLocations to add.

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

addDesiredLocations(String value)

public ClusterUpdate.Builder addDesiredLocations(String value)

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Parameter
NameDescription
valueString

The desiredLocations to add.

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

addDesiredLocationsBytes(ByteString value)

public ClusterUpdate.Builder addDesiredLocationsBytes(ByteString value)

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Parameter
NameDescription
valueByteString

The bytes of the desiredLocations to add.

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClusterUpdate.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClusterUpdate.Builder
Overrides

build()

public ClusterUpdate build()
Returns
TypeDescription
ClusterUpdate

buildPartial()

public ClusterUpdate buildPartial()
Returns
TypeDescription
ClusterUpdate

clear()

public ClusterUpdate.Builder clear()
Returns
TypeDescription
ClusterUpdate.Builder
Overrides

clearDesiredAddonsConfig()

public ClusterUpdate.Builder clearDesiredAddonsConfig()

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredAuthenticatorGroupsConfig()

public ClusterUpdate.Builder clearDesiredAuthenticatorGroupsConfig()

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredBinaryAuthorization()

public ClusterUpdate.Builder clearDesiredBinaryAuthorization()

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredClusterAutoscaling()

public ClusterUpdate.Builder clearDesiredClusterAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredDatabaseEncryption()

public ClusterUpdate.Builder clearDesiredDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredDefaultSnatStatus()

public ClusterUpdate.Builder clearDesiredDefaultSnatStatus()

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredImageType()

public ClusterUpdate.Builder clearDesiredImageType()

The desired image type for the node pool. NOTE: Set the "desired_node_pool" field as well.

string desired_image_type = 8;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredIntraNodeVisibilityConfig()

public ClusterUpdate.Builder clearDesiredIntraNodeVisibilityConfig()

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredLocations()

public ClusterUpdate.Builder clearDesiredLocations()

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredLoggingService()

public ClusterUpdate.Builder clearDesiredLoggingService()

The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster. If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string desired_logging_service = 19;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredMasterAuthorizedNetworksConfig()

public ClusterUpdate.Builder clearDesiredMasterAuthorizedNetworksConfig()

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredMasterVersion()

public ClusterUpdate.Builder clearDesiredMasterVersion()

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;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredMonitoringService()

public ClusterUpdate.Builder clearDesiredMonitoringService()

The monitoring service the cluster should use to write metrics. Currently available options:

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster. If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string desired_monitoring_service = 5;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredNodePoolAutoscaling()

public ClusterUpdate.Builder clearDesiredNodePoolAutoscaling()

Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.

.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredNodePoolId()

public ClusterUpdate.Builder clearDesiredNodePoolId()

The node pool to be upgraded. This field is mandatory if "desired_node_version", "desired_image_family" or "desired_node_pool_autoscaling" is specified and there is more than one node pool on the cluster.

string desired_node_pool_id = 7;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredNodeVersion()

public ClusterUpdate.Builder clearDesiredNodeVersion()

The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string desired_node_version = 4;

Returns
TypeDescription
ClusterUpdate.Builder

This builder for chaining.

clearDesiredPrivateClusterConfig()

public ClusterUpdate.Builder clearDesiredPrivateClusterConfig()

The desired private cluster configuration.

.google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredReleaseChannel()

public ClusterUpdate.Builder clearDesiredReleaseChannel()

The desired release channel configuration.

.google.container.v1.ReleaseChannel desired_release_channel = 31;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredResourceUsageExportConfig()

public ClusterUpdate.Builder clearDesiredResourceUsageExportConfig()

The desired configuration for exporting resource usage.

.google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredShieldedNodes()

public ClusterUpdate.Builder clearDesiredShieldedNodes()

Configuration for Shielded Nodes.

.google.container.v1.ShieldedNodes desired_shielded_nodes = 48;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredVerticalPodAutoscaling()

public ClusterUpdate.Builder clearDesiredVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;

Returns
TypeDescription
ClusterUpdate.Builder

clearDesiredWorkloadIdentityConfig()

public ClusterUpdate.Builder clearDesiredWorkloadIdentityConfig()

Configuration for Workload Identity.

.google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47;

Returns
TypeDescription
ClusterUpdate.Builder

clearField(Descriptors.FieldDescriptor field)

public ClusterUpdate.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClusterUpdate.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterUpdate.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClusterUpdate.Builder
Overrides

clone()

public ClusterUpdate.Builder clone()
Returns
TypeDescription
ClusterUpdate.Builder
Overrides

getDefaultInstanceForType()

public ClusterUpdate getDefaultInstanceForType()
Returns
TypeDescription
ClusterUpdate

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDesiredAddonsConfig()

public AddonsConfig getDesiredAddonsConfig()

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Returns
TypeDescription
AddonsConfig

The desiredAddonsConfig.

getDesiredAddonsConfigBuilder()

public AddonsConfig.Builder getDesiredAddonsConfigBuilder()

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Returns
TypeDescription
AddonsConfig.Builder

getDesiredAddonsConfigOrBuilder()

public AddonsConfigOrBuilder getDesiredAddonsConfigOrBuilder()

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Returns
TypeDescription
AddonsConfigOrBuilder

getDesiredAuthenticatorGroupsConfig()

public AuthenticatorGroupsConfig getDesiredAuthenticatorGroupsConfig()

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Returns
TypeDescription
AuthenticatorGroupsConfig

The desiredAuthenticatorGroupsConfig.

getDesiredAuthenticatorGroupsConfigBuilder()

public AuthenticatorGroupsConfig.Builder getDesiredAuthenticatorGroupsConfigBuilder()

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Returns
TypeDescription
AuthenticatorGroupsConfig.Builder

getDesiredAuthenticatorGroupsConfigOrBuilder()

public AuthenticatorGroupsConfigOrBuilder getDesiredAuthenticatorGroupsConfigOrBuilder()

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Returns
TypeDescription
AuthenticatorGroupsConfigOrBuilder

getDesiredBinaryAuthorization()

public BinaryAuthorization getDesiredBinaryAuthorization()

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Returns
TypeDescription
BinaryAuthorization

The desiredBinaryAuthorization.

getDesiredBinaryAuthorizationBuilder()

public BinaryAuthorization.Builder getDesiredBinaryAuthorizationBuilder()

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Returns
TypeDescription
BinaryAuthorization.Builder

getDesiredBinaryAuthorizationOrBuilder()

public BinaryAuthorizationOrBuilder getDesiredBinaryAuthorizationOrBuilder()

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Returns
TypeDescription
BinaryAuthorizationOrBuilder

getDesiredClusterAutoscaling()

public ClusterAutoscaling getDesiredClusterAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Returns
TypeDescription
ClusterAutoscaling

The desiredClusterAutoscaling.

getDesiredClusterAutoscalingBuilder()

public ClusterAutoscaling.Builder getDesiredClusterAutoscalingBuilder()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Returns
TypeDescription
ClusterAutoscaling.Builder

getDesiredClusterAutoscalingOrBuilder()

public ClusterAutoscalingOrBuilder getDesiredClusterAutoscalingOrBuilder()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Returns
TypeDescription
ClusterAutoscalingOrBuilder

getDesiredDatabaseEncryption()

public DatabaseEncryption getDesiredDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Returns
TypeDescription
DatabaseEncryption

The desiredDatabaseEncryption.

getDesiredDatabaseEncryptionBuilder()

public DatabaseEncryption.Builder getDesiredDatabaseEncryptionBuilder()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Returns
TypeDescription
DatabaseEncryption.Builder

getDesiredDatabaseEncryptionOrBuilder()

public DatabaseEncryptionOrBuilder getDesiredDatabaseEncryptionOrBuilder()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Returns
TypeDescription
DatabaseEncryptionOrBuilder

getDesiredDefaultSnatStatus()

public DefaultSnatStatus getDesiredDefaultSnatStatus()

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Returns
TypeDescription
DefaultSnatStatus

The desiredDefaultSnatStatus.

getDesiredDefaultSnatStatusBuilder()

public DefaultSnatStatus.Builder getDesiredDefaultSnatStatusBuilder()

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Returns
TypeDescription
DefaultSnatStatus.Builder

getDesiredDefaultSnatStatusOrBuilder()

public DefaultSnatStatusOrBuilder getDesiredDefaultSnatStatusOrBuilder()

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Returns
TypeDescription
DefaultSnatStatusOrBuilder

getDesiredImageType()

public String getDesiredImageType()

The desired image type for the node pool. NOTE: Set the "desired_node_pool" field as well.

string desired_image_type = 8;

Returns
TypeDescription
String

The desiredImageType.

getDesiredImageTypeBytes()

public ByteString getDesiredImageTypeBytes()

The desired image type for the node pool. NOTE: Set the "desired_node_pool" field as well.

string desired_image_type = 8;

Returns
TypeDescription
ByteString

The bytes for desiredImageType.

getDesiredIntraNodeVisibilityConfig()

public IntraNodeVisibilityConfig getDesiredIntraNodeVisibilityConfig()

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Returns
TypeDescription
IntraNodeVisibilityConfig

The desiredIntraNodeVisibilityConfig.

getDesiredIntraNodeVisibilityConfigBuilder()

public IntraNodeVisibilityConfig.Builder getDesiredIntraNodeVisibilityConfigBuilder()

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Returns
TypeDescription
IntraNodeVisibilityConfig.Builder

getDesiredIntraNodeVisibilityConfigOrBuilder()

public IntraNodeVisibilityConfigOrBuilder getDesiredIntraNodeVisibilityConfigOrBuilder()

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Returns
TypeDescription
IntraNodeVisibilityConfigOrBuilder

getDesiredLocations(int index)

public String getDesiredLocations(int index)

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The desiredLocations at the given index.

getDesiredLocationsBytes(int index)

public ByteString getDesiredLocationsBytes(int index)

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the desiredLocations at the given index.

getDesiredLocationsCount()

public int getDesiredLocationsCount()

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Returns
TypeDescription
int

The count of desiredLocations.

getDesiredLocationsList()

public ProtocolStringList getDesiredLocationsList()

The desired list of Google Compute Engine zones in which the cluster's nodes should be located. This list must always include the cluster's primary zone. Warning: changing cluster locations will update the locations of all node pools and will result in nodes being added and/or removed.

repeated string desired_locations = 10;

Returns
TypeDescription
ProtocolStringList

A list containing the desiredLocations.

getDesiredLoggingService()

public String getDesiredLoggingService()

The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster. If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string desired_logging_service = 19;

Returns
TypeDescription
String

The desiredLoggingService.

getDesiredLoggingServiceBytes()

public ByteString getDesiredLoggingServiceBytes()

The logging service the cluster should use to write logs. Currently available options:

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster. If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string desired_logging_service = 19;

Returns
TypeDescription
ByteString

The bytes for desiredLoggingService.

getDesiredMasterAuthorizedNetworksConfig()

public MasterAuthorizedNetworksConfig getDesiredMasterAuthorizedNetworksConfig()

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Returns
TypeDescription
MasterAuthorizedNetworksConfig

The desiredMasterAuthorizedNetworksConfig.

getDesiredMasterAuthorizedNetworksConfigBuilder()

public MasterAuthorizedNetworksConfig.Builder getDesiredMasterAuthorizedNetworksConfigBuilder()

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

getDesiredMasterAuthorizedNetworksConfigOrBuilder()

public MasterAuthorizedNetworksConfigOrBuilder getDesiredMasterAuthorizedNetworksConfigOrBuilder()

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Returns
TypeDescription
MasterAuthorizedNetworksConfigOrBuilder

getDesiredMasterVersion()

public String getDesiredMasterVersion()

The Kubernetes version to change the master to. Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the default Kubernetes version

string desired_master_version = 100;

Returns
TypeDescription
String

The desiredMasterVersion.

getDesiredMasterVersionBytes()

public ByteString getDesiredMasterVersionBytes()

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;

Returns
TypeDescription
ByteString

The bytes for desiredMasterVersion.

getDesiredMonitoringService()

public String getDesiredMonitoringService()

The monitoring service the cluster should use to write metrics. Currently available options:

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster. If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string desired_monitoring_service = 5;

Returns
TypeDescription
String

The desiredMonitoringService.

getDesiredMonitoringServiceBytes()

public ByteString getDesiredMonitoringServiceBytes()

The monitoring service the cluster should use to write metrics. Currently available options:

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster. If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string desired_monitoring_service = 5;

Returns
TypeDescription
ByteString

The bytes for desiredMonitoringService.

getDesiredNodePoolAutoscaling()

public NodePoolAutoscaling getDesiredNodePoolAutoscaling()

Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.

.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9;

Returns
TypeDescription
NodePoolAutoscaling

The desiredNodePoolAutoscaling.

getDesiredNodePoolAutoscalingBuilder()

public NodePoolAutoscaling.Builder getDesiredNodePoolAutoscalingBuilder()

Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.

.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9;

Returns
TypeDescription
NodePoolAutoscaling.Builder

getDesiredNodePoolAutoscalingOrBuilder()

public NodePoolAutoscalingOrBuilder getDesiredNodePoolAutoscalingOrBuilder()

Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.

.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9;

Returns
TypeDescription
NodePoolAutoscalingOrBuilder

getDesiredNodePoolId()

public String getDesiredNodePoolId()

The node pool to be upgraded. This field is mandatory if "desired_node_version", "desired_image_family" or "desired_node_pool_autoscaling" is specified and there is more than one node pool on the cluster.

string desired_node_pool_id = 7;

Returns
TypeDescription
String

The desiredNodePoolId.

getDesiredNodePoolIdBytes()

public ByteString getDesiredNodePoolIdBytes()

The node pool to be upgraded. This field is mandatory if "desired_node_version", "desired_image_family" or "desired_node_pool_autoscaling" is specified and there is more than one node pool on the cluster.

string desired_node_pool_id = 7;

Returns
TypeDescription
ByteString

The bytes for desiredNodePoolId.

getDesiredNodeVersion()

public String getDesiredNodeVersion()

The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string desired_node_version = 4;

Returns
TypeDescription
String

The desiredNodeVersion.

getDesiredNodeVersionBytes()

public ByteString getDesiredNodeVersionBytes()

The Kubernetes version to change the nodes to (typically an upgrade). Users may specify either explicit versions offered by Kubernetes Engine or version aliases, which have the following behavior:

  • "latest": picks the highest valid Kubernetes version
  • "1.X": picks the highest valid patch+gke.N patch in the 1.X version
  • "1.X.Y": picks the highest valid gke.N patch in the 1.X.Y version
  • "1.X.Y-gke.N": picks an explicit Kubernetes version
  • "-": picks the Kubernetes master version

string desired_node_version = 4;

Returns
TypeDescription
ByteString

The bytes for desiredNodeVersion.

getDesiredPrivateClusterConfig()

public PrivateClusterConfig getDesiredPrivateClusterConfig()

The desired private cluster configuration.

.google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25;

Returns
TypeDescription
PrivateClusterConfig

The desiredPrivateClusterConfig.

getDesiredPrivateClusterConfigBuilder()

public PrivateClusterConfig.Builder getDesiredPrivateClusterConfigBuilder()

The desired private cluster configuration.

.google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25;

Returns
TypeDescription
PrivateClusterConfig.Builder

getDesiredPrivateClusterConfigOrBuilder()

public PrivateClusterConfigOrBuilder getDesiredPrivateClusterConfigOrBuilder()

The desired private cluster configuration.

.google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25;

Returns
TypeDescription
PrivateClusterConfigOrBuilder

getDesiredReleaseChannel()

public ReleaseChannel getDesiredReleaseChannel()

The desired release channel configuration.

.google.container.v1.ReleaseChannel desired_release_channel = 31;

Returns
TypeDescription
ReleaseChannel

The desiredReleaseChannel.

getDesiredReleaseChannelBuilder()

public ReleaseChannel.Builder getDesiredReleaseChannelBuilder()

The desired release channel configuration.

.google.container.v1.ReleaseChannel desired_release_channel = 31;

Returns
TypeDescription
ReleaseChannel.Builder

getDesiredReleaseChannelOrBuilder()

public ReleaseChannelOrBuilder getDesiredReleaseChannelOrBuilder()

The desired release channel configuration.

.google.container.v1.ReleaseChannel desired_release_channel = 31;

Returns
TypeDescription
ReleaseChannelOrBuilder

getDesiredResourceUsageExportConfig()

public ResourceUsageExportConfig getDesiredResourceUsageExportConfig()

The desired configuration for exporting resource usage.

.google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21;

Returns
TypeDescription
ResourceUsageExportConfig

The desiredResourceUsageExportConfig.

getDesiredResourceUsageExportConfigBuilder()

public ResourceUsageExportConfig.Builder getDesiredResourceUsageExportConfigBuilder()

The desired configuration for exporting resource usage.

.google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21;

Returns
TypeDescription
ResourceUsageExportConfig.Builder

getDesiredResourceUsageExportConfigOrBuilder()

public ResourceUsageExportConfigOrBuilder getDesiredResourceUsageExportConfigOrBuilder()

The desired configuration for exporting resource usage.

.google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21;

Returns
TypeDescription
ResourceUsageExportConfigOrBuilder

getDesiredShieldedNodes()

public ShieldedNodes getDesiredShieldedNodes()

Configuration for Shielded Nodes.

.google.container.v1.ShieldedNodes desired_shielded_nodes = 48;

Returns
TypeDescription
ShieldedNodes

The desiredShieldedNodes.

getDesiredShieldedNodesBuilder()

public ShieldedNodes.Builder getDesiredShieldedNodesBuilder()

Configuration for Shielded Nodes.

.google.container.v1.ShieldedNodes desired_shielded_nodes = 48;

Returns
TypeDescription
ShieldedNodes.Builder

getDesiredShieldedNodesOrBuilder()

public ShieldedNodesOrBuilder getDesiredShieldedNodesOrBuilder()

Configuration for Shielded Nodes.

.google.container.v1.ShieldedNodes desired_shielded_nodes = 48;

Returns
TypeDescription
ShieldedNodesOrBuilder

getDesiredVerticalPodAutoscaling()

public VerticalPodAutoscaling getDesiredVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;

Returns
TypeDescription
VerticalPodAutoscaling

The desiredVerticalPodAutoscaling.

getDesiredVerticalPodAutoscalingBuilder()

public VerticalPodAutoscaling.Builder getDesiredVerticalPodAutoscalingBuilder()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;

Returns
TypeDescription
VerticalPodAutoscaling.Builder

getDesiredVerticalPodAutoscalingOrBuilder()

public VerticalPodAutoscalingOrBuilder getDesiredVerticalPodAutoscalingOrBuilder()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;

Returns
TypeDescription
VerticalPodAutoscalingOrBuilder

getDesiredWorkloadIdentityConfig()

public WorkloadIdentityConfig getDesiredWorkloadIdentityConfig()

Configuration for Workload Identity.

.google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47;

Returns
TypeDescription
WorkloadIdentityConfig

The desiredWorkloadIdentityConfig.

getDesiredWorkloadIdentityConfigBuilder()

public WorkloadIdentityConfig.Builder getDesiredWorkloadIdentityConfigBuilder()

Configuration for Workload Identity.

.google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47;

Returns
TypeDescription
WorkloadIdentityConfig.Builder

getDesiredWorkloadIdentityConfigOrBuilder()

public WorkloadIdentityConfigOrBuilder getDesiredWorkloadIdentityConfigOrBuilder()

Configuration for Workload Identity.

.google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47;

Returns
TypeDescription
WorkloadIdentityConfigOrBuilder

hasDesiredAddonsConfig()

public boolean hasDesiredAddonsConfig()

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Returns
TypeDescription
boolean

Whether the desiredAddonsConfig field is set.

hasDesiredAuthenticatorGroupsConfig()

public boolean hasDesiredAuthenticatorGroupsConfig()

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Returns
TypeDescription
boolean

Whether the desiredAuthenticatorGroupsConfig field is set.

hasDesiredBinaryAuthorization()

public boolean hasDesiredBinaryAuthorization()

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Returns
TypeDescription
boolean

Whether the desiredBinaryAuthorization field is set.

hasDesiredClusterAutoscaling()

public boolean hasDesiredClusterAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Returns
TypeDescription
boolean

Whether the desiredClusterAutoscaling field is set.

hasDesiredDatabaseEncryption()

public boolean hasDesiredDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Returns
TypeDescription
boolean

Whether the desiredDatabaseEncryption field is set.

hasDesiredDefaultSnatStatus()

public boolean hasDesiredDefaultSnatStatus()

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Returns
TypeDescription
boolean

Whether the desiredDefaultSnatStatus field is set.

hasDesiredIntraNodeVisibilityConfig()

public boolean hasDesiredIntraNodeVisibilityConfig()

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Returns
TypeDescription
boolean

Whether the desiredIntraNodeVisibilityConfig field is set.

hasDesiredMasterAuthorizedNetworksConfig()

public boolean hasDesiredMasterAuthorizedNetworksConfig()

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Returns
TypeDescription
boolean

Whether the desiredMasterAuthorizedNetworksConfig field is set.

hasDesiredNodePoolAutoscaling()

public boolean hasDesiredNodePoolAutoscaling()

Autoscaler configuration for the node pool specified in desired_node_pool_id. If there is only one pool in the cluster and desired_node_pool_id is not provided then the change applies to that single node pool.

.google.container.v1.NodePoolAutoscaling desired_node_pool_autoscaling = 9;

Returns
TypeDescription
boolean

Whether the desiredNodePoolAutoscaling field is set.

hasDesiredPrivateClusterConfig()

public boolean hasDesiredPrivateClusterConfig()

The desired private cluster configuration.

.google.container.v1.PrivateClusterConfig desired_private_cluster_config = 25;

Returns
TypeDescription
boolean

Whether the desiredPrivateClusterConfig field is set.

hasDesiredReleaseChannel()

public boolean hasDesiredReleaseChannel()

The desired release channel configuration.

.google.container.v1.ReleaseChannel desired_release_channel = 31;

Returns
TypeDescription
boolean

Whether the desiredReleaseChannel field is set.

hasDesiredResourceUsageExportConfig()

public boolean hasDesiredResourceUsageExportConfig()

The desired configuration for exporting resource usage.

.google.container.v1.ResourceUsageExportConfig desired_resource_usage_export_config = 21;

Returns
TypeDescription
boolean

Whether the desiredResourceUsageExportConfig field is set.

hasDesiredShieldedNodes()

public boolean hasDesiredShieldedNodes()

Configuration for Shielded Nodes.

.google.container.v1.ShieldedNodes desired_shielded_nodes = 48;

Returns
TypeDescription
boolean

Whether the desiredShieldedNodes field is set.

hasDesiredVerticalPodAutoscaling()

public boolean hasDesiredVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling desired_vertical_pod_autoscaling = 22;

Returns
TypeDescription
boolean

Whether the desiredVerticalPodAutoscaling field is set.

hasDesiredWorkloadIdentityConfig()

public boolean hasDesiredWorkloadIdentityConfig()

Configuration for Workload Identity.

.google.container.v1.WorkloadIdentityConfig desired_workload_identity_config = 47;

Returns
TypeDescription
boolean

Whether the desiredWorkloadIdentityConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDesiredAddonsConfig(AddonsConfig value)

public ClusterUpdate.Builder mergeDesiredAddonsConfig(AddonsConfig value)

Configurations for the various addons available to run in the cluster.

.google.container.v1.AddonsConfig desired_addons_config = 6;

Parameter
NameDescription
valueAddonsConfig
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

public ClusterUpdate.Builder mergeDesiredAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

The desired authenticator groups config for the cluster.

.google.container.v1.AuthenticatorGroupsConfig desired_authenticator_groups_config = 63;

Parameter
NameDescription
valueAuthenticatorGroupsConfig
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredBinaryAuthorization(BinaryAuthorization value)

public ClusterUpdate.Builder mergeDesiredBinaryAuthorization(BinaryAuthorization value)

The desired configuration options for the Binary Authorization feature.

.google.container.v1.BinaryAuthorization desired_binary_authorization = 16;

Parameter
NameDescription
valueBinaryAuthorization
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredClusterAutoscaling(ClusterAutoscaling value)

public ClusterUpdate.Builder mergeDesiredClusterAutoscaling(ClusterAutoscaling value)

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling desired_cluster_autoscaling = 15;

Parameter
NameDescription
valueClusterAutoscaling
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredDatabaseEncryption(DatabaseEncryption value)

public ClusterUpdate.Builder mergeDesiredDatabaseEncryption(DatabaseEncryption value)

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption desired_database_encryption = 46;

Parameter
NameDescription
valueDatabaseEncryption
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredDefaultSnatStatus(DefaultSnatStatus value)

public ClusterUpdate.Builder mergeDesiredDefaultSnatStatus(DefaultSnatStatus value)

The desired status of whether to disable default sNAT for this cluster.

.google.container.v1.DefaultSnatStatus desired_default_snat_status = 28;

Parameter
NameDescription
valueDefaultSnatStatus
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredIntraNodeVisibilityConfig(IntraNodeVisibilityConfig value)

public ClusterUpdate.Builder mergeDesiredIntraNodeVisibilityConfig(IntraNodeVisibilityConfig value)

The desired config of Intra-node visibility.

.google.container.v1.IntraNodeVisibilityConfig desired_intra_node_visibility_config = 26;

Parameter
NameDescription
valueIntraNodeVisibilityConfig
Returns
TypeDescription
ClusterUpdate.Builder

mergeDesiredMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

public ClusterUpdate.Builder mergeDesiredMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

The desired configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig desired_master_authorized_networks_config = 12;

Parameter
NameDescription
valueMasterAuthorizedNetworksConfig
Returns