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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > GkeNodePoolConfig.BuilderImplements
GkeNodePoolConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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];
Name | Description |
values | Iterable<String> The locations to add. |
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 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];
Name | Description |
value | String The locations to add. |
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 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];
Name | Description |
value | ByteString The bytes of the locations to add. |
Type | Description |
GkeNodePoolConfig.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
GkeNodePoolConfig.Builder |
build()
public GkeNodePoolConfig build()
Type | Description |
GkeNodePoolConfig |
buildPartial()
public GkeNodePoolConfig buildPartial()
Type | Description |
GkeNodePoolConfig |
clear()
public GkeNodePoolConfig.Builder clear()
Type | Description |
GkeNodePoolConfig.Builder |
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];
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];
Type | Description |
GkeNodePoolConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public GkeNodePoolConfig.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
GkeNodePoolConfig.Builder |
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];
Type | Description |
GkeNodePoolConfig.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public GkeNodePoolConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
GkeNodePoolConfig.Builder |
clone()
public GkeNodePoolConfig.Builder clone()
Type | Description |
GkeNodePoolConfig.Builder |
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];
Type | Description |
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];
Type | Description |
GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder |
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];
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];
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];
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];
Type | Description |
GkeNodePoolConfig.GkeNodeConfigOrBuilder |
getDefaultInstanceForType()
public GkeNodePoolConfig getDefaultInstanceForType()
Type | Description |
GkeNodePoolConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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];
Name | Description |
index | int The index of the element to return. |
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];
Name | Description |
index | int The index of the value to return. |
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];
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];
Type | Description |
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];
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];
Type | Description |
boolean | Whether the config field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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];
Name | Description |
value | GkeNodePoolConfig.GkeNodePoolAutoscalingConfig |
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];
Name | Description |
value | GkeNodePoolConfig.GkeNodeConfig |
Type | Description |
GkeNodePoolConfig.Builder |
mergeFrom(GkeNodePoolConfig other)
public GkeNodePoolConfig.Builder mergeFrom(GkeNodePoolConfig other)
Name | Description |
other | GkeNodePoolConfig |
Type | Description |
GkeNodePoolConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GkeNodePoolConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
GkeNodePoolConfig.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public GkeNodePoolConfig.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
GkeNodePoolConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GkeNodePoolConfig.Builder |
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];
Name | Description |
value | GkeNodePoolConfig.GkeNodePoolAutoscalingConfig |
Type | Description |
GkeNodePoolConfig.Builder |
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];
Name | Description |
builderForValue | GkeNodePoolConfig.GkeNodePoolAutoscalingConfig.Builder |
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];
Name | Description |
value | GkeNodePoolConfig.GkeNodeConfig |
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];
Name | Description |
builderForValue | GkeNodePoolConfig.GkeNodeConfig.Builder |
Type | Description |
GkeNodePoolConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public GkeNodePoolConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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 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];
Name | Description |
index | int The index to set the value at. |
value | String The locations to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
GkeNodePoolConfig.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final GkeNodePoolConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
GkeNodePoolConfig.Builder |