Class KubernetesClusterConfig.Builder (4.20.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesClusterConfig build()
Returns
TypeDescription
KubernetesClusterConfig

buildPartial()

public KubernetesClusterConfig buildPartial()
Returns
TypeDescription
KubernetesClusterConfig

clear()

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

clearConfig()

public KubernetesClusterConfig.Builder clearConfig()
Returns
TypeDescription
KubernetesClusterConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getConfigCase()

public KubernetesClusterConfig.ConfigCase getConfigCase()
Returns
TypeDescription
KubernetesClusterConfig.ConfigCase

getDefaultInstanceForType()

public KubernetesClusterConfig getDefaultInstanceForType()
Returns
TypeDescription
KubernetesClusterConfig

getDescriptorForType()

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

Whether the kubernetesSoftwareConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KubernetesClusterConfig other)

public KubernetesClusterConfig.Builder mergeFrom(KubernetesClusterConfig other)
Parameter
NameDescription
otherKubernetesClusterConfig
Returns
TypeDescription
KubernetesClusterConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public KubernetesClusterConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueGkeClusterConfig
Returns
TypeDescription
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
NameDescription
valueKubernetesSoftwareConfig
Returns
TypeDescription
KubernetesClusterConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesClusterConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
KubernetesClusterConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The kubernetesNamespace to set.

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

The bytes for kubernetesNamespace to set.

Returns
TypeDescription
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
NameDescription
valueKubernetesSoftwareConfig
Returns
TypeDescription
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
NameDescription
builderForValueKubernetesSoftwareConfig.Builder
Returns
TypeDescription
KubernetesClusterConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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