Class GkeNodePoolTarget (4.40.0)

public final class GkeNodePoolTarget extends GeneratedMessageV3 implements GkeNodePoolTargetOrBuilder

GKE node pools 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
Type Description
int

NODE_POOL_FIELD_NUMBER

public static final int NODE_POOL_FIELD_NUMBER
Field Value
Type Description
int

ROLES_FIELD_NUMBER

public static final int ROLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GkeNodePoolTarget getDefaultInstance()
Returns
Type Description
GkeNodePoolTarget

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static GkeNodePoolTarget.Builder newBuilder()
Returns
Type Description
GkeNodePoolTarget.Builder

newBuilder(GkeNodePoolTarget prototype)

public static GkeNodePoolTarget.Builder newBuilder(GkeNodePoolTarget prototype)
Parameter
Name Description
prototype GkeNodePoolTarget
Returns
Type Description
GkeNodePoolTarget.Builder

parseDelimitedFrom(InputStream input)

public static GkeNodePoolTarget parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static GkeNodePoolTarget parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static GkeNodePoolTarget parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static GkeNodePoolTarget parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static GkeNodePoolTarget parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static GkeNodePoolTarget parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static GkeNodePoolTarget parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeNodePoolTarget
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<GkeNodePoolTarget> parser()
Returns
Type Description
Parser<GkeNodePoolTarget>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public GkeNodePoolTarget getDefaultInstanceForType()
Returns
Type Description
GkeNodePoolTarget

getNodePool()

public String getNodePool()

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

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

Returns
Type Description
String

The nodePool.

getNodePoolBytes()

public ByteString getNodePoolBytes()

Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'

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

Returns
Type Description
ByteString

The bytes for nodePool.

getNodePoolConfig()

public GkeNodePoolConfig getNodePoolConfig()

Input only. The configuration for the GKE node pool.

If specified, Dataproc attempts to create a node pool 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 node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.

This is an input only field. It will not be returned by the API.

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

Returns
Type Description
GkeNodePoolConfig

The nodePoolConfig.

getNodePoolConfigOrBuilder()

public GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder()

Input only. The configuration for the GKE node pool.

If specified, Dataproc attempts to create a node pool 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 node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.

This is an input only field. It will not be returned by the API.

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

Returns
Type Description
GkeNodePoolConfigOrBuilder

getParserForType()

public Parser<GkeNodePoolTarget> getParserForType()
Returns
Type Description
Parser<GkeNodePoolTarget>
Overrides

getRoles(int index)

public GkeNodePoolTarget.Role getRoles(int index)

Required. The roles associated with the GKE node pool.

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

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
GkeNodePoolTarget.Role

The roles at the given index.

getRolesCount()

public int getRolesCount()

Required. The roles associated with the GKE node pool.

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

Returns
Type Description
int

The count of roles.

getRolesList()

public List<GkeNodePoolTarget.Role> getRolesList()

Required. The roles associated with the GKE node pool.

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

Returns
Type Description
List<Role>

A list containing the roles.

getRolesValue(int index)

public int getRolesValue(int index)

Required. The roles associated with the GKE node pool.

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

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of roles at the given index.

getRolesValueList()

public List<Integer> getRolesValueList()

Required. The roles associated with the GKE node pool.

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

Returns
Type Description
List<Integer>

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasNodePoolConfig()

public boolean hasNodePoolConfig()

Input only. The configuration for the GKE node pool.

If specified, Dataproc attempts to create a node pool 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 node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values.

This is an input only field. It will not be returned by the API.

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

Returns
Type Description
boolean

Whether the nodePoolConfig field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public GkeNodePoolTarget.Builder newBuilderForType()
Returns
Type Description
GkeNodePoolTarget.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected GkeNodePoolTarget.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
GkeNodePoolTarget.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public GkeNodePoolTarget.Builder toBuilder()
Returns
Type Description
GkeNodePoolTarget.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException