Class GkeNodePoolConfig.Builder (4.30.0)

public static final class GkeNodePoolConfig.Builder extends GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder> implements GkeNodePoolConfigOrBuilder

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

Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig

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

build()

public GkeNodePoolConfig build()
Returns
TypeDescription
GkeNodePoolConfig

buildPartial()

public GkeNodePoolConfig buildPartial()
Returns
TypeDescription
GkeNodePoolConfig

clear()

public GkeNodePoolConfig.Builder clear()
Returns
TypeDescription
GkeNodePoolConfig.Builder
Overrides

clearAutoscaling()

public GkeNodePoolConfig.Builder clearAutoscaling()

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

clearConfig()

public GkeNodePoolConfig.Builder clearConfig()

Optional. The node pool configuration.

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

Returns
TypeDescription
GkeNodePoolConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLocations()

public GkeNodePoolConfig.Builder clearLocations()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

The autoscaling.

getAutoscalingBuilder()

public GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder getAutoscalingBuilder()

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

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

getConfigOrBuilder()

public GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder()

Optional. The node pool configuration.

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

Returns
TypeDescription
GkeNodePoolConfig.GkeNodeConfigOrBuilder

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

A list containing the locations.

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

Parameter
NameDescription
valueGkeNodePoolConfig.GkeNodePoolAutoscalingConfig
Returns
TypeDescription
GkeNodePoolConfig.Builder

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
NameDescription
valueGkeNodePoolConfig.GkeNodeConfig
Returns
TypeDescription
GkeNodePoolConfig.Builder

mergeFrom(GkeNodePoolConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

public GkeNodePoolConfig.Builder setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig value)

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

Parameter
NameDescription
valueGkeNodePoolConfig.GkeNodePoolAutoscalingConfig
Returns
TypeDescription
GkeNodePoolConfig.Builder

setAutoscaling(GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueGkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder
Returns
TypeDescription
GkeNodePoolConfig.Builder

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
NameDescription
valueGkeNodePoolConfig.GkeNodeConfig
Returns
TypeDescription
GkeNodePoolConfig.Builder

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLocations(int index, String value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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