Class Cluster.Builder (2.32.0)

public static final class Cluster.Builder extends GeneratedMessageV3.Builder<Cluster.Builder> implements ClusterOrBuilder

A Google Kubernetes Engine cluster.

Protobuf type google.container.v1.Cluster

Implements

ClusterOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllConditions(Iterable<? extends StatusCondition> values)

public Cluster.Builder addAllConditions(Iterable<? extends StatusCondition> values)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.StatusCondition>
Returns
TypeDescription
Cluster.Builder

addAllInstanceGroupUrls(Iterable<String> values) (deprecated)

public Cluster.Builder addAllInstanceGroupUrls(Iterable<String> values)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameter
NameDescription
valuesIterable<String>

The instanceGroupUrls to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addAllLocations(Iterable<String> values)

public Cluster.Builder addAllLocations(Iterable<String> values)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameter
NameDescription
valuesIterable<String>

The locations to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addAllNodePools(Iterable<? extends NodePool> values)

public Cluster.Builder addAllNodePools(Iterable<? extends NodePool> values)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.NodePool>
Returns
TypeDescription
Cluster.Builder

addConditions(StatusCondition value)

public Cluster.Builder addConditions(StatusCondition value)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
valueStatusCondition
Returns
TypeDescription
Cluster.Builder

addConditions(StatusCondition.Builder builderForValue)

public Cluster.Builder addConditions(StatusCondition.Builder builderForValue)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
builderForValueStatusCondition.Builder
Returns
TypeDescription
Cluster.Builder

addConditions(int index, StatusCondition value)

public Cluster.Builder addConditions(int index, StatusCondition value)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameters
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Cluster.Builder

addConditions(int index, StatusCondition.Builder builderForValue)

public Cluster.Builder addConditions(int index, StatusCondition.Builder builderForValue)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameters
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
Cluster.Builder

addConditionsBuilder()

public StatusCondition.Builder addConditionsBuilder()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
StatusCondition.Builder

addConditionsBuilder(int index)

public StatusCondition.Builder addConditionsBuilder(int index)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

addInstanceGroupUrls(String value) (deprecated)

public Cluster.Builder addInstanceGroupUrls(String value)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameter
NameDescription
valueString

The instanceGroupUrls to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addInstanceGroupUrlsBytes(ByteString value) (deprecated)

public Cluster.Builder addInstanceGroupUrlsBytes(ByteString value)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes of the instanceGroupUrls to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addLocations(String value)

public Cluster.Builder addLocations(String value)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameter
NameDescription
valueString

The locations to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public Cluster.Builder addLocationsBytes(ByteString value)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameter
NameDescription
valueByteString

The bytes of the locations to add.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

addNodePools(NodePool value)

public Cluster.Builder addNodePools(NodePool value)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
valueNodePool
Returns
TypeDescription
Cluster.Builder

addNodePools(NodePool.Builder builderForValue)

public Cluster.Builder addNodePools(NodePool.Builder builderForValue)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
builderForValueNodePool.Builder
Returns
TypeDescription
Cluster.Builder

addNodePools(int index, NodePool value)

public Cluster.Builder addNodePools(int index, NodePool value)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameters
NameDescription
indexint
valueNodePool
Returns
TypeDescription
Cluster.Builder

addNodePools(int index, NodePool.Builder builderForValue)

public Cluster.Builder addNodePools(int index, NodePool.Builder builderForValue)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameters
NameDescription
indexint
builderForValueNodePool.Builder
Returns
TypeDescription
Cluster.Builder

addNodePoolsBuilder()

public NodePool.Builder addNodePoolsBuilder()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
NodePool.Builder

addNodePoolsBuilder(int index)

public NodePool.Builder addNodePoolsBuilder(int index)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodePool.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cluster build()
Returns
TypeDescription
Cluster

buildPartial()

public Cluster buildPartial()
Returns
TypeDescription
Cluster

clear()

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

clearAddonsConfig()

public Cluster.Builder clearAddonsConfig()

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

.google.container.v1.AddonsConfig addons_config = 10;

Returns
TypeDescription
Cluster.Builder

clearAuthenticatorGroupsConfig()

public Cluster.Builder clearAuthenticatorGroupsConfig()

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Returns
TypeDescription
Cluster.Builder

clearAutopilot()

public Cluster.Builder clearAutopilot()

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Returns
TypeDescription
Cluster.Builder

clearAutoscaling()

public Cluster.Builder clearAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Returns
TypeDescription
Cluster.Builder

clearBinaryAuthorization()

public Cluster.Builder clearBinaryAuthorization()

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Returns
TypeDescription
Cluster.Builder

clearClusterIpv4Cidr()

public Cluster.Builder clearClusterIpv4Cidr()

The IP address range of the container pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify a /14 block in 10.0.0.0/8.

string cluster_ipv4_cidr = 9;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearConditions()

public Cluster.Builder clearConditions()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
Cluster.Builder

clearConfidentialNodes()

public Cluster.Builder clearConfidentialNodes()

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Returns
TypeDescription
Cluster.Builder

clearCostManagementConfig()

public Cluster.Builder clearCostManagementConfig()

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Returns
TypeDescription
Cluster.Builder

clearCreateTime()

public Cluster.Builder clearCreateTime()

[Output only] The time the cluster was created, in RFC3339 text format.

string create_time = 106;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearCurrentMasterVersion()

public Cluster.Builder clearCurrentMasterVersion()

[Output only] The current software version of the master endpoint.

string current_master_version = 104;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearCurrentNodeCount() (deprecated)

public Cluster.Builder clearCurrentNodeCount()

Deprecated. google.container.v1.Cluster.current_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1917

[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];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearCurrentNodeVersion() (deprecated)

public Cluster.Builder clearCurrentNodeVersion()

Deprecated. google.container.v1.Cluster.current_node_version is deprecated. See google/container/v1/cluster_service.proto;l=1885

[Output only] Deprecated, use NodePools.version 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];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearDatabaseEncryption()

public Cluster.Builder clearDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Returns
TypeDescription
Cluster.Builder

clearDefaultMaxPodsConstraint()

public Cluster.Builder clearDefaultMaxPodsConstraint()

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;

Returns
TypeDescription
Cluster.Builder

clearDescription()

public Cluster.Builder clearDescription()

An optional description of this cluster.

string description = 2;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearEnableK8SBetaApis()

public Cluster.Builder clearEnableK8SBetaApis()

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Returns
TypeDescription
Cluster.Builder

clearEnableKubernetesAlpha()

public Cluster.Builder clearEnableKubernetesAlpha()

Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.

bool enable_kubernetes_alpha = 14;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearEnableTpu()

public Cluster.Builder clearEnableTpu()

Enable the ability to use Cloud TPUs in this cluster.

bool enable_tpu = 115;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearEndpoint()

public Cluster.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.

string endpoint = 102;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearEtag()

public Cluster.Builder clearEtag()

This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 139;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearExpireTime()

public Cluster.Builder clearExpireTime()

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

string expire_time = 113;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFleet()

public Cluster.Builder clearFleet()

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Returns
TypeDescription
Cluster.Builder

clearId()

public Cluster.Builder clearId()

Output only. Unique id for the cluster.

string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearIdentityServiceConfig()

public Cluster.Builder clearIdentityServiceConfig()

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Returns
TypeDescription
Cluster.Builder

clearInitialClusterVersion()

public Cluster.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

string initial_cluster_version = 103;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearInitialNodeCount() (deprecated)

public Cluster.Builder clearInitialNodeCount()

Deprecated. google.container.v1.Cluster.initial_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1668

The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time.

This field is deprecated, use node_pool.initial_node_count instead.

int32 initial_node_count = 3 [deprecated = true];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearInstanceGroupUrls() (deprecated)

public Cluster.Builder clearInstanceGroupUrls()

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearIpAllocationPolicy()

public Cluster.Builder clearIpAllocationPolicy()

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Returns
TypeDescription
Cluster.Builder

clearLabelFingerprint()

public Cluster.Builder clearLabelFingerprint()

The fingerprint of the set of labels for this cluster.

string label_fingerprint = 16;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearLegacyAbac()

public Cluster.Builder clearLegacyAbac()

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Returns
TypeDescription
Cluster.Builder

clearLocation()

public Cluster.Builder clearLocation()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 114;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearLocations()

public Cluster.Builder clearLocations()

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearLoggingConfig()

public Cluster.Builder clearLoggingConfig()

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Returns
TypeDescription
Cluster.Builder

clearLoggingService()

public Cluster.Builder clearLoggingService()

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

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 6;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearMaintenancePolicy()

public Cluster.Builder clearMaintenancePolicy()

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Returns
TypeDescription
Cluster.Builder

clearMasterAuth()

public Cluster.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;

Returns
TypeDescription
Cluster.Builder

clearMasterAuthorizedNetworksConfig()

public Cluster.Builder clearMasterAuthorizedNetworksConfig()

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Returns
TypeDescription
Cluster.Builder

clearMeshCertificates()

public Cluster.Builder clearMeshCertificates()

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Returns
TypeDescription
Cluster.Builder

clearMonitoringConfig()

public Cluster.Builder clearMonitoringConfig()

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Returns
TypeDescription
Cluster.Builder

clearMonitoringService()

public Cluster.Builder clearMonitoringService()

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

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster.

    If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string monitoring_service = 7;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearName()

public Cluster.Builder clearName()

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 1;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearNetwork()

public Cluster.Builder clearNetwork()

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

string network = 8;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearNetworkConfig()

public Cluster.Builder clearNetworkConfig()

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Returns
TypeDescription
Cluster.Builder

clearNetworkPolicy()

public Cluster.Builder clearNetworkPolicy()

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Returns
TypeDescription
Cluster.Builder

clearNodeConfig()

public Cluster.Builder clearNodeConfig()

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Returns
TypeDescription
Cluster.Builder

clearNodeIpv4CidrSize()

public Cluster.Builder clearNodeIpv4CidrSize()

[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the container_ipv4_cidr range. This field will only be set when cluster is in route-based network mode.

int32 node_ipv4_cidr_size = 109;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearNodePoolAutoConfig()

public Cluster.Builder clearNodePoolAutoConfig()

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Returns
TypeDescription
Cluster.Builder

clearNodePoolDefaults()

public Cluster.Builder clearNodePoolDefaults()

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Returns
TypeDescription
Cluster.Builder

clearNodePools()

public Cluster.Builder clearNodePools()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
Cluster.Builder

clearNotificationConfig()

public Cluster.Builder clearNotificationConfig()

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Returns
TypeDescription
Cluster.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateClusterConfig()

public Cluster.Builder clearPrivateClusterConfig()

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Returns
TypeDescription
Cluster.Builder

clearReleaseChannel()

public Cluster.Builder clearReleaseChannel()

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Returns
TypeDescription
Cluster.Builder

clearResourceLabels()

public Cluster.Builder clearResourceLabels()
Returns
TypeDescription
Cluster.Builder

clearResourceUsageExportConfig()

public Cluster.Builder clearResourceUsageExportConfig()

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Returns
TypeDescription
Cluster.Builder

clearSecurityPostureConfig()

public Cluster.Builder clearSecurityPostureConfig()

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Returns
TypeDescription
Cluster.Builder
public Cluster.Builder clearSelfLink()

[Output only] Server-defined URL for the resource.

string self_link = 100;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearServicesIpv4Cidr()

public Cluster.Builder clearServicesIpv4Cidr()

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

string services_ipv4_cidr = 110;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearShieldedNodes()

public Cluster.Builder clearShieldedNodes()

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Returns
TypeDescription
Cluster.Builder

clearStatus()

public Cluster.Builder clearStatus()

[Output only] The current status of this cluster.

.google.container.v1.Cluster.Status status = 107;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearStatusMessage() (deprecated)

public Cluster.Builder clearStatusMessage()

Deprecated. google.container.v1.Cluster.status_message is deprecated. See google/container/v1/cluster_service.proto;l=1897

[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.

string status_message = 108 [deprecated = true];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearSubnetwork()

public Cluster.Builder clearSubnetwork()

The name of the Google Compute Engine subnetwork to which the cluster is connected.

string subnetwork = 11;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearTpuIpv4CidrBlock()

public Cluster.Builder clearTpuIpv4CidrBlock()

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g. 1.2.3.4/29).

string tpu_ipv4_cidr_block = 116;

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clearVerticalPodAutoscaling()

public Cluster.Builder clearVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Returns
TypeDescription
Cluster.Builder

clearWorkloadIdentityConfig()

public Cluster.Builder clearWorkloadIdentityConfig()

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Returns
TypeDescription
Cluster.Builder

clearZone() (deprecated)

public Cluster.Builder clearZone()

Deprecated. google.container.v1.Cluster.zone is deprecated. See google/container/v1/cluster_service.proto;l=1852

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

string zone = 101 [deprecated = true];

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

clone()

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

containsResourceLabels(String key)

public boolean containsResourceLabels(String key)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAddonsConfig()

public AddonsConfig getAddonsConfig()

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

.google.container.v1.AddonsConfig addons_config = 10;

Returns
TypeDescription
AddonsConfig

The addonsConfig.

getAddonsConfigBuilder()

public AddonsConfig.Builder getAddonsConfigBuilder()

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

.google.container.v1.AddonsConfig addons_config = 10;

Returns
TypeDescription
AddonsConfig.Builder

getAddonsConfigOrBuilder()

public AddonsConfigOrBuilder getAddonsConfigOrBuilder()

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

.google.container.v1.AddonsConfig addons_config = 10;

Returns
TypeDescription
AddonsConfigOrBuilder

getAuthenticatorGroupsConfig()

public AuthenticatorGroupsConfig getAuthenticatorGroupsConfig()

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Returns
TypeDescription
AuthenticatorGroupsConfig

The authenticatorGroupsConfig.

getAuthenticatorGroupsConfigBuilder()

public AuthenticatorGroupsConfig.Builder getAuthenticatorGroupsConfigBuilder()

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Returns
TypeDescription
AuthenticatorGroupsConfig.Builder

getAuthenticatorGroupsConfigOrBuilder()

public AuthenticatorGroupsConfigOrBuilder getAuthenticatorGroupsConfigOrBuilder()

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Returns
TypeDescription
AuthenticatorGroupsConfigOrBuilder

getAutopilot()

public Autopilot getAutopilot()

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Returns
TypeDescription
Autopilot

The autopilot.

getAutopilotBuilder()

public Autopilot.Builder getAutopilotBuilder()

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Returns
TypeDescription
Autopilot.Builder

getAutopilotOrBuilder()

public AutopilotOrBuilder getAutopilotOrBuilder()

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Returns
TypeDescription
AutopilotOrBuilder

getAutoscaling()

public ClusterAutoscaling getAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Returns
TypeDescription
ClusterAutoscaling

The autoscaling.

getAutoscalingBuilder()

public ClusterAutoscaling.Builder getAutoscalingBuilder()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Returns
TypeDescription
ClusterAutoscaling.Builder

getAutoscalingOrBuilder()

public ClusterAutoscalingOrBuilder getAutoscalingOrBuilder()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Returns
TypeDescription
ClusterAutoscalingOrBuilder

getBinaryAuthorization()

public BinaryAuthorization getBinaryAuthorization()

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Returns
TypeDescription
BinaryAuthorization

The binaryAuthorization.

getBinaryAuthorizationBuilder()

public BinaryAuthorization.Builder getBinaryAuthorizationBuilder()

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Returns
TypeDescription
BinaryAuthorization.Builder

getBinaryAuthorizationOrBuilder()

public BinaryAuthorizationOrBuilder getBinaryAuthorizationOrBuilder()

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Returns
TypeDescription
BinaryAuthorizationOrBuilder

getClusterIpv4Cidr()

public String getClusterIpv4Cidr()

The IP address range of the container pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify a /14 block in 10.0.0.0/8.

string cluster_ipv4_cidr = 9;

Returns
TypeDescription
String

The clusterIpv4Cidr.

getClusterIpv4CidrBytes()

public ByteString getClusterIpv4CidrBytes()

The IP address range of the container pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify a /14 block in 10.0.0.0/8.

string cluster_ipv4_cidr = 9;

Returns
TypeDescription
ByteString

The bytes for clusterIpv4Cidr.

getConditions(int index)

public StatusCondition getConditions(int index)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusCondition

getConditionsBuilder(int index)

public StatusCondition.Builder getConditionsBuilder(int index)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusCondition.Builder

getConditionsBuilderList()

public List<StatusCondition.Builder> getConditionsBuilderList()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
List<Builder>

getConditionsCount()

public int getConditionsCount()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
int

getConditionsList()

public List<StatusCondition> getConditionsList()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
List<StatusCondition>

getConditionsOrBuilder(int index)

public StatusConditionOrBuilder getConditionsOrBuilder(int index)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
indexint
Returns
TypeDescription
StatusConditionOrBuilder

getConditionsOrBuilderList()

public List<? extends StatusConditionOrBuilder> getConditionsOrBuilderList()

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Returns
TypeDescription
List<? extends com.google.container.v1.StatusConditionOrBuilder>

getConfidentialNodes()

public ConfidentialNodes getConfidentialNodes()

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Returns
TypeDescription
ConfidentialNodes

The confidentialNodes.

getConfidentialNodesBuilder()

public ConfidentialNodes.Builder getConfidentialNodesBuilder()

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Returns
TypeDescription
ConfidentialNodes.Builder

getConfidentialNodesOrBuilder()

public ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder()

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Returns
TypeDescription
ConfidentialNodesOrBuilder

getCostManagementConfig()

public CostManagementConfig getCostManagementConfig()

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Returns
TypeDescription
CostManagementConfig

The costManagementConfig.

getCostManagementConfigBuilder()

public CostManagementConfig.Builder getCostManagementConfigBuilder()

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Returns
TypeDescription
CostManagementConfig.Builder

getCostManagementConfigOrBuilder()

public CostManagementConfigOrBuilder getCostManagementConfigOrBuilder()

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Returns
TypeDescription
CostManagementConfigOrBuilder

getCreateTime()

public String getCreateTime()

[Output only] The time the cluster was created, in RFC3339 text format.

string create_time = 106;

Returns
TypeDescription
String

The createTime.

getCreateTimeBytes()

public ByteString getCreateTimeBytes()

[Output only] The time the cluster was created, in RFC3339 text format.

string create_time = 106;

Returns
TypeDescription
ByteString

The bytes for createTime.

getCurrentMasterVersion()

public String getCurrentMasterVersion()

[Output only] The current software version of the master endpoint.

string current_master_version = 104;

Returns
TypeDescription
String

The currentMasterVersion.

getCurrentMasterVersionBytes()

public ByteString getCurrentMasterVersionBytes()

[Output only] The current software version of the master endpoint.

string current_master_version = 104;

Returns
TypeDescription
ByteString

The bytes for currentMasterVersion.

getCurrentNodeCount() (deprecated)

public int getCurrentNodeCount()

Deprecated. google.container.v1.Cluster.current_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1917

[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];

Returns
TypeDescription
int

The currentNodeCount.

getCurrentNodeVersion() (deprecated)

public String getCurrentNodeVersion()

Deprecated. google.container.v1.Cluster.current_node_version is deprecated. See google/container/v1/cluster_service.proto;l=1885

[Output only] Deprecated, use NodePools.version 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];

Returns
TypeDescription
String

The currentNodeVersion.

getCurrentNodeVersionBytes() (deprecated)

public ByteString getCurrentNodeVersionBytes()

Deprecated. google.container.v1.Cluster.current_node_version is deprecated. See google/container/v1/cluster_service.proto;l=1885

[Output only] Deprecated, use NodePools.version 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];

Returns
TypeDescription
ByteString

The bytes for currentNodeVersion.

getDatabaseEncryption()

public DatabaseEncryption getDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Returns
TypeDescription
DatabaseEncryption

The databaseEncryption.

getDatabaseEncryptionBuilder()

public DatabaseEncryption.Builder getDatabaseEncryptionBuilder()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Returns
TypeDescription
DatabaseEncryption.Builder

getDatabaseEncryptionOrBuilder()

public DatabaseEncryptionOrBuilder getDatabaseEncryptionOrBuilder()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Returns
TypeDescription
DatabaseEncryptionOrBuilder

getDefaultInstanceForType()

public Cluster getDefaultInstanceForType()
Returns
TypeDescription
Cluster

getDefaultMaxPodsConstraint()

public 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;

Returns
TypeDescription
MaxPodsConstraint

The defaultMaxPodsConstraint.

getDefaultMaxPodsConstraintBuilder()

public MaxPodsConstraint.Builder getDefaultMaxPodsConstraintBuilder()

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;

Returns
TypeDescription
MaxPodsConstraint.Builder

getDefaultMaxPodsConstraintOrBuilder()

public MaxPodsConstraintOrBuilder getDefaultMaxPodsConstraintOrBuilder()

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;

Returns
TypeDescription
MaxPodsConstraintOrBuilder

getDescription()

public String getDescription()

An optional description of this cluster.

string description = 2;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this cluster.

string description = 2;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableK8SBetaApis()

public K8sBetaAPIConfig getEnableK8SBetaApis()

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Returns
TypeDescription
K8sBetaAPIConfig

The enableK8sBetaApis.

getEnableK8SBetaApisBuilder()

public K8sBetaAPIConfig.Builder getEnableK8SBetaApisBuilder()

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Returns
TypeDescription
K8sBetaAPIConfig.Builder

getEnableK8SBetaApisOrBuilder()

public K8sBetaAPIConfigOrBuilder getEnableK8SBetaApisOrBuilder()

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Returns
TypeDescription
K8sBetaAPIConfigOrBuilder

getEnableKubernetesAlpha()

public boolean getEnableKubernetesAlpha()

Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.

bool enable_kubernetes_alpha = 14;

Returns
TypeDescription
boolean

The enableKubernetesAlpha.

getEnableTpu()

public boolean getEnableTpu()

Enable the ability to use Cloud TPUs in this cluster.

bool enable_tpu = 115;

Returns
TypeDescription
boolean

The enableTpu.

getEndpoint()

public String getEndpoint()

[Output only] The IP address of this cluster's master endpoint. The endpoint can be accessed from the internet at https://username:password@endpoint/.

See the masterAuth property of this resource for username and password information.

string endpoint = 102;

Returns
TypeDescription
String

The endpoint.

getEndpointBytes()

public 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.

string endpoint = 102;

Returns
TypeDescription
ByteString

The bytes for endpoint.

getEtag()

public String getEtag()

This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 139;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 139;

Returns
TypeDescription
ByteString

The bytes for etag.

getExpireTime()

public String getExpireTime()

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

string expire_time = 113;

Returns
TypeDescription
String

The expireTime.

getExpireTimeBytes()

public ByteString getExpireTimeBytes()

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

string expire_time = 113;

Returns
TypeDescription
ByteString

The bytes for expireTime.

getFleet()

public Fleet getFleet()

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Returns
TypeDescription
Fleet

The fleet.

getFleetBuilder()

public Fleet.Builder getFleetBuilder()

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Returns
TypeDescription
Fleet.Builder

getFleetOrBuilder()

public FleetOrBuilder getFleetOrBuilder()

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Returns
TypeDescription
FleetOrBuilder

getId()

public String getId()

Output only. Unique id for the cluster.

string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Output only. Unique id for the cluster.

string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for id.

getIdentityServiceConfig()

public IdentityServiceConfig getIdentityServiceConfig()

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Returns
TypeDescription
IdentityServiceConfig

The identityServiceConfig.

getIdentityServiceConfigBuilder()

public IdentityServiceConfig.Builder getIdentityServiceConfigBuilder()

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Returns
TypeDescription
IdentityServiceConfig.Builder

getIdentityServiceConfigOrBuilder()

public IdentityServiceConfigOrBuilder getIdentityServiceConfigOrBuilder()

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Returns
TypeDescription
IdentityServiceConfigOrBuilder

getInitialClusterVersion()

public String getInitialClusterVersion()

The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version can be upgraded over time; such upgrades are reflected in currentMasterVersion and currentNodeVersion.

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

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

string initial_cluster_version = 103;

Returns
TypeDescription
String

The initialClusterVersion.

getInitialClusterVersionBytes()

public 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

string initial_cluster_version = 103;

Returns
TypeDescription
ByteString

The bytes for initialClusterVersion.

getInitialNodeCount() (deprecated)

public int getInitialNodeCount()

Deprecated. google.container.v1.Cluster.initial_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1668

The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time.

This field is deprecated, use node_pool.initial_node_count instead.

int32 initial_node_count = 3 [deprecated = true];

Returns
TypeDescription
int

The initialNodeCount.

getInstanceGroupUrls(int index) (deprecated)

public String getInstanceGroupUrls(int index)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The instanceGroupUrls at the given index.

getInstanceGroupUrlsBytes(int index) (deprecated)

public ByteString getInstanceGroupUrlsBytes(int index)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the instanceGroupUrls at the given index.

getInstanceGroupUrlsCount() (deprecated)

public int getInstanceGroupUrlsCount()

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Returns
TypeDescription
int

The count of instanceGroupUrls.

getInstanceGroupUrlsList() (deprecated)

public ProtocolStringList getInstanceGroupUrlsList()

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Returns
TypeDescription
ProtocolStringList

A list containing the instanceGroupUrls.

getIpAllocationPolicy()

public IPAllocationPolicy getIpAllocationPolicy()

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Returns
TypeDescription
IPAllocationPolicy

The ipAllocationPolicy.

getIpAllocationPolicyBuilder()

public IPAllocationPolicy.Builder getIpAllocationPolicyBuilder()

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Returns
TypeDescription
IPAllocationPolicy.Builder

getIpAllocationPolicyOrBuilder()

public IPAllocationPolicyOrBuilder getIpAllocationPolicyOrBuilder()

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Returns
TypeDescription
IPAllocationPolicyOrBuilder

getLabelFingerprint()

public String getLabelFingerprint()

The fingerprint of the set of labels for this cluster.

string label_fingerprint = 16;

Returns
TypeDescription
String

The labelFingerprint.

getLabelFingerprintBytes()

public ByteString getLabelFingerprintBytes()

The fingerprint of the set of labels for this cluster.

string label_fingerprint = 16;

Returns
TypeDescription
ByteString

The bytes for labelFingerprint.

getLegacyAbac()

public LegacyAbac getLegacyAbac()

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Returns
TypeDescription
LegacyAbac

The legacyAbac.

getLegacyAbacBuilder()

public LegacyAbac.Builder getLegacyAbacBuilder()

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Returns
TypeDescription
LegacyAbac.Builder

getLegacyAbacOrBuilder()

public LegacyAbacOrBuilder getLegacyAbacOrBuilder()

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Returns
TypeDescription
LegacyAbacOrBuilder

getLocation()

public String getLocation()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 114;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 114;

Returns
TypeDescription
ByteString

The bytes for location.

getLocations(int index)

public String getLocations(int index)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The locations at the given index.

getLocationsBytes(int index)

public ByteString getLocationsBytes(int index)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the locations at the given index.

getLocationsCount()

public int getLocationsCount()

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Returns
TypeDescription
int

The count of locations.

getLocationsList()

public ProtocolStringList getLocationsList()

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Returns
TypeDescription
ProtocolStringList

A list containing the locations.

getLoggingConfig()

public LoggingConfig getLoggingConfig()

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Returns
TypeDescription
LoggingConfig

The loggingConfig.

getLoggingConfigBuilder()

public LoggingConfig.Builder getLoggingConfigBuilder()

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Returns
TypeDescription
LoggingConfig.Builder

getLoggingConfigOrBuilder()

public LoggingConfigOrBuilder getLoggingConfigOrBuilder()

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Returns
TypeDescription
LoggingConfigOrBuilder

getLoggingService()

public String getLoggingService()

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

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 6;

Returns
TypeDescription
String

The loggingService.

getLoggingServiceBytes()

public ByteString getLoggingServiceBytes()

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

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 6;

Returns
TypeDescription
ByteString

The bytes for loggingService.

getMaintenancePolicy()

public MaintenancePolicy getMaintenancePolicy()

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Returns
TypeDescription
MaintenancePolicy

The maintenancePolicy.

getMaintenancePolicyBuilder()

public MaintenancePolicy.Builder getMaintenancePolicyBuilder()

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Returns
TypeDescription
MaintenancePolicy.Builder

getMaintenancePolicyOrBuilder()

public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Returns
TypeDescription
MaintenancePolicyOrBuilder

getMasterAuth()

public 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;

Returns
TypeDescription
MasterAuth

The masterAuth.

getMasterAuthBuilder()

public 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;

Returns
TypeDescription
MasterAuth.Builder

getMasterAuthOrBuilder()

public 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;

Returns
TypeDescription
MasterAuthOrBuilder

getMasterAuthorizedNetworksConfig()

public MasterAuthorizedNetworksConfig getMasterAuthorizedNetworksConfig()

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Returns
TypeDescription
MasterAuthorizedNetworksConfig

The masterAuthorizedNetworksConfig.

getMasterAuthorizedNetworksConfigBuilder()

public MasterAuthorizedNetworksConfig.Builder getMasterAuthorizedNetworksConfigBuilder()

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Returns
TypeDescription
MasterAuthorizedNetworksConfig.Builder

getMasterAuthorizedNetworksConfigOrBuilder()

public MasterAuthorizedNetworksConfigOrBuilder getMasterAuthorizedNetworksConfigOrBuilder()

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Returns
TypeDescription
MasterAuthorizedNetworksConfigOrBuilder

getMeshCertificates()

public MeshCertificates getMeshCertificates()

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Returns
TypeDescription
MeshCertificates

The meshCertificates.

getMeshCertificatesBuilder()

public MeshCertificates.Builder getMeshCertificatesBuilder()

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Returns
TypeDescription
MeshCertificates.Builder

getMeshCertificatesOrBuilder()

public MeshCertificatesOrBuilder getMeshCertificatesOrBuilder()

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Returns
TypeDescription
MeshCertificatesOrBuilder

getMonitoringConfig()

public MonitoringConfig getMonitoringConfig()

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Returns
TypeDescription
MonitoringConfig

The monitoringConfig.

getMonitoringConfigBuilder()

public MonitoringConfig.Builder getMonitoringConfigBuilder()

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Returns
TypeDescription
MonitoringConfig.Builder

getMonitoringConfigOrBuilder()

public MonitoringConfigOrBuilder getMonitoringConfigOrBuilder()

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Returns
TypeDescription
MonitoringConfigOrBuilder

getMonitoringService()

public String getMonitoringService()

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

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster.

    If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string monitoring_service = 7;

Returns
TypeDescription
String

The monitoringService.

getMonitoringServiceBytes()

public ByteString getMonitoringServiceBytes()

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

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster.

    If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string monitoring_service = 7;

Returns
TypeDescription
ByteString

The bytes for monitoringService.

getMutableResourceLabels()

public Map<String,String> getMutableResourceLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

string network = 8;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

string network = 8;

Returns
TypeDescription
ByteString

The bytes for network.

getNetworkConfig()

public NetworkConfig getNetworkConfig()

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Returns
TypeDescription
NetworkConfig

The networkConfig.

getNetworkConfigBuilder()

public NetworkConfig.Builder getNetworkConfigBuilder()

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Returns
TypeDescription
NetworkConfig.Builder

getNetworkConfigOrBuilder()

public NetworkConfigOrBuilder getNetworkConfigOrBuilder()

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Returns
TypeDescription
NetworkConfigOrBuilder

getNetworkPolicy()

public NetworkPolicy getNetworkPolicy()

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Returns
TypeDescription
NetworkPolicy

The networkPolicy.

getNetworkPolicyBuilder()

public NetworkPolicy.Builder getNetworkPolicyBuilder()

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Returns
TypeDescription
NetworkPolicy.Builder

getNetworkPolicyOrBuilder()

public NetworkPolicyOrBuilder getNetworkPolicyOrBuilder()

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Returns
TypeDescription
NetworkPolicyOrBuilder

getNodeConfig() (deprecated)

public NodeConfig getNodeConfig()

Deprecated. google.container.v1.Cluster.node_config is deprecated. See google/container/v1/cluster_service.proto;l=1681

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Returns
TypeDescription
NodeConfig

The nodeConfig.

getNodeConfigBuilder()

public NodeConfig.Builder getNodeConfigBuilder()

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Returns
TypeDescription
NodeConfig.Builder

getNodeConfigOrBuilder()

public NodeConfigOrBuilder getNodeConfigOrBuilder()

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Returns
TypeDescription
NodeConfigOrBuilder

getNodeIpv4CidrSize()

public int getNodeIpv4CidrSize()

[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the container_ipv4_cidr range. This field will only be set when cluster is in route-based network mode.

int32 node_ipv4_cidr_size = 109;

Returns
TypeDescription
int

The nodeIpv4CidrSize.

getNodePoolAutoConfig()

public NodePoolAutoConfig getNodePoolAutoConfig()

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Returns
TypeDescription
NodePoolAutoConfig

The nodePoolAutoConfig.

getNodePoolAutoConfigBuilder()

public NodePoolAutoConfig.Builder getNodePoolAutoConfigBuilder()

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Returns
TypeDescription
NodePoolAutoConfig.Builder

getNodePoolAutoConfigOrBuilder()

public NodePoolAutoConfigOrBuilder getNodePoolAutoConfigOrBuilder()

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Returns
TypeDescription
NodePoolAutoConfigOrBuilder

getNodePoolDefaults()

public NodePoolDefaults getNodePoolDefaults()

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Returns
TypeDescription
NodePoolDefaults

The nodePoolDefaults.

getNodePoolDefaultsBuilder()

public NodePoolDefaults.Builder getNodePoolDefaultsBuilder()

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Returns
TypeDescription
NodePoolDefaults.Builder

getNodePoolDefaultsOrBuilder()

public NodePoolDefaultsOrBuilder getNodePoolDefaultsOrBuilder()

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Returns
TypeDescription
NodePoolDefaultsOrBuilder

getNodePools(int index)

public NodePool getNodePools(int index)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodePool

getNodePoolsBuilder(int index)

public NodePool.Builder getNodePoolsBuilder(int index)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodePool.Builder

getNodePoolsBuilderList()

public List<NodePool.Builder> getNodePoolsBuilderList()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
List<Builder>

getNodePoolsCount()

public int getNodePoolsCount()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
int

getNodePoolsList()

public List<NodePool> getNodePoolsList()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
List<NodePool>

getNodePoolsOrBuilder(int index)

public NodePoolOrBuilder getNodePoolsOrBuilder(int index)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodePoolOrBuilder

getNodePoolsOrBuilderList()

public List<? extends NodePoolOrBuilder> getNodePoolsOrBuilderList()

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Returns
TypeDescription
List<? extends com.google.container.v1.NodePoolOrBuilder>

getNotificationConfig()

public NotificationConfig getNotificationConfig()

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Returns
TypeDescription
NotificationConfig

The notificationConfig.

getNotificationConfigBuilder()

public NotificationConfig.Builder getNotificationConfigBuilder()

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Returns
TypeDescription
NotificationConfig.Builder

getNotificationConfigOrBuilder()

public NotificationConfigOrBuilder getNotificationConfigOrBuilder()

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Returns
TypeDescription
NotificationConfigOrBuilder

getPrivateClusterConfig()

public PrivateClusterConfig getPrivateClusterConfig()

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Returns
TypeDescription
PrivateClusterConfig

The privateClusterConfig.

getPrivateClusterConfigBuilder()

public PrivateClusterConfig.Builder getPrivateClusterConfigBuilder()

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Returns
TypeDescription
PrivateClusterConfig.Builder

getPrivateClusterConfigOrBuilder()

public PrivateClusterConfigOrBuilder getPrivateClusterConfigOrBuilder()

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Returns
TypeDescription
PrivateClusterConfigOrBuilder

getReleaseChannel()

public ReleaseChannel getReleaseChannel()

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Returns
TypeDescription
ReleaseChannel

The releaseChannel.

getReleaseChannelBuilder()

public ReleaseChannel.Builder getReleaseChannelBuilder()

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Returns
TypeDescription
ReleaseChannel.Builder

getReleaseChannelOrBuilder()

public ReleaseChannelOrBuilder getReleaseChannelOrBuilder()

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Returns
TypeDescription
ReleaseChannelOrBuilder

getResourceLabels()

public Map<String,String> getResourceLabels()
Returns
TypeDescription
Map<String,String>

getResourceLabelsCount()

public int getResourceLabelsCount()

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Returns
TypeDescription
int

getResourceLabelsMap()

public Map<String,String> getResourceLabelsMap()

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Returns
TypeDescription
Map<String,String>

getResourceLabelsOrDefault(String key, String defaultValue)

public String getResourceLabelsOrDefault(String key, String defaultValue)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceLabelsOrThrow(String key)

public String getResourceLabelsOrThrow(String key)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getResourceUsageExportConfig()

public 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;

Returns
TypeDescription
ResourceUsageExportConfig

The resourceUsageExportConfig.

getResourceUsageExportConfigBuilder()

public ResourceUsageExportConfig.Builder getResourceUsageExportConfigBuilder()

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Returns
TypeDescription
ResourceUsageExportConfig.Builder

getResourceUsageExportConfigOrBuilder()

public ResourceUsageExportConfigOrBuilder getResourceUsageExportConfigOrBuilder()

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Returns
TypeDescription
ResourceUsageExportConfigOrBuilder

getSecurityPostureConfig()

public SecurityPostureConfig getSecurityPostureConfig()

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Returns
TypeDescription
SecurityPostureConfig

The securityPostureConfig.

getSecurityPostureConfigBuilder()

public SecurityPostureConfig.Builder getSecurityPostureConfigBuilder()

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Returns
TypeDescription
SecurityPostureConfig.Builder

getSecurityPostureConfigOrBuilder()

public SecurityPostureConfigOrBuilder getSecurityPostureConfigOrBuilder()

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Returns
TypeDescription
SecurityPostureConfigOrBuilder
public String getSelfLink()

[Output only] Server-defined URL for the resource.

string self_link = 100;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output only] Server-defined URL for the resource.

string self_link = 100;

Returns
TypeDescription
ByteString

The bytes for selfLink.

getServicesIpv4Cidr()

public String getServicesIpv4Cidr()

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

string services_ipv4_cidr = 110;

Returns
TypeDescription
String

The servicesIpv4Cidr.

getServicesIpv4CidrBytes()

public ByteString getServicesIpv4CidrBytes()

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

string services_ipv4_cidr = 110;

Returns
TypeDescription
ByteString

The bytes for servicesIpv4Cidr.

getShieldedNodes()

public ShieldedNodes getShieldedNodes()

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Returns
TypeDescription
ShieldedNodes

The shieldedNodes.

getShieldedNodesBuilder()

public ShieldedNodes.Builder getShieldedNodesBuilder()

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Returns
TypeDescription
ShieldedNodes.Builder

getShieldedNodesOrBuilder()

public ShieldedNodesOrBuilder getShieldedNodesOrBuilder()

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Returns
TypeDescription
ShieldedNodesOrBuilder

getStatus()

public Cluster.Status getStatus()

[Output only] The current status of this cluster.

.google.container.v1.Cluster.Status status = 107;

Returns
TypeDescription
Cluster.Status

The status.

getStatusMessage() (deprecated)

public String getStatusMessage()

Deprecated. google.container.v1.Cluster.status_message is deprecated. See google/container/v1/cluster_service.proto;l=1897

[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.

string status_message = 108 [deprecated = true];

Returns
TypeDescription
String

The statusMessage.

getStatusMessageBytes() (deprecated)

public ByteString getStatusMessageBytes()

Deprecated. google.container.v1.Cluster.status_message is deprecated. See google/container/v1/cluster_service.proto;l=1897

[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.

string status_message = 108 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for statusMessage.

getStatusValue()

public int getStatusValue()

[Output only] The current status of this cluster.

.google.container.v1.Cluster.Status status = 107;

Returns
TypeDescription
int

The enum numeric value on the wire for status.

getSubnetwork()

public String getSubnetwork()

The name of the Google Compute Engine subnetwork to which the cluster is connected.

string subnetwork = 11;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The name of the Google Compute Engine subnetwork to which the cluster is connected.

string subnetwork = 11;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

getTpuIpv4CidrBlock()

public String getTpuIpv4CidrBlock()

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g. 1.2.3.4/29).

string tpu_ipv4_cidr_block = 116;

Returns
TypeDescription
String

The tpuIpv4CidrBlock.

getTpuIpv4CidrBlockBytes()

public ByteString getTpuIpv4CidrBlockBytes()

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g. 1.2.3.4/29).

string tpu_ipv4_cidr_block = 116;

Returns
TypeDescription
ByteString

The bytes for tpuIpv4CidrBlock.

getVerticalPodAutoscaling()

public VerticalPodAutoscaling getVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Returns
TypeDescription
VerticalPodAutoscaling

The verticalPodAutoscaling.

getVerticalPodAutoscalingBuilder()

public VerticalPodAutoscaling.Builder getVerticalPodAutoscalingBuilder()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Returns
TypeDescription
VerticalPodAutoscaling.Builder

getVerticalPodAutoscalingOrBuilder()

public VerticalPodAutoscalingOrBuilder getVerticalPodAutoscalingOrBuilder()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Returns
TypeDescription
VerticalPodAutoscalingOrBuilder

getWorkloadIdentityConfig()

public WorkloadIdentityConfig getWorkloadIdentityConfig()

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Returns
TypeDescription
WorkloadIdentityConfig

The workloadIdentityConfig.

getWorkloadIdentityConfigBuilder()

public WorkloadIdentityConfig.Builder getWorkloadIdentityConfigBuilder()

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Returns
TypeDescription
WorkloadIdentityConfig.Builder

getWorkloadIdentityConfigOrBuilder()

public WorkloadIdentityConfigOrBuilder getWorkloadIdentityConfigOrBuilder()

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Returns
TypeDescription
WorkloadIdentityConfigOrBuilder

getZone() (deprecated)

public String getZone()

Deprecated. google.container.v1.Cluster.zone is deprecated. See google/container/v1/cluster_service.proto;l=1852

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

string zone = 101 [deprecated = true];

Returns
TypeDescription
String

The zone.

getZoneBytes() (deprecated)

public ByteString getZoneBytes()

Deprecated. google.container.v1.Cluster.zone is deprecated. See google/container/v1/cluster_service.proto;l=1852

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

string zone = 101 [deprecated = true];

Returns
TypeDescription
ByteString

The bytes for zone.

hasAddonsConfig()

public boolean hasAddonsConfig()

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

.google.container.v1.AddonsConfig addons_config = 10;

Returns
TypeDescription
boolean

Whether the addonsConfig field is set.

hasAuthenticatorGroupsConfig()

public boolean hasAuthenticatorGroupsConfig()

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Returns
TypeDescription
boolean

Whether the authenticatorGroupsConfig field is set.

hasAutopilot()

public boolean hasAutopilot()

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Returns
TypeDescription
boolean

Whether the autopilot field is set.

hasAutoscaling()

public boolean hasAutoscaling()

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Returns
TypeDescription
boolean

Whether the autoscaling field is set.

hasBinaryAuthorization()

public boolean hasBinaryAuthorization()

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Returns
TypeDescription
boolean

Whether the binaryAuthorization field is set.

hasConfidentialNodes()

public boolean hasConfidentialNodes()

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Returns
TypeDescription
boolean

Whether the confidentialNodes field is set.

hasCostManagementConfig()

public boolean hasCostManagementConfig()

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Returns
TypeDescription
boolean

Whether the costManagementConfig field is set.

hasDatabaseEncryption()

public boolean hasDatabaseEncryption()

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Returns
TypeDescription
boolean

Whether the databaseEncryption field is set.

hasDefaultMaxPodsConstraint()

public 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;

Returns
TypeDescription
boolean

Whether the defaultMaxPodsConstraint field is set.

hasEnableK8SBetaApis()

public boolean hasEnableK8SBetaApis()

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Returns
TypeDescription
boolean

Whether the enableK8sBetaApis field is set.

hasFleet()

public boolean hasFleet()

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Returns
TypeDescription
boolean

Whether the fleet field is set.

hasIdentityServiceConfig()

public boolean hasIdentityServiceConfig()

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Returns
TypeDescription
boolean

Whether the identityServiceConfig field is set.

hasIpAllocationPolicy()

public boolean hasIpAllocationPolicy()

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Returns
TypeDescription
boolean

Whether the ipAllocationPolicy field is set.

hasLegacyAbac()

public boolean hasLegacyAbac()

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Returns
TypeDescription
boolean

Whether the legacyAbac field is set.

hasLoggingConfig()

public boolean hasLoggingConfig()

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Returns
TypeDescription
boolean

Whether the loggingConfig field is set.

hasMaintenancePolicy()

public boolean hasMaintenancePolicy()

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Returns
TypeDescription
boolean

Whether the maintenancePolicy field is set.

hasMasterAuth()

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;

Returns
TypeDescription
boolean

Whether the masterAuth field is set.

hasMasterAuthorizedNetworksConfig()

public boolean hasMasterAuthorizedNetworksConfig()

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Returns
TypeDescription
boolean

Whether the masterAuthorizedNetworksConfig field is set.

hasMeshCertificates()

public boolean hasMeshCertificates()

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Returns
TypeDescription
boolean

Whether the meshCertificates field is set.

hasMonitoringConfig()

public boolean hasMonitoringConfig()

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Returns
TypeDescription
boolean

Whether the monitoringConfig field is set.

hasNetworkConfig()

public boolean hasNetworkConfig()

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Returns
TypeDescription
boolean

Whether the networkConfig field is set.

hasNetworkPolicy()

public boolean hasNetworkPolicy()

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Returns
TypeDescription
boolean

Whether the networkPolicy field is set.

hasNodeConfig() (deprecated)

public boolean hasNodeConfig()

Deprecated. google.container.v1.Cluster.node_config is deprecated. See google/container/v1/cluster_service.proto;l=1681

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Returns
TypeDescription
boolean

Whether the nodeConfig field is set.

hasNodePoolAutoConfig()

public boolean hasNodePoolAutoConfig()

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Returns
TypeDescription
boolean

Whether the nodePoolAutoConfig field is set.

hasNodePoolDefaults()

public boolean hasNodePoolDefaults()

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Returns
TypeDescription
boolean

Whether the nodePoolDefaults field is set.

hasNotificationConfig()

public boolean hasNotificationConfig()

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Returns
TypeDescription
boolean

Whether the notificationConfig field is set.

hasPrivateClusterConfig()

public boolean hasPrivateClusterConfig()

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Returns
TypeDescription
boolean

Whether the privateClusterConfig field is set.

hasReleaseChannel()

public boolean hasReleaseChannel()

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Returns
TypeDescription
boolean

Whether the releaseChannel field is set.

hasResourceUsageExportConfig()

public 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;

Returns
TypeDescription
boolean

Whether the resourceUsageExportConfig field is set.

hasSecurityPostureConfig()

public boolean hasSecurityPostureConfig()

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Returns
TypeDescription
boolean

Whether the securityPostureConfig field is set.

hasShieldedNodes()

public boolean hasShieldedNodes()

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Returns
TypeDescription
boolean

Whether the shieldedNodes field is set.

hasVerticalPodAutoscaling()

public boolean hasVerticalPodAutoscaling()

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Returns
TypeDescription
boolean

Whether the verticalPodAutoscaling field is set.

hasWorkloadIdentityConfig()

public boolean hasWorkloadIdentityConfig()

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Returns
TypeDescription
boolean

Whether the workloadIdentityConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAddonsConfig(AddonsConfig value)

public Cluster.Builder mergeAddonsConfig(AddonsConfig value)

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

.google.container.v1.AddonsConfig addons_config = 10;

Parameter
NameDescription
valueAddonsConfig
Returns
TypeDescription
Cluster.Builder

mergeAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

public Cluster.Builder mergeAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Parameter
NameDescription
valueAuthenticatorGroupsConfig
Returns
TypeDescription
Cluster.Builder

mergeAutopilot(Autopilot value)

public Cluster.Builder mergeAutopilot(Autopilot value)

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Parameter
NameDescription
valueAutopilot
Returns
TypeDescription
Cluster.Builder

mergeAutoscaling(ClusterAutoscaling value)

public Cluster.Builder mergeAutoscaling(ClusterAutoscaling value)

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Parameter
NameDescription
valueClusterAutoscaling
Returns
TypeDescription
Cluster.Builder

mergeBinaryAuthorization(BinaryAuthorization value)

public Cluster.Builder mergeBinaryAuthorization(BinaryAuthorization value)

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Parameter
NameDescription
valueBinaryAuthorization
Returns
TypeDescription
Cluster.Builder

mergeConfidentialNodes(ConfidentialNodes value)

public Cluster.Builder mergeConfidentialNodes(ConfidentialNodes value)

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Parameter
NameDescription
valueConfidentialNodes
Returns
TypeDescription
Cluster.Builder

mergeCostManagementConfig(CostManagementConfig value)

public Cluster.Builder mergeCostManagementConfig(CostManagementConfig value)

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Parameter
NameDescription
valueCostManagementConfig
Returns
TypeDescription
Cluster.Builder

mergeDatabaseEncryption(DatabaseEncryption value)

public Cluster.Builder mergeDatabaseEncryption(DatabaseEncryption value)

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Parameter
NameDescription
valueDatabaseEncryption
Returns
TypeDescription
Cluster.Builder

mergeDefaultMaxPodsConstraint(MaxPodsConstraint value)

public Cluster.Builder mergeDefaultMaxPodsConstraint(MaxPodsConstraint value)

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;

Parameter
NameDescription
valueMaxPodsConstraint
Returns
TypeDescription
Cluster.Builder

mergeEnableK8SBetaApis(K8sBetaAPIConfig value)

public Cluster.Builder mergeEnableK8SBetaApis(K8sBetaAPIConfig value)

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Parameter
NameDescription
valueK8sBetaAPIConfig
Returns
TypeDescription
Cluster.Builder

mergeFleet(Fleet value)

public Cluster.Builder mergeFleet(Fleet value)

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Parameter
NameDescription
valueFleet
Returns
TypeDescription
Cluster.Builder

mergeFrom(Cluster other)

public Cluster.Builder mergeFrom(Cluster other)
Parameter
NameDescription
otherCluster
Returns
TypeDescription
Cluster.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Cluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Cluster.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Cluster.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Cluster.Builder
Overrides

mergeIdentityServiceConfig(IdentityServiceConfig value)

public Cluster.Builder mergeIdentityServiceConfig(IdentityServiceConfig value)

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Parameter
NameDescription
valueIdentityServiceConfig
Returns
TypeDescription
Cluster.Builder

mergeIpAllocationPolicy(IPAllocationPolicy value)

public Cluster.Builder mergeIpAllocationPolicy(IPAllocationPolicy value)

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Parameter
NameDescription
valueIPAllocationPolicy
Returns
TypeDescription
Cluster.Builder

mergeLegacyAbac(LegacyAbac value)

public Cluster.Builder mergeLegacyAbac(LegacyAbac value)

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Parameter
NameDescription
valueLegacyAbac
Returns
TypeDescription
Cluster.Builder

mergeLoggingConfig(LoggingConfig value)

public Cluster.Builder mergeLoggingConfig(LoggingConfig value)

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
Cluster.Builder

mergeMaintenancePolicy(MaintenancePolicy value)

public Cluster.Builder mergeMaintenancePolicy(MaintenancePolicy value)

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Parameter
NameDescription
valueMaintenancePolicy
Returns
TypeDescription
Cluster.Builder

mergeMasterAuth(MasterAuth value)

public Cluster.Builder mergeMasterAuth(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;

Parameter
NameDescription
valueMasterAuth
Returns
TypeDescription
Cluster.Builder

mergeMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

public Cluster.Builder mergeMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Parameter
NameDescription
valueMasterAuthorizedNetworksConfig
Returns
TypeDescription
Cluster.Builder

mergeMeshCertificates(MeshCertificates value)

public Cluster.Builder mergeMeshCertificates(MeshCertificates value)

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Parameter
NameDescription
valueMeshCertificates
Returns
TypeDescription
Cluster.Builder

mergeMonitoringConfig(MonitoringConfig value)

public Cluster.Builder mergeMonitoringConfig(MonitoringConfig value)

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Parameter
NameDescription
valueMonitoringConfig
Returns
TypeDescription
Cluster.Builder

mergeNetworkConfig(NetworkConfig value)

public Cluster.Builder mergeNetworkConfig(NetworkConfig value)

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Parameter
NameDescription
valueNetworkConfig
Returns
TypeDescription
Cluster.Builder

mergeNetworkPolicy(NetworkPolicy value)

public Cluster.Builder mergeNetworkPolicy(NetworkPolicy value)

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Parameter
NameDescription
valueNetworkPolicy
Returns
TypeDescription
Cluster.Builder

mergeNodeConfig(NodeConfig value)

public Cluster.Builder mergeNodeConfig(NodeConfig value)

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Parameter
NameDescription
valueNodeConfig
Returns
TypeDescription
Cluster.Builder

mergeNodePoolAutoConfig(NodePoolAutoConfig value)

public Cluster.Builder mergeNodePoolAutoConfig(NodePoolAutoConfig value)

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Parameter
NameDescription
valueNodePoolAutoConfig
Returns
TypeDescription
Cluster.Builder

mergeNodePoolDefaults(NodePoolDefaults value)

public Cluster.Builder mergeNodePoolDefaults(NodePoolDefaults value)

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Parameter
NameDescription
valueNodePoolDefaults
Returns
TypeDescription
Cluster.Builder

mergeNotificationConfig(NotificationConfig value)

public Cluster.Builder mergeNotificationConfig(NotificationConfig value)

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Parameter
NameDescription
valueNotificationConfig
Returns
TypeDescription
Cluster.Builder

mergePrivateClusterConfig(PrivateClusterConfig value)

public Cluster.Builder mergePrivateClusterConfig(PrivateClusterConfig value)

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Parameter
NameDescription
valuePrivateClusterConfig
Returns
TypeDescription
Cluster.Builder

mergeReleaseChannel(ReleaseChannel value)

public Cluster.Builder mergeReleaseChannel(ReleaseChannel value)

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Parameter
NameDescription
valueReleaseChannel
Returns
TypeDescription
Cluster.Builder

mergeResourceUsageExportConfig(ResourceUsageExportConfig value)

public Cluster.Builder mergeResourceUsageExportConfig(ResourceUsageExportConfig value)

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Parameter
NameDescription
valueResourceUsageExportConfig
Returns
TypeDescription
Cluster.Builder

mergeSecurityPostureConfig(SecurityPostureConfig value)

public Cluster.Builder mergeSecurityPostureConfig(SecurityPostureConfig value)

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Parameter
NameDescription
valueSecurityPostureConfig
Returns
TypeDescription
Cluster.Builder

mergeShieldedNodes(ShieldedNodes value)

public Cluster.Builder mergeShieldedNodes(ShieldedNodes value)

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Parameter
NameDescription
valueShieldedNodes
Returns
TypeDescription
Cluster.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides

mergeVerticalPodAutoscaling(VerticalPodAutoscaling value)

public Cluster.Builder mergeVerticalPodAutoscaling(VerticalPodAutoscaling value)

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Parameter
NameDescription
valueVerticalPodAutoscaling
Returns
TypeDescription
Cluster.Builder

mergeWorkloadIdentityConfig(WorkloadIdentityConfig value)

public Cluster.Builder mergeWorkloadIdentityConfig(WorkloadIdentityConfig value)

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Parameter
NameDescription
valueWorkloadIdentityConfig
Returns
TypeDescription
Cluster.Builder

putAllResourceLabels(Map<String,String> values)

public Cluster.Builder putAllResourceLabels(Map<String,String> values)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
Cluster.Builder

putResourceLabels(String key, String value)

public Cluster.Builder putResourceLabels(String key, String value)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
Cluster.Builder

removeConditions(int index)

public Cluster.Builder removeConditions(int index)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

removeNodePools(int index)

public Cluster.Builder removeNodePools(int index)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameter
NameDescription
indexint
Returns
TypeDescription
Cluster.Builder

removeResourceLabels(String key)

public Cluster.Builder removeResourceLabels(String key)

The resource labels for the cluster to use to annotate any related Google Compute Engine resources.

map<string, string> resource_labels = 15;

Parameter
NameDescription
keyString
Returns
TypeDescription
Cluster.Builder

setAddonsConfig(AddonsConfig value)

public Cluster.Builder setAddonsConfig(AddonsConfig value)

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

.google.container.v1.AddonsConfig addons_config = 10;

Parameter
NameDescription
valueAddonsConfig
Returns
TypeDescription
Cluster.Builder

setAddonsConfig(AddonsConfig.Builder builderForValue)

public Cluster.Builder setAddonsConfig(AddonsConfig.Builder builderForValue)

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

.google.container.v1.AddonsConfig addons_config = 10;

Parameter
NameDescription
builderForValueAddonsConfig.Builder
Returns
TypeDescription
Cluster.Builder

setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

public Cluster.Builder setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig value)

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Parameter
NameDescription
valueAuthenticatorGroupsConfig
Returns
TypeDescription
Cluster.Builder

setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.Builder builderForValue)

public Cluster.Builder setAuthenticatorGroupsConfig(AuthenticatorGroupsConfig.Builder builderForValue)

Configuration controlling RBAC group membership information.

.google.container.v1.AuthenticatorGroupsConfig authenticator_groups_config = 34;

Parameter
NameDescription
builderForValueAuthenticatorGroupsConfig.Builder
Returns
TypeDescription
Cluster.Builder

setAutopilot(Autopilot value)

public Cluster.Builder setAutopilot(Autopilot value)

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Parameter
NameDescription
valueAutopilot
Returns
TypeDescription
Cluster.Builder

setAutopilot(Autopilot.Builder builderForValue)

public Cluster.Builder setAutopilot(Autopilot.Builder builderForValue)

Autopilot configuration for the cluster.

.google.container.v1.Autopilot autopilot = 128;

Parameter
NameDescription
builderForValueAutopilot.Builder
Returns
TypeDescription
Cluster.Builder

setAutoscaling(ClusterAutoscaling value)

public Cluster.Builder setAutoscaling(ClusterAutoscaling value)

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Parameter
NameDescription
valueClusterAutoscaling
Returns
TypeDescription
Cluster.Builder

setAutoscaling(ClusterAutoscaling.Builder builderForValue)

public Cluster.Builder setAutoscaling(ClusterAutoscaling.Builder builderForValue)

Cluster-level autoscaling configuration.

.google.container.v1.ClusterAutoscaling autoscaling = 26;

Parameter
NameDescription
builderForValueClusterAutoscaling.Builder
Returns
TypeDescription
Cluster.Builder

setBinaryAuthorization(BinaryAuthorization value)

public Cluster.Builder setBinaryAuthorization(BinaryAuthorization value)

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Parameter
NameDescription
valueBinaryAuthorization
Returns
TypeDescription
Cluster.Builder

setBinaryAuthorization(BinaryAuthorization.Builder builderForValue)

public Cluster.Builder setBinaryAuthorization(BinaryAuthorization.Builder builderForValue)

Configuration for Binary Authorization.

.google.container.v1.BinaryAuthorization binary_authorization = 24;

Parameter
NameDescription
builderForValueBinaryAuthorization.Builder
Returns
TypeDescription
Cluster.Builder

setClusterIpv4Cidr(String value)

public Cluster.Builder setClusterIpv4Cidr(String value)

The IP address range of the container pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify a /14 block in 10.0.0.0/8.

string cluster_ipv4_cidr = 9;

Parameter
NameDescription
valueString

The clusterIpv4Cidr to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setClusterIpv4CidrBytes(ByteString value)

public Cluster.Builder setClusterIpv4CidrBytes(ByteString value)

The IP address range of the container pods in this cluster, in CIDR notation (e.g. 10.96.0.0/14). Leave blank to have one automatically chosen or specify a /14 block in 10.0.0.0/8.

string cluster_ipv4_cidr = 9;

Parameter
NameDescription
valueByteString

The bytes for clusterIpv4Cidr to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setConditions(int index, StatusCondition value)

public Cluster.Builder setConditions(int index, StatusCondition value)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameters
NameDescription
indexint
valueStatusCondition
Returns
TypeDescription
Cluster.Builder

setConditions(int index, StatusCondition.Builder builderForValue)

public Cluster.Builder setConditions(int index, StatusCondition.Builder builderForValue)

Which conditions caused the current cluster state.

repeated .google.container.v1.StatusCondition conditions = 118;

Parameters
NameDescription
indexint
builderForValueStatusCondition.Builder
Returns
TypeDescription
Cluster.Builder

setConfidentialNodes(ConfidentialNodes value)

public Cluster.Builder setConfidentialNodes(ConfidentialNodes value)

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Parameter
NameDescription
valueConfidentialNodes
Returns
TypeDescription
Cluster.Builder

setConfidentialNodes(ConfidentialNodes.Builder builderForValue)

public Cluster.Builder setConfidentialNodes(ConfidentialNodes.Builder builderForValue)

Configuration of Confidential Nodes. All the nodes in the cluster will be Confidential VM once enabled.

.google.container.v1.ConfidentialNodes confidential_nodes = 50;

Parameter
NameDescription
builderForValueConfidentialNodes.Builder
Returns
TypeDescription
Cluster.Builder

setCostManagementConfig(CostManagementConfig value)

public Cluster.Builder setCostManagementConfig(CostManagementConfig value)

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Parameter
NameDescription
valueCostManagementConfig
Returns
TypeDescription
Cluster.Builder

setCostManagementConfig(CostManagementConfig.Builder builderForValue)

public Cluster.Builder setCostManagementConfig(CostManagementConfig.Builder builderForValue)

Configuration for the fine-grained cost management feature.

.google.container.v1.CostManagementConfig cost_management_config = 45;

Parameter
NameDescription
builderForValueCostManagementConfig.Builder
Returns
TypeDescription
Cluster.Builder

setCreateTime(String value)

public Cluster.Builder setCreateTime(String value)

[Output only] The time the cluster was created, in RFC3339 text format.

string create_time = 106;

Parameter
NameDescription
valueString

The createTime to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCreateTimeBytes(ByteString value)

public Cluster.Builder setCreateTimeBytes(ByteString value)

[Output only] The time the cluster was created, in RFC3339 text format.

string create_time = 106;

Parameter
NameDescription
valueByteString

The bytes for createTime to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCurrentMasterVersion(String value)

public Cluster.Builder setCurrentMasterVersion(String value)

[Output only] The current software version of the master endpoint.

string current_master_version = 104;

Parameter
NameDescription
valueString

The currentMasterVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCurrentMasterVersionBytes(ByteString value)

public Cluster.Builder setCurrentMasterVersionBytes(ByteString value)

[Output only] The current software version of the master endpoint.

string current_master_version = 104;

Parameter
NameDescription
valueByteString

The bytes for currentMasterVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCurrentNodeCount(int value) (deprecated)

public Cluster.Builder setCurrentNodeCount(int value)

Deprecated. google.container.v1.Cluster.current_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1917

[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];

Parameter
NameDescription
valueint

The currentNodeCount to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCurrentNodeVersion(String value) (deprecated)

public Cluster.Builder setCurrentNodeVersion(String value)

Deprecated. google.container.v1.Cluster.current_node_version is deprecated. See google/container/v1/cluster_service.proto;l=1885

[Output only] Deprecated, use NodePools.version 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];

Parameter
NameDescription
valueString

The currentNodeVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setCurrentNodeVersionBytes(ByteString value) (deprecated)

public Cluster.Builder setCurrentNodeVersionBytes(ByteString value)

Deprecated. google.container.v1.Cluster.current_node_version is deprecated. See google/container/v1/cluster_service.proto;l=1885

[Output only] Deprecated, use NodePools.version 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];

Parameter
NameDescription
valueByteString

The bytes for currentNodeVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setDatabaseEncryption(DatabaseEncryption value)

public Cluster.Builder setDatabaseEncryption(DatabaseEncryption value)

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Parameter
NameDescription
valueDatabaseEncryption
Returns
TypeDescription
Cluster.Builder

setDatabaseEncryption(DatabaseEncryption.Builder builderForValue)

public Cluster.Builder setDatabaseEncryption(DatabaseEncryption.Builder builderForValue)

Configuration of etcd encryption.

.google.container.v1.DatabaseEncryption database_encryption = 38;

Parameter
NameDescription
builderForValueDatabaseEncryption.Builder
Returns
TypeDescription
Cluster.Builder

setDefaultMaxPodsConstraint(MaxPodsConstraint value)

public Cluster.Builder setDefaultMaxPodsConstraint(MaxPodsConstraint value)

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;

Parameter
NameDescription
valueMaxPodsConstraint
Returns
TypeDescription
Cluster.Builder

setDefaultMaxPodsConstraint(MaxPodsConstraint.Builder builderForValue)

public Cluster.Builder setDefaultMaxPodsConstraint(MaxPodsConstraint.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueMaxPodsConstraint.Builder
Returns
TypeDescription
Cluster.Builder

setDescription(String value)

public Cluster.Builder setDescription(String value)

An optional description of this cluster.

string description = 2;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public Cluster.Builder setDescriptionBytes(ByteString value)

An optional description of this cluster.

string description = 2;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEnableK8SBetaApis(K8sBetaAPIConfig value)

public Cluster.Builder setEnableK8SBetaApis(K8sBetaAPIConfig value)

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Parameter
NameDescription
valueK8sBetaAPIConfig
Returns
TypeDescription
Cluster.Builder

setEnableK8SBetaApis(K8sBetaAPIConfig.Builder builderForValue)

public Cluster.Builder setEnableK8SBetaApis(K8sBetaAPIConfig.Builder builderForValue)

Beta APIs Config

.google.container.v1.K8sBetaAPIConfig enable_k8s_beta_apis = 143;

Parameter
NameDescription
builderForValueK8sBetaAPIConfig.Builder
Returns
TypeDescription
Cluster.Builder

setEnableKubernetesAlpha(boolean value)

public Cluster.Builder setEnableKubernetesAlpha(boolean value)

Kubernetes alpha features are enabled on this cluster. This includes alpha API groups (e.g. v1alpha1) and features that may not be production ready in the kubernetes version of the master and nodes. The cluster has no SLA for uptime and master/node upgrades are disabled. Alpha enabled clusters are automatically deleted thirty days after creation.

bool enable_kubernetes_alpha = 14;

Parameter
NameDescription
valueboolean

The enableKubernetesAlpha to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEnableTpu(boolean value)

public Cluster.Builder setEnableTpu(boolean value)

Enable the ability to use Cloud TPUs in this cluster.

bool enable_tpu = 115;

Parameter
NameDescription
valueboolean

The enableTpu to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEndpoint(String value)

public Cluster.Builder setEndpoint(String value)

[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;

Parameter
NameDescription
valueString

The endpoint to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEndpointBytes(ByteString value)

public Cluster.Builder setEndpointBytes(ByteString value)

[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;

Parameter
NameDescription
valueByteString

The bytes for endpoint to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEtag(String value)

public Cluster.Builder setEtag(String value)

This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 139;

Parameter
NameDescription
valueString

The etag to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public Cluster.Builder setEtagBytes(ByteString value)

This checksum is computed by the server based on the value of cluster fields, and may be sent on update requests to ensure the client has an up-to-date value before proceeding.

string etag = 139;

Parameter
NameDescription
valueByteString

The bytes for etag to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setExpireTime(String value)

public Cluster.Builder setExpireTime(String value)

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

string expire_time = 113;

Parameter
NameDescription
valueString

The expireTime to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setExpireTimeBytes(ByteString value)

public Cluster.Builder setExpireTimeBytes(ByteString value)

[Output only] The time the cluster will be automatically deleted in RFC3339 text format.

string expire_time = 113;

Parameter
NameDescription
valueByteString

The bytes for expireTime to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFleet(Fleet value)

public Cluster.Builder setFleet(Fleet value)

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Parameter
NameDescription
valueFleet
Returns
TypeDescription
Cluster.Builder

setFleet(Fleet.Builder builderForValue)

public Cluster.Builder setFleet(Fleet.Builder builderForValue)

Fleet information for the cluster.

.google.container.v1.Fleet fleet = 140;

Parameter
NameDescription
builderForValueFleet.Builder
Returns
TypeDescription
Cluster.Builder

setId(String value)

public Cluster.Builder setId(String value)

Output only. Unique id for the cluster.

string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Cluster.Builder setIdBytes(ByteString value)

Output only. Unique id for the cluster.

string id = 129 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setIdentityServiceConfig(IdentityServiceConfig value)

public Cluster.Builder setIdentityServiceConfig(IdentityServiceConfig value)

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Parameter
NameDescription
valueIdentityServiceConfig
Returns
TypeDescription
Cluster.Builder

setIdentityServiceConfig(IdentityServiceConfig.Builder builderForValue)

public Cluster.Builder setIdentityServiceConfig(IdentityServiceConfig.Builder builderForValue)

Configuration for Identity Service component.

.google.container.v1.IdentityServiceConfig identity_service_config = 54;

Parameter
NameDescription
builderForValueIdentityServiceConfig.Builder
Returns
TypeDescription
Cluster.Builder

setInitialClusterVersion(String value)

public Cluster.Builder setInitialClusterVersion(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

string initial_cluster_version = 103;

Parameter
NameDescription
valueString

The initialClusterVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setInitialClusterVersionBytes(ByteString value)

public Cluster.Builder setInitialClusterVersionBytes(ByteString 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

string initial_cluster_version = 103;

Parameter
NameDescription
valueByteString

The bytes for initialClusterVersion to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setInitialNodeCount(int value) (deprecated)

public Cluster.Builder setInitialNodeCount(int value)

Deprecated. google.container.v1.Cluster.initial_node_count is deprecated. See google/container/v1/cluster_service.proto;l=1668

The number of nodes to create in this cluster. You must ensure that your Compute Engine resource quota is sufficient for this number of instances. You must also have available firewall and routes quota. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "node_config") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time.

This field is deprecated, use node_pool.initial_node_count instead.

int32 initial_node_count = 3 [deprecated = true];

Parameter
NameDescription
valueint

The initialNodeCount to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setInstanceGroupUrls(int index, String value) (deprecated)

public Cluster.Builder setInstanceGroupUrls(int index, String value)

Deprecated. google.container.v1.Cluster.instance_group_urls is deprecated. See google/container/v1/cluster_service.proto;l=1913

Deprecated. Use node_pools.instance_group_urls.

repeated string instance_group_urls = 111 [deprecated = true];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The instanceGroupUrls to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setIpAllocationPolicy(IPAllocationPolicy value)

public Cluster.Builder setIpAllocationPolicy(IPAllocationPolicy value)

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Parameter
NameDescription
valueIPAllocationPolicy
Returns
TypeDescription
Cluster.Builder

setIpAllocationPolicy(IPAllocationPolicy.Builder builderForValue)

public Cluster.Builder setIpAllocationPolicy(IPAllocationPolicy.Builder builderForValue)

Configuration for cluster IP allocation.

.google.container.v1.IPAllocationPolicy ip_allocation_policy = 20;

Parameter
NameDescription
builderForValueIPAllocationPolicy.Builder
Returns
TypeDescription
Cluster.Builder

setLabelFingerprint(String value)

public Cluster.Builder setLabelFingerprint(String value)

The fingerprint of the set of labels for this cluster.

string label_fingerprint = 16;

Parameter
NameDescription
valueString

The labelFingerprint to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLabelFingerprintBytes(ByteString value)

public Cluster.Builder setLabelFingerprintBytes(ByteString value)

The fingerprint of the set of labels for this cluster.

string label_fingerprint = 16;

Parameter
NameDescription
valueByteString

The bytes for labelFingerprint to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLegacyAbac(LegacyAbac value)

public Cluster.Builder setLegacyAbac(LegacyAbac value)

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Parameter
NameDescription
valueLegacyAbac
Returns
TypeDescription
Cluster.Builder

setLegacyAbac(LegacyAbac.Builder builderForValue)

public Cluster.Builder setLegacyAbac(LegacyAbac.Builder builderForValue)

Configuration for the legacy ABAC authorization mode.

.google.container.v1.LegacyAbac legacy_abac = 18;

Parameter
NameDescription
builderForValueLegacyAbac.Builder
Returns
TypeDescription
Cluster.Builder

setLocation(String value)

public Cluster.Builder setLocation(String value)

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 114;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public Cluster.Builder setLocationBytes(ByteString value)

[Output only] The name of the Google Compute Engine zone or region in which the cluster resides.

string location = 114;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLocations(int index, String value)

public Cluster.Builder setLocations(int index, String value)

The list of Google Compute Engine zones in which the cluster's nodes should be located.

This field provides a default value if NodePool.Locations are not specified during node pool creation.

Warning: changing cluster locations will update the NodePool.Locations of all node pools and will result in nodes being added and/or removed.

repeated string locations = 13;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The locations to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLoggingConfig(LoggingConfig value)

public Cluster.Builder setLoggingConfig(LoggingConfig value)

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Parameter
NameDescription
valueLoggingConfig
Returns
TypeDescription
Cluster.Builder

setLoggingConfig(LoggingConfig.Builder builderForValue)

public Cluster.Builder setLoggingConfig(LoggingConfig.Builder builderForValue)

Logging configuration for the cluster.

.google.container.v1.LoggingConfig logging_config = 132;

Parameter
NameDescription
builderForValueLoggingConfig.Builder
Returns
TypeDescription
Cluster.Builder

setLoggingService(String value)

public Cluster.Builder setLoggingService(String value)

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

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 6;

Parameter
NameDescription
valueString

The loggingService to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setLoggingServiceBytes(ByteString value)

public Cluster.Builder setLoggingServiceBytes(ByteString value)

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

  • logging.googleapis.com/kubernetes - The Cloud Logging service with a Kubernetes-native resource model
  • logging.googleapis.com - The legacy Cloud Logging service (no longer available as of GKE 1.15).
  • none - no logs will be exported from the cluster.

    If left as an empty string,logging.googleapis.com/kubernetes will be used for GKE 1.14+ or logging.googleapis.com for earlier versions.

string logging_service = 6;

Parameter
NameDescription
valueByteString

The bytes for loggingService to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setMaintenancePolicy(MaintenancePolicy value)

public Cluster.Builder setMaintenancePolicy(MaintenancePolicy value)

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Parameter
NameDescription
valueMaintenancePolicy
Returns
TypeDescription
Cluster.Builder

setMaintenancePolicy(MaintenancePolicy.Builder builderForValue)

public Cluster.Builder setMaintenancePolicy(MaintenancePolicy.Builder builderForValue)

Configure the maintenance policy for this cluster.

.google.container.v1.MaintenancePolicy maintenance_policy = 23;

Parameter
NameDescription
builderForValueMaintenancePolicy.Builder
Returns
TypeDescription
Cluster.Builder

setMasterAuth(MasterAuth value)

public Cluster.Builder setMasterAuth(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;

Parameter
NameDescription
valueMasterAuth
Returns
TypeDescription
Cluster.Builder

setMasterAuth(MasterAuth.Builder builderForValue)

public Cluster.Builder setMasterAuth(MasterAuth.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueMasterAuth.Builder
Returns
TypeDescription
Cluster.Builder

setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

public Cluster.Builder setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig value)

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Parameter
NameDescription
valueMasterAuthorizedNetworksConfig
Returns
TypeDescription
Cluster.Builder

setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.Builder builderForValue)

public Cluster.Builder setMasterAuthorizedNetworksConfig(MasterAuthorizedNetworksConfig.Builder builderForValue)

The configuration options for master authorized networks feature.

.google.container.v1.MasterAuthorizedNetworksConfig master_authorized_networks_config = 22;

Parameter
NameDescription
builderForValueMasterAuthorizedNetworksConfig.Builder
Returns
TypeDescription
Cluster.Builder

setMeshCertificates(MeshCertificates value)

public Cluster.Builder setMeshCertificates(MeshCertificates value)

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Parameter
NameDescription
valueMeshCertificates
Returns
TypeDescription
Cluster.Builder

setMeshCertificates(MeshCertificates.Builder builderForValue)

public Cluster.Builder setMeshCertificates(MeshCertificates.Builder builderForValue)

Configuration for issuance of mTLS keys and certificates to Kubernetes pods.

.google.container.v1.MeshCertificates mesh_certificates = 67;

Parameter
NameDescription
builderForValueMeshCertificates.Builder
Returns
TypeDescription
Cluster.Builder

setMonitoringConfig(MonitoringConfig value)

public Cluster.Builder setMonitoringConfig(MonitoringConfig value)

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Parameter
NameDescription
valueMonitoringConfig
Returns
TypeDescription
Cluster.Builder

setMonitoringConfig(MonitoringConfig.Builder builderForValue)

public Cluster.Builder setMonitoringConfig(MonitoringConfig.Builder builderForValue)

Monitoring configuration for the cluster.

.google.container.v1.MonitoringConfig monitoring_config = 133;

Parameter
NameDescription
builderForValueMonitoringConfig.Builder
Returns
TypeDescription
Cluster.Builder

setMonitoringService(String value)

public Cluster.Builder setMonitoringService(String value)

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

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster.

    If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string monitoring_service = 7;

Parameter
NameDescription
valueString

The monitoringService to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setMonitoringServiceBytes(ByteString value)

public Cluster.Builder setMonitoringServiceBytes(ByteString value)

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

  • "monitoring.googleapis.com/kubernetes" - The Cloud Monitoring service with a Kubernetes-native resource model
  • monitoring.googleapis.com - The legacy Cloud Monitoring service (no longer available as of GKE 1.15).
  • none - No metrics will be exported from the cluster.

    If left as an empty string,monitoring.googleapis.com/kubernetes will be used for GKE 1.14+ or monitoring.googleapis.com for earlier versions.

string monitoring_service = 7;

Parameter
NameDescription
valueByteString

The bytes for monitoringService to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setName(String value)

public Cluster.Builder setName(String value)

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Cluster.Builder setNameBytes(ByteString value)

The name of this cluster. The name must be unique within this project and location (e.g. zone or region), and can be up to 40 characters with the following restrictions:

  • Lowercase letters, numbers, and hyphens only.
  • Must start with a letter.
  • Must end with a number or a letter.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNetwork(String value)

public Cluster.Builder setNetwork(String value)

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

string network = 8;

Parameter
NameDescription
valueString

The network to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public Cluster.Builder setNetworkBytes(ByteString value)

The name of the Google Compute Engine network to which the cluster is connected. If left unspecified, the default network will be used.

string network = 8;

Parameter
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNetworkConfig(NetworkConfig value)

public Cluster.Builder setNetworkConfig(NetworkConfig value)

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Parameter
NameDescription
valueNetworkConfig
Returns
TypeDescription
Cluster.Builder

setNetworkConfig(NetworkConfig.Builder builderForValue)

public Cluster.Builder setNetworkConfig(NetworkConfig.Builder builderForValue)

Configuration for cluster networking.

.google.container.v1.NetworkConfig network_config = 27;

Parameter
NameDescription
builderForValueNetworkConfig.Builder
Returns
TypeDescription
Cluster.Builder

setNetworkPolicy(NetworkPolicy value)

public Cluster.Builder setNetworkPolicy(NetworkPolicy value)

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Parameter
NameDescription
valueNetworkPolicy
Returns
TypeDescription
Cluster.Builder

setNetworkPolicy(NetworkPolicy.Builder builderForValue)

public Cluster.Builder setNetworkPolicy(NetworkPolicy.Builder builderForValue)

Configuration options for the NetworkPolicy feature.

.google.container.v1.NetworkPolicy network_policy = 19;

Parameter
NameDescription
builderForValueNetworkPolicy.Builder
Returns
TypeDescription
Cluster.Builder

setNodeConfig(NodeConfig value)

public Cluster.Builder setNodeConfig(NodeConfig value)

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Parameter
NameDescription
valueNodeConfig
Returns
TypeDescription
Cluster.Builder

setNodeConfig(NodeConfig.Builder builderForValue)

public Cluster.Builder setNodeConfig(NodeConfig.Builder builderForValue)

Parameters used in creating the cluster's nodes. For requests, this field should only be used in lieu of a "node_pool" object, since this configuration (along with the "initial_node_count") will be used to create a "NodePool" object with an auto-generated name. Do not use this and a node_pool at the same time. For responses, this field will be populated with the node configuration of the first node pool. (For configuration of each node pool, see node_pool.config)

If unspecified, the defaults are used. This field is deprecated, use node_pool.config instead.

.google.container.v1.NodeConfig node_config = 4 [deprecated = true];

Parameter
NameDescription
builderForValueNodeConfig.Builder
Returns
TypeDescription
Cluster.Builder

setNodeIpv4CidrSize(int value)

public Cluster.Builder setNodeIpv4CidrSize(int value)

[Output only] The size of the address space on each node for hosting containers. This is provisioned from within the container_ipv4_cidr range. This field will only be set when cluster is in route-based network mode.

int32 node_ipv4_cidr_size = 109;

Parameter
NameDescription
valueint

The nodeIpv4CidrSize to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setNodePoolAutoConfig(NodePoolAutoConfig value)

public Cluster.Builder setNodePoolAutoConfig(NodePoolAutoConfig value)

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Parameter
NameDescription
valueNodePoolAutoConfig
Returns
TypeDescription
Cluster.Builder

setNodePoolAutoConfig(NodePoolAutoConfig.Builder builderForValue)

public Cluster.Builder setNodePoolAutoConfig(NodePoolAutoConfig.Builder builderForValue)

Node pool configs that apply to all auto-provisioned node pools in autopilot clusters and node auto-provisioning enabled clusters.

.google.container.v1.NodePoolAutoConfig node_pool_auto_config = 136;

Parameter
NameDescription
builderForValueNodePoolAutoConfig.Builder
Returns
TypeDescription
Cluster.Builder

setNodePoolDefaults(NodePoolDefaults value)

public Cluster.Builder setNodePoolDefaults(NodePoolDefaults value)

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Parameter
NameDescription
valueNodePoolDefaults
Returns
TypeDescription
Cluster.Builder

setNodePoolDefaults(NodePoolDefaults.Builder builderForValue)

public Cluster.Builder setNodePoolDefaults(NodePoolDefaults.Builder builderForValue)

Default NodePool settings for the entire cluster. These settings are overridden if specified on the specific NodePool object.

optional .google.container.v1.NodePoolDefaults node_pool_defaults = 131;

Parameter
NameDescription
builderForValueNodePoolDefaults.Builder
Returns
TypeDescription
Cluster.Builder

setNodePools(int index, NodePool value)

public Cluster.Builder setNodePools(int index, NodePool value)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameters
NameDescription
indexint
valueNodePool
Returns
TypeDescription
Cluster.Builder

setNodePools(int index, NodePool.Builder builderForValue)

public Cluster.Builder setNodePools(int index, NodePool.Builder builderForValue)

The node pools associated with this cluster. This field should not be set if "node_config" or "initial_node_count" are specified.

repeated .google.container.v1.NodePool node_pools = 12;

Parameters
NameDescription
indexint
builderForValueNodePool.Builder
Returns
TypeDescription
Cluster.Builder

setNotificationConfig(NotificationConfig value)

public Cluster.Builder setNotificationConfig(NotificationConfig value)

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Parameter
NameDescription
valueNotificationConfig
Returns
TypeDescription
Cluster.Builder

setNotificationConfig(NotificationConfig.Builder builderForValue)

public Cluster.Builder setNotificationConfig(NotificationConfig.Builder builderForValue)

Notification configuration of the cluster.

.google.container.v1.NotificationConfig notification_config = 49;

Parameter
NameDescription
builderForValueNotificationConfig.Builder
Returns
TypeDescription
Cluster.Builder

setPrivateClusterConfig(PrivateClusterConfig value)

public Cluster.Builder setPrivateClusterConfig(PrivateClusterConfig value)

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Parameter
NameDescription
valuePrivateClusterConfig
Returns
TypeDescription
Cluster.Builder

setPrivateClusterConfig(PrivateClusterConfig.Builder builderForValue)

public Cluster.Builder setPrivateClusterConfig(PrivateClusterConfig.Builder builderForValue)

Configuration for private cluster.

.google.container.v1.PrivateClusterConfig private_cluster_config = 37;

Parameter
NameDescription
builderForValuePrivateClusterConfig.Builder
Returns
TypeDescription
Cluster.Builder

setReleaseChannel(ReleaseChannel value)

public Cluster.Builder setReleaseChannel(ReleaseChannel value)

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Parameter
NameDescription
valueReleaseChannel
Returns
TypeDescription
Cluster.Builder

setReleaseChannel(ReleaseChannel.Builder builderForValue)

public Cluster.Builder setReleaseChannel(ReleaseChannel.Builder builderForValue)

Release channel configuration. If left unspecified on cluster creation and a version is specified, the cluster is enrolled in the most mature release channel where the version is available (first checking STABLE, then REGULAR, and finally RAPID). Otherwise, if no release channel configuration and no version is specified, the cluster is enrolled in the REGULAR channel with its default version.

.google.container.v1.ReleaseChannel release_channel = 41;

Parameter
NameDescription
builderForValueReleaseChannel.Builder
Returns
TypeDescription
Cluster.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Cluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Cluster.Builder
Overrides

setResourceUsageExportConfig(ResourceUsageExportConfig value)

public Cluster.Builder setResourceUsageExportConfig(ResourceUsageExportConfig value)

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Parameter
NameDescription
valueResourceUsageExportConfig
Returns
TypeDescription
Cluster.Builder

setResourceUsageExportConfig(ResourceUsageExportConfig.Builder builderForValue)

public Cluster.Builder setResourceUsageExportConfig(ResourceUsageExportConfig.Builder builderForValue)

Configuration for exporting resource usages. Resource usage export is disabled when this config is unspecified.

.google.container.v1.ResourceUsageExportConfig resource_usage_export_config = 33;

Parameter
NameDescription
builderForValueResourceUsageExportConfig.Builder
Returns
TypeDescription
Cluster.Builder

setSecurityPostureConfig(SecurityPostureConfig value)

public Cluster.Builder setSecurityPostureConfig(SecurityPostureConfig value)

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Parameter
NameDescription
valueSecurityPostureConfig
Returns
TypeDescription
Cluster.Builder

setSecurityPostureConfig(SecurityPostureConfig.Builder builderForValue)

public Cluster.Builder setSecurityPostureConfig(SecurityPostureConfig.Builder builderForValue)

Enable/Disable Security Posture API features for the cluster.

.google.container.v1.SecurityPostureConfig security_posture_config = 145;

Parameter
NameDescription
builderForValueSecurityPostureConfig.Builder
Returns
TypeDescription
Cluster.Builder
public Cluster.Builder setSelfLink(String value)

[Output only] Server-defined URL for the resource.

string self_link = 100;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public Cluster.Builder setSelfLinkBytes(ByteString value)

[Output only] Server-defined URL for the resource.

string self_link = 100;

Parameter
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setServicesIpv4Cidr(String value)

public Cluster.Builder setServicesIpv4Cidr(String value)

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

string services_ipv4_cidr = 110;

Parameter
NameDescription
valueString

The servicesIpv4Cidr to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setServicesIpv4CidrBytes(ByteString value)

public Cluster.Builder setServicesIpv4CidrBytes(ByteString value)

[Output only] The IP address range of the Kubernetes services in this cluster, in CIDR notation (e.g. 1.2.3.4/29). Service addresses are typically put in the last /16 from the container CIDR.

string services_ipv4_cidr = 110;

Parameter
NameDescription
valueByteString

The bytes for servicesIpv4Cidr to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setShieldedNodes(ShieldedNodes value)

public Cluster.Builder setShieldedNodes(ShieldedNodes value)

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Parameter
NameDescription
valueShieldedNodes
Returns
TypeDescription
Cluster.Builder

setShieldedNodes(ShieldedNodes.Builder builderForValue)

public Cluster.Builder setShieldedNodes(ShieldedNodes.Builder builderForValue)

Shielded Nodes configuration.

.google.container.v1.ShieldedNodes shielded_nodes = 40;

Parameter
NameDescription
builderForValueShieldedNodes.Builder
Returns
TypeDescription
Cluster.Builder

setStatus(Cluster.Status value)

public Cluster.Builder setStatus(Cluster.Status value)

[Output only] The current status of this cluster.

.google.container.v1.Cluster.Status status = 107;

Parameter
NameDescription
valueCluster.Status

The status to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setStatusMessage(String value) (deprecated)

public Cluster.Builder setStatusMessage(String value)

Deprecated. google.container.v1.Cluster.status_message is deprecated. See google/container/v1/cluster_service.proto;l=1897

[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.

string status_message = 108 [deprecated = true];

Parameter
NameDescription
valueString

The statusMessage to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setStatusMessageBytes(ByteString value) (deprecated)

public Cluster.Builder setStatusMessageBytes(ByteString value)

Deprecated. google.container.v1.Cluster.status_message is deprecated. See google/container/v1/cluster_service.proto;l=1897

[Output only] Deprecated. Use conditions instead. Additional information about the current status of this cluster, if available.

string status_message = 108 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for statusMessage to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setStatusValue(int value)

public Cluster.Builder setStatusValue(int value)

[Output only] The current status of this cluster.

.google.container.v1.Cluster.Status status = 107;

Parameter
NameDescription
valueint

The enum numeric value on the wire for status to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setSubnetwork(String value)

public Cluster.Builder setSubnetwork(String value)

The name of the Google Compute Engine subnetwork to which the cluster is connected.

string subnetwork = 11;

Parameter
NameDescription
valueString

The subnetwork to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setSubnetworkBytes(ByteString value)

public Cluster.Builder setSubnetworkBytes(ByteString value)

The name of the Google Compute Engine subnetwork to which the cluster is connected.

string subnetwork = 11;

Parameter
NameDescription
valueByteString

The bytes for subnetwork to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setTpuIpv4CidrBlock(String value)

public Cluster.Builder setTpuIpv4CidrBlock(String value)

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g. 1.2.3.4/29).

string tpu_ipv4_cidr_block = 116;

Parameter
NameDescription
valueString

The tpuIpv4CidrBlock to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setTpuIpv4CidrBlockBytes(ByteString value)

public Cluster.Builder setTpuIpv4CidrBlockBytes(ByteString value)

[Output only] The IP address range of the Cloud TPUs in this cluster, in CIDR notation (e.g. 1.2.3.4/29).

string tpu_ipv4_cidr_block = 116;

Parameter
NameDescription
valueByteString

The bytes for tpuIpv4CidrBlock to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Cluster.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Cluster.Builder
Overrides

setVerticalPodAutoscaling(VerticalPodAutoscaling value)

public Cluster.Builder setVerticalPodAutoscaling(VerticalPodAutoscaling value)

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Parameter
NameDescription
valueVerticalPodAutoscaling
Returns
TypeDescription
Cluster.Builder

setVerticalPodAutoscaling(VerticalPodAutoscaling.Builder builderForValue)

public Cluster.Builder setVerticalPodAutoscaling(VerticalPodAutoscaling.Builder builderForValue)

Cluster-level Vertical Pod Autoscaling configuration.

.google.container.v1.VerticalPodAutoscaling vertical_pod_autoscaling = 39;

Parameter
NameDescription
builderForValueVerticalPodAutoscaling.Builder
Returns
TypeDescription
Cluster.Builder

setWorkloadIdentityConfig(WorkloadIdentityConfig value)

public Cluster.Builder setWorkloadIdentityConfig(WorkloadIdentityConfig value)

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Parameter
NameDescription
valueWorkloadIdentityConfig
Returns
TypeDescription
Cluster.Builder

setWorkloadIdentityConfig(WorkloadIdentityConfig.Builder builderForValue)

public Cluster.Builder setWorkloadIdentityConfig(WorkloadIdentityConfig.Builder builderForValue)

Configuration for the use of Kubernetes Service Accounts in GCP IAM policies.

.google.container.v1.WorkloadIdentityConfig workload_identity_config = 43;

Parameter
NameDescription
builderForValueWorkloadIdentityConfig.Builder
Returns
TypeDescription
Cluster.Builder

setZone(String value) (deprecated)

public Cluster.Builder setZone(String value)

Deprecated. google.container.v1.Cluster.zone is deprecated. See google/container/v1/cluster_service.proto;l=1852

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

string zone = 101 [deprecated = true];

Parameter
NameDescription
valueString

The zone to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.

setZoneBytes(ByteString value) (deprecated)

public Cluster.Builder setZoneBytes(ByteString value)

Deprecated. google.container.v1.Cluster.zone is deprecated. See google/container/v1/cluster_service.proto;l=1852

[Output only] The name of the Google Compute Engine zone in which the cluster resides. This field is deprecated, use location instead.

string zone = 101 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes for zone to set.

Returns
TypeDescription
Cluster.Builder

This builder for chaining.