Class Cluster.Builder

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

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)

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

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)

public Cluster.Builder addInstanceGroupUrls(String value)

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)

public Cluster.Builder addInstanceGroupUrlsBytes(ByteString value)

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

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

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()

public Cluster.Builder clearCurrentNodeCount()

[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()

public Cluster.Builder clearCurrentNodeVersion()

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

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.

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

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()

public Cluster.Builder clearInitialNodeCount()

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()

public Cluster.Builder clearInstanceGroupUrls()

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.

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

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.

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

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.

.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
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()

public Cluster.Builder clearStatusMessage()

[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()

public Cluster.Builder clearZone()

[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

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>

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()

public int getCurrentNodeCount()

[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()

public String getCurrentNodeVersion()

[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()

public ByteString getCurrentNodeVersionBytes()

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

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

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.

getInitialClusterVersion()

public String getInitialClusterVersion()

The initial Kubernetes version for this cluster. Valid versions are those found in validMasterVersions returned by getServerConfig. The version