Package com.google.cloud.dataproc.v1
Class GkeNodePoolConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
- com.google.cloud.dataproc.v1.GkeNodePoolConfig.Builder
-
- All Implemented Interfaces:
GkeNodePoolConfigOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- GkeNodePoolConfig
public static final class GkeNodePoolConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder> implements GkeNodePoolConfigOrBuilder
The configuration of a GKE node pool used by a [Dataproc-on-GKE cluster](https://cloud.google.com/dataproc/docs/concepts/jobs/dataproc-gke#create-a-dataproc-on-gke-cluster).
Protobuf typegoogle.cloud.dataproc.v1.GkeNodePoolConfig
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
clear
public GkeNodePoolConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
getDefaultInstanceForType
public GkeNodePoolConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GkeNodePoolConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GkeNodePoolConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GkeNodePoolConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
setField
public GkeNodePoolConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
clearField
public GkeNodePoolConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
clearOneof
public GkeNodePoolConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
setRepeatedField
public GkeNodePoolConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
addRepeatedField
public GkeNodePoolConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.Builder mergeFrom(GkeNodePoolConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
mergeFrom
public GkeNodePoolConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolConfig.Builder>
- Throws:
IOException
-
hasConfig
public boolean hasConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasConfig
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- Whether the config field is set.
-
getConfig
public GkeNodePoolConfig.GkeNodeConfig getConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getConfig
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- The config.
-
setConfig
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];
-
setConfig
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];
-
mergeConfig
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];
-
clearConfig
public GkeNodePoolConfig.Builder clearConfig()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getConfigBuilder
public GkeNodePoolConfig.GkeNodeConfig.Builder getConfigBuilder()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
-
getConfigOrBuilder
public GkeNodePoolConfig.GkeNodeConfigOrBuilder getConfigOrBuilder()
Optional. The node pool configuration.
.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfig config = 2 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getConfigOrBuilder
in interfaceGkeNodePoolConfigOrBuilder
-
getLocationsList
public com.google.protobuf.ProtocolStringList getLocationsList()
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];
- Specified by:
getLocationsList
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- A list containing the locations.
-
getLocationsCount
public int getLocationsCount()
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];
- Specified by:
getLocationsCount
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- The count of locations.
-
getLocations
public String getLocations(int index)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];
- Specified by:
getLocations
in interfaceGkeNodePoolConfigOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The locations at the given index.
-
getLocationsBytes
public com.google.protobuf.ByteString getLocationsBytes(int index)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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];
- Specified by:
getLocationsBytes
in interfaceGkeNodePoolConfigOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the locations at the given index.
-
setLocations
public GkeNodePoolConfig.Builder setLocations(int index, String value)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
index
- The index to set the value at.value
- The locations to set.- Returns:
- This builder for chaining.
-
addLocations
public GkeNodePoolConfig.Builder addLocations(String value)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
value
- The locations to add.- Returns:
- This builder for chaining.
-
addAllLocations
public GkeNodePoolConfig.Builder addAllLocations(Iterable<String> values)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
values
- The locations to add.- Returns:
- This builder for chaining.
-
clearLocations
public GkeNodePoolConfig.Builder clearLocations()
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
- This builder for chaining.
-
addLocationsBytes
public GkeNodePoolConfig.Builder addLocationsBytes(com.google.protobuf.ByteString value)
Optional. The list of Compute Engine [zones](https://cloud.google.com/compute/docs/zones#available) 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:
value
- The bytes of the locations to add.- Returns:
- This builder for chaining.
-
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];
- Specified by:
hasAutoscaling
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- Whether the autoscaling field is set.
-
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];
- Specified by:
getAutoscaling
in interfaceGkeNodePoolConfigOrBuilder
- Returns:
- The autoscaling.
-
setAutoscaling
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];
-
setAutoscaling
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];
-
mergeAutoscaling
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];
-
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];
-
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];
-
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];
- Specified by:
getAutoscalingOrBuilder
in interfaceGkeNodePoolConfigOrBuilder
-
setUnknownFields
public final GkeNodePoolConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
mergeUnknownFields
public final GkeNodePoolConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolConfig.Builder>
-
-