Class GkeNodePoolTarget.Builder (4.15.0)

public static final class GkeNodePoolTarget.Builder extends GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder> implements GkeNodePoolTargetOrBuilder

GKE node pools that Dataproc workloads run on.

Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget

Static Methods

getDescriptor()

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

Methods

addAllRoles(Iterable<? extends GkeNodePoolTarget.Role> values)

public GkeNodePoolTarget.Builder addAllRoles(Iterable<? extends GkeNodePoolTarget.Role> values)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.GkeNodePoolTarget.Role>

The roles to add.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

addAllRolesValue(Iterable<Integer> values)

public GkeNodePoolTarget.Builder addAllRolesValue(Iterable<Integer> values)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for roles to add.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoles(GkeNodePoolTarget.Role value)

public GkeNodePoolTarget.Builder addRoles(GkeNodePoolTarget.Role value)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueGkeNodePoolTarget.Role

The roles to add.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

addRolesValue(int value)

public GkeNodePoolTarget.Builder addRolesValue(int value)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

The enum numeric value on the wire for roles to add.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

build()

public GkeNodePoolTarget build()
Returns
TypeDescription
GkeNodePoolTarget

buildPartial()

public GkeNodePoolTarget buildPartial()
Returns
TypeDescription
GkeNodePoolTarget

clear()

public GkeNodePoolTarget.Builder clear()
Returns
TypeDescription
GkeNodePoolTarget.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearNodePool()

public GkeNodePoolTarget.Builder clearNodePool()

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

clearNodePoolConfig()

public GkeNodePoolTarget.Builder clearNodePoolConfig()

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
GkeNodePoolTarget.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoles()

public GkeNodePoolTarget.Builder clearRoles()

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

clone()

public GkeNodePoolTarget.Builder clone()
Returns
TypeDescription
GkeNodePoolTarget.Builder
Overrides

getDefaultInstanceForType()

public GkeNodePoolTarget getDefaultInstanceForType()
Returns
TypeDescription
GkeNodePoolTarget

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNodePool()

public String getNodePool()

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The nodePool.

getNodePoolBytes()

public ByteString getNodePoolBytes()

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for nodePool.

getNodePoolConfig()

public GkeNodePoolConfig getNodePoolConfig()

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
GkeNodePoolConfig

The nodePoolConfig.

getNodePoolConfigBuilder()

public GkeNodePoolConfig.Builder getNodePoolConfigBuilder()

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
GkeNodePoolConfig.Builder

getNodePoolConfigOrBuilder()

public GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder()

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
GkeNodePoolConfigOrBuilder

getRoles(int index)

public GkeNodePoolTarget.Role getRoles(int index)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
GkeNodePoolTarget.Role

The roles at the given index.

getRolesCount()

public int getRolesCount()

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The count of roles.

getRolesList()

public List<GkeNodePoolTarget.Role> getRolesList()

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Role>

A list containing the roles.

getRolesValue(int index)

public int getRolesValue(int index)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of roles at the given index.

getRolesValueList()

public List<Integer> getRolesValueList()

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for roles.

hasNodePoolConfig()

public boolean hasNodePoolConfig()

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the nodePoolConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GkeNodePoolTarget other)

public GkeNodePoolTarget.Builder mergeFrom(GkeNodePoolTarget other)
Parameter
NameDescription
otherGkeNodePoolTarget
Returns
TypeDescription
GkeNodePoolTarget.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNodePoolConfig(GkeNodePoolConfig value)

public GkeNodePoolTarget.Builder mergeNodePoolConfig(GkeNodePoolConfig value)

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueGkeNodePoolConfig
Returns
TypeDescription
GkeNodePoolTarget.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodePool(String value)

public GkeNodePoolTarget.Builder setNodePool(String value)

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The nodePool to set.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

setNodePoolBytes(ByteString value)

public GkeNodePoolTarget.Builder setNodePoolBytes(ByteString value)

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for nodePool to set.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

setNodePoolConfig(GkeNodePoolConfig value)

public GkeNodePoolTarget.Builder setNodePoolConfig(GkeNodePoolConfig value)

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueGkeNodePoolConfig
Returns
TypeDescription
GkeNodePoolTarget.Builder

setNodePoolConfig(GkeNodePoolConfig.Builder builderForValue)

public GkeNodePoolTarget.Builder setNodePoolConfig(GkeNodePoolConfig.Builder builderForValue)

Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.

.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
builderForValueGkeNodePoolConfig.Builder
Returns
TypeDescription
GkeNodePoolTarget.Builder

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

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

setRoles(int index, GkeNodePoolTarget.Role value)

public GkeNodePoolTarget.Builder setRoles(int index, GkeNodePoolTarget.Role value)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueGkeNodePoolTarget.Role

The roles to set.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

setRolesValue(int index, int value)

public GkeNodePoolTarget.Builder setRolesValue(int index, int value)

Required. The roles associated with the GKE node pool.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The enum numeric value on the wire for roles to set.

Returns
TypeDescription
GkeNodePoolTarget.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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