Class NodeGroupAffinity (4.24.0)

public final class NodeGroupAffinity extends GeneratedMessageV3 implements NodeGroupAffinityOrBuilder

Node Group Affinity for clusters using sole-tenant node groups. The Dataproc NodeGroupAffinity resource is not related to the Dataproc NodeGroup resource.

Protobuf type google.cloud.dataproc.v1.NodeGroupAffinity

Static Fields

NODE_GROUP_URI_FIELD_NUMBER

public static final int NODE_GROUP_URI_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static NodeGroupAffinity getDefaultInstance()
Returns
TypeDescription
NodeGroupAffinity

getDescriptor()

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

newBuilder()

public static NodeGroupAffinity.Builder newBuilder()
Returns
TypeDescription
NodeGroupAffinity.Builder

newBuilder(NodeGroupAffinity prototype)

public static NodeGroupAffinity.Builder newBuilder(NodeGroupAffinity prototype)
Parameter
NameDescription
prototypeNodeGroupAffinity
Returns
TypeDescription
NodeGroupAffinity.Builder

parseDelimitedFrom(InputStream input)

public static NodeGroupAffinity parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static NodeGroupAffinity parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NodeGroupAffinity parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NodeGroupAffinity parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static NodeGroupAffinity parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static NodeGroupAffinity parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NodeGroupAffinity parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NodeGroupAffinity
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<NodeGroupAffinity> parser()
Returns
TypeDescription
Parser<NodeGroupAffinity>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public NodeGroupAffinity getDefaultInstanceForType()
Returns
TypeDescription
NodeGroupAffinity

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/[zone]/nodeGroups/node-group-1
  • projects/[project_id]/zones/[zone]/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/[zone]/nodeGroups/node-group-1
  • projects/[project_id]/zones/[zone]/nodeGroups/node-group-1
  • node-group-1

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

Returns
TypeDescription
ByteString

The bytes for nodeGroupUri.

getParserForType()

public Parser<NodeGroupAffinity> getParserForType()
Returns
TypeDescription
Parser<NodeGroupAffinity>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public NodeGroupAffinity.Builder newBuilderForType()
Returns
TypeDescription
NodeGroupAffinity.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NodeGroupAffinity.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
NodeGroupAffinity.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public NodeGroupAffinity.Builder toBuilder()
Returns
TypeDescription
NodeGroupAffinity.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException