Class NodeConfig.Builder (2.23.0)

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

Parameters that describe the nodes in a cluster.

GKE Autopilot clusters do not recognize parameters in NodeConfig. Use AutoprovisioningNodePoolDefaults instead.

Protobuf type google.container.v1beta1.NodeConfig

Implements

NodeConfigOrBuilder

Static Methods

getDescriptor()

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

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

clearAdvancedMachineFeatures()

public NodeConfig.Builder clearAdvancedMachineFeatures()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

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.

clearConfidentialNodes()

public NodeConfig.Builder clearConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
NodeConfig.Builder

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

clearEphemeralStorageLocalSsdConfig()

public NodeConfig.Builder clearEphemeralStorageLocalSsdConfig()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
NodeConfig.Builder

clearFastSocket()

public NodeConfig.Builder clearFastSocket()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
NodeConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcfsConfig()

public NodeConfig.Builder clearGcfsConfig()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
NodeConfig.Builder

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. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

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

clearLocalNvmeSsdBlockConfig()

public NodeConfig.Builder clearLocalNvmeSsdBlockConfig()

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

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.

clearLoggingConfig()

public NodeConfig.Builder clearLoggingConfig()

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Returns
TypeDescription
NodeConfig.Builder

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

clearResourceLabels()

public NodeConfig.Builder clearResourceLabels()
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

clearSoleTenantConfig()

public NodeConfig.Builder clearSoleTenantConfig()

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Returns
TypeDescription
NodeConfig.Builder

clearSpot()

public NodeConfig.Builder clearSpot()

Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.

bool spot = 32;

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

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

clearWindowsNodeConfig()

public NodeConfig.Builder clearWindowsNodeConfig()

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

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

containsResourceLabels(String key)

public boolean containsResourceLabels(String key)

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

map<string, string> resource_labels = 37;

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>

getAdvancedMachineFeatures()

public AdvancedMachineFeatures getAdvancedMachineFeatures()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Returns
TypeDescription
AdvancedMachineFeatures

The advancedMachineFeatures.

getAdvancedMachineFeaturesBuilder()

public AdvancedMachineFeatures.Builder getAdvancedMachineFeaturesBuilder()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Returns
TypeDescription
AdvancedMachineFeatures.Builder

getAdvancedMachineFeaturesOrBuilder()

public AdvancedMachineFeaturesOrBuilder getAdvancedMachineFeaturesOrBuilder()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Returns
TypeDescription
AdvancedMachineFeaturesOrBuilder

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.

getConfidentialNodes()

public ConfidentialNodes getConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
ConfidentialNodes

The confidentialNodes.

getConfidentialNodesBuilder()

public ConfidentialNodes.Builder getConfidentialNodesBuilder()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
ConfidentialNodes.Builder

getConfidentialNodesOrBuilder()

public ConfidentialNodesOrBuilder getConfidentialNodesOrBuilder()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
ConfidentialNodesOrBuilder

getDefaultInstanceForType()

public NodeConfig getDefaultInstanceForType()
Returns
TypeDescription
NodeConfig

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

getEphemeralStorageLocalSsdConfig()

public EphemeralStorageLocalSsdConfig getEphemeralStorageLocalSsdConfig()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
EphemeralStorageLocalSsdConfig

The ephemeralStorageLocalSsdConfig.

getEphemeralStorageLocalSsdConfigBuilder()

public EphemeralStorageLocalSsdConfig.Builder getEphemeralStorageLocalSsdConfigBuilder()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
EphemeralStorageLocalSsdConfig.Builder

getEphemeralStorageLocalSsdConfigOrBuilder()

public EphemeralStorageLocalSsdConfigOrBuilder getEphemeralStorageLocalSsdConfigOrBuilder()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
EphemeralStorageLocalSsdConfigOrBuilder

getFastSocket()

public FastSocket getFastSocket()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
FastSocket

The fastSocket.

getFastSocketBuilder()

public FastSocket.Builder getFastSocketBuilder()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
FastSocket.Builder

getFastSocketOrBuilder()

public FastSocketOrBuilder getFastSocketOrBuilder()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
FastSocketOrBuilder

getGcfsConfig()

public GcfsConfig getGcfsConfig()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
GcfsConfig

The gcfsConfig.

getGcfsConfigBuilder()

public GcfsConfig.Builder getGcfsConfigBuilder()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
GcfsConfig.Builder

getGcfsConfigOrBuilder()

public GcfsConfigOrBuilder getGcfsConfigOrBuilder()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
GcfsConfigOrBuilder

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. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

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. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

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

getLocalNvmeSsdBlockConfig()

public LocalNvmeSsdBlockConfig getLocalNvmeSsdBlockConfig()

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Returns
TypeDescription
LocalNvmeSsdBlockConfig

The localNvmeSsdBlockConfig.

getLocalNvmeSsdBlockConfigBuilder()

public LocalNvmeSsdBlockConfig.Builder getLocalNvmeSsdBlockConfigBuilder()

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Returns
TypeDescription
LocalNvmeSsdBlockConfig.Builder

getLocalNvmeSsdBlockConfigOrBuilder()

public LocalNvmeSsdBlockConfigOrBuilder getLocalNvmeSsdBlockConfigOrBuilder()

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Returns
TypeDescription
LocalNvmeSsdBlockConfigOrBuilder

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.

getLoggingConfig()

public NodePoolLoggingConfig getLoggingConfig()

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Returns
TypeDescription
NodePoolLoggingConfig

The loggingConfig.

getLoggingConfigBuilder()

public NodePoolLoggingConfig.Builder getLoggingConfigBuilder()

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Returns
TypeDescription
NodePoolLoggingConfig.Builder

getLoggingConfigOrBuilder()

public NodePoolLoggingConfigOrBuilder getLoggingConfigOrBuilder()

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Returns
TypeDescription
NodePoolLoggingConfigOrBuilder

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>

getMutableResourceLabels()

public Map<String,String> getMutableResourceLabels()

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

public ReservationAffinity getReservationAffinity()

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
ReservationAffinity

The reservationAffinity.

getReservationAffinityBuilder()

public ReservationAffinity.Builder getReservationAffinityBuilder()

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
ReservationAffinity.Builder

getReservationAffinityOrBuilder()

public ReservationAffinityOrBuilder getReservationAffinityOrBuilder()

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
ReservationAffinityOrBuilder

getResourceLabels()

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

getResourceLabelsCount()

public int getResourceLabelsCount()

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

map<string, string> resource_labels = 37;

Returns
TypeDescription
int

getResourceLabelsMap()

public Map<String,String> getResourceLabelsMap()

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

map<string, string> resource_labels = 37;

Returns
TypeDescription
Map<String,String>

getResourceLabelsOrDefault(String key, String defaultValue)

public String getResourceLabelsOrDefault(String key, String defaultValue)

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

map<string, string> resource_labels = 37;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getResourceLabelsOrThrow(String key)

public String getResourceLabelsOrThrow(String key)

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

map<string, string> resource_labels = 37;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getSandboxConfig()

public SandboxConfig getSandboxConfig()

Sandbox configuration for this node.

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

Returns
TypeDescription
SandboxConfig

The sandboxConfig.

getSandboxConfigBuilder()

public SandboxConfig.Builder getSandboxConfigBuilder()

Sandbox configuration for this node.

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

Returns
TypeDescription
SandboxConfig.Builder

getSandboxConfigOrBuilder()

public SandboxConfigOrBuilder getSandboxConfigOrBuilder()

Sandbox configuration for this node.

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

Returns
TypeDescription
SandboxConfigOrBuilder

getServiceAccount()

public String getServiceAccount()

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
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

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
ByteString

The bytes for serviceAccount.

getShieldedInstanceConfig()

public ShieldedInstanceConfig getShieldedInstanceConfig()

Shielded Instance options.

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

Returns
TypeDescription
ShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigBuilder()

public ShieldedInstanceConfig.Builder getShieldedInstanceConfigBuilder()

Shielded Instance options.

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

Returns
TypeDescription
ShieldedInstanceConfig.Builder

getShieldedInstanceConfigOrBuilder()

public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

Shielded Instance options.

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

Returns
TypeDescription
ShieldedInstanceConfigOrBuilder

getSoleTenantConfig()

public SoleTenantConfig getSoleTenantConfig()

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Returns
TypeDescription
SoleTenantConfig

The soleTenantConfig.

getSoleTenantConfigBuilder()

public SoleTenantConfig.Builder getSoleTenantConfigBuilder()

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Returns
TypeDescription
SoleTenantConfig.Builder

getSoleTenantConfigOrBuilder()

public SoleTenantConfigOrBuilder getSoleTenantConfigOrBuilder()

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Returns
TypeDescription
SoleTenantConfigOrBuilder

getSpot()

public boolean getSpot()

Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.

bool spot = 32;

Returns
TypeDescription
boolean

The spot.

getTags(int index)

public String getTags(int index)

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
indexint

The index of the element to return.

Returns
TypeDescription
String

The tags at the given index.

getTagsBytes(int index)

public ByteString getTagsBytes(int index)

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
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the tags at the given index.

getTagsCount()

public int getTagsCount()

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
int

The count of tags.

getTagsList()

public ProtocolStringList getTagsList()

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
ProtocolStringList

A list containing the tags.

getTaints(int index)

public NodeTaint getTaints(int index)

List of kubernetes taints to be applied to each node.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

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

Parameter
NameDescription
indexint
Returns
TypeDescription
NodeTaint

getTaintsBuilder(int index)

public NodeTaint.Builder getTaintsBuilder(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

getTaintsBuilderList()

public List<NodeTaint.Builder> getTaintsBuilderList()

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
List<Builder>

getTaintsCount()

public int getTaintsCount()

List of kubernetes taints to be applied to each node.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

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

Returns
TypeDescription
int

getTaintsList()

public List<NodeTaint> getTaintsList()

List of kubernetes taints to be applied to each node.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

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

Returns
TypeDescription
List<NodeTaint>

getTaintsOrBuilder(int index)

public NodeTaintOrBuilder getTaintsOrBuilder(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
NodeTaintOrBuilder

getTaintsOrBuilderList()

public List<? extends NodeTaintOrBuilder> getTaintsOrBuilderList()

List of kubernetes taints to be applied to each node.

For more information, including usage and the valid values, see: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/

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

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

getWindowsNodeConfig()

public WindowsNodeConfig getWindowsNodeConfig()

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Returns
TypeDescription
WindowsNodeConfig

The windowsNodeConfig.

getWindowsNodeConfigBuilder()

public WindowsNodeConfig.Builder getWindowsNodeConfigBuilder()

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Returns
TypeDescription
WindowsNodeConfig.Builder

getWindowsNodeConfigOrBuilder()

public WindowsNodeConfigOrBuilder getWindowsNodeConfigOrBuilder()

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Returns
TypeDescription
WindowsNodeConfigOrBuilder

getWorkloadMetadataConfig()

public WorkloadMetadataConfig getWorkloadMetadataConfig()

The workload metadata configuration for this node.

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

Returns
TypeDescription
WorkloadMetadataConfig

The workloadMetadataConfig.

getWorkloadMetadataConfigBuilder()

public WorkloadMetadataConfig.Builder getWorkloadMetadataConfigBuilder()

The workload metadata configuration for this node.

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

Returns
TypeDescription
WorkloadMetadataConfig.Builder

getWorkloadMetadataConfigOrBuilder()

public WorkloadMetadataConfigOrBuilder getWorkloadMetadataConfigOrBuilder()

The workload metadata configuration for this node.

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

Returns
TypeDescription
WorkloadMetadataConfigOrBuilder

hasAdvancedMachineFeatures()

public boolean hasAdvancedMachineFeatures()

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Returns
TypeDescription
boolean

Whether the advancedMachineFeatures field is set.

hasConfidentialNodes()

public boolean hasConfidentialNodes()

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Returns
TypeDescription
boolean

Whether the confidentialNodes field is set.

hasEphemeralStorageConfig()

public boolean hasEphemeralStorageConfig()

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
boolean

Whether the ephemeralStorageConfig field is set.

hasEphemeralStorageLocalSsdConfig()

public boolean hasEphemeralStorageLocalSsdConfig()

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Returns
TypeDescription
boolean

Whether the ephemeralStorageLocalSsdConfig field is set.

hasFastSocket()

public boolean hasFastSocket()

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Returns
TypeDescription
boolean

Whether the fastSocket field is set.

hasGcfsConfig()

public boolean hasGcfsConfig()

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Returns
TypeDescription
boolean

Whether the gcfsConfig field is set.

hasGvnic()

public boolean hasGvnic()

Enable or disable gvnic on the node pool.

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

Returns
TypeDescription
boolean

Whether the gvnic field is set.

hasKubeletConfig()

public boolean hasKubeletConfig()

Node kubelet configs.

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

Returns
TypeDescription
boolean

Whether the kubeletConfig field is set.

hasLinuxNodeConfig()

public boolean hasLinuxNodeConfig()

Parameters that can be configured on Linux nodes.

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

Returns
TypeDescription
boolean

Whether the linuxNodeConfig field is set.

hasLocalNvmeSsdBlockConfig()

public boolean hasLocalNvmeSsdBlockConfig()

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Returns
TypeDescription
boolean

Whether the localNvmeSsdBlockConfig field is set.

hasLoggingConfig()

public boolean hasLoggingConfig()

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Returns
TypeDescription
boolean

Whether the loggingConfig field is set.

hasReservationAffinity()

public boolean hasReservationAffinity()

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
boolean

Whether the reservationAffinity field is set.

hasSandboxConfig()

public boolean hasSandboxConfig()

Sandbox configuration for this node.

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

Returns
TypeDescription
boolean

Whether the sandboxConfig field is set.

hasShieldedInstanceConfig()

public boolean hasShieldedInstanceConfig()

Shielded Instance options.

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

Returns
TypeDescription
boolean

Whether the shieldedInstanceConfig field is set.

hasSoleTenantConfig()

public boolean hasSoleTenantConfig()

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Returns
TypeDescription
boolean

Whether the soleTenantConfig field is set.

hasWindowsNodeConfig()

public boolean hasWindowsNodeConfig()

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Returns
TypeDescription
boolean

Whether the windowsNodeConfig field is set.

hasWorkloadMetadataConfig()

public boolean hasWorkloadMetadataConfig()

The workload metadata configuration for this node.

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

Returns
TypeDescription
boolean

Whether the workloadMetadataConfig 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

mergeAdvancedMachineFeatures(AdvancedMachineFeatures value)

public NodeConfig.Builder mergeAdvancedMachineFeatures(AdvancedMachineFeatures value)

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Parameter
NameDescription
valueAdvancedMachineFeatures
Returns
TypeDescription
NodeConfig.Builder

mergeConfidentialNodes(ConfidentialNodes value)

public NodeConfig.Builder mergeConfidentialNodes(ConfidentialNodes value)

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Parameter
NameDescription
valueConfidentialNodes
Returns
TypeDescription
NodeConfig.Builder

mergeEphemeralStorageConfig(EphemeralStorageConfig value)

public NodeConfig.Builder mergeEphemeralStorageConfig(EphemeralStorageConfig value)

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

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

Parameter
NameDescription
valueEphemeralStorageConfig
Returns
TypeDescription
NodeConfig.Builder

mergeEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig value)

public NodeConfig.Builder mergeEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig value)

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Parameter
NameDescription
valueEphemeralStorageLocalSsdConfig
Returns
TypeDescription
NodeConfig.Builder

mergeFastSocket(FastSocket value)

public NodeConfig.Builder mergeFastSocket(FastSocket value)

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Parameter
NameDescription
valueFastSocket
Returns
TypeDescription
NodeConfig.Builder

mergeFrom(NodeConfig other)

public NodeConfig.Builder mergeFrom(NodeConfig other)
Parameter
NameDescription
otherNodeConfig
Returns
TypeDescription
NodeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGcfsConfig(GcfsConfig value)

public NodeConfig.Builder mergeGcfsConfig(GcfsConfig value)

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Parameter
NameDescription
valueGcfsConfig
Returns
TypeDescription
NodeConfig.Builder

mergeGvnic(VirtualNIC value)

public NodeConfig.Builder mergeGvnic(VirtualNIC value)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
valueVirtualNIC
Returns
TypeDescription
NodeConfig.Builder

mergeKubeletConfig(NodeKubeletConfig value)

public NodeConfig.Builder mergeKubeletConfig(NodeKubeletConfig value)

Node kubelet configs.

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

Parameter
NameDescription
valueNodeKubeletConfig
Returns
TypeDescription
NodeConfig.Builder

mergeLinuxNodeConfig(LinuxNodeConfig value)

public NodeConfig.Builder mergeLinuxNodeConfig(LinuxNodeConfig value)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
valueLinuxNodeConfig
Returns
TypeDescription
NodeConfig.Builder

mergeLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig value)

public NodeConfig.Builder mergeLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig value)

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Parameter
NameDescription
valueLocalNvmeSsdBlockConfig
Returns
TypeDescription
NodeConfig.Builder

mergeLoggingConfig(NodePoolLoggingConfig value)

public NodeConfig.Builder mergeLoggingConfig(NodePoolLoggingConfig value)

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Parameter
NameDescription
valueNodePoolLoggingConfig
Returns
TypeDescription
NodeConfig.Builder

mergeReservationAffinity(ReservationAffinity value)

public NodeConfig.Builder mergeReservationAffinity(ReservationAffinity value)

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;

Parameter
NameDescription
valueReservationAffinity
Returns
TypeDescription
NodeConfig.Builder

mergeSandboxConfig(SandboxConfig value)

public NodeConfig.Builder mergeSandboxConfig(SandboxConfig value)

Sandbox configuration for this node.

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

Parameter
NameDescription
valueSandboxConfig
Returns
TypeDescription
NodeConfig.Builder

mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

public NodeConfig.Builder mergeShieldedInstanceConfig(ShieldedInstanceConfig value)

Shielded Instance options.

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

Parameter
NameDescription
valueShieldedInstanceConfig
Returns
TypeDescription
NodeConfig.Builder

mergeSoleTenantConfig(SoleTenantConfig value)

public NodeConfig.Builder mergeSoleTenantConfig(SoleTenantConfig value)

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Parameter
NameDescription
valueSoleTenantConfig
Returns
TypeDescription
NodeConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWindowsNodeConfig(WindowsNodeConfig value)

public NodeConfig.Builder mergeWindowsNodeConfig(WindowsNodeConfig value)

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Parameter
NameDescription
valueWindowsNodeConfig
Returns
TypeDescription
NodeConfig.Builder

mergeWorkloadMetadataConfig(WorkloadMetadataConfig value)

public NodeConfig.Builder mergeWorkloadMetadataConfig(WorkloadMetadataConfig value)

The workload metadata configuration for this node.

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

Parameter
NameDescription
valueWorkloadMetadataConfig
Returns
TypeDescription
NodeConfig.Builder

putAllLabels(Map<String,String> values)

public NodeConfig.Builder putAllLabels(Map<String,String> values)

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
valuesMap<String,String>
Returns
TypeDescription
NodeConfig.Builder

putAllMetadata(Map<String,String> values)

public NodeConfig.Builder putAllMetadata(Map<String,String> values)

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
valuesMap<String,String>
Returns
TypeDescription
NodeConfig.Builder

putAllResourceLabels(Map<String,String> values)

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

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

map<string, string> resource_labels = 37;

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

putLabels(String key, String value)

public NodeConfig.Builder putLabels(String key, String value)

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
valueString
Returns
TypeDescription
NodeConfig.Builder

putMetadata(String key, String value)

public NodeConfig.Builder putMetadata(String key, String value)

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
valueString
Returns
TypeDescription
NodeConfig.Builder

putResourceLabels(String key, String value)

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

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

map<string, string> resource_labels = 37;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodeConfig.Builder

removeAccelerators(int index)

public NodeConfig.Builder removeAccelerators(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
NodeConfig.Builder

removeLabels(String key)

public NodeConfig.Builder removeLabels(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
NodeConfig.Builder

removeMetadata(String key)

public NodeConfig.Builder removeMetadata(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
NodeConfig.Builder

removeResourceLabels(String key)

public NodeConfig.Builder removeResourceLabels(String key)

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

map<string, string> resource_labels = 37;

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeConfig.Builder

removeTaints(int index)

public NodeConfig.Builder removeTaints(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
NodeConfig.Builder

setAccelerators(int index, AcceleratorConfig value)

public NodeConfig.Builder setAccelerators(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

setAccelerators(int index, AcceleratorConfig.Builder builderForValue)

public NodeConfig.Builder setAccelerators(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

setAdvancedMachineFeatures(AdvancedMachineFeatures value)

public NodeConfig.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures value)

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Parameter
NameDescription
valueAdvancedMachineFeatures
Returns
TypeDescription
NodeConfig.Builder

setAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)

public NodeConfig.Builder setAdvancedMachineFeatures(AdvancedMachineFeatures.Builder builderForValue)

Advanced features for the Compute Engine VM.

.google.container.v1beta1.AdvancedMachineFeatures advanced_machine_features = 26;

Parameter
NameDescription
builderForValueAdvancedMachineFeatures.Builder
Returns
TypeDescription
NodeConfig.Builder

setBootDiskKmsKey(String value)

public NodeConfig.Builder setBootDiskKmsKey(String value)

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;

Parameter
NameDescription
valueString

The bootDiskKmsKey to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setBootDiskKmsKeyBytes(ByteString value)

public NodeConfig.Builder setBootDiskKmsKeyBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for bootDiskKmsKey to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setConfidentialNodes(ConfidentialNodes value)

public NodeConfig.Builder setConfidentialNodes(ConfidentialNodes value)

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Parameter
NameDescription
valueConfidentialNodes
Returns
TypeDescription
NodeConfig.Builder

setConfidentialNodes(ConfidentialNodes.Builder builderForValue)

public NodeConfig.Builder setConfidentialNodes(ConfidentialNodes.Builder builderForValue)

Confidential nodes config. All the nodes in the node pool will be Confidential VM once enabled.

.google.container.v1beta1.ConfidentialNodes confidential_nodes = 35;

Parameter
NameDescription
builderForValueConfidentialNodes.Builder
Returns
TypeDescription
NodeConfig.Builder

setDiskSizeGb(int value)

public NodeConfig.Builder setDiskSizeGb(int value)

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;

Parameter
NameDescription
valueint

The diskSizeGb to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setDiskType(String value)

public NodeConfig.Builder setDiskType(String value)

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;

Parameter
NameDescription
valueString

The diskType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setDiskTypeBytes(ByteString value)

public NodeConfig.Builder setDiskTypeBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for diskType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setEphemeralStorageConfig(EphemeralStorageConfig value)

public NodeConfig.Builder setEphemeralStorageConfig(EphemeralStorageConfig value)

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

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

Parameter
NameDescription
valueEphemeralStorageConfig
Returns
TypeDescription
NodeConfig.Builder

setEphemeralStorageConfig(EphemeralStorageConfig.Builder builderForValue)

public NodeConfig.Builder setEphemeralStorageConfig(EphemeralStorageConfig.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueEphemeralStorageConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig value)

public NodeConfig.Builder setEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig value)

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Parameter
NameDescription
valueEphemeralStorageLocalSsdConfig
Returns
TypeDescription
NodeConfig.Builder

setEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig.Builder builderForValue)

public NodeConfig.Builder setEphemeralStorageLocalSsdConfig(EphemeralStorageLocalSsdConfig.Builder builderForValue)

Parameters for the node ephemeral storage using Local SSDs. If unspecified, ephemeral storage is backed by the boot disk. This field is functionally equivalent to the ephemeral_storage_config

.google.container.v1beta1.EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

Parameter
NameDescription
builderForValueEphemeralStorageLocalSsdConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setFastSocket(FastSocket value)

public NodeConfig.Builder setFastSocket(FastSocket value)

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Parameter
NameDescription
valueFastSocket
Returns
TypeDescription
NodeConfig.Builder

setFastSocket(FastSocket.Builder builderForValue)

public NodeConfig.Builder setFastSocket(FastSocket.Builder builderForValue)

Enable or disable NCCL fast socket for the node pool.

optional .google.container.v1beta1.FastSocket fast_socket = 36;

Parameter
NameDescription
builderForValueFastSocket.Builder
Returns
TypeDescription
NodeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGcfsConfig(GcfsConfig value)

public NodeConfig.Builder setGcfsConfig(GcfsConfig value)

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Parameter
NameDescription
valueGcfsConfig
Returns
TypeDescription
NodeConfig.Builder

setGcfsConfig(GcfsConfig.Builder builderForValue)

public NodeConfig.Builder setGcfsConfig(GcfsConfig.Builder builderForValue)

GCFS (Google Container File System) configs.

.google.container.v1beta1.GcfsConfig gcfs_config = 25;

Parameter
NameDescription
builderForValueGcfsConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setGvnic(VirtualNIC value)

public NodeConfig.Builder setGvnic(VirtualNIC value)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
valueVirtualNIC
Returns
TypeDescription
NodeConfig.Builder

setGvnic(VirtualNIC.Builder builderForValue)

public NodeConfig.Builder setGvnic(VirtualNIC.Builder builderForValue)

Enable or disable gvnic on the node pool.

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

Parameter
NameDescription
builderForValueVirtualNIC.Builder
Returns
TypeDescription
NodeConfig.Builder

setImageType(String value)

public NodeConfig.Builder setImageType(String value)

The image type to use for this node. Note that for a given image type, the latest version of it will be used. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

string image_type = 5;

Parameter
NameDescription
valueString

The imageType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setImageTypeBytes(ByteString value)

public NodeConfig.Builder setImageTypeBytes(ByteString value)

The image type to use for this node. Note that for a given image type, the latest version of it will be used. Please see https://cloud.google.com/kubernetes-engine/docs/concepts/node-images for available image types.

string image_type = 5;

Parameter
NameDescription
valueByteString

The bytes for imageType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setKubeletConfig(NodeKubeletConfig value)

public NodeConfig.Builder setKubeletConfig(NodeKubeletConfig value)

Node kubelet configs.

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

Parameter
NameDescription
valueNodeKubeletConfig
Returns
TypeDescription
NodeConfig.Builder

setKubeletConfig(NodeKubeletConfig.Builder builderForValue)

public NodeConfig.Builder setKubeletConfig(NodeKubeletConfig.Builder builderForValue)

Node kubelet configs.

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

Parameter
NameDescription
builderForValueNodeKubeletConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setLinuxNodeConfig(LinuxNodeConfig value)

public NodeConfig.Builder setLinuxNodeConfig(LinuxNodeConfig value)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
valueLinuxNodeConfig
Returns
TypeDescription
NodeConfig.Builder

setLinuxNodeConfig(LinuxNodeConfig.Builder builderForValue)

public NodeConfig.Builder setLinuxNodeConfig(LinuxNodeConfig.Builder builderForValue)

Parameters that can be configured on Linux nodes.

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

Parameter
NameDescription
builderForValueLinuxNodeConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig value)

public NodeConfig.Builder setLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig value)

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Parameter
NameDescription
valueLocalNvmeSsdBlockConfig
Returns
TypeDescription
NodeConfig.Builder

setLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig.Builder builderForValue)

public NodeConfig.Builder setLocalNvmeSsdBlockConfig(LocalNvmeSsdBlockConfig.Builder builderForValue)

Parameters for using raw-block Local NVMe SSDs.

.google.container.v1beta1.LocalNvmeSsdBlockConfig local_nvme_ssd_block_config = 40;

Parameter
NameDescription
builderForValueLocalNvmeSsdBlockConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setLocalSsdCount(int value)

public NodeConfig.Builder setLocalSsdCount(int value)

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;

Parameter
NameDescription
valueint

The localSsdCount to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setLoggingConfig(NodePoolLoggingConfig value)

public NodeConfig.Builder setLoggingConfig(NodePoolLoggingConfig value)

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Parameter
NameDescription
valueNodePoolLoggingConfig
Returns
TypeDescription
NodeConfig.Builder

setLoggingConfig(NodePoolLoggingConfig.Builder builderForValue)

public NodeConfig.Builder setLoggingConfig(NodePoolLoggingConfig.Builder builderForValue)

Logging configuration.

.google.container.v1beta1.NodePoolLoggingConfig logging_config = 38;

Parameter
NameDescription
builderForValueNodePoolLoggingConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setMachineType(String value)

public NodeConfig.Builder setMachineType(String value)

The name of a Google Compute Engine machine type.

If unspecified, the default machine type is e2-medium.

string machine_type = 1;

Parameter
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public NodeConfig.Builder setMachineTypeBytes(ByteString value)

The name of a Google Compute Engine machine type.

If unspecified, the default machine type is e2-medium.

string machine_type = 1;

Parameter
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setMinCpuPlatform(String value)

public NodeConfig.Builder setMinCpuPlatform(String value)

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;

Parameter
NameDescription
valueString

The minCpuPlatform to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setMinCpuPlatformBytes(ByteString value)

public NodeConfig.Builder setMinCpuPlatformBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for minCpuPlatform to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setNodeGroup(String value)

public NodeConfig.Builder setNodeGroup(String value)

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;

Parameter
NameDescription
valueString

The nodeGroup to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setNodeGroupBytes(ByteString value)

public NodeConfig.Builder setNodeGroupBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for nodeGroup to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setOauthScopes(int index, String value)

public NodeConfig.Builder setOauthScopes(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The oauthScopes to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setPreemptible(boolean value)

public NodeConfig.Builder setPreemptible(boolean value)

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;

Parameter
NameDescription
valueboolean

The preemptible to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

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

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

setReservationAffinity(ReservationAffinity value)

public NodeConfig.Builder setReservationAffinity(ReservationAffinity value)

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;

Parameter
NameDescription
valueReservationAffinity
Returns
TypeDescription
NodeConfig.Builder

setReservationAffinity(ReservationAffinity.Builder builderForValue)

public NodeConfig.Builder setReservationAffinity(ReservationAffinity.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueReservationAffinity.Builder
Returns
TypeDescription
NodeConfig.Builder

setSandboxConfig(SandboxConfig value)

public NodeConfig.Builder setSandboxConfig(SandboxConfig value)

Sandbox configuration for this node.

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

Parameter
NameDescription
valueSandboxConfig
Returns
TypeDescription
NodeConfig.Builder

setSandboxConfig(SandboxConfig.Builder builderForValue)

public NodeConfig.Builder setSandboxConfig(SandboxConfig.Builder builderForValue)

Sandbox configuration for this node.

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

Parameter
NameDescription
builderForValueSandboxConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setServiceAccount(String value)

public NodeConfig.Builder setServiceAccount(String value)

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;

Parameter
NameDescription
valueString

The serviceAccount to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public NodeConfig.Builder setServiceAccountBytes(ByteString value)

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;

Parameter
NameDescription
valueByteString

The bytes for serviceAccount to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setShieldedInstanceConfig(ShieldedInstanceConfig value)

public NodeConfig.Builder setShieldedInstanceConfig(ShieldedInstanceConfig value)

Shielded Instance options.

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

Parameter
NameDescription
valueShieldedInstanceConfig
Returns
TypeDescription
NodeConfig.Builder

setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)

public NodeConfig.Builder setShieldedInstanceConfig(ShieldedInstanceConfig.Builder builderForValue)

Shielded Instance options.

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

Parameter
NameDescription
builderForValueShieldedInstanceConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setSoleTenantConfig(SoleTenantConfig value)

public NodeConfig.Builder setSoleTenantConfig(SoleTenantConfig value)

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Parameter
NameDescription
valueSoleTenantConfig
Returns
TypeDescription
NodeConfig.Builder

setSoleTenantConfig(SoleTenantConfig.Builder builderForValue)

public NodeConfig.Builder setSoleTenantConfig(SoleTenantConfig.Builder builderForValue)

Parameters for node pools to be backed by shared sole tenant node groups.

.google.container.v1beta1.SoleTenantConfig sole_tenant_config = 42;

Parameter
NameDescription
builderForValueSoleTenantConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setSpot(boolean value)

public NodeConfig.Builder setSpot(boolean value)

Spot flag for enabling Spot VM, which is a rebrand of the existing preemptible flag.

bool spot = 32;

Parameter
NameDescription
valueboolean

The spot to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setTags(int index, String value)

public NodeConfig.Builder setTags(int index, 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;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The tags to set.

Returns
TypeDescription
NodeConfig.Builder

This builder for chaining.

setTaints(int index, NodeTaint value)

public NodeConfig.Builder setTaints(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

setTaints(int index, NodeTaint.Builder builderForValue)

public NodeConfig.Builder setTaints(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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWindowsNodeConfig(WindowsNodeConfig value)

public NodeConfig.Builder setWindowsNodeConfig(WindowsNodeConfig value)

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Parameter
NameDescription
valueWindowsNodeConfig
Returns
TypeDescription
NodeConfig.Builder

setWindowsNodeConfig(WindowsNodeConfig.Builder builderForValue)

public NodeConfig.Builder setWindowsNodeConfig(WindowsNodeConfig.Builder builderForValue)

Parameters that can be configured on Windows nodes.

.google.container.v1beta1.WindowsNodeConfig windows_node_config = 39;

Parameter
NameDescription
builderForValueWindowsNodeConfig.Builder
Returns
TypeDescription
NodeConfig.Builder

setWorkloadMetadataConfig(WorkloadMetadataConfig value)

public NodeConfig.Builder setWorkloadMetadataConfig(WorkloadMetadataConfig value)

The workload metadata configuration for this node.

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

Parameter
NameDescription
valueWorkloadMetadataConfig
Returns
TypeDescription
NodeConfig.Builder

setWorkloadMetadataConfig(WorkloadMetadataConfig.Builder builderForValue)

public NodeConfig.Builder setWorkloadMetadataConfig(WorkloadMetadataConfig.Builder builderForValue)

The workload metadata configuration for this node.

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

Parameter
NameDescription
builderForValueWorkloadMetadataConfig.Builder
Returns
TypeDescription
NodeConfig.Builder