Class SparkSqlBatch.Builder

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

    public static final class SparkSqlBatch.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>
    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
    • 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<SparkSqlBatch.Builder>
      • internalGetMutableMapField

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public SparkSqlBatch.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<SparkSqlBatch.Builder>
        Throws:
        IOException
      • 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.
      • setQueryFileUri

        public SparkSqlBatch.Builder setQueryFileUri​(String value)
         Required. The HCFS URI of the script that contains Spark SQL queries to
         execute.
         
        string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The queryFileUri to set.
        Returns:
        This builder for chaining.
      • clearQueryFileUri

        public SparkSqlBatch.Builder clearQueryFileUri()
         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:
        This builder for chaining.
      • setQueryFileUriBytes

        public SparkSqlBatch.Builder setQueryFileUriBytes​(com.google.protobuf.ByteString value)
         Required. The HCFS URI of the script that contains Spark SQL queries to
         execute.
         
        string query_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for queryFileUri to set.
        Returns:
        This builder for chaining.
      • 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
      • removeQueryVariables

        public SparkSqlBatch.Builder removeQueryVariables​(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];
      • getMutableQueryVariables

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

        public SparkSqlBatch.Builder putQueryVariables​(String key,
                                                       String value)
         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];
      • putAllQueryVariables

        public SparkSqlBatch.Builder putAllQueryVariables​(Map<String,​String> values)
         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];
      • 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.
      • setJarFileUris

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

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

        public SparkSqlBatch.Builder clearJarFileUris()
         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:
        This builder for chaining.
      • addJarFileUrisBytes

        public SparkSqlBatch.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 = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes of the jarFileUris to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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