Class NodeConfig.Builder

public static final class NodeConfig.Builder extends GeneratedMessageV3.Builder<NodeConfig.Builder> implements NodeConfigOrBuilder

Parameters that describe the nodes in a cluster.

Protobuf type google.container.v1beta1.NodeConfig

Implements

NodeConfigOrBuilder

Methods

addAccelerators(AcceleratorConfig value)

public NodeConfig.Builder addAccelerators(AcceleratorConfig value)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
valueAcceleratorConfig
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(AcceleratorConfig.Builder builderForValue)

public NodeConfig.Builder addAccelerators(AcceleratorConfig.Builder builderForValue)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(int index, AcceleratorConfig value)

public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig value)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameters
NameDescription
indexint
valueAcceleratorConfig
Returns
TypeDescription
NodeConfig.Builder

addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public NodeConfig.Builder addAccelerators(int index, AcceleratorConfig.Builder builderForValue)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameters
NameDescription
indexint
builderForValueAcceleratorConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

addAcceleratorsBuilder()

public AcceleratorConfig.Builder addAcceleratorsBuilder()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
AcceleratorConfig.Builder

addAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder addAcceleratorsBuilder(int index)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

public NodeConfig.Builder addAllAccelerators(Iterable<? extends AcceleratorConfig> values)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.AcceleratorConfig>
Returns
TypeDescription
NodeConfig.Builder

addAllOauthScopes(Iterable<String> values)

public NodeConfig.Builder addAllOauthScopes(Iterable<String> values)

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valuesIterable<String>

The oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addAllTags(Iterable<String> values)

public NodeConfig.Builder addAllTags(Iterable<String> values)

The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.

repeated string tags = 8;

Parameter
NameDescription
valuesIterable<String>

The tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addAllTaints(Iterable<? extends NodeTaint> values)

public NodeConfig.Builder addAllTaints(Iterable<? extends NodeTaint> values)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1beta1.NodeTaint>
Returns
TypeDescription
NodeConfig.Builder

addOauthScopes(String value)

public NodeConfig.Builder addOauthScopes(String value)

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valueString

The oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addOauthScopesBytes(ByteString value)

public NodeConfig.Builder addOauthScopesBytes(ByteString value)

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Parameter
NameDescription
valueByteString

The bytes of the oauthScopes to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTags(String value)

public NodeConfig.Builder addTags(String value)

The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.

repeated string tags = 8;

Parameter
NameDescription
valueString

The tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addTagsBytes(ByteString value)

public NodeConfig.Builder addTagsBytes(ByteString value)

The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.

repeated string tags = 8;

Parameter
NameDescription
valueByteString

The bytes of the tags to add.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

addTaints(NodeTaint value)

public NodeConfig.Builder addTaints(NodeTaint value)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
valueNodeTaint
Returns
TypeDescription
NodeConfig.Builder

addTaints(NodeTaint.Builder builderForValue)

public NodeConfig.Builder addTaints(NodeTaint.Builder builderForValue)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
builderForValueNodeTaint.Builder
Returns
TypeDescription
NodeConfig.Builder

addTaints(int index, NodeTaint value)

public NodeConfig.Builder addTaints(int index, NodeTaint value)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameters
NameDescription
indexint
valueNodeTaint
Returns
TypeDescription
NodeConfig.Builder

addTaints(int index, NodeTaint.Builder builderForValue)

public NodeConfig.Builder addTaints(int index, NodeTaint.Builder builderForValue)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameters
NameDescription
indexint
builderForValueNodeTaint.Builder
Returns
TypeDescription
NodeConfig.Builder

addTaintsBuilder()

public NodeTaint.Builder addTaintsBuilder()

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Returns
TypeDescription
NodeTaint.Builder

addTaintsBuilder(int index)

public NodeTaint.Builder addTaintsBuilder(int index)

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeTaint.Builder

build()

public NodeConfig build()
Returns
TypeDescription
NodeConfig

buildPartial()

public NodeConfig buildPartial()
Returns
TypeDescription
NodeConfig

clear()

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

clearAccelerators()

public NodeConfig.Builder clearAccelerators()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
NodeConfig.Builder

clearBootDiskKmsKey()

public NodeConfig.Builder clearBootDiskKmsKey()

The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

string boot_disk_kms_key = 23;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearDiskSizeGb()

public NodeConfig.Builder clearDiskSizeGb()

Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.

int32 disk_size_gb = 2;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearDiskType()

public NodeConfig.Builder clearDiskType()

Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'

string disk_type = 12;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearEphemeralStorageConfig()

public NodeConfig.Builder clearEphemeralStorageConfig()

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.

.google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24;

Returns
TypeDescription
NodeConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGvnic()

public NodeConfig.Builder clearGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
NodeConfig.Builder

clearImageType()

public NodeConfig.Builder clearImageType()

The image type to use for this node. Note that for a given image type, the latest version of it will be used.

string image_type = 5;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearKubeletConfig()

public NodeConfig.Builder clearKubeletConfig()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 22;

Returns
TypeDescription
NodeConfig.Builder

clearLabels()

public NodeConfig.Builder clearLabels()
Returns
TypeDescription
NodeConfig.Builder

clearLinuxNodeConfig()

public NodeConfig.Builder clearLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 21;

Returns
TypeDescription
NodeConfig.Builder

clearLocalSsdCount()

public NodeConfig.Builder clearLocalSsdCount()

The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.

int32 local_ssd_count = 7;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearMachineType()

public NodeConfig.Builder clearMachineType()

The name of a Google Compute Engine machine type. If unspecified, the default machine type is e2-medium.

string machine_type = 1;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearMetadata()

public NodeConfig.Builder clearMetadata()
Returns
TypeDescription
NodeConfig.Builder

clearMinCpuPlatform()

public NodeConfig.Builder clearMinCpuPlatform()

Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read how to specify min CPU platform

string min_cpu_platform = 13;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearNodeGroup()

public NodeConfig.Builder clearNodeGroup()

Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on sole tenant nodes.

string node_group = 18;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearOauthScopes()

public NodeConfig.Builder clearOauthScopes()

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreemptible()

public NodeConfig.Builder clearPreemptible()

Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.

bool preemptible = 10;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearReservationAffinity()

public NodeConfig.Builder clearReservationAffinity()

The optional reservation affinity. Setting this field will apply the specified Zonal Compute Reservation to this node pool.

.google.container.v1beta1.ReservationAffinity reservation_affinity = 19;

Returns
TypeDescription
NodeConfig.Builder

clearSandboxConfig()

public NodeConfig.Builder clearSandboxConfig()

Sandbox configuration for this node.

.google.container.v1beta1.SandboxConfig sandbox_config = 17;

Returns
TypeDescription
NodeConfig.Builder

clearServiceAccount()

public NodeConfig.Builder clearServiceAccount()

The Google Cloud Platform Service Account to be used by the node VMs. Specify the email address of the Service Account; otherwise, if no Service Account is specified, the "default" service account is used.

string service_account = 9;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearShieldedInstanceConfig()

public NodeConfig.Builder clearShieldedInstanceConfig()

Shielded Instance options.

.google.container.v1beta1.ShieldedInstanceConfig shielded_instance_config = 20;

Returns
TypeDescription
NodeConfig.Builder

clearTags()

public NodeConfig.Builder clearTags()

The list of instance tags applied to all nodes. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during cluster or node pool creation. Each tag within the list must comply with RFC1035.

repeated string tags = 8;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

clearTaints()

public NodeConfig.Builder clearTaints()

List of kubernetes taints to be applied to each node. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

repeated .google.container.v1beta1.NodeTaint taints = 15;

Returns
TypeDescription
NodeConfig.Builder

clearWorkloadMetadataConfig()

public NodeConfig.Builder clearWorkloadMetadataConfig()

The workload metadata configuration for this node.

.google.container.v1beta1.WorkloadMetadataConfig workload_metadata_config = 14;

Returns
TypeDescription
NodeConfig.Builder

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMetadata(String key)

public boolean containsMetadata(String key)

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:

  • "cluster-location"
  • "cluster-name"
  • "cluster-uid"
  • "configure-sh"
  • "containerd-configure-sh"
  • "enable-oslogin"
  • "gci-ensure-gke-docker"
  • "gci-metrics-enabled"
  • "gci-update-strategy"
  • "instance-template"
  • "kube-env"
  • "startup-script"
  • "user-data"
  • "disable-address-manager"
  • "windows-startup-script-ps1"
  • "common-psm1"
  • "k8s-node-setup-psm1"
  • "install-ssh-psm1"
  • "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.

map<string, string> metadata = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAccelerators(int index)

public AcceleratorConfig getAccelerators(int index)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig

getAcceleratorsBuilder(int index)

public AcceleratorConfig.Builder getAcceleratorsBuilder(int index)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfig.Builder

getAcceleratorsBuilderList()

public List<AcceleratorConfig.Builder> getAcceleratorsBuilderList()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
List<Builder>

getAcceleratorsCount()

public int getAcceleratorsCount()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
int

getAcceleratorsList()

public List<AcceleratorConfig> getAcceleratorsList()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
List<AcceleratorConfig>

getAcceleratorsOrBuilder(int index)

public AcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Parameter
NameDescription
indexint
Returns
TypeDescription
AcceleratorConfigOrBuilder

getAcceleratorsOrBuilderList()

public List<? extends AcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()

A list of hardware accelerators to be attached to each node. See https://cloud.google.com/compute/docs/gpus for more information about support for GPUs.

repeated .google.container.v1beta1.AcceleratorConfig accelerators = 11;

Returns
TypeDescription
List<? extends com.google.container.v1beta1.AcceleratorConfigOrBuilder>

getBootDiskKmsKey()

public String getBootDiskKmsKey()

The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

string boot_disk_kms_key = 23;

Returns
TypeDescription
String

The bootDiskKmsKey.

getBootDiskKmsKeyBytes()

public ByteString getBootDiskKmsKeyBytes()

The Customer Managed Encryption Key used to encrypt the boot disk attached to each node in the node pool. This should be of the form projects/[KEY_PROJECT_ID]/locations/[LOCATION]/keyRings/[RING_NAME]/cryptoKeys/[KEY_NAME]. For more information about protecting resources with Cloud KMS Keys please see: https://cloud.google.com/compute/docs/disks/customer-managed-encryption

string boot_disk_kms_key = 23;

Returns
TypeDescription
ByteString

The bytes for bootDiskKmsKey.

getDefaultInstanceForType()

public NodeConfig getDefaultInstanceForType()
Returns
TypeDescription
NodeConfig

getDescriptor()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDiskSizeGb()

public int getDiskSizeGb()

Size of the disk attached to each node, specified in GB. The smallest allowed disk size is 10GB. If unspecified, the default disk size is 100GB.

int32 disk_size_gb = 2;

Returns
TypeDescription
int

The diskSizeGb.

getDiskType()

public String getDiskType()

Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'

string disk_type = 12;

Returns
TypeDescription
String

The diskType.

getDiskTypeBytes()

public ByteString getDiskTypeBytes()

Type of the disk attached to each node (e.g. 'pd-standard', 'pd-ssd' or 'pd-balanced') If unspecified, the default disk type is 'pd-standard'

string disk_type = 12;

Returns
TypeDescription
ByteString

The bytes for diskType.

getEphemeralStorageConfig()

public EphemeralStorageConfig getEphemeralStorageConfig()

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.

.google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24;

Returns
TypeDescription
EphemeralStorageConfig

The ephemeralStorageConfig.

getEphemeralStorageConfigBuilder()

public EphemeralStorageConfig.Builder getEphemeralStorageConfigBuilder()

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.

.google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24;

Returns
TypeDescription
EphemeralStorageConfig.Builder

getEphemeralStorageConfigOrBuilder()

public EphemeralStorageConfigOrBuilder getEphemeralStorageConfigOrBuilder()

Parameters for the ephemeral storage filesystem. If unspecified, ephemeral storage is backed by the boot disk.

.google.container.v1beta1.EphemeralStorageConfig ephemeral_storage_config = 24;

Returns
TypeDescription
EphemeralStorageConfigOrBuilder

getGvnic()

public VirtualNIC getGvnic()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNIC

The gvnic.

getGvnicBuilder()

public VirtualNIC.Builder getGvnicBuilder()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNIC.Builder

getGvnicOrBuilder()

public VirtualNICOrBuilder getGvnicOrBuilder()

Enable or disable gvnic on the node pool.

.google.container.v1beta1.VirtualNIC gvnic = 29;

Returns
TypeDescription
VirtualNICOrBuilder

getImageType()

public String getImageType()

The image type to use for this node. Note that for a given image type, the latest version of it will be used.

string image_type = 5;

Returns
TypeDescription
String

The imageType.

getImageTypeBytes()

public ByteString getImageTypeBytes()

The image type to use for this node. Note that for a given image type, the latest version of it will be used.

string image_type = 5;

Returns
TypeDescription
ByteString

The bytes for imageType.

getKubeletConfig()

public NodeKubeletConfig getKubeletConfig()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 22;

Returns
TypeDescription
NodeKubeletConfig

The kubeletConfig.

getKubeletConfigBuilder()

public NodeKubeletConfig.Builder getKubeletConfigBuilder()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 22;

Returns
TypeDescription
NodeKubeletConfig.Builder

getKubeletConfigOrBuilder()

public NodeKubeletConfigOrBuilder getKubeletConfigOrBuilder()

Node kubelet configs.

.google.container.v1beta1.NodeKubeletConfig kubelet_config = 22;

Returns
TypeDescription
NodeKubeletConfigOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

map<string, string> labels = 6;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

map<string, string> labels = 6;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

map<string, string> labels = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

The map of Kubernetes labels (key/value pairs) to be applied to each node. These will added in addition to any default label(s) that Kubernetes may apply to the node. In case of conflict in label keys, the applied set may differ depending on the Kubernetes version -- it's best to assume the behavior is undefined and conflicts should be avoided. For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/

map<string, string> labels = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLinuxNodeConfig()

public LinuxNodeConfig getLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 21;

Returns
TypeDescription
LinuxNodeConfig

The linuxNodeConfig.

getLinuxNodeConfigBuilder()

public LinuxNodeConfig.Builder getLinuxNodeConfigBuilder()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 21;

Returns
TypeDescription
LinuxNodeConfig.Builder

getLinuxNodeConfigOrBuilder()

public LinuxNodeConfigOrBuilder getLinuxNodeConfigOrBuilder()

Parameters that can be configured on Linux nodes.

.google.container.v1beta1.LinuxNodeConfig linux_node_config = 21;

Returns
TypeDescription
LinuxNodeConfigOrBuilder

getLocalSsdCount()

public int getLocalSsdCount()

The number of local SSD disks to be attached to the node. The limit for this value is dependent upon the maximum number of disks available on a machine per zone. See: https://cloud.google.com/compute/docs/disks/local-ssd for more information.

int32 local_ssd_count = 7;

Returns
TypeDescription
int

The localSsdCount.

getMachineType()

public String getMachineType()

The name of a Google Compute Engine machine type. If unspecified, the default machine type is e2-medium.

string machine_type = 1;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The name of a Google Compute Engine machine type. If unspecified, the default machine type is e2-medium.

string machine_type = 1;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:

  • "cluster-location"
  • "cluster-name"
  • "cluster-uid"
  • "configure-sh"
  • "containerd-configure-sh"
  • "enable-oslogin"
  • "gci-ensure-gke-docker"
  • "gci-metrics-enabled"
  • "gci-update-strategy"
  • "instance-template"
  • "kube-env"
  • "startup-script"
  • "user-data"
  • "disable-address-manager"
  • "windows-startup-script-ps1"
  • "common-psm1"
  • "k8s-node-setup-psm1"
  • "install-ssh-psm1"
  • "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.

map<string, string> metadata = 4;

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:

  • "cluster-location"
  • "cluster-name"
  • "cluster-uid"
  • "configure-sh"
  • "containerd-configure-sh"
  • "enable-oslogin"
  • "gci-ensure-gke-docker"
  • "gci-metrics-enabled"
  • "gci-update-strategy"
  • "instance-template"
  • "kube-env"
  • "startup-script"
  • "user-data"
  • "disable-address-manager"
  • "windows-startup-script-ps1"
  • "common-psm1"
  • "k8s-node-setup-psm1"
  • "install-ssh-psm1"
  • "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.

map<string, string> metadata = 4;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:

  • "cluster-location"
  • "cluster-name"
  • "cluster-uid"
  • "configure-sh"
  • "containerd-configure-sh"
  • "enable-oslogin"
  • "gci-ensure-gke-docker"
  • "gci-metrics-enabled"
  • "gci-update-strategy"
  • "instance-template"
  • "kube-env"
  • "startup-script"
  • "user-data"
  • "disable-address-manager"
  • "windows-startup-script-ps1"
  • "common-psm1"
  • "k8s-node-setup-psm1"
  • "install-ssh-psm1"
  • "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.

map<string, string> metadata = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

The metadata key/value pairs assigned to instances in the cluster. Keys must conform to the regexp [a-zA-Z0-9-_]+ and be less than 128 bytes in length. These are reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project or be one of the reserved keys:

  • "cluster-location"
  • "cluster-name"
  • "cluster-uid"
  • "configure-sh"
  • "containerd-configure-sh"
  • "enable-oslogin"
  • "gci-ensure-gke-docker"
  • "gci-metrics-enabled"
  • "gci-update-strategy"
  • "instance-template"
  • "kube-env"
  • "startup-script"
  • "user-data"
  • "disable-address-manager"
  • "windows-startup-script-ps1"
  • "common-psm1"
  • "k8s-node-setup-psm1"
  • "install-ssh-psm1"
  • "user-profile-psm1" Values are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on them is that each value's size must be less than or equal to 32 KB. The total size of all keys and values must be less than 512 KB.

map<string, string> metadata = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMinCpuPlatform()

public String getMinCpuPlatform()

Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read how to specify min CPU platform

string min_cpu_platform = 13;

Returns
TypeDescription
String

The minCpuPlatform.

getMinCpuPlatformBytes()

public ByteString getMinCpuPlatformBytes()

Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or newer CPU platform. Applicable values are the friendly names of CPU platforms, such as minCpuPlatform: "Intel Haswell" or minCpuPlatform: "Intel Sandy Bridge". For more information, read how to specify min CPU platform

string min_cpu_platform = 13;

Returns
TypeDescription
ByteString

The bytes for minCpuPlatform.

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableMetadata()

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getNodeGroup()

public String getNodeGroup()

Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on sole tenant nodes.

string node_group = 18;

Returns
TypeDescription
String

The nodeGroup.

getNodeGroupBytes()

public ByteString getNodeGroupBytes()

Setting this field will assign instances of this pool to run on the specified node group. This is useful for running workloads on sole tenant nodes.

string node_group = 18;

Returns
TypeDescription
ByteString

The bytes for nodeGroup.

getOauthScopes(int index)

public String getOauthScopes(int index)

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The oauthScopes at the given index.

getOauthScopesBytes(int index)

public ByteString getOauthScopesBytes(int index)

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the oauthScopes at the given index.

getOauthScopesCount()

public int getOauthScopesCount()

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Returns
TypeDescription
int

The count of oauthScopes.

getOauthScopesList()

public ProtocolStringList getOauthScopesList()

The set of Google API scopes to be made available on all of the node VMs under the "default" service account. The following scopes are recommended, but not required, and by default are not included:

repeated string oauth_scopes = 3;

Returns
TypeDescription
ProtocolStringList

A list containing the oauthScopes.

getPreemptible()

public boolean getPreemptible()

Whether the nodes are created as preemptible VM instances. See: https://cloud.google.com/compute/docs/instances/preemptible for more inforamtion about preemptible VM instances.

bool preemptible = 10;

Returns
TypeDescription
boolean

The preemptible.

getReservationAffinity()