Class HiveJob.Builder

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

    public static final class HiveJob.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<HiveJob.Builder>
    implements HiveJobOrBuilder
     A Dataproc job for running [Apache Hive](https://hive.apache.org/)
     queries on YARN.
     
    Protobuf type google.cloud.dataproc.v1.HiveJob
    • 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<HiveJob.Builder>
      • internalGetMutableMapField

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

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

        public HiveJob.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<HiveJob.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<HiveJob.Builder>
      • getDefaultInstanceForType

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

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

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

        public HiveJob.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<HiveJob.Builder>
      • setField

        public HiveJob.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<HiveJob.Builder>
      • clearField

        public HiveJob.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<HiveJob.Builder>
      • clearOneof

        public HiveJob.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<HiveJob.Builder>
      • setRepeatedField

        public HiveJob.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<HiveJob.Builder>
      • addRepeatedField

        public HiveJob.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<HiveJob.Builder>
      • mergeFrom

        public HiveJob.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<HiveJob.Builder>
      • isInitialized

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

        public HiveJob.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<HiveJob.Builder>
        Throws:
        IOException
      • hasQueryFileUri

        public boolean hasQueryFileUri()
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Specified by:
        hasQueryFileUri in interface HiveJobOrBuilder
        Returns:
        Whether the queryFileUri field is set.
      • getQueryFileUri

        public String getQueryFileUri()
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Specified by:
        getQueryFileUri in interface HiveJobOrBuilder
        Returns:
        The queryFileUri.
      • getQueryFileUriBytes

        public com.google.protobuf.ByteString getQueryFileUriBytes()
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Specified by:
        getQueryFileUriBytes in interface HiveJobOrBuilder
        Returns:
        The bytes for queryFileUri.
      • setQueryFileUri

        public HiveJob.Builder setQueryFileUri​(String value)
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Parameters:
        value - The queryFileUri to set.
        Returns:
        This builder for chaining.
      • clearQueryFileUri

        public HiveJob.Builder clearQueryFileUri()
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Returns:
        This builder for chaining.
      • setQueryFileUriBytes

        public HiveJob.Builder setQueryFileUriBytes​(com.google.protobuf.ByteString value)
         The HCFS URI of the script that contains Hive queries.
         
        string query_file_uri = 1;
        Parameters:
        value - The bytes for queryFileUri to set.
        Returns:
        This builder for chaining.
      • hasQueryList

        public boolean hasQueryList()
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
        Specified by:
        hasQueryList in interface HiveJobOrBuilder
        Returns:
        Whether the queryList field is set.
      • getQueryList

        public QueryList getQueryList()
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
        Specified by:
        getQueryList in interface HiveJobOrBuilder
        Returns:
        The queryList.
      • setQueryList

        public HiveJob.Builder setQueryList​(QueryList value)
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
      • setQueryList

        public HiveJob.Builder setQueryList​(QueryList.Builder builderForValue)
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
      • mergeQueryList

        public HiveJob.Builder mergeQueryList​(QueryList value)
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
      • clearQueryList

        public HiveJob.Builder clearQueryList()
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
      • getQueryListBuilder

        public QueryList.Builder getQueryListBuilder()
         A list of queries.
         
        .google.cloud.dataproc.v1.QueryList query_list = 2;
      • getContinueOnFailure

        public boolean getContinueOnFailure()
         Optional. Whether to continue executing queries if a query fails.
         The default value is `false`. Setting to `true` can be useful when
         executing independent parallel queries.
         
        bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getContinueOnFailure in interface HiveJobOrBuilder
        Returns:
        The continueOnFailure.
      • setContinueOnFailure

        public HiveJob.Builder setContinueOnFailure​(boolean value)
         Optional. Whether to continue executing queries if a query fails.
         The default value is `false`. Setting to `true` can be useful when
         executing independent parallel queries.
         
        bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The continueOnFailure to set.
        Returns:
        This builder for chaining.
      • clearContinueOnFailure

        public HiveJob.Builder clearContinueOnFailure()
         Optional. Whether to continue executing queries if a query fails.
         The default value is `false`. Setting to `true` can be useful when
         executing independent parallel queries.
         
        bool continue_on_failure = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getScriptVariablesCount

        public int getScriptVariablesCount()
        Description copied from interface: HiveJobOrBuilder
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScriptVariablesCount in interface HiveJobOrBuilder
      • containsScriptVariables

        public boolean containsScriptVariables​(String key)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsScriptVariables in interface HiveJobOrBuilder
      • getScriptVariablesMap

        public Map<String,​String> getScriptVariablesMap()
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScriptVariablesMap in interface HiveJobOrBuilder
      • getScriptVariablesOrDefault

        public String getScriptVariablesOrDefault​(String key,
                                                  String defaultValue)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScriptVariablesOrDefault in interface HiveJobOrBuilder
      • getScriptVariablesOrThrow

        public String getScriptVariablesOrThrow​(String key)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getScriptVariablesOrThrow in interface HiveJobOrBuilder
      • removeScriptVariables

        public HiveJob.Builder removeScriptVariables​(String key)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableScriptVariables

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

        public HiveJob.Builder putScriptVariables​(String key,
                                                  String value)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
      • putAllScriptVariables

        public HiveJob.Builder putAllScriptVariables​(Map<String,​String> values)
         Optional. Mapping of query variable names to values (equivalent to the
         Hive command: `SET name="value";`).
         
        map<string, string> script_variables = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getPropertiesCount

        public int getPropertiesCount()
        Description copied from interface: HiveJobOrBuilder
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesCount in interface HiveJobOrBuilder
      • containsProperties

        public boolean containsProperties​(String key)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsProperties in interface HiveJobOrBuilder
      • getPropertiesMap

        public Map<String,​String> getPropertiesMap()
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesMap in interface HiveJobOrBuilder
      • getPropertiesOrDefault

        public String getPropertiesOrDefault​(String key,
                                             String defaultValue)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrDefault in interface HiveJobOrBuilder
      • getPropertiesOrThrow

        public String getPropertiesOrThrow​(String key)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrThrow in interface HiveJobOrBuilder
      • removeProperties

        public HiveJob.Builder removeProperties​(String key)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableProperties

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

        public HiveJob.Builder putProperties​(String key,
                                             String value)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      • putAllProperties

        public HiveJob.Builder putAllProperties​(Map<String,​String> values)
         Optional. A mapping of property names and values, used to configure Hive.
         Properties that conflict with values set by the Dataproc API may be
         overwritten. Can include properties set in `/etc/hadoop/conf/*-site.xml`,
         /etc/hive/conf/hive-site.xml, and classes in user code.
         
        map<string, string> properties = 5 [(.google.api.field_behavior) = OPTIONAL];
      • getJarFileUrisList

        public com.google.protobuf.ProtocolStringList getJarFileUrisList()
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisList in interface HiveJobOrBuilder
        Returns:
        A list containing the jarFileUris.
      • getJarFileUrisCount

        public int getJarFileUrisCount()
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisCount in interface HiveJobOrBuilder
        Returns:
        The count of jarFileUris.
      • getJarFileUris

        public String getJarFileUris​(int index)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUris in interface HiveJobOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The jarFileUris at the given index.
      • getJarFileUrisBytes

        public com.google.protobuf.ByteString getJarFileUrisBytes​(int index)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisBytes in interface HiveJobOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the jarFileUris at the given index.
      • setJarFileUris

        public HiveJob.Builder setJarFileUris​(int index,
                                              String value)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The jarFileUris to set.
        Returns:
        This builder for chaining.
      • addJarFileUris

        public HiveJob.Builder addJarFileUris​(String value)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The jarFileUris to add.
        Returns:
        This builder for chaining.
      • addAllJarFileUris

        public HiveJob.Builder addAllJarFileUris​(Iterable<String> values)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The jarFileUris to add.
        Returns:
        This builder for chaining.
      • clearJarFileUris

        public HiveJob.Builder clearJarFileUris()
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addJarFileUrisBytes

        public HiveJob.Builder addJarFileUrisBytes​(com.google.protobuf.ByteString value)
         Optional. HCFS URIs of jar files to add to the CLASSPATH of the
         Hive server and Hadoop MapReduce (MR) tasks. Can contain Hive SerDes
         and UDFs.
         
        repeated string jar_file_uris = 6 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the jarFileUris to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final HiveJob.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<HiveJob.Builder>
      • mergeUnknownFields

        public final HiveJob.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<HiveJob.Builder>