Class SparkSqlJob.Builder

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

    public static final class SparkSqlJob.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlJob.Builder>
    implements SparkSqlJobOrBuilder
     A Dataproc job for running [Apache Spark
     SQL](https://spark.apache.org/sql/) queries.
     
    Protobuf type google.cloud.dataproc.v1.SparkSqlJob
    • 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<SparkSqlJob.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public SparkSqlJob.Builder setQueryFileUriBytes​(com.google.protobuf.ByteString value)
         The HCFS URI of the script that contains SQL 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 SparkSqlJobOrBuilder
        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 SparkSqlJobOrBuilder
        Returns:
        The queryList.
      • setQueryList

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

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

        public SparkSqlJob.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;
      • getScriptVariablesCount

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

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

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

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

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

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

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

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

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

        public int getPropertiesCount()
        Description copied from interface: SparkSqlJobOrBuilder
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesCount in interface SparkSqlJobOrBuilder
      • containsProperties

        public boolean containsProperties​(String key)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsProperties in interface SparkSqlJobOrBuilder
      • getPropertiesMap

        public Map<String,​String> getPropertiesMap()
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesMap in interface SparkSqlJobOrBuilder
      • getPropertiesOrDefault

        public String getPropertiesOrDefault​(String key,
                                             String defaultValue)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrDefault in interface SparkSqlJobOrBuilder
      • getPropertiesOrThrow

        public String getPropertiesOrThrow​(String key)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getPropertiesOrThrow in interface SparkSqlJobOrBuilder
      • removeProperties

        public SparkSqlJob.Builder removeProperties​(String key)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableProperties

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

        public SparkSqlJob.Builder putProperties​(String key,
                                                 String value)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      • putAllProperties

        public SparkSqlJob.Builder putAllProperties​(Map<String,​String> values)
         Optional. A mapping of property names to values, used to configure
         Spark SQL's SparkConf. Properties that conflict with values set by the
         Dataproc API may be overwritten.
         
        map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
      • getJarFileUrisList

        public com.google.protobuf.ProtocolStringList getJarFileUrisList()
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisList in interface SparkSqlJobOrBuilder
        Returns:
        A list containing the jarFileUris.
      • getJarFileUrisCount

        public int getJarFileUrisCount()
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisCount in interface SparkSqlJobOrBuilder
        Returns:
        The count of jarFileUris.
      • getJarFileUris

        public String getJarFileUris​(int index)
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUris in interface SparkSqlJobOrBuilder
        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 be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisBytes in interface SparkSqlJobOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the jarFileUris at the given index.
      • setJarFileUris

        public SparkSqlJob.Builder setJarFileUris​(int index,
                                                  String value)
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.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 SparkSqlJob.Builder addJarFileUris​(String value)
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The jarFileUris to add.
        Returns:
        This builder for chaining.
      • addAllJarFileUris

        public SparkSqlJob.Builder addAllJarFileUris​(Iterable<String> values)
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The jarFileUris to add.
        Returns:
        This builder for chaining.
      • clearJarFileUris

        public SparkSqlJob.Builder clearJarFileUris()
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • addJarFileUrisBytes

        public SparkSqlJob.Builder addJarFileUrisBytes​(com.google.protobuf.ByteString value)
         Optional. HCFS URIs of jar files to be added to the Spark CLASSPATH.
         
        repeated string jar_file_uris = 56 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the jarFileUris to add.
        Returns:
        This builder for chaining.
      • hasLoggingConfig

        public boolean hasLoggingConfig()
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasLoggingConfig in interface SparkSqlJobOrBuilder
        Returns:
        Whether the loggingConfig field is set.
      • getLoggingConfig

        public LoggingConfig getLoggingConfig()
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLoggingConfig in interface SparkSqlJobOrBuilder
        Returns:
        The loggingConfig.
      • setLoggingConfig

        public SparkSqlJob.Builder setLoggingConfig​(LoggingConfig value)
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setLoggingConfig

        public SparkSqlJob.Builder setLoggingConfig​(LoggingConfig.Builder builderForValue)
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      • mergeLoggingConfig

        public SparkSqlJob.Builder mergeLoggingConfig​(LoggingConfig value)
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      • clearLoggingConfig

        public SparkSqlJob.Builder clearLoggingConfig()
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      • getLoggingConfigBuilder

        public LoggingConfig.Builder getLoggingConfigBuilder()
         Optional. The runtime log config for job execution.
         
        .google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
      • setUnknownFields

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

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