public static final class GkeClusterConfig.Builder extends GeneratedMessageV3.Builder<GkeClusterConfig.Builder> implements GkeClusterConfigOrBuilder
The cluster's GKE config.
Protobuf type google.cloud.dataproc.v1.GkeClusterConfig
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllNodePoolTarget(Iterable<? extends GkeNodePoolTarget> values)
public GkeClusterConfig.Builder addAllNodePoolTarget(Iterable<? extends GkeNodePoolTarget> values)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.dataproc.v1.GkeNodePoolTarget>
|
Returns
addNodePoolTarget(GkeNodePoolTarget value)
public GkeClusterConfig.Builder addNodePoolTarget(GkeNodePoolTarget value)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addNodePoolTarget(GkeNodePoolTarget.Builder builderForValue)
public GkeClusterConfig.Builder addNodePoolTarget(GkeNodePoolTarget.Builder builderForValue)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addNodePoolTarget(int index, GkeNodePoolTarget value)
public GkeClusterConfig.Builder addNodePoolTarget(int index, GkeNodePoolTarget value)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)
public GkeClusterConfig.Builder addNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
addNodePoolTargetBuilder()
public GkeNodePoolTarget.Builder addNodePoolTargetBuilder()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
addNodePoolTargetBuilder(int index)
public GkeNodePoolTarget.Builder addNodePoolTargetBuilder(int index)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GkeClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GkeClusterConfig build()
Returns
buildPartial()
public GkeClusterConfig buildPartial()
Returns
clear()
public GkeClusterConfig.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GkeClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearGkeClusterTarget()
public GkeClusterConfig.Builder clearGkeClusterTarget()
Optional. A target GKE cluster to deploy to. It must be in the same project and
region as the Dataproc cluster (the GKE cluster can be zonal or regional).
Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearNodePoolTarget()
public GkeClusterConfig.Builder clearNodePoolTarget()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public GkeClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public GkeClusterConfig.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GkeClusterConfig getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getGkeClusterTarget()
public String getGkeClusterTarget()
Optional. A target GKE cluster to deploy to. It must be in the same project and
region as the Dataproc cluster (the GKE cluster can be zonal or regional).
Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The gkeClusterTarget.
|
getGkeClusterTargetBytes()
public ByteString getGkeClusterTargetBytes()
Optional. A target GKE cluster to deploy to. It must be in the same project and
region as the Dataproc cluster (the GKE cluster can be zonal or regional).
Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
ByteString | The bytes for gkeClusterTarget.
|
getNodePoolTarget(int index)
public GkeNodePoolTarget getNodePoolTarget(int index)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getNodePoolTargetBuilder(int index)
public GkeNodePoolTarget.Builder getNodePoolTargetBuilder(int index)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getNodePoolTargetBuilderList()
public List<GkeNodePoolTarget.Builder> getNodePoolTargetBuilderList()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getNodePoolTargetCount()
public int getNodePoolTargetCount()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getNodePoolTargetList()
public List<GkeNodePoolTarget> getNodePoolTargetList()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
getNodePoolTargetOrBuilder(int index)
public GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getNodePoolTargetOrBuilderList()
public List<? extends GkeNodePoolTargetOrBuilder> getNodePoolTargetOrBuilderList()
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<? extends com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GkeClusterConfig other)
public GkeClusterConfig.Builder mergeFrom(GkeClusterConfig other)
Parameter
Returns
public GkeClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GkeClusterConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GkeClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeNodePoolTarget(int index)
public GkeClusterConfig.Builder removeNodePoolTarget(int index)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public GkeClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setGkeClusterTarget(String value)
public GkeClusterConfig.Builder setGkeClusterTarget(String value)
Optional. A target GKE cluster to deploy to. It must be in the same project and
region as the Dataproc cluster (the GKE cluster can be zonal or regional).
Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | String
The gkeClusterTarget to set.
|
Returns
setGkeClusterTargetBytes(ByteString value)
public GkeClusterConfig.Builder setGkeClusterTargetBytes(ByteString value)
Optional. A target GKE cluster to deploy to. It must be in the same project and
region as the Dataproc cluster (the GKE cluster can be zonal or regional).
Format: 'projects/{project}/locations/{location}/clusters/{cluster_id}'
string gke_cluster_target = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
value | ByteString
The bytes for gkeClusterTarget to set.
|
Returns
setNodePoolTarget(int index, GkeNodePoolTarget value)
public GkeClusterConfig.Builder setNodePoolTarget(int index, GkeNodePoolTarget value)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)
public GkeClusterConfig.Builder setNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)
Optional. GKE NodePools where workloads will be scheduled. At least one node pool
must be assigned the 'default' role. Each role can be given to only a
single NodePoolTarget. All NodePools must have the same location settings.
If a nodePoolTarget is not specified, Dataproc constructs a default
nodePoolTarget.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GkeClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final GkeClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides