Class NodeGroupAffinity.Builder (4.2.0)

public static final class NodeGroupAffinity.Builder extends GeneratedMessageV3.Builder<NodeGroupAffinity.Builder> implements NodeGroupAffinityOrBuilder

Node Group Affinity for clusters using sole-tenant node groups.

Protobuf type google.cloud.dataproc.v1.NodeGroupAffinity

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeGroupAffinity build()
Returns
TypeDescription
NodeGroupAffinity

buildPartial()

public NodeGroupAffinity buildPartial()
Returns
TypeDescription
NodeGroupAffinity

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNodeGroupUri()

public NodeGroupAffinity.Builder clearNodeGroupUri()

Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • node-group-1

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

Returns
TypeDescription
NodeGroupAffinity.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public NodeGroupAffinity getDefaultInstanceForType()
Returns
TypeDescription
NodeGroupAffinity

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNodeGroupUri()

public String getNodeGroupUri()

Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • node-group-1

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

Returns
TypeDescription
String

The nodeGroupUri.

getNodeGroupUriBytes()

public ByteString getNodeGroupUriBytes()

Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • node-group-1

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

Returns
TypeDescription
ByteString

The bytes for nodeGroupUri.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeGroupAffinity other)

public NodeGroupAffinity.Builder mergeFrom(NodeGroupAffinity other)
Parameter
NameDescription
otherNodeGroupAffinity
Returns
TypeDescription
NodeGroupAffinity.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setNodeGroupUri(String value)

public NodeGroupAffinity.Builder setNodeGroupUri(String value)

Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • node-group-1

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

Parameter
NameDescription
valueString

The nodeGroupUri to set.

Returns
TypeDescription
NodeGroupAffinity.Builder

This builder for chaining.

setNodeGroupUriBytes(ByteString value)

public NodeGroupAffinity.Builder setNodeGroupUriBytes(ByteString value)

Required. The URI of a sole-tenant node group resource that the cluster will be created on. A full URL, partial URI, or node group name are valid. Examples:

  • https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • projects/[project_id]/zones/us-central1-a/nodeGroups/node-group-1
  • node-group-1

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

Parameter
NameDescription
valueByteString

The bytes for nodeGroupUri to set.

Returns
TypeDescription
NodeGroupAffinity.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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