public final class GkeNodePoolConfig extends GeneratedMessageV3 implements GkeNodePoolConfigOrBuilder
The configuration of a GKE NodePool used by a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).Protobuf type
google.cloud.dataproc.v1.GkeNodePoolConfig
Modifier and Type | Class and Description |
---|---|
static class |
GkeNodePoolConfig.Builder
The configuration of a GKE NodePool used by a [Dataproc-on-GKE
cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
|
static class |
GkeNodePoolConfig.GkeNodeConfig
Parameters that describe cluster nodes.
|
static interface |
GkeNodePoolConfig.GkeNodeConfigOrBuilder |
static class |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfig
A GkeNodeConfigAcceleratorConfig represents a Hardware Accelerator request
for a NodePool.
|
static interface |
GkeNodePoolConfig.GkeNodePoolAcceleratorConfigOrBuilder |
static class |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig
GkeNodePoolAutoscaling contains information the cluster autoscaler needs to
adjust the size of the node pool to the current cluster usage.
|
static interface |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable, GeneratedMessageV3.UnusedPrivateParameter
AbstractMessageLite.InternalOneOfEnum
Modifier and Type | Field and Description |
---|---|
static int |
AUTOSCALING_FIELD_NUMBER |
static int |
CONFIG_FIELD_NUMBER |
static int |
LOCATIONS_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFields
memoizedSize
memoizedHashCode
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int CONFIG_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
public static final int AUTOSCALING_FIELD_NUMBER
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class GeneratedMessageV3
public final UnknownFieldSet getUnknownFields()
getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public boolean hasConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
hasConfig
in interface GkeNodePoolConfigOrBuilder
public GkeNodePoolConfig.GkeNodeConfig getConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
getConfig
in interface GkeNodePoolConfigOrBuilder
public GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
getConfigOrBuilder
in interface GkeNodePoolConfigOrBuilder
public ProtocolStringList getLocationsList()
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where NodePool's nodes will be located. **Note:** Currently, only one zone may be specified. If a location is not specified during NodePool creation, Dataproc will choose a location.
repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
getLocationsList
in interface GkeNodePoolConfigOrBuilder
public int getLocationsCount()
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where NodePool's nodes will be located. **Note:** Currently, only one zone may be specified. If a location is not specified during NodePool creation, Dataproc will choose a location.
repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
getLocationsCount
in interface GkeNodePoolConfigOrBuilder
public String getLocations(int index)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where NodePool's nodes will be located. **Note:** Currently, only one zone may be specified. If a location is not specified during NodePool creation, Dataproc will choose a location.
repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
getLocations
in interface GkeNodePoolConfigOrBuilder
index
- The index of the element to return.public ByteString getLocationsBytes(int index)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) where NodePool's nodes will be located. **Note:** Currently, only one zone may be specified. If a location is not specified during NodePool creation, Dataproc will choose a location.
repeated string locations = 13 [(.google.api.field_behavior) = OPTIONAL];
getLocationsBytes
in interface GkeNodePoolConfigOrBuilder
index
- The index of the value to return.public boolean hasAutoscaling()
Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled only when a valid configuration is present.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
hasAutoscaling
in interface GkeNodePoolConfigOrBuilder
public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig getAutoscaling()
Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled only when a valid configuration is present.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getAutoscaling
in interface GkeNodePoolConfigOrBuilder
public GkeNodePoolConfig.GkeNodePoolAutoscalingConfigOrBuilder getAutoscalingOrBuilder()
Optional. The autoscaler configuration for this NodePool. The autoscaler is enabled only when a valid configuration is present.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfig autoscaling = 4 [(.google.api.field_behavior) = OPTIONAL];
getAutoscalingOrBuilder
in interface GkeNodePoolConfigOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static GkeNodePoolConfig parseFrom(ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static GkeNodePoolConfig parseFrom(InputStream input) throws IOException
IOException
public static GkeNodePoolConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GkeNodePoolConfig parseDelimitedFrom(InputStream input) throws IOException
IOException
public static GkeNodePoolConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static GkeNodePoolConfig parseFrom(CodedInputStream input) throws IOException
IOException
public static GkeNodePoolConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public GkeNodePoolConfig.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static GkeNodePoolConfig.Builder newBuilder()
public static GkeNodePoolConfig.Builder newBuilder(GkeNodePoolConfig prototype)
public GkeNodePoolConfig.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected GkeNodePoolConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static GkeNodePoolConfig getDefaultInstance()
public static Parser<GkeNodePoolConfig> parser()
public Parser<GkeNodePoolConfig> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public GkeNodePoolConfig getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
Copyright © 2022 Google LLC. All rights reserved.