- 4.51.0 (latest)
- 4.50.0
- 4.49.0
- 4.48.0
- 4.46.0
- 4.45.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.34.0
- 4.33.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.21.0
- 4.20.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.6.0
- 4.5.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.8
- 3.1.2
- 3.0.3
- 2.3.1
public static final class GkeNodePoolConfig.GkeNodeConfig.Builder extends GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder> implements GkeNodePoolConfig.GkeNodeConfigOrBuilder
Parameters that describe cluster nodes.
Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GkeNodePoolConfig.GkeNodeConfig.BuilderImplements
GkeNodePoolConfig.GkeNodeConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
builderForValue | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
addAcceleratorsBuilder()
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
addAcceleratorsBuilder(int index)
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder(int index)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
addAllAccelerators(Iterable<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> values)
public GkeNodePoolConfig.GkeNodeConfig.Builder addAllAccelerators(Iterable<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> values)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values | Iterable<? extends com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.GkeNodeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
build()
public GkeNodePoolConfig.GkeNodeConfig build()
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig |
buildPartial()
public GkeNodePoolConfig.GkeNodeConfig buildPartial()
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig |
clear()
public GkeNodePoolConfig.GkeNodeConfig.Builder clear()
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
clearAccelerators()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearAccelerators()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
clearBootDiskKmsKey()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearBootDiskKmsKey()
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public GkeNodePoolConfig.GkeNodeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
clearLocalSsdCount()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearLocalSsdCount()
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clearMachineType()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearMachineType()
Optional. The name of a Compute Engine machine type.
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clearMinCpuPlatform()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearMinCpuPlatform()
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GkeNodePoolConfig.GkeNodeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
clearPreemptible()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearPreemptible()
Optional. Whether the nodes are created as legacy preemptible VM
instances.
Also see
Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clearSpot()
public GkeNodePoolConfig.GkeNodeConfig.Builder clearSpot()
Optional. Whether the nodes are created as Spot VM instances.
Spot VMs are the latest update to legacy
preemptible
VMs.
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
clone()
public GkeNodePoolConfig.GkeNodeConfig.Builder clone()
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
getAccelerators(int index)
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig |
getAcceleratorsBuilder(int index)
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder getAcceleratorsBuilder(int index)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
getAcceleratorsBuilderList()
public List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> getAcceleratorsBuilderList()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<Builder> |
getAcceleratorsCount()
public int getAcceleratorsCount()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
getAcceleratorsList()
public List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> getAcceleratorsList()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<GkeNodePoolAcceleratorConfig> |
getAcceleratorsOrBuilder(int index)
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder |
getAcceleratorsOrBuilderList()
public List<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> |
getBootDiskKmsKey()
public String getBootDiskKmsKey()
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The bootDiskKmsKey. |
getBootDiskKmsKeyBytes()
public ByteString getBootDiskKmsKeyBytes()
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for bootDiskKmsKey. |
getDefaultInstanceForType()
public GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getLocalSsdCount()
public int getLocalSsdCount()
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int | The localSsdCount. |
getMachineType()
public String getMachineType()
Optional. The name of a Compute Engine machine type.
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The machineType. |
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
Optional. The name of a Compute Engine machine type.
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for machineType. |
getMinCpuPlatform()
public String getMinCpuPlatform()
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String | The minCpuPlatform. |
getMinCpuPlatformBytes()
public ByteString getMinCpuPlatformBytes()
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for minCpuPlatform. |
getPreemptible()
public boolean getPreemptible()
Optional. Whether the nodes are created as legacy preemptible VM
instances.
Also see
Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean | The preemptible. |
getSpot()
public boolean getSpot()
Optional. Whether the nodes are created as Spot VM instances.
Spot VMs are the latest update to legacy
preemptible
VMs.
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean | The spot. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(GkeNodePoolConfig.GkeNodeConfig other)
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(GkeNodePoolConfig.GkeNodeConfig other)
Parameter | |
---|---|
Name | Description |
other | GkeNodePoolConfig.GkeNodeConfig |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.GkeNodeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
removeAccelerators(int index)
public GkeNodePoolConfig.GkeNodeConfig.Builder removeAccelerators(int index)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
value | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
public GkeNodePoolConfig.GkeNodeConfig.Builder setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of hardware accelerators to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
setBootDiskKmsKey(String value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKey(String value)
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | String The bootDiskKmsKey to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setBootDiskKmsKeyBytes(ByteString value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKeyBytes(ByteString value)
Optional. The Customer Managed Encryption Key (CMEK) used to encrypt the boot disk attached to each node in the node pool. Specify the key using the following format: <code>projects/<var>KEY_PROJECT_ID</var>/locations/<var>LOCATION</var>/keyRings/<var>RING_NAME</var>/cryptoKeys/<var>KEY_NAME</var></code>.
string boot_disk_kms_key = 23 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for bootDiskKmsKey to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
setLocalSsdCount(int value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setLocalSsdCount(int value)
Optional. The number of local SSD disks to attach to the node, which is limited by the maximum number of disks allowable per zone (see Adding Local SSDs).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | int The localSsdCount to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setMachineType(String value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineType(String value)
Optional. The name of a Compute Engine machine type.
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | String The machineType to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setMachineTypeBytes(ByteString value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineTypeBytes(ByteString value)
Optional. The name of a Compute Engine machine type.
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for machineType to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setMinCpuPlatform(String value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatform(String value)
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | String The minCpuPlatform to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setMinCpuPlatformBytes(ByteString value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatformBytes(ByteString value)
Optional. Minimum CPU platform to be used by this instance. The instance may be scheduled on the specified or a newer CPU platform. Specify the friendly names of CPU platforms, such as "Intel Haswell"` or Intel Sandy Bridge".
string min_cpu_platform = 13 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for minCpuPlatform to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setPreemptible(boolean value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setPreemptible(boolean value)
Optional. Whether the nodes are created as legacy preemptible VM
instances.
Also see
Spot
VMs, preemptible VM instances without a maximum lifetime. Legacy and Spot
preemptible nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | boolean The preemptible to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |
setSpot(boolean value)
public GkeNodePoolConfig.GkeNodeConfig.Builder setSpot(boolean value)
Optional. Whether the nodes are created as Spot VM instances.
Spot VMs are the latest update to legacy
preemptible
VMs.
Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible
nodes cannot be used in a node pool with the CONTROLLER
role
or in the DEFAULT node pool if the CONTROLLER role is not assigned (the
DEFAULT node pool will assume the CONTROLLER role).
bool spot = 32 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value | boolean The spot to set. |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.GkeNodeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
GkeNodePoolConfig.GkeNodeConfig.Builder |