Class SparkSqlBatch

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

    public final class SparkSqlBatch
    extends com.google.protobuf.GeneratedMessageV3
    implements SparkSqlBatchOrBuilder
     A configuration for running
     [Apache Spark SQL](https://spark.apache.org/sql/) queries as a batch
     workload.
     
    Protobuf type google.cloud.dataproc.v1.SparkSqlBatch
    See Also:
    Serialized Form
    • Field Detail

      • QUERY_FILE_URI_FIELD_NUMBER

        public static final int QUERY_FILE_URI_FIELD_NUMBER
        See Also:
        Constant Field Values
      • QUERY_VARIABLES_FIELD_NUMBER

        public static final int QUERY_VARIABLES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • JAR_FILE_URIS_FIELD_NUMBER

        public static final int JAR_FILE_URIS_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
      • getQueryFileUri

        public String getQueryFileUri()
         Required. The HCFS URI of the script that contains Spark SQL queries to
         execute.
         
        string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getQueryFileUri in interface SparkSqlBatchOrBuilder
        Returns:
        The queryFileUri.
      • getQueryFileUriBytes

        public com.google.protobuf.ByteString getQueryFileUriBytes()
         Required. The HCFS URI of the script that contains Spark SQL queries to
         execute.
         
        string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getQueryFileUriBytes in interface SparkSqlBatchOrBuilder
        Returns:
        The bytes for queryFileUri.
      • getQueryVariablesCount

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

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

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

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

        public String getQueryVariablesOrThrow​(String key)
         Optional. Mapping of query variable names to values (equivalent to the
         Spark SQL command: `SET name="value";`).
         
        map<string, string> query_variables = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getQueryVariablesOrThrow in interface SparkSqlBatchOrBuilder
      • 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisList in interface SparkSqlBatchOrBuilder
        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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisCount in interface SparkSqlBatchOrBuilder
        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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUris in interface SparkSqlBatchOrBuilder
        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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getJarFileUrisBytes in interface SparkSqlBatchOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the jarFileUris 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 SparkSqlBatch parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

        public static SparkSqlBatch getDefaultInstance()
      • parser

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

        public com.google.protobuf.Parser<SparkSqlBatch> 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 SparkSqlBatch getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder