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| Modifier and Type | Class and Description |
|---|---|
static class |
SparkSqlBatch.Builder
A configuration for running
[Apache Spark SQL](https://spark.apache.org/sql/) queries as a batch
workload.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
JAR_FILE_URIS_FIELD_NUMBER |
static int |
QUERY_FILE_URI_FIELD_NUMBER |
static int |
QUERY_VARIABLES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsQueryVariables(String key)
Optional.
|
boolean |
equals(Object obj) |
static SparkSqlBatch |
getDefaultInstance() |
SparkSqlBatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getJarFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getJarFileUrisBytes(int index)
Optional.
|
int |
getJarFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getJarFileUrisList()
Optional.
|
com.google.protobuf.Parser<SparkSqlBatch> |
getParserForType() |
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.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static SparkSqlBatch.Builder |
newBuilder() |
static SparkSqlBatch.Builder |
newBuilder(SparkSqlBatch prototype) |
SparkSqlBatch.Builder |
newBuilderForType() |
protected SparkSqlBatch.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static SparkSqlBatch |
parseDelimitedFrom(InputStream input) |
static SparkSqlBatch |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparkSqlBatch |
parseFrom(byte[] data) |
static SparkSqlBatch |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparkSqlBatch |
parseFrom(ByteBuffer data) |
static SparkSqlBatch |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparkSqlBatch |
parseFrom(com.google.protobuf.ByteString data) |
static SparkSqlBatch |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparkSqlBatch |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SparkSqlBatch |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SparkSqlBatch |
parseFrom(InputStream input) |
static SparkSqlBatch |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SparkSqlBatch> |
parser() |
SparkSqlBatch.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_VARIABLES_FIELD_NUMBER
public static final int JAR_FILE_URIS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SparkSqlBatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SparkSqlBatch parseFrom(InputStream input) throws IOException
IOExceptionpublic static SparkSqlBatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SparkSqlBatch parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SparkSqlBatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SparkSqlBatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SparkSqlBatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SparkSqlBatch.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SparkSqlBatch.Builder newBuilder()
public static SparkSqlBatch.Builder newBuilder(SparkSqlBatch prototype)
public SparkSqlBatch.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SparkSqlBatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SparkSqlBatch getDefaultInstance()
public static com.google.protobuf.Parser<SparkSqlBatch> parser()
public com.google.protobuf.Parser<SparkSqlBatch> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SparkSqlBatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.