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| Modifier and Type | Method and Description |
|---|---|
SparkSqlBatch.Builder |
addAllJarFileUris(Iterable<String> values)
Optional.
|
SparkSqlBatch.Builder |
addJarFileUris(String value)
Optional.
|
SparkSqlBatch.Builder |
addJarFileUrisBytes(com.google.protobuf.ByteString value)
Optional.
|
SparkSqlBatch.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SparkSqlBatch |
build() |
SparkSqlBatch |
buildPartial() |
SparkSqlBatch.Builder |
clear() |
SparkSqlBatch.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SparkSqlBatch.Builder |
clearJarFileUris()
Optional.
|
SparkSqlBatch.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SparkSqlBatch.Builder |
clearQueryFileUri()
Required.
|
SparkSqlBatch.Builder |
clearQueryVariables() |
SparkSqlBatch.Builder |
clone() |
boolean |
containsQueryVariables(String key)
Optional.
|
SparkSqlBatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getJarFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getJarFileUrisBytes(int index)
Optional.
|
int |
getJarFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getJarFileUrisList()
Optional.
|
Map<String,String> |
getMutableQueryVariables()
Deprecated.
|
String |
getQueryFileUri()
Required.
|
com.google.protobuf.ByteString |
getQueryFileUriBytes()
Required.
|
Map<String,String> |
getQueryVariables()
Deprecated.
|
int |
getQueryVariablesCount()
Optional.
|
Map<String,String> |
getQueryVariablesMap()
Optional.
|
String |
getQueryVariablesOrDefault(String key,
String defaultValue)
Optional.
|
String |
getQueryVariablesOrThrow(String key)
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(int number) |
boolean |
isInitialized() |
SparkSqlBatch.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SparkSqlBatch.Builder |
mergeFrom(com.google.protobuf.Message other) |
SparkSqlBatch.Builder |
mergeFrom(SparkSqlBatch other) |
SparkSqlBatch.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SparkSqlBatch.Builder |
putAllQueryVariables(Map<String,String> values)
Optional.
|
SparkSqlBatch.Builder |
putQueryVariables(String key,
String value)
Optional.
|
SparkSqlBatch.Builder |
removeQueryVariables(String key)
Optional.
|
SparkSqlBatch.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SparkSqlBatch.Builder |
setJarFileUris(int index,
String value)
Optional.
|
SparkSqlBatch.Builder |
setQueryFileUri(String value)
Required.
|
SparkSqlBatch.Builder |
setQueryFileUriBytes(com.google.protobuf.ByteString value)
Required.
|
SparkSqlBatch.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SparkSqlBatch.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SparkSqlBatch build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SparkSqlBatch buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SparkSqlBatch.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder mergeFrom(SparkSqlBatch other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public SparkSqlBatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkSqlBatch.Builder>IOExceptionpublic 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];getQueryFileUri in interface SparkSqlBatchOrBuilderpublic 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];getQueryFileUriBytes in interface SparkSqlBatchOrBuilderpublic 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];value - The queryFileUri to set.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];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];value - The bytes for queryFileUri to set.public int getQueryVariablesCount()
SparkSqlBatchOrBuilderOptional. 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];
getQueryVariablesCount in interface SparkSqlBatchOrBuilderpublic 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];
containsQueryVariables in interface SparkSqlBatchOrBuilder@Deprecated public Map<String,String> getQueryVariables()
getQueryVariablesMap() instead.getQueryVariables in interface SparkSqlBatchOrBuilderpublic 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];
getQueryVariablesMap in interface SparkSqlBatchOrBuilderpublic 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];
getQueryVariablesOrDefault in interface SparkSqlBatchOrBuilderpublic 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];
getQueryVariablesOrThrow in interface SparkSqlBatchOrBuilderpublic SparkSqlBatch.Builder clearQueryVariables()
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];
@Deprecated public Map<String,String> getMutableQueryVariables()
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];
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];
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];getJarFileUrisList in interface SparkSqlBatchOrBuilderpublic 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];getJarFileUrisCount in interface SparkSqlBatchOrBuilderpublic 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];getJarFileUris in interface SparkSqlBatchOrBuilderindex - The index of the element to return.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];getJarFileUrisBytes in interface SparkSqlBatchOrBuilderindex - The index of the value to return.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];index - The index to set the value at.value - The jarFileUris to set.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];value - The jarFileUris to add.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];values - The jarFileUris to add.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];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];value - The bytes of the jarFileUris to add.public final SparkSqlBatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>public final SparkSqlBatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkSqlBatch.Builder>Copyright © 2024 Google LLC. All rights reserved.