public static final class NodeGroup.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder> implements NodeGroupOrBuilder
Dataproc Node Group. **The Dataproc `NodeGroup` resource is not related to the Dataproc [NodeGroupAffinity][google.cloud.dataproc.v1.NodeGroupAffinity] resource.**Protobuf type
google.cloud.dataproc.v1.NodeGroup| Modifier and Type | Method and Description |
|---|---|
NodeGroup.Builder |
addAllRoles(Iterable<? extends NodeGroup.Role> values)
Required.
|
NodeGroup.Builder |
addAllRolesValue(Iterable<Integer> values)
Required.
|
NodeGroup.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NodeGroup.Builder |
addRoles(NodeGroup.Role value)
Required.
|
NodeGroup.Builder |
addRolesValue(int value)
Required.
|
NodeGroup |
build() |
NodeGroup |
buildPartial() |
NodeGroup.Builder |
clear() |
NodeGroup.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
NodeGroup.Builder |
clearLabels() |
NodeGroup.Builder |
clearName()
The Node group [resource name](https://aip.dev/122).
|
NodeGroup.Builder |
clearNodeGroupConfig()
Optional.
|
NodeGroup.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
NodeGroup.Builder |
clearRoles()
Required.
|
NodeGroup.Builder |
clone() |
boolean |
containsLabels(String key)
Optional.
|
NodeGroup |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Optional.
|
Map<String,String> |
getLabelsMap()
Optional.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getLabelsOrThrow(String key)
Optional.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
String |
getName()
The Node group [resource name](https://aip.dev/122).
|
com.google.protobuf.ByteString |
getNameBytes()
The Node group [resource name](https://aip.dev/122).
|
InstanceGroupConfig |
getNodeGroupConfig()
Optional.
|
InstanceGroupConfig.Builder |
getNodeGroupConfigBuilder()
Optional.
|
InstanceGroupConfigOrBuilder |
getNodeGroupConfigOrBuilder()
Optional.
|
NodeGroup.Role |
getRoles(int index)
Required.
|
int |
getRolesCount()
Required.
|
List<NodeGroup.Role> |
getRolesList()
Required.
|
int |
getRolesValue(int index)
Required.
|
List<Integer> |
getRolesValueList()
Required.
|
boolean |
hasNodeGroupConfig()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
NodeGroup.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
NodeGroup.Builder |
mergeFrom(com.google.protobuf.Message other) |
NodeGroup.Builder |
mergeFrom(NodeGroup other) |
NodeGroup.Builder |
mergeNodeGroupConfig(InstanceGroupConfig value)
Optional.
|
NodeGroup.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
NodeGroup.Builder |
putAllLabels(Map<String,String> values)
Optional.
|
NodeGroup.Builder |
putLabels(String key,
String value)
Optional.
|
NodeGroup.Builder |
removeLabels(String key)
Optional.
|
NodeGroup.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
NodeGroup.Builder |
setName(String value)
The Node group [resource name](https://aip.dev/122).
|
NodeGroup.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The Node group [resource name](https://aip.dev/122).
|
NodeGroup.Builder |
setNodeGroupConfig(InstanceGroupConfig.Builder builderForValue)
Optional.
|
NodeGroup.Builder |
setNodeGroupConfig(InstanceGroupConfig value)
Optional.
|
NodeGroup.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
NodeGroup.Builder |
setRoles(int index,
NodeGroup.Role value)
Required.
|
NodeGroup.Builder |
setRolesValue(int index,
int value)
Required.
|
NodeGroup.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic NodeGroup build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic NodeGroup buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic NodeGroup.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeGroup.Builder>public NodeGroup.Builder mergeFrom(NodeGroup other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public NodeGroup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<NodeGroup.Builder>IOExceptionpublic String getName()
The Node group [resource name](https://aip.dev/122).
string name = 1;getName in interface NodeGroupOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The Node group [resource name](https://aip.dev/122).
string name = 1;getNameBytes in interface NodeGroupOrBuilderpublic NodeGroup.Builder setName(String value)
The Node group [resource name](https://aip.dev/122).
string name = 1;value - The name to set.public NodeGroup.Builder clearName()
The Node group [resource name](https://aip.dev/122).
string name = 1;public NodeGroup.Builder setNameBytes(com.google.protobuf.ByteString value)
The Node group [resource name](https://aip.dev/122).
string name = 1;value - The bytes for name to set.public List<NodeGroup.Role> getRolesList()
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
getRolesList in interface NodeGroupOrBuilderpublic int getRolesCount()
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
getRolesCount in interface NodeGroupOrBuilderpublic NodeGroup.Role getRoles(int index)
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
getRoles in interface NodeGroupOrBuilderindex - The index of the element to return.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];
index - The index to set the value at.value - The roles to set.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];
value - The roles to add.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];
values - The roles to add.public NodeGroup.Builder clearRoles()
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
public List<Integer> getRolesValueList()
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
getRolesValueList in interface NodeGroupOrBuilderpublic int getRolesValue(int index)
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
getRolesValue in interface NodeGroupOrBuilderindex - The index of the value to return.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];
index - The index to set the value at.value - The enum numeric value on the wire for roles to set.public NodeGroup.Builder addRolesValue(int value)
Required. Node group roles.
repeated .google.cloud.dataproc.v1.NodeGroup.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for roles to add.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];
values - The enum numeric values on the wire for roles to add.public boolean hasNodeGroupConfig()
Optional. The node group instance group configuration.
.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];
hasNodeGroupConfig in interface NodeGroupOrBuilderpublic InstanceGroupConfig getNodeGroupConfig()
Optional. The node group instance group configuration.
.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getNodeGroupConfig in interface NodeGroupOrBuilderpublic 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];
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];
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];
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];
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];
public InstanceGroupConfigOrBuilder getNodeGroupConfigOrBuilder()
Optional. The node group instance group configuration.
.google.cloud.dataproc.v1.InstanceGroupConfig node_group_config = 3 [(.google.api.field_behavior) = OPTIONAL];
getNodeGroupConfigOrBuilder in interface NodeGroupOrBuilderpublic int getLabelsCount()
NodeGroupOrBuilderOptional. Node group labels. * Label **keys** must consist of from 1 to 63 characters and conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];getLabelsCount in interface NodeGroupOrBuilderpublic boolean containsLabels(String key)
Optional. Node group labels. * Label **keys** must consist of from 1 to 63 characters and conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];containsLabels in interface NodeGroupOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface NodeGroupOrBuilderpublic Map<String,String> getLabelsMap()
Optional. Node group labels. * Label **keys** must consist of from 1 to 63 characters and conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];getLabelsMap in interface NodeGroupOrBuilderpublic 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](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrDefault in interface NodeGroupOrBuilderpublic String getLabelsOrThrow(String key)
Optional. Node group labels. * Label **keys** must consist of from 1 to 63 characters and conform to [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];getLabelsOrThrow in interface NodeGroupOrBuilderpublic NodeGroup.Builder clearLabels()
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](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];@Deprecated public Map<String,String> getMutableLabels()
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](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];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](https://www.ietf.org/rfc/rfc1035.txt). * Label **values** can be empty. If specified, they must consist of from 1 to 63 characters and conform to [RFC 1035] (https://www.ietf.org/rfc/rfc1035.txt). * The node group must have no more than 32 labels.
map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];public final NodeGroup.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>public final NodeGroup.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<NodeGroup.Builder>Copyright © 2024 Google LLC. All rights reserved.