Class KubernetesSoftwareConfig.Builder (4.40.0)

public static final class KubernetesSoftwareConfig.Builder extends GeneratedMessageV3.Builder<KubernetesSoftwareConfig.Builder> implements KubernetesSoftwareConfigOrBuilder

The software configuration for this Dataproc cluster running on Kubernetes.

Protobuf type google.cloud.dataproc.v1.KubernetesSoftwareConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesSoftwareConfig build()
Returns
Type Description
KubernetesSoftwareConfig

buildPartial()

public KubernetesSoftwareConfig buildPartial()
Returns
Type Description
KubernetesSoftwareConfig

clear()

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

clearComponentVersion()

public KubernetesSoftwareConfig.Builder clearComponentVersion()
Returns
Type Description
KubernetesSoftwareConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperties()

public KubernetesSoftwareConfig.Builder clearProperties()
Returns
Type Description
KubernetesSoftwareConfig.Builder

clone()

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

containsComponentVersion(String key)

public boolean containsComponentVersion(String key)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

containsProperties(String key)

public boolean containsProperties(String key)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameter
Name Description
key String
Returns
Type Description
boolean

getComponentVersion() (deprecated)

public Map<String,String> getComponentVersion()
Returns
Type Description
Map<String,String>

getComponentVersionCount()

public int getComponentVersionCount()

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Returns
Type Description
int

getComponentVersionMap()

public Map<String,String> getComponentVersionMap()

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Returns
Type Description
Map<String,String>

getComponentVersionOrDefault(String key, String defaultValue)

public String getComponentVersionOrDefault(String key, String defaultValue)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getComponentVersionOrThrow(String key)

public String getComponentVersionOrThrow(String key)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameter
Name Description
key String
Returns
Type Description
String

getDefaultInstanceForType()

public KubernetesSoftwareConfig getDefaultInstanceForType()
Returns
Type Description
KubernetesSoftwareConfig

getDescriptorForType()

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

getMutableComponentVersion() (deprecated)

public Map<String,String> getMutableComponentVersion()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableProperties() (deprecated)

public Map<String,String> getMutableProperties()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getProperties() (deprecated)

public Map<String,String> getProperties()

Use #getPropertiesMap() instead.

Returns
Type Description
Map<String,String>

getPropertiesCount()

public int getPropertiesCount()

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Returns
Type Description
int

getPropertiesMap()

public Map<String,String> getPropertiesMap()

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Returns
Type Description
Map<String,String>

getPropertiesOrDefault(String key, String defaultValue)

public String getPropertiesOrDefault(String key, String defaultValue)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getPropertiesOrThrow(String key)

public String getPropertiesOrThrow(String key)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameter
Name Description
key String
Returns
Type Description
String

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KubernetesSoftwareConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllComponentVersion(Map<String,String> values)

public KubernetesSoftwareConfig.Builder putAllComponentVersion(Map<String,String> values)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
KubernetesSoftwareConfig.Builder

putAllProperties(Map<String,String> values)

public KubernetesSoftwareConfig.Builder putAllProperties(Map<String,String> values)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
KubernetesSoftwareConfig.Builder

putComponentVersion(String key, String value)

public KubernetesSoftwareConfig.Builder putComponentVersion(String key, String value)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameters
Name Description
key String
value String
Returns
Type Description
KubernetesSoftwareConfig.Builder

putProperties(String key, String value)

public KubernetesSoftwareConfig.Builder putProperties(String key, String value)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameters
Name Description
key String
value String
Returns
Type Description
KubernetesSoftwareConfig.Builder

removeComponentVersion(String key)

public KubernetesSoftwareConfig.Builder removeComponentVersion(String key)

The components that should be installed in this Dataproc cluster. The key must be a string from the KubernetesComponent enumeration. The value is the version of the software to be installed. At least one entry must be specified.

map<string, string> component_version = 1;

Parameter
Name Description
key String
Returns
Type Description
KubernetesSoftwareConfig.Builder

removeProperties(String key)

public KubernetesSoftwareConfig.Builder removeProperties(String key)

The properties to set on daemon config files.

Property keys are specified in prefix:property format, for example spark:spark.kubernetes.container.image. The following are supported prefixes and their mappings:

map<string, string> properties = 2;

Parameter
Name Description
key String
Returns
Type Description
KubernetesSoftwareConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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