Class GkeNodePoolTarget (4.0.5)

public final class GkeNodePoolTarget extends GeneratedMessageV3 implements GkeNodePoolTargetOrBuilder

GKE NodePools that Dataproc workloads run on.

Protobuf type google.cloud.dataproc.v1.GkeNodePoolTarget

Static Fields

NODE_POOL_CONFIG_FIELD_NUMBER

public static final int NODE_POOL_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

NODE_POOL_FIELD_NUMBER

public static final int NODE_POOL_FIELD_NUMBER
Field Value
TypeDescription
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static GkeNodePoolTarget getDefaultInstance()
Returns
TypeDescription
GkeNodePoolTarget

getDescriptor()

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

newBuilder()

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

newBuilder(GkeNodePoolTarget prototype)

public static GkeNodePoolTarget.Builder newBuilder(GkeNodePoolTarget prototype)
Parameter
NameDescription
prototypeGkeNodePoolTarget
Returns
TypeDescription
GkeNodePoolTarget.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GkeNodePoolTarget getDefaultInstanceForType()
Returns
TypeDescription
GkeNodePoolTarget

getNodePool()

public String getNodePool()

Required. The target GKE NodePool. 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 NodePool. 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()

Optional. The configuration for the GKE NodePool. If specified, Dataproc attempts to create a NodePool 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 NodePool with the specified name is used. If a NodePool with the specified name does not exist, Dataproc create a NodePool with default values.

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

Returns
TypeDescription
GkeNodePoolConfig

The nodePoolConfig.

getNodePoolConfigOrBuilder()

public GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder()

Optional. The configuration for the GKE NodePool. If specified, Dataproc attempts to create a NodePool 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 NodePool with the specified name is used. If a NodePool with the specified name does not exist, Dataproc create a NodePool with default values.

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

Returns
TypeDescription
GkeNodePoolConfigOrBuilder

getParserForType()

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

getRoles(int index)

public GkeNodePoolTarget.Role getRoles(int index)

Required. The types of role for a GKE NodePool

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 types of role for a GKE NodePool

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 types of role for a GKE NodePool

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 types of role for a GKE NodePool

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 types of role for a GKE NodePool

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasNodePoolConfig()

public boolean hasNodePoolConfig()

Optional. The configuration for the GKE NodePool. If specified, Dataproc attempts to create a NodePool 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 NodePool with the specified name is used. If a NodePool with the specified name does not exist, Dataproc create a NodePool with default values.

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

Returns
TypeDescription
boolean

Whether the nodePoolConfig field is set.

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 GkeNodePoolTarget.Builder newBuilderForType()
Returns
TypeDescription
GkeNodePoolTarget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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