Class SparkSqlBatch (4.13.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.13.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   final   class  SparkSqlBatch   extends   GeneratedMessageV3   implements   SparkSqlBatchOrBuilder  
   A configuration for running
 Apache Spark SQL  queries as a batch
 workload.
 Protobuf type google.cloud.dataproc.v1.SparkSqlBatch
Static Fields
   
  JAR_FILE_URIS_FIELD_NUMBER 
  
    
public   static   final   int   JAR_FILE_URIS_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  QUERY_FILE_URI_FIELD_NUMBER 
  
    
public   static   final   int   QUERY_FILE_URI_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  QUERY_VARIABLES_FIELD_NUMBER 
  
    
public   static   final   int   QUERY_VARIABLES_FIELD_NUMBER  
  
    
      
        Field Value  
      
        Type Description  
      
        int  
     
  
  Static Methods
   
  getDefaultInstance() 
  
    
public   static   SparkSqlBatch   getDefaultInstance ()  
  
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  newBuilder() 
  
    
public   static   SparkSqlBatch . Builder   newBuilder ()  
  
  newBuilder(SparkSqlBatch prototype) 
  
    
public   static   SparkSqlBatch . Builder   newBuilder ( SparkSqlBatch   prototype )  
  
  
  
    
public   static   SparkSqlBatch   parseDelimitedFrom ( InputStream   input )  
  
  
  
  
    
public   static   SparkSqlBatch   parseDelimitedFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(byte[] data) 
  
    
public   static   SparkSqlBatch   parseFrom ( byte []   data )  
  
    
      
        Parameter  
      
        Name Description  
      
        databyte [] 
     
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SparkSqlBatch   parseFrom ( byte []   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteString data) 
  
    
public   static   SparkSqlBatch   parseFrom ( ByteString   data )  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SparkSqlBatch   parseFrom ( ByteString   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SparkSqlBatch   parseFrom ( CodedInputStream   input )  
  
  
  
  
    
public   static   SparkSqlBatch   parseFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  
    
public   static   SparkSqlBatch   parseFrom ( InputStream   input )  
  
  
  
  
    
public   static   SparkSqlBatch   parseFrom ( InputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parseFrom(ByteBuffer data) 
  
    
public   static   SparkSqlBatch   parseFrom ( ByteBuffer   data )  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) 
  
    
public   static   SparkSqlBatch   parseFrom ( ByteBuffer   data ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  
  parser() 
  
    
public   static   Parser<SparkSqlBatch>   parser ()  
  
  Methods
   
  containsQueryVariables(String key) 
  
    
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];
 
    
      
        Parameter  
      
        Name Description  
      
        keyString  
     
  
  
  equals(Object obj) 
  
    
public   boolean   equals ( Object   obj )  
  
    
      
        Parameter  
      
        Name Description  
      
        objObject  
     
  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   SparkSqlBatch   getDefaultInstanceForType ()  
  
  getJarFileUris(int index) 
  
    
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];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String The jarFileUris at the given index.
 
     
  
  getJarFileUrisBytes(int index) 
  
    
public   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];
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes of the jarFileUris at the given index.
 
     
  
  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];
    
      
        Returns  
      
        Type Description  
      
        int The count of jarFileUris.
 
     
  
  getJarFileUrisList() 
  
    
public   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];
getParserForType() 
  
    
public   Parser<SparkSqlBatch>   getParserForType ()  
  
  Overrides 
  
  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];
    
      
        Returns  
      
        Type Description  
      
        String The queryFileUri.
 
     
  
  getQueryFileUriBytes() 
  
    
public   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];
    
      
        Returns  
      
        Type Description  
      
        ByteString The bytes for queryFileUri.
 
     
  
  getQueryVariables() 
  
    
public   Map<String , String >  getQueryVariables ()  
  
  
  getQueryVariablesCount() 
  
    
public   int   getQueryVariablesCount ()  
   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];
 
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  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];
 
getQueryVariablesOrDefault(String key, String defaultValue) 
  
    
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];
 
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getQueryVariablesOrThrow(String key) 
  
    
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];
 
    
      
        Parameter  
      
        Name Description  
      
        keyString  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        String  
     
  
  getSerializedSize() 
  
    
public   int   getSerializedSize ()  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  getUnknownFields() 
  
    
public   final   UnknownFieldSet   getUnknownFields ()  
  
  Overrides 
  
  hashCode() 
  
  
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  internalGetMapField(int number) 
  
    
protected   MapField   internalGetMapField ( int   number )  
  
    
      
        Parameter  
      
        Name Description  
      
        numberint  
     
  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  newBuilderForType() 
  
    
public   SparkSqlBatch . Builder   newBuilderForType ()  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent) 
  
    
protected   SparkSqlBatch . Builder   newBuilderForType ( GeneratedMessageV3 . BuilderParent   parent )  
  
  
  Overrides 
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused) 
  
    
protected   Object   newInstance ( GeneratedMessageV3 . UnusedPrivateParameter   unused )  
  
  
    
      
        Returns  
      
        Type Description  
      
        Object  
     
  
  Overrides 
  
  toBuilder() 
  
    
public   SparkSqlBatch . Builder   toBuilder ()  
  
  writeTo(CodedOutputStream output) 
  
    
public   void   writeTo ( CodedOutputStream   output )  
  
  Overrides 
  
  
 
     
    
  
  
  
     
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]