Class SoftwareConfig

  • All Implemented Interfaces:
    SoftwareConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SoftwareConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements SoftwareConfigOrBuilder
     Specifies the selection and config of software inside the cluster.
     
    Protobuf type google.cloud.dataproc.v1.SoftwareConfig
    See Also:
    Serialized Form
    • Field Detail

      • IMAGE_VERSION_FIELD_NUMBER

        public static final int IMAGE_VERSION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PROPERTIES_FIELD_NUMBER

        public static final int PROPERTIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OPTIONAL_COMPONENTS_FIELD_NUMBER

        public static final int OPTIONAL_COMPONENTS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SoftwareConfig parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SoftwareConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected SoftwareConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static SoftwareConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<SoftwareConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<SoftwareConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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