Class NodeGroup.Builder (4.24.0)

public static final class NodeGroup.Builder extends GeneratedMessageV3.Builder<NodeGroup.Builder> implements NodeGroupOrBuilder

Dataproc Node Group. The Dataproc NodeGroup resource is not related to the Dataproc NodeGroupAffinity resource.

Protobuf type google.cloud.dataproc.v1.NodeGroup

Implements

NodeGroupOrBuilder

Static Methods

getDescriptor()

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

Methods

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

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

Required. Node group roles.

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

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

The roles to add.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

addAllRolesValue(Iterable<Integer> values)

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

Required. Node group roles.

repeated .google.cloud.dataproc.v1.NodeGroup.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
NodeGroup.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addRoles(NodeGroup.Role value)

public NodeGroup.Builder addRoles(NodeGroup.Role value)

Required. Node group roles.

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

Parameter
NameDescription
valueNodeGroup.Role

The roles to add.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

addRolesValue(int value)

public NodeGroup.Builder addRolesValue(int value)

Required. Node group roles.

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

Parameter
NameDescription
valueint

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

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

build()

public NodeGroup build()
Returns
TypeDescription
NodeGroup

buildPartial()

public NodeGroup buildPartial()
Returns
TypeDescription
NodeGroup

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public NodeGroup.Builder clearLabels()
Returns
TypeDescription
NodeGroup.Builder

clearName()

public NodeGroup.Builder clearName()

The Node group resource name.

string name = 1;

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

clearNodeGroupConfig()

public NodeGroup.Builder clearNodeGroupConfig()

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
NodeGroup.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRoles()

public NodeGroup.Builder clearRoles()

Required. Node group roles.

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

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public NodeGroup getDefaultInstanceForType()
Returns
TypeDescription
NodeGroup

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getName()

public String getName()

The Node group resource name.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The Node group resource name.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNodeGroupConfig()

public InstanceGroupConfig getNodeGroupConfig()

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
InstanceGroupConfig

The nodeGroupConfig.

getNodeGroupConfigBuilder()

public InstanceGroupConfig.Builder getNodeGroupConfigBuilder()

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
InstanceGroupConfig.Builder

getNodeGroupConfigOrBuilder()

public InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder()

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
InstanceGroupConfigOrBuilder

getRoles(int index)

public NodeGroup.Role getRoles(int index)

Required. Node group roles.

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

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
NodeGroup.Role

The roles at the given index.

getRolesCount()

public int getRolesCount()

Required. Node group roles.

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

Returns
TypeDescription
int

The count of roles.

getRolesList()

public List<NodeGroup.Role> getRolesList()

Required. Node group roles.

repeated .google.cloud.dataproc.v1.NodeGroup.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. Node group roles.

repeated .google.cloud.dataproc.v1.NodeGroup.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. Node group roles.

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

Returns
TypeDescription
List<Integer>

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

hasNodeGroupConfig()

public boolean hasNodeGroupConfig()

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the nodeGroupConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeGroup other)

public NodeGroup.Builder mergeFrom(NodeGroup other)
Parameter
NameDescription
otherNodeGroup
Returns
TypeDescription
NodeGroup.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeNodeGroupConfig(InstanceGroupConfig value)

public NodeGroup.Builder mergeNodeGroupConfig(InstanceGroupConfig value)

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueInstanceGroupConfig
Returns
TypeDescription
NodeGroup.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

public NodeGroup.Builder putAllLabels(Map<String,String> values)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
NodeGroup.Builder

putLabels(String key, String value)

public NodeGroup.Builder putLabels(String key, String value)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
NodeGroup.Builder

removeLabels(String key)

public NodeGroup.Builder removeLabels(String key)

Optional. Node group labels.

  • Label keys must consist of from 1 to 63 characters and conform to RFC 1035.
  • Label values can be empty. If specified, they must consist of from 1 to 63 characters and conform to RFC 1035.
  • The node group must have no more than 32 labels.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
keyString
Returns
TypeDescription
NodeGroup.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public NodeGroup.Builder setName(String value)

The Node group resource name.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setNameBytes(ByteString value)

public NodeGroup.Builder setNameBytes(ByteString value)

The Node group resource name.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setNodeGroupConfig(InstanceGroupConfig value)

public NodeGroup.Builder setNodeGroupConfig(InstanceGroupConfig value)

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueInstanceGroupConfig
Returns
TypeDescription
NodeGroup.Builder

setNodeGroupConfig(InstanceGroupConfig.Builder builderForValue)

public NodeGroup.Builder setNodeGroupConfig(InstanceGroupConfig.Builder builderForValue)

Optional. The node group instance group configuration.

.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueInstanceGroupConfig.Builder
Returns
TypeDescription
NodeGroup.Builder

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

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

setRoles(int index, NodeGroup.Role value)

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

Required. Node group roles.

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

Parameters
NameDescription
indexint

The index to set the value at.

valueNodeGroup.Role

The roles to set.

Returns
TypeDescription
NodeGroup.Builder

This builder for chaining.

setRolesValue(int index, int value)

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

Required. Node group roles.

repeated .google.cloud.dataproc.v1.NodeGroup.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
NodeGroup.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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