Class GkeClusterConfig.Builder (4.3.0)

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

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
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.GkeNodePoolTarget>
Returns
TypeDescription
GkeClusterConfig.Builder

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
NameDescription
valueGkeNodePoolTarget
Returns
TypeDescription
GkeClusterConfig.Builder

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
NameDescription
builderForValueGkeNodePoolTarget.Builder
Returns
TypeDescription
GkeClusterConfig.Builder

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
NameDescription
indexint
valueGkeNodePoolTarget
Returns
TypeDescription
GkeClusterConfig.Builder

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
NameDescription
indexint
builderForValueGkeNodePoolTarget.Builder
Returns
TypeDescription
GkeClusterConfig.Builder

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

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
NameDescription
indexint
Returns
TypeDescription
GkeNodePoolTarget.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GkeClusterConfig build()
Returns
TypeDescription
GkeClusterConfig

buildPartial()

public GkeClusterConfig buildPartial()
Returns
TypeDescription
GkeClusterConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public GkeClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GkeClusterConfig.Builder
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
TypeDescription
GkeClusterConfig.Builder

This builder for chaining.

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GkeClusterConfig.Builder clone()
Returns
TypeDescription
GkeClusterConfig.Builder
Overrides

getDefaultInstanceForType()

public GkeClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
GkeClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
GkeNodePoolTarget

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
NameDescription
indexint
Returns
TypeDescription
GkeNodePoolTarget.Builder

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
TypeDescription
List<Builder>

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

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
TypeDescription
List<GkeNodePoolTarget>

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
NameDescription
indexint
Returns
TypeDescription
GkeNodePoolTargetOrBuilder

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
TypeDescription
List<? extends com.google.cloud.dataproc.v1.GkeNodePoolTargetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GkeClusterConfig other)

public GkeClusterConfig.Builder mergeFrom(GkeClusterConfig other)
Parameter
NameDescription
otherGkeClusterConfig
Returns
TypeDescription
GkeClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GkeClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GkeClusterConfig.Builder
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
NameDescription
indexint
Returns
TypeDescription
GkeClusterConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GkeClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
GkeClusterConfig.Builder
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
NameDescription
valueString

The gkeClusterTarget to set.

Returns
TypeDescription
GkeClusterConfig.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for gkeClusterTarget to set.

Returns
TypeDescription
GkeClusterConfig.Builder

This builder for chaining.

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
NameDescription
indexint
valueGkeNodePoolTarget
Returns
TypeDescription
GkeClusterConfig.Builder

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
NameDescription
indexint
builderForValueGkeNodePoolTarget.Builder
Returns
TypeDescription
GkeClusterConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public GkeClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GkeClusterConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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