Class GkeNodePoolConfig (4.50.0)

public final class GkeNodePoolConfig extends GeneratedMessageV3 implements GkeNodePoolConfigOrBuilder

The configuration of a GKE node pool used by a Dataproc-on-GKE cluster.

Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig

Static Fields

AUTOSCALING_FIELD_NUMBER

public static final int AUTOSCALING_FIELD_NUMBER
Field Value
Type Description
int

CONFIG_FIELD_NUMBER

public static final int CONFIG_FIELD_NUMBER
Field Value
Type Description
int

LOCATIONS_FIELD_NUMBER

public static final int LOCATIONS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GkeNodePoolConfig getDefaultInstance()
Returns
Type Description
GkeNodePoolConfig

getDescriptor()

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

newBuilder()

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

newBuilder(GkeNodePoolConfig prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAutoscaling()

public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling()

Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig

The autoscaling.

getAutoscalingOrBuilder()

public GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder()

Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder

getConfig()

public GkeNodePoolConfig.GkeNodeConfig getConfig()

Optional. The node pool configuration.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeNodePoolConfig.GkeNodeConfig

The config.

getConfigOrBuilder()

public GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder()

Optional. The node pool configuration.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeNodePoolConfig.GkeNodeConfigOrBuilder

getDefaultInstanceForType()

public GkeNodePoolConfig getDefaultInstanceForType()
Returns
Type Description
GkeNodePoolConfig

getLocations(int index)

public String getLocations(int index)

Optional. The list of Compute Engine zones where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.

Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.

If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.

repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The locations at the given index.

getLocationsBytes(int index)

public ByteString getLocationsBytes(int index)

Optional. The list of Compute Engine zones where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.

Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.

If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.

repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the locations at the given index.

getLocationsCount()

public int getLocationsCount()

Optional. The list of Compute Engine zones where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.

Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.

If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.

repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of locations.

getLocationsList()

public ProtocolStringList getLocationsList()

Optional. The list of Compute Engine zones where node pool nodes associated with a Dataproc on GKE virtual cluster will be located.

Note: All node pools associated with a virtual cluster must be located in the same region as the virtual cluster, and they must be located in the same zone within that region.

If a location is not specified during node pool creation, Dataproc on GKE will choose the zone.

repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the locations.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasAutoscaling()

public boolean hasAutoscaling()

Optional. The autoscaler configuration for this node pool. The autoscaler is enabled only when a valid configuration is present.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the autoscaling field is set.

hasConfig()

public boolean hasConfig()

Optional. The node pool configuration.

.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the config 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 GkeNodePoolConfig.Builder newBuilderForType()
Returns
Type Description
GkeNodePoolConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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