public final class SoftwareConfig extends GeneratedMessageV3 implements SoftwareConfigOrBuilder
Specifies the selection and config of software inside the cluster.
Protobuf type google.cloud.dataproc.v1.SoftwareConfig
Fields
IMAGE_VERSION_FIELD_NUMBER
public static final int IMAGE_VERSION_FIELD_NUMBER
Field Value
OPTIONAL_COMPONENTS_FIELD_NUMBER
public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER
Field Value
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
Field Value
Methods
containsProperties(String key)
public boolean containsProperties(String key)
Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property
format, for example
core:hadoop.tmp.dir
. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml
- core:
core-site.xml
- distcp:
distcp-default.xml
- hdfs:
hdfs-site.xml
- hive:
hive-site.xml
- mapred:
mapred-site.xml
- pig:
pig.properties
- spark:
spark-defaults.conf
- yarn:
yarn-site.xml
For more information, see Cluster
properties.
map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static SoftwareConfig getDefaultInstance()
Returns
getDefaultInstanceForType()
public SoftwareConfig getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getImageVersion()
public String getImageVersion()
Optional. The version of software inside the cluster. It must be one of the
supported Dataproc
Versions,
such as "1.2" (including a subminor version, such as "1.2.29"), or the
"preview"
version.
If unspecified, it defaults to the latest Debian version.
string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
String | The imageVersion.
|
getImageVersionBytes()
public ByteString getImageVersionBytes()
Optional. The version of software inside the cluster. It must be one of the
supported Dataproc
Versions,
such as "1.2" (including a subminor version, such as "1.2.29"), or the
"preview"
version.
If unspecified, it defaults to the latest Debian version.
string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
ByteString | The bytes for imageVersion.
|
getOptionalComponents(int index)
public Component getOptionalComponents(int index)
Optional. The set of components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
Component | The optionalComponents at the given index.
|
getOptionalComponentsCount()
public int getOptionalComponentsCount()
Optional. The set of components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
int | The count of optionalComponents.
|
getOptionalComponentsList()
public List<Component> getOptionalComponentsList()
Optional. The set of components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<Component> | A list containing the optionalComponents.
|
getOptionalComponentsValue(int index)
public int getOptionalComponentsValue(int index)
Optional. The set of components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
int | The enum numeric value on the wire of optionalComponents at the given index.
|
getOptionalComponentsValueList()
public List<Integer> getOptionalComponentsValueList()
Optional. The set of components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
Returns
Type | Description |
List<Integer> | A list containing the enum numeric values on the wire for optionalComponents.
|
getParserForType()
public Parser<SoftwareConfig> getParserForType()
Returns
Overrides
getProperties()
public Map<String,String> getProperties()
Returns
getPropertiesCount()
public int getPropertiesCount()
Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property
format, for example
core:hadoop.tmp.dir
. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml
- core:
core-site.xml
- distcp:
distcp-default.xml
- hdfs:
hdfs-site.xml
- hive:
hive-site.xml
- mapred:
mapred-site.xml
- pig:
pig.properties
- spark:
spark-defaults.conf
- yarn:
yarn-site.xml
For more information, see Cluster
properties.
map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getPropertiesMap()
public Map<String,String> getPropertiesMap()
Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property
format, for example
core:hadoop.tmp.dir
. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml
- core:
core-site.xml
- distcp:
distcp-default.xml
- hdfs:
hdfs-site.xml
- hive:
hive-site.xml
- mapred:
mapred-site.xml
- pig:
pig.properties
- spark:
spark-defaults.conf
- yarn:
yarn-site.xml
For more information, see Cluster
properties.
map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns
getPropertiesOrDefault(String key, String defaultValue)
public String getPropertiesOrDefault(String key, String defaultValue)
Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property
format, for example
core:hadoop.tmp.dir
. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml
- core:
core-site.xml
- distcp:
distcp-default.xml
- hdfs:
hdfs-site.xml
- hive:
hive-site.xml
- mapred:
mapred-site.xml
- pig:
pig.properties
- spark:
spark-defaults.conf
- yarn:
yarn-site.xml
For more information, see Cluster
properties.
map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters
Returns
getPropertiesOrThrow(String key)
public String getPropertiesOrThrow(String key)
Optional. The properties to set on daemon config files.
Property keys are specified in prefix:property
format, for example
core:hadoop.tmp.dir
. The following are supported prefixes
and their mappings:
- capacity-scheduler:
capacity-scheduler.xml
- core:
core-site.xml
- distcp:
distcp-default.xml
- hdfs:
hdfs-site.xml
- hive:
hive-site.xml
- mapred:
mapred-site.xml
- pig:
pig.properties
- spark:
spark-defaults.conf
- yarn:
yarn-site.xml
For more information, see Cluster
properties.
map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static SoftwareConfig.Builder newBuilder()
Returns
newBuilder(SoftwareConfig prototype)
public static SoftwareConfig.Builder newBuilder(SoftwareConfig prototype)
Parameter
Returns
newBuilderForType()
public SoftwareConfig.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SoftwareConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static SoftwareConfig parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SoftwareConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SoftwareConfig parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SoftwareConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SoftwareConfig parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SoftwareConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SoftwareConfig parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SoftwareConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SoftwareConfig parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SoftwareConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SoftwareConfig parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SoftwareConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SoftwareConfig> parser()
Returns
toBuilder()
public SoftwareConfig.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions