Class SoftwareConfig.Builder

  • All Implemented Interfaces:
    SoftwareConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SoftwareConfig

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • clear

        public SoftwareConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • getDefaultInstanceForType

        public SoftwareConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SoftwareConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SoftwareConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SoftwareConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • setField

        public SoftwareConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • clearField

        public SoftwareConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • clearOneof

        public SoftwareConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • setRepeatedField

        public SoftwareConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • addRepeatedField

        public SoftwareConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • mergeFrom

        public SoftwareConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SoftwareConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • mergeFrom

        public SoftwareConfig.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SoftwareConfig.Builder>
        Throws:
        IOException
      • getImageVersion

        public String getImageVersion()
         Optional. The version of software inside the cluster. It must be one of the
         supported [Dataproc
         Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
         such as "1.2" (including a subminor version, such as "1.2.29"), or the
         ["preview"
         version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
         If unspecified, it defaults to the latest Debian version.
         
        string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getImageVersion in interface SoftwareConfigOrBuilder
        Returns:
        The imageVersion.
      • getImageVersionBytes

        public com.google.protobuf.ByteString getImageVersionBytes()
         Optional. The version of software inside the cluster. It must be one of the
         supported [Dataproc
         Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
         such as "1.2" (including a subminor version, such as "1.2.29"), or the
         ["preview"
         version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
         If unspecified, it defaults to the latest Debian version.
         
        string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getImageVersionBytes in interface SoftwareConfigOrBuilder
        Returns:
        The bytes for imageVersion.
      • setImageVersion

        public SoftwareConfig.Builder setImageVersion​(String value)
         Optional. The version of software inside the cluster. It must be one of the
         supported [Dataproc
         Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
         such as "1.2" (including a subminor version, such as "1.2.29"), or the
         ["preview"
         version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
         If unspecified, it defaults to the latest Debian version.
         
        string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The imageVersion to set.
        Returns:
        This builder for chaining.
      • clearImageVersion

        public SoftwareConfig.Builder clearImageVersion()
         Optional. The version of software inside the cluster. It must be one of the
         supported [Dataproc
         Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
         such as "1.2" (including a subminor version, such as "1.2.29"), or the
         ["preview"
         version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
         If unspecified, it defaults to the latest Debian version.
         
        string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setImageVersionBytes

        public SoftwareConfig.Builder setImageVersionBytes​(com.google.protobuf.ByteString value)
         Optional. The version of software inside the cluster. It must be one of the
         supported [Dataproc
         Versions](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#supported_dataproc_versions),
         such as "1.2" (including a subminor version, such as "1.2.29"), or the
         ["preview"
         version](https://cloud.google.com/dataproc/docs/concepts/versioning/dataproc-versions#other_versions).
         If unspecified, it defaults to the latest Debian version.
         
        string image_version = 1 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for imageVersion to set.
        Returns:
        This builder for chaining.
      • getPropertiesCount

        public int getPropertiesCount()
        Description copied from interface: SoftwareConfigOrBuilder
         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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesCount in interface SoftwareConfigOrBuilder
      • containsProperties

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsProperties in interface SoftwareConfigOrBuilder
      • 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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesMap in interface SoftwareConfigOrBuilder
      • getPropertiesOrDefault

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrDefault in interface SoftwareConfigOrBuilder
      • getPropertiesOrThrow

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrThrow in interface SoftwareConfigOrBuilder
      • removeProperties

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableProperties

        @Deprecated
        public Map<String,​String> getMutableProperties()
        Deprecated.
        Use alternate mutation accessors instead.
      • putProperties

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
      • putAllProperties

        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](https://cloud.google.com/dataproc/docs/concepts/cluster-properties).
         
        map<string, string> properties = 2 [(.google.api.field_behavior) = OPTIONAL];
      • 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];
        Specified by:
        getOptionalComponentsList in interface SoftwareConfigOrBuilder
        Returns:
        A list containing the optionalComponents.
      • 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];
        Specified by:
        getOptionalComponentsCount in interface SoftwareConfigOrBuilder
        Returns:
        The count of optionalComponents.
      • getOptionalComponents

        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];
        Specified by:
        getOptionalComponents in interface SoftwareConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The optionalComponents at the given index.
      • setOptionalComponents

        public SoftwareConfig.Builder setOptionalComponents​(int index,
                                                            Component value)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The optionalComponents to set.
        Returns:
        This builder for chaining.
      • addOptionalComponents

        public SoftwareConfig.Builder addOptionalComponents​(Component value)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The optionalComponents to add.
        Returns:
        This builder for chaining.
      • addAllOptionalComponents

        public SoftwareConfig.Builder addAllOptionalComponents​(Iterable<? extends Component> values)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The optionalComponents to add.
        Returns:
        This builder for chaining.
      • clearOptionalComponents

        public SoftwareConfig.Builder clearOptionalComponents()
         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:
        This builder for chaining.
      • 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];
        Specified by:
        getOptionalComponentsValueList in interface SoftwareConfigOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for optionalComponents.
      • getOptionalComponentsValue

        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];
        Specified by:
        getOptionalComponentsValue in interface SoftwareConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of optionalComponents at the given index.
      • setOptionalComponentsValue

        public SoftwareConfig.Builder setOptionalComponentsValue​(int index,
                                                                 int value)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for optionalComponents to set.
        Returns:
        This builder for chaining.
      • addOptionalComponentsValue

        public SoftwareConfig.Builder addOptionalComponentsValue​(int value)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for optionalComponents to add.
        Returns:
        This builder for chaining.
      • addAllOptionalComponentsValue

        public SoftwareConfig.Builder addAllOptionalComponentsValue​(Iterable<Integer> values)
         Optional. The set of components to activate on the cluster.
         
        repeated .google.cloud.dataproc.v1.Component optional_components = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for optionalComponents to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SoftwareConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>
      • mergeUnknownFields

        public final SoftwareConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SoftwareConfig.Builder>