Class KubernetesClusterConfig.Builder (4.43.0)

public static final class KubernetesClusterConfig.Builder extends GeneratedMessageV3.Builder<KubernetesClusterConfig.Builder> implements KubernetesClusterConfigOrBuilder

The configuration for running the Dataproc cluster on Kubernetes.

Protobuf type google.cloud.dataproc.v1.KubernetesClusterConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesClusterConfig build()
Returns
Type Description
KubernetesClusterConfig

buildPartial()

public KubernetesClusterConfig buildPartial()
Returns
Type Description
KubernetesClusterConfig

clear()

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

clearConfig()

public KubernetesClusterConfig.Builder clearConfig()
Returns
Type Description
KubernetesClusterConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public KubernetesClusterConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
KubernetesClusterConfig.Builder
Overrides

clearGkeClusterConfig()

public KubernetesClusterConfig.Builder clearGkeClusterConfig()

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
KubernetesClusterConfig.Builder

clearKubernetesNamespace()

public KubernetesClusterConfig.Builder clearKubernetesNamespace()

Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.

string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesClusterConfig.Builder

This builder for chaining.

clearKubernetesSoftwareConfig()

public KubernetesClusterConfig.Builder clearKubernetesSoftwareConfig()

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesClusterConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConfigCase()

public KubernetesClusterConfig.ConfigCase getConfigCase()
Returns
Type Description
KubernetesClusterConfig.ConfigCase

getDefaultInstanceForType()

public KubernetesClusterConfig getDefaultInstanceForType()
Returns
Type Description
KubernetesClusterConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGkeClusterConfig()

public GkeClusterConfig getGkeClusterConfig()

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GkeClusterConfig

The gkeClusterConfig.

getGkeClusterConfigBuilder()

public GkeClusterConfig.Builder getGkeClusterConfigBuilder()

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GkeClusterConfig.Builder

getGkeClusterConfigOrBuilder()

public GkeClusterConfigOrBuilder getGkeClusterConfigOrBuilder()

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GkeClusterConfigOrBuilder

getKubernetesNamespace()

public String getKubernetesNamespace()

Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.

string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The kubernetesNamespace.

getKubernetesNamespaceBytes()

public ByteString getKubernetesNamespaceBytes()

Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.

string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for kubernetesNamespace.

getKubernetesSoftwareConfig()

public KubernetesSoftwareConfig getKubernetesSoftwareConfig()

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesSoftwareConfig

The kubernetesSoftwareConfig.

getKubernetesSoftwareConfigBuilder()

public KubernetesSoftwareConfig.Builder getKubernetesSoftwareConfigBuilder()

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesSoftwareConfig.Builder

getKubernetesSoftwareConfigOrBuilder()

public KubernetesSoftwareConfigOrBuilder getKubernetesSoftwareConfigOrBuilder()

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KubernetesSoftwareConfigOrBuilder

hasGkeClusterConfig()

public boolean hasGkeClusterConfig()

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gkeClusterConfig field is set.

hasKubernetesSoftwareConfig()

public boolean hasKubernetesSoftwareConfig()

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the kubernetesSoftwareConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesClusterConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGkeClusterConfig(GkeClusterConfig value)

public KubernetesClusterConfig.Builder mergeGkeClusterConfig(GkeClusterConfig value)

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GkeClusterConfig
Returns
Type Description
KubernetesClusterConfig.Builder

mergeKubernetesSoftwareConfig(KubernetesSoftwareConfig value)

public KubernetesClusterConfig.Builder mergeKubernetesSoftwareConfig(KubernetesSoftwareConfig value)

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KubernetesSoftwareConfig
Returns
Type Description
KubernetesClusterConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setGkeClusterConfig(GkeClusterConfig value)

public KubernetesClusterConfig.Builder setGkeClusterConfig(GkeClusterConfig value)

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value GkeClusterConfig
Returns
Type Description
KubernetesClusterConfig.Builder

setGkeClusterConfig(GkeClusterConfig.Builder builderForValue)

public KubernetesClusterConfig.Builder setGkeClusterConfig(GkeClusterConfig.Builder builderForValue)

Required. The configuration for running the Dataproc cluster on GKE.

.google.cloud.dataproc.v1.GkeClusterConfig gke_cluster_config = 2 [(.google.api.field_behavior) = REQUIRED];

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

setKubernetesNamespace(String value)

public KubernetesClusterConfig.Builder setKubernetesNamespace(String value)

Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.

string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The kubernetesNamespace to set.

Returns
Type Description
KubernetesClusterConfig.Builder

This builder for chaining.

setKubernetesNamespaceBytes(ByteString value)

public KubernetesClusterConfig.Builder setKubernetesNamespaceBytes(ByteString value)

Optional. A namespace within the Kubernetes cluster to deploy into. If this namespace does not exist, it is created. If it exists, Dataproc verifies that another Dataproc VirtualCluster is not installed into it. If not specified, the name of the Dataproc Cluster is used.

string kubernetes_namespace = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for kubernetesNamespace to set.

Returns
Type Description
KubernetesClusterConfig.Builder

This builder for chaining.

setKubernetesSoftwareConfig(KubernetesSoftwareConfig value)

public KubernetesClusterConfig.Builder setKubernetesSoftwareConfig(KubernetesSoftwareConfig value)

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value KubernetesSoftwareConfig
Returns
Type Description
KubernetesClusterConfig.Builder

setKubernetesSoftwareConfig(KubernetesSoftwareConfig.Builder builderForValue)

public KubernetesClusterConfig.Builder setKubernetesSoftwareConfig(KubernetesSoftwareConfig.Builder builderForValue)

Optional. The software configuration for this Dataproc cluster running on Kubernetes.

.google.cloud.dataproc.v1.KubernetesSoftwareConfig kubernetes_software_config = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue KubernetesSoftwareConfig.Builder
Returns
Type Description
KubernetesClusterConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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