Class GkeNodePoolConfig.Builder (4.5.0)

See more code actions.
public static final class GkeNodePoolConfig.Builder extends GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder> implements GkeNodePoolConfigOrBuilder

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

Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addAllLocations(Iterable<String> values)

public GkeNodePoolConfig.Builder addAllLocations(Iterable<String> values)

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
NameDescription
valuesIterable<String>

The locations to add.

Returns
TypeDescription
GkeNodePoolConfig.Builder

This builder for chaining.

addLocations(String value)

public GkeNodePoolConfig.Builder addLocations(String value)

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
NameDescription
valueString

The locations to add.

Returns
TypeDescription
GkeNodePoolConfig.Builder

This builder for chaining.

addLocationsBytes(ByteString value)

public GkeNodePoolConfig.Builder addLocationsBytes(ByteString value)

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
NameDescription
valueByteString

The bytes of the locations to add.

Returns
TypeDescription
GkeNodePoolConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GkeNodePoolConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

build()

public GkeNodePoolConfig build()
Returns
TypeDescription
GkeNodePoolConfig

buildPartial()

public GkeNodePoolConfig buildPartial()
Returns
TypeDescription
GkeNodePoolConfig

clear()

public GkeNodePoolConfig.Builder clear()
Returns Overrides

clearAutoscaling()

public GkeNodePoolConfig.Builder clearAutoscaling()

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

clearConfig()

public GkeNodePoolConfig.Builder clearConfig()

Optional. The node pool configuration.

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

Returns

clearField(Descriptors.FieldDescriptor field)

public GkeNodePoolConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns Overrides

clearLocations()

public GkeNodePoolConfig.Builder clearLocations()

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
TypeDescription
GkeNodePoolConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public GkeNodePoolConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns Overrides

clone()

public GkeNodePoolConfig.Builder clone()
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
TypeDescription
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig

The autoscaling.

getAutoscalingBuilder()

public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder getAutoscalingBuilder()

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
TypeDescription
GkeNodePoolConfig.GkeNodeConfig

The config.

getConfigBuilder()

public GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder()

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
TypeDescription
GkeNodePoolConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ProtocolStringList

A list containing the locations.

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
TypeDescription
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
TypeDescription
boolean

Whether the config field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

public GkeNodePoolConfig.Builder mergeAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

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];

Parameter Returns

mergeConfig(GkeNodePoolConfig.GkeNodeConfig value)

public GkeNodePoolConfig.Builder mergeConfig(GkeNodePoolConfig.GkeNodeConfig value)

Optional. The node pool configuration.

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

Parameter Returns

mergeFrom(GkeNodePoolConfig other)

public GkeNodePoolConfig.Builder mergeFrom(GkeNodePoolConfig other)
Parameter
NameDescription
otherGkeNodePoolConfig
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GkeNodePoolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public GkeNodePoolConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GkeNodePoolConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

public GkeNodePoolConfig.Builder setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

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];

Parameter Returns

setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue)

public GkeNodePoolConfig.Builder setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue)

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];

Parameter Returns

setConfig(GkeNodePoolConfig.GkeNodeConfig value)

public GkeNodePoolConfig.Builder setConfig(GkeNodePoolConfig.GkeNodeConfig value)

Optional. The node pool configuration.

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

Parameter Returns

setConfig(GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue)

public GkeNodePoolConfig.Builder setConfig(GkeNodePoolConfig.GkeNodeConfig.Builder builderForValue)

Optional. The node pool configuration.

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

Parameter
NameDescription
builderForValueGkeNodePoolConfig.GkeNodeConfig.Builder
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public GkeNodePoolConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

setLocations(int index, String value)

public GkeNodePoolConfig.Builder setLocations(int index, String value)

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];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The locations to set.

Returns
TypeDescription
GkeNodePoolConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GkeNodePoolConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GkeNodePoolConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides