Class KubernetesSoftwareConfig.Builder (4.27.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public KubernetesSoftwareConfig build()
Returns
TypeDescription
KubernetesSoftwareConfig

buildPartial()

public KubernetesSoftwareConfig buildPartial()
Returns
TypeDescription
KubernetesSoftwareConfig

clear()

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

clearComponentVersion()

public KubernetesSoftwareConfig.Builder clearComponentVersion()
Returns
TypeDescription
KubernetesSoftwareConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public KubernetesSoftwareConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
KubernetesSoftwareConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProperties()

public KubernetesSoftwareConfig.Builder clearProperties()
Returns
TypeDescription
KubernetesSoftwareConfig.Builder

clone()

public KubernetesSoftwareConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getComponentVersion()

public Map<String,String> getComponentVersion()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public KubernetesSoftwareConfig getDefaultInstanceForType()
Returns
TypeDescription
KubernetesSoftwareConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableComponentVersion()

public Map<String,String> getMutableComponentVersion()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableProperties()

public Map<String,String> getMutableProperties()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getProperties()

public Map<String,String> getProperties()

Use #getPropertiesMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(KubernetesSoftwareConfig other)

public KubernetesSoftwareConfig.Builder mergeFrom(KubernetesSoftwareConfig other)
Parameter
NameDescription
otherKubernetesSoftwareConfig
Returns
TypeDescription
KubernetesSoftwareConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final KubernetesSoftwareConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
KubernetesSoftwareConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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