Class GkeNodePoolConfig.GkeNodeConfig (4.20.0)

public static final class GkeNodePoolConfig.GkeNodeConfig extends GeneratedMessageV3 implements GkeNodePoolConfig.GkeNodeConfigOrBuilder

Parameters that describe cluster nodes.

Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > GkeNodePoolConfig.GkeNodeConfig

Static Fields

ACCELERATORS_FIELD_NUMBER

public static final int ACCELERATORS_FIELD_NUMBER
Field Value
TypeDescription
int

BOOT_DISK_KMS_KEY_FIELD_NUMBER

public static final int BOOT_DISK_KMS_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

LOCAL_SSD_COUNT_FIELD_NUMBER

public static final int LOCAL_SSD_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MIN_CPU_PLATFORM_FIELD_NUMBER

public static final int MIN_CPU_PLATFORM_FIELD_NUMBER
Field Value
TypeDescription
int

PREEMPTIBLE_FIELD_NUMBER

public static final int PREEMPTIBLE_FIELD_NUMBER
Field Value
TypeDescription
int

SPOT_FIELD_NUMBER

public static final int SPOT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GkeNodePoolConfig.GkeNodeConfig getDefaultInstance()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig

getDescriptor()

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

newBuilder()

public static GkeNodePoolConfig.GkeNodeConfig.Builder newBuilder()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

newBuilder(GkeNodePoolConfig.GkeNodeConfig prototype)

public static GkeNodePoolConfig.GkeNodeConfig.Builder newBuilder(GkeNodePoolConfig.GkeNodeConfig prototype)
Parameter
NameDescription
prototypeGkeNodePoolConfig.GkeNodeConfig
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

parseDelimitedFrom(InputStream input)

public static GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolConfig.GkeNodeConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<GkeNodePoolConfig.GkeNodeConfig> parser()
Returns
TypeDescription
Parser<GkeNodeConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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
NameDescription
indexint
Returns
TypeDescription
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig

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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for bootDiskKmsKey.

getDefaultInstanceForType()

public GkeNodePoolConfig.GkeNodeConfig getDefaultInstanceForType()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for minCpuPlatform.

getParserForType()

public Parser<GkeNodePoolConfig.GkeNodeConfig> getParserForType()
Returns
TypeDescription
Parser<GkeNodeConfig>
Overrides

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
TypeDescription
boolean

The preemptible.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
boolean

The spot.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public GkeNodePoolConfig.GkeNodeConfig.Builder newBuilderForType()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GkeNodePoolConfig.GkeNodeConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public GkeNodePoolConfig.GkeNodeConfig.Builder toBuilder()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException