Package com.google.cloud.dataproc.v1
Class GkeNodePoolConfig.GkeNodeConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
- com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.Builder
-
- All Implemented Interfaces:
GkeNodePoolConfig.GkeNodeConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GkeNodePoolConfig.GkeNodeConfig
public static final class GkeNodePoolConfig.GkeNodeConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder> implements GkeNodePoolConfig.GkeNodeConfigOrBuilder
Parameters that describe cluster nodes.
Protobuf typegoogle.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
clear
public GkeNodePoolConfig.GkeNodeConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
getDefaultInstanceForType
public GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GkeNodePoolConfig.GkeNodeConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GkeNodePoolConfig.GkeNodeConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GkeNodePoolConfig.GkeNodeConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
setField
public GkeNodePoolConfig.GkeNodeConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
clearField
public GkeNodePoolConfig.GkeNodeConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
clearOneof
public GkeNodePoolConfig.GkeNodeConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
setRepeatedField
public GkeNodePoolConfig.GkeNodeConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
addRepeatedField
public GkeNodePoolConfig.GkeNodeConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(GkeNodePoolConfig.GkeNodeConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
- Throws:
IOException
-
getMachineType
public String getMachineType()
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMachineType
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMachineTypeBytes
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The bytes for machineType.
-
setMachineType
public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineType(String value)
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public GkeNodePoolConfig.GkeNodeConfig.Builder clearMachineType()
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public GkeNodePoolConfig.GkeNodeConfig.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
Optional. The name of a Compute Engine [machine type](https://cloud.google.com/compute/docs/machine-types).
string machine_type = 1 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
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](https://cloud.google.com/compute/docs/disks/local-ssd)).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLocalSsdCount
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The localSsdCount.
-
setLocalSsdCount
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](https://cloud.google.com/compute/docs/disks/local-ssd)).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
- Parameters:
value
- The localSsdCount to set.- Returns:
- This builder for chaining.
-
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](https://cloud.google.com/compute/docs/disks/local-ssd)).
int32 local_ssd_count = 7 [(.google.api.field_behavior) = OPTIONAL];
- Returns:
- This builder for chaining.
-
getPreemptible
public boolean getPreemptible()
Optional. Whether the nodes are created as legacy [preemptible VM instances] (https://cloud.google.com/compute/docs/instances/preemptible). Also see [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.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] (/dataproc/docs/reference/rest/v1/projects.regions.clusters#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];
- Specified by:
getPreemptible
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The preemptible.
-
setPreemptible
public GkeNodePoolConfig.GkeNodeConfig.Builder setPreemptible(boolean value)
Optional. Whether the nodes are created as legacy [preemptible VM instances] (https://cloud.google.com/compute/docs/instances/preemptible). Also see [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.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] (/dataproc/docs/reference/rest/v1/projects.regions.clusters#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];
- Parameters:
value
- The preemptible to set.- Returns:
- This builder for chaining.
-
clearPreemptible
public GkeNodePoolConfig.GkeNodeConfig.Builder clearPreemptible()
Optional. Whether the nodes are created as legacy [preemptible VM instances] (https://cloud.google.com/compute/docs/instances/preemptible). Also see [Spot][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.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] (/dataproc/docs/reference/rest/v1/projects.regions.clusters#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:
- This builder for chaining.
-
getAcceleratorsList
public List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> getAcceleratorsList()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAcceleratorsList
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
-
getAcceleratorsCount
public int getAcceleratorsCount()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAcceleratorsCount
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
-
getAccelerators
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig getAccelerators(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAccelerators
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
-
setAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
setAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder setAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig value)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder addAccelerators(int index, GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder builderForValue)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAllAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder addAllAccelerators(Iterable<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfig> values)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
clearAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder clearAccelerators()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
removeAccelerators
public GkeNodePoolConfig.GkeNodeConfig.Builder removeAccelerators(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsBuilder
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder getAcceleratorsBuilder(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsOrBuilder
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder getAcceleratorsOrBuilder(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAcceleratorsOrBuilder
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
-
getAcceleratorsOrBuilderList
public List<? extends GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder> getAcceleratorsOrBuilderList()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAcceleratorsOrBuilderList
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
-
addAcceleratorsBuilder
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
addAcceleratorsBuilder
public GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder addAcceleratorsBuilder(int index)
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getAcceleratorsBuilderList
public List<GkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder> getAcceleratorsBuilderList()
Optional. A list of [hardware accelerators](https://cloud.google.com/compute/docs/gpus) to attach to each node.
repeated .google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig accelerators = 11 [(.google.api.field_behavior) = OPTIONAL];
-
getMinCpuPlatform
public String getMinCpuPlatform()
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-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];
- Specified by:
getMinCpuPlatform
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The minCpuPlatform.
-
getMinCpuPlatformBytes
public com.google.protobuf.ByteString getMinCpuPlatformBytes()
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-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];
- Specified by:
getMinCpuPlatformBytes
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The bytes for minCpuPlatform.
-
setMinCpuPlatform
public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatform(String value)
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-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];
- Parameters:
value
- The minCpuPlatform to set.- Returns:
- This builder for chaining.
-
clearMinCpuPlatform
public GkeNodePoolConfig.GkeNodeConfig.Builder clearMinCpuPlatform()
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-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:
- This builder for chaining.
-
setMinCpuPlatformBytes
public GkeNodePoolConfig.GkeNodeConfig.Builder setMinCpuPlatformBytes(com.google.protobuf.ByteString value)
Optional. [Minimum CPU platform](https://cloud.google.com/compute/docs/instances/specify-min-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];
- Parameters:
value
- The bytes for minCpuPlatform to set.- Returns:
- This builder for chaining.
-
getBootDiskKmsKey
public String getBootDiskKmsKey()
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-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];
- Specified by:
getBootDiskKmsKey
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The bootDiskKmsKey.
-
getBootDiskKmsKeyBytes
public com.google.protobuf.ByteString getBootDiskKmsKeyBytes()
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-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];
- Specified by:
getBootDiskKmsKeyBytes
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The bytes for bootDiskKmsKey.
-
setBootDiskKmsKey
public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKey(String value)
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-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];
- Parameters:
value
- The bootDiskKmsKey to set.- Returns:
- This builder for chaining.
-
clearBootDiskKmsKey
public GkeNodePoolConfig.GkeNodeConfig.Builder clearBootDiskKmsKey()
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-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:
- This builder for chaining.
-
setBootDiskKmsKeyBytes
public GkeNodePoolConfig.GkeNodeConfig.Builder setBootDiskKmsKeyBytes(com.google.protobuf.ByteString value)
Optional. The [Customer Managed Encryption Key (CMEK)] (https://cloud.google.com/kubernetes-engine/docs/how-to/using-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];
- Parameters:
value
- The bytes for bootDiskKmsKey to set.- Returns:
- This builder for chaining.
-
getSpot
public boolean getSpot()
Optional. Whether the nodes are created as [Spot VM instances] (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy [preemptible VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible]. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#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];
- Specified by:
getSpot
in interfaceGkeNodePoolConfig.GkeNodeConfigOrBuilder
- Returns:
- The spot.
-
setSpot
public GkeNodePoolConfig.GkeNodeConfig.Builder setSpot(boolean value)
Optional. Whether the nodes are created as [Spot VM instances] (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy [preemptible VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible]. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#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];
- Parameters:
value
- The spot to set.- Returns:
- This builder for chaining.
-
clearSpot
public GkeNodePoolConfig.GkeNodeConfig.Builder clearSpot()
Optional. Whether the nodes are created as [Spot VM instances] (https://cloud.google.com/compute/docs/instances/spot). Spot VMs are the latest update to legacy [preemptible VMs][google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig.preemptible]. Spot VMs do not have a maximum lifetime. Legacy and Spot preemptible nodes cannot be used in a node pool with the `CONTROLLER` [role](/dataproc/docs/reference/rest/v1/projects.regions.clusters#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:
- This builder for chaining.
-
setUnknownFields
public final GkeNodePoolConfig.GkeNodeConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
mergeUnknownFields
public final GkeNodePoolConfig.GkeNodeConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.GkeNodeConfig.Builder>
-
-