public final class GkeNodePoolConfig extends GeneratedMessageV3 implements GkeNodePoolConfigOrBuilder
The configuration of a GKE NodePool 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
CONFIG_FIELD_NUMBER
public static final int CONFIG_FIELD_NUMBER
Field Value
LOCATIONS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static GkeNodePoolConfig getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static GkeNodePoolConfig.Builder newBuilder()
Returns
newBuilder(GkeNodePoolConfig prototype)
public static GkeNodePoolConfig.Builder newBuilder(GkeNodePoolConfig prototype)
Parameter
Returns
public static GkeNodePoolConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static GkeNodePoolConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static GkeNodePoolConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static GkeNodePoolConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static GkeNodePoolConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static GkeNodePoolConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GkeNodePoolConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static GkeNodePoolConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static GkeNodePoolConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static GkeNodePoolConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static GkeNodePoolConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static GkeNodePoolConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<GkeNodePoolConfig> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAutoscaling()
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];
Returns
getAutoscalingOrBuilder()
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];
Returns
getConfig()
public GkeNodePoolConfig.GkeNodeConfig getConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getConfigOrBuilder()
public GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getDefaultInstanceForType()
public GkeNodePoolConfig getDefaultInstanceForType()
Returns
getLocations(int index)
public String getLocations(int index)
Optional. The list of Compute Engine
zones 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];
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
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];
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
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];
Returns
Type | Description |
int | The count of locations.
|
getLocationsList()
public ProtocolStringList getLocationsList()
Optional. The list of Compute Engine
zones 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];
Returns
getParserForType()
public Parser<GkeNodePoolConfig> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasAutoscaling()
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];
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public GkeNodePoolConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected GkeNodePoolConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public GkeNodePoolConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions