Class GkeClusterConfig.Builder (4.46.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
Type Description
Descriptor

Methods

addAllNodePoolTarget(Iterable<? extends GkeNodePoolTarget> values)

public GkeClusterConfig.Builder addAllNodePoolTarget(Iterable<? extends GkeNodePoolTarget> values)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

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
Type Description
GkeClusterConfig.Builder

addNodePoolTarget(GkeNodePoolTarget value)

public GkeClusterConfig.Builder addNodePoolTarget(GkeNodePoolTarget value)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value GkeNodePoolTarget
Returns
Type Description
GkeClusterConfig.Builder

addNodePoolTarget(GkeNodePoolTarget.Builder builderForValue)

public GkeClusterConfig.Builder addNodePoolTarget(GkeNodePoolTarget.Builder builderForValue)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue GkeNodePoolTarget.Builder
Returns
Type Description
GkeClusterConfig.Builder

addNodePoolTarget(int index, GkeNodePoolTarget value)

public GkeClusterConfig.Builder addNodePoolTarget(int index, GkeNodePoolTarget value)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GkeNodePoolTarget
Returns
Type Description
GkeClusterConfig.Builder

addNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)

public GkeClusterConfig.Builder addNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GkeNodePoolTarget.Builder
Returns
Type Description
GkeClusterConfig.Builder

addNodePoolTargetBuilder()

public GkeNodePoolTarget.Builder addNodePoolTargetBuilder()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeNodePoolTarget.Builder

addNodePoolTargetBuilder(int index)

public GkeNodePoolTarget.Builder addNodePoolTargetBuilder(int index)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GkeNodePoolTarget.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public GkeClusterConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
GkeClusterConfig.Builder
Overrides

build()

public GkeClusterConfig build()
Returns
Type Description
GkeClusterConfig

buildPartial()

public GkeClusterConfig buildPartial()
Returns
Type Description
GkeClusterConfig

clear()

public GkeClusterConfig.Builder clear()
Returns
Type Description
GkeClusterConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GkeClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Returns
Type Description
GkeClusterConfig.Builder

This builder for chaining.

clearNodePoolTarget()

public GkeClusterConfig.Builder clearNodePoolTarget()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
GkeClusterConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public GkeClusterConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
GkeClusterConfig.Builder
Overrides

clone()

public GkeClusterConfig.Builder clone()
Returns
Type Description
GkeClusterConfig.Builder
Overrides

getDefaultInstanceForType()

public GkeClusterConfig getDefaultInstanceForType()
Returns
Type Description
GkeClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

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, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for gkeClusterTarget.

getNodePoolTarget(int index)

public GkeNodePoolTarget getNodePoolTarget(int index)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GkeNodePoolTarget

getNodePoolTargetBuilder(int index)

public GkeNodePoolTarget.Builder getNodePoolTargetBuilder(int index)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GkeNodePoolTarget.Builder

getNodePoolTargetBuilderList()

public List<GkeNodePoolTarget.Builder> getNodePoolTargetBuilderList()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getNodePoolTargetCount()

public int getNodePoolTargetCount()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNodePoolTargetList()

public List<GkeNodePoolTarget> getNodePoolTargetList()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<GkeNodePoolTarget>

getNodePoolTargetOrBuilder(int index)

public GkeNodePoolTargetOrBuilder getNodePoolTargetOrBuilder(int index)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GkeNodePoolTargetOrBuilder

getNodePoolTargetOrBuilderList()

public List<? extends GkeNodePoolTargetOrBuilder> getNodePoolTargetOrBuilderList()

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GkeClusterConfig other)

public GkeClusterConfig.Builder mergeFrom(GkeClusterConfig other)
Parameter
Name Description
other GkeClusterConfig
Returns
Type Description
GkeClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public GkeClusterConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
GkeClusterConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public GkeClusterConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
GkeClusterConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GkeClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GkeClusterConfig.Builder
Overrides

removeNodePoolTarget(int index)

public GkeClusterConfig.Builder removeNodePoolTarget(int index)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
GkeClusterConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public GkeClusterConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The gkeClusterTarget to set.

Returns
Type Description
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, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for gkeClusterTarget to set.

Returns
Type Description
GkeClusterConfig.Builder

This builder for chaining.

setNodePoolTarget(int index, GkeNodePoolTarget value)

public GkeClusterConfig.Builder setNodePoolTarget(int index, GkeNodePoolTarget value)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value GkeNodePoolTarget
Returns
Type Description
GkeClusterConfig.Builder

setNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)

public GkeClusterConfig.Builder setNodePoolTarget(int index, GkeNodePoolTarget.Builder builderForValue)

Optional. GKE node pools where workloads will be scheduled. At least one node pool must be assigned the DEFAULT GkeNodePoolTarget.Role. If a GkeNodePoolTarget is not specified, Dataproc constructs a DEFAULT GkeNodePoolTarget. Each role can be given to only one GkeNodePoolTarget. All node pools must have the same location settings.

repeated .google.cloud.dataproc.v1.GkeNodePoolTarget node_pool_target = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue GkeNodePoolTarget.Builder
Returns
Type Description
GkeClusterConfig.Builder

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

public GkeClusterConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
GkeClusterConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final GkeClusterConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GkeClusterConfig.Builder
Overrides