public static final class SoftwareConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder> implements SoftwareConfigOrBuilder
Specifies the selection and config of software inside the cluster.Protobuf type
google.cloud.dataproc.v1.SoftwareConfig| Modifier and Type | Method and Description |
|---|---|
SoftwareConfig.Builder |
addAllOptionalComponents(Iterable<? extends Component> values)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
addAllOptionalComponentsValue(Iterable<Integer> values)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
addOptionalComponents(Component value)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
addOptionalComponentsValue(int value)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SoftwareConfig |
build() |
SoftwareConfig |
buildPartial() |
SoftwareConfig.Builder |
clear() |
SoftwareConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SoftwareConfig.Builder |
clearImageVersion()
Optional.
|
SoftwareConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SoftwareConfig.Builder |
clearOptionalComponents()
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
clearProperties() |
SoftwareConfig.Builder |
clone() |
boolean |
containsProperties(String key)
Optional.
|
SoftwareConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getImageVersion()
Optional.
|
com.google.protobuf.ByteString |
getImageVersionBytes()
Optional.
|
Map<String,String> |
getMutableProperties()
Deprecated.
|
Component |
getOptionalComponents(int index)
The set of optional components to activate on the cluster.
|
int |
getOptionalComponentsCount()
The set of optional components to activate on the cluster.
|
List<Component> |
getOptionalComponentsList()
The set of optional components to activate on the cluster.
|
int |
getOptionalComponentsValue(int index)
The set of optional components to activate on the cluster.
|
List<Integer> |
getOptionalComponentsValueList()
The set of optional components to activate on the cluster.
|
Map<String,String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Optional.
|
Map<String,String> |
getPropertiesMap()
Optional.
|
String |
getPropertiesOrDefault(String key,
String defaultValue)
Optional.
|
String |
getPropertiesOrThrow(String key)
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
SoftwareConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SoftwareConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
SoftwareConfig.Builder |
mergeFrom(SoftwareConfig other) |
SoftwareConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SoftwareConfig.Builder |
putAllProperties(Map<String,String> values)
Optional.
|
SoftwareConfig.Builder |
putProperties(String key,
String value)
Optional.
|
SoftwareConfig.Builder |
removeProperties(String key)
Optional.
|
SoftwareConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SoftwareConfig.Builder |
setImageVersion(String value)
Optional.
|
SoftwareConfig.Builder |
setImageVersionBytes(com.google.protobuf.ByteString value)
Optional.
|
SoftwareConfig.Builder |
setOptionalComponents(int index,
Component value)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
setOptionalComponentsValue(int index,
int value)
The set of optional components to activate on the cluster.
|
SoftwareConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SoftwareConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SoftwareConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SoftwareConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SoftwareConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder mergeFrom(SoftwareConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public SoftwareConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SoftwareConfig.Builder>IOExceptionpublic String getImageVersion()
Optional. The version of software inside the cluster. It must be one of the supported [Cloud Dataproc Versions](/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
string image_version = 1;getImageVersion in interface SoftwareConfigOrBuilderpublic com.google.protobuf.ByteString getImageVersionBytes()
Optional. The version of software inside the cluster. It must be one of the supported [Cloud Dataproc Versions](/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
string image_version = 1;getImageVersionBytes in interface SoftwareConfigOrBuilderpublic SoftwareConfig.Builder setImageVersion(String value)
Optional. The version of software inside the cluster. It must be one of the supported [Cloud Dataproc Versions](/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
string image_version = 1;public SoftwareConfig.Builder clearImageVersion()
Optional. The version of software inside the cluster. It must be one of the supported [Cloud Dataproc Versions](/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
string image_version = 1;public SoftwareConfig.Builder setImageVersionBytes(com.google.protobuf.ByteString value)
Optional. The version of software inside the cluster. It must be one of the supported [Cloud Dataproc Versions](/dataproc/docs/concepts/versioning/dataproc-versions#supported_cloud_dataproc_versions), such as "1.2" (including a subminor version, such as "1.2.29"), or the ["preview" version](/dataproc/docs/concepts/versioning/dataproc-versions#other_versions). If unspecified, it defaults to the latest Debian version.
string image_version = 1;public int getPropertiesCount()
SoftwareConfigOrBuilderOptional. 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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;getPropertiesCount in interface SoftwareConfigOrBuilderpublic 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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;containsProperties in interface SoftwareConfigOrBuilder@Deprecated public Map<String,String> getProperties()
getPropertiesMap() instead.getProperties in interface SoftwareConfigOrBuilderpublic 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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;getPropertiesMap in interface SoftwareConfigOrBuilderpublic 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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;getPropertiesOrDefault in interface SoftwareConfigOrBuilderpublic 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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;getPropertiesOrThrow in interface SoftwareConfigOrBuilderpublic SoftwareConfig.Builder clearProperties()
public SoftwareConfig.Builder removeProperties(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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;@Deprecated public Map<String,String> getMutableProperties()
public SoftwareConfig.Builder putProperties(String key, String value)
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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;public SoftwareConfig.Builder putAllProperties(Map<String,String> values)
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](/dataproc/docs/concepts/cluster-properties).
map<string, string> properties = 2;public List<Component> getOptionalComponentsList()
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;getOptionalComponentsList in interface SoftwareConfigOrBuilderpublic int getOptionalComponentsCount()
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;getOptionalComponentsCount in interface SoftwareConfigOrBuilderpublic Component getOptionalComponents(int index)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;getOptionalComponents in interface SoftwareConfigOrBuilderpublic SoftwareConfig.Builder setOptionalComponents(int index, Component value)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public SoftwareConfig.Builder addOptionalComponents(Component value)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public SoftwareConfig.Builder addAllOptionalComponents(Iterable<? extends Component> values)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public SoftwareConfig.Builder clearOptionalComponents()
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public List<Integer> getOptionalComponentsValueList()
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;getOptionalComponentsValueList in interface SoftwareConfigOrBuilderpublic int getOptionalComponentsValue(int index)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;getOptionalComponentsValue in interface SoftwareConfigOrBuilderpublic SoftwareConfig.Builder setOptionalComponentsValue(int index, int value)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public SoftwareConfig.Builder addOptionalComponentsValue(int value)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public SoftwareConfig.Builder addAllOptionalComponentsValue(Iterable<Integer> values)
The set of optional components to activate on the cluster.
repeated .google.cloud.dataproc.v1.Component optional_components = 3;public final SoftwareConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>public final SoftwareConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>Copyright © 2019 Google LLC. All rights reserved.