Class GkeNodePoolConfig.GkeNodeConfig.Builder (4.6.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig
Returns
TypeDescription
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
NameDescription
builderForValueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfig>
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public GkeNodePoolConfig.GkeNodeConfig.Builder clear()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder
Overrides

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
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

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
TypeDescription
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
TypeDescription
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
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPreemptible()

public GkeNodePoolConfig.GkeNodeConfig.Builder clearPreemptible()

Optional. Whether the nodes are created as preemptible VM instances.

bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

This builder for chaining.

clone()

public GkeNodePoolConfig.GkeNodeConfig.Builder clone()
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder
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

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

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getPreemptible()

public boolean getPreemptible()

Optional. Whether the nodes are created as preemptible VM instances.

bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The preemptible.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GkeNodePoolConfig.GkeNodeConfig other)

public GkeNodePoolConfig.GkeNodeConfig.Builder mergeFrom(GkeNodePoolConfig.GkeNodeConfig other)
Parameter
NameDescription
otherGkeNodePoolConfig.GkeNodeConfig
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig
Returns
TypeDescription
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
NameDescription
indexint
builderForValueGkeNodePoolConfig.GkeNodePoolAcceleratorConfig.Builder
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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
NameDescription
valueint

The localSsdCount to set.

Returns
TypeDescription
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
NameDescription
valueString

The machineType to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for machineType to set.

Returns
TypeDescription
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
NameDescription
valueString

The minCpuPlatform to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for minCpuPlatform to set.

Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder

This builder for chaining.

setPreemptible(boolean value)

public GkeNodePoolConfig.GkeNodeConfig.Builder setPreemptible(boolean value)

Optional. Whether the nodes are created as preemptible VM instances.

bool preemptible = 10 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The preemptible to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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