public static final class GkeNodePoolConfig.Builder extends GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder> implements GkeNodePoolConfigOrBuilderThe configuration of a GKE node pool used by a Dataproc-on-GKE cluster.
Protobuf type google.cloud.dataproc.v1.GkeNodePoolConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GkeNodePoolConfig.BuilderImplements
GkeNodePoolConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
values |
Iterable<String>The locations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
StringThe locations to add. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the locations to add. |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
build()
public GkeNodePoolConfig build()| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig |
|
buildPartial()
public GkeNodePoolConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig |
|
clear()
public GkeNodePoolConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public GkeNodePoolConfig.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
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 | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GkeNodePoolConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
clone()
public GkeNodePoolConfig.Builder clone()| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
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. |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| 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. |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
GkeNodePoolConfig.GkeNodeConfigOrBuilder |
|
getDefaultInstanceForType()
public GkeNodePoolConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
intThe 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 |
intThe 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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 | |
|---|---|
| Name | Description |
value |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
GkeNodePoolConfig.GkeNodeConfig |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
mergeFrom(GkeNodePoolConfig other)
public GkeNodePoolConfig.Builder mergeFrom(GkeNodePoolConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
GkeNodePoolConfig |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GkeNodePoolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GkeNodePoolConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
GkeNodePoolConfig.GkeNodeConfig |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
GkeNodePoolConfig.GkeNodeConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe locations to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
GkeNodePoolConfig.Builder |
|