Package com.google.cloud.dataproc.v1
Class SparkSqlJob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.dataproc.v1.SparkSqlJob
-
- All Implemented Interfaces:
SparkSqlJobOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class SparkSqlJob extends com.google.protobuf.GeneratedMessageV3 implements SparkSqlJobOrBuilder
A Dataproc job for running [Apache Spark SQL](https://spark.apache.org/sql/) queries.
Protobuf typegoogle.cloud.dataproc.v1.SparkSqlJob
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SparkSqlJob.Builder
A Dataproc job for running [Apache Spark SQL](https://spark.apache.org/sql/) queries.static class
SparkSqlJob.QueriesCase
-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static int
JAR_FILE_URIS_FIELD_NUMBER
static int
LOGGING_CONFIG_FIELD_NUMBER
static int
PROPERTIES_FIELD_NUMBER
static int
QUERY_FILE_URI_FIELD_NUMBER
static int
QUERY_LIST_FIELD_NUMBER
static int
SCRIPT_VARIABLES_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsProperties(String key)
Optional.boolean
containsScriptVariables(String key)
Optional.boolean
equals(Object obj)
static SparkSqlJob
getDefaultInstance()
SparkSqlJob
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.LoggingConfig
getLoggingConfig()
Optional.LoggingConfigOrBuilder
getLoggingConfigOrBuilder()
Optional.com.google.protobuf.Parser<SparkSqlJob>
getParserForType()
Map<String,String>
getProperties()
Deprecated.int
getPropertiesCount()
Optional.Map<String,String>
getPropertiesMap()
Optional.String
getPropertiesOrDefault(String key, String defaultValue)
Optional.String
getPropertiesOrThrow(String key)
Optional.SparkSqlJob.QueriesCase
getQueriesCase()
String
getQueryFileUri()
The HCFS URI of the script that contains SQL queries.com.google.protobuf.ByteString
getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.QueryList
getQueryList()
A list of queries.QueryListOrBuilder
getQueryListOrBuilder()
A list of queries.Map<String,String>
getScriptVariables()
Deprecated.int
getScriptVariablesCount()
Optional.Map<String,String>
getScriptVariablesMap()
Optional.String
getScriptVariablesOrDefault(String key, String defaultValue)
Optional.String
getScriptVariablesOrThrow(String key)
Optional.int
getSerializedSize()
int
hashCode()
boolean
hasLoggingConfig()
Optional.boolean
hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.boolean
hasQueryList()
A list of queries.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static SparkSqlJob.Builder
newBuilder()
static SparkSqlJob.Builder
newBuilder(SparkSqlJob prototype)
SparkSqlJob.Builder
newBuilderForType()
protected SparkSqlJob.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static SparkSqlJob
parseDelimitedFrom(InputStream input)
static SparkSqlJob
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SparkSqlJob
parseFrom(byte[] data)
static SparkSqlJob
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SparkSqlJob
parseFrom(com.google.protobuf.ByteString data)
static SparkSqlJob
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SparkSqlJob
parseFrom(com.google.protobuf.CodedInputStream input)
static SparkSqlJob
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SparkSqlJob
parseFrom(InputStream input)
static SparkSqlJob
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static SparkSqlJob
parseFrom(ByteBuffer data)
static SparkSqlJob
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<SparkSqlJob>
parser()
SparkSqlJob.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
QUERY_FILE_URI_FIELD_NUMBER
public static final int QUERY_FILE_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_LIST_FIELD_NUMBER
public static final int QUERY_LIST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SCRIPT_VARIABLES_FIELD_NUMBER
public static final int SCRIPT_VARIABLES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_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
-
LOGGING_CONFIG_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getQueriesCase
public SparkSqlJob.QueriesCase getQueriesCase()
- Specified by:
getQueriesCase
in interfaceSparkSqlJobOrBuilder
-
hasQueryFileUri
public boolean hasQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
- Specified by:
hasQueryFileUri
in interfaceSparkSqlJobOrBuilder
- Returns:
- Whether the queryFileUri field is set.
-
getQueryFileUri
public String getQueryFileUri()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
- Specified by:
getQueryFileUri
in interfaceSparkSqlJobOrBuilder
- Returns:
- The queryFileUri.
-
getQueryFileUriBytes
public com.google.protobuf.ByteString getQueryFileUriBytes()
The HCFS URI of the script that contains SQL queries.
string query_file_uri = 1;
- Specified by:
getQueryFileUriBytes
in interfaceSparkSqlJobOrBuilder
- Returns:
- The bytes for queryFileUri.
-
hasQueryList
public boolean hasQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
- Specified by:
hasQueryList
in interfaceSparkSqlJobOrBuilder
- Returns:
- Whether the queryList field is set.
-
getQueryList
public QueryList getQueryList()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
- Specified by:
getQueryList
in interfaceSparkSqlJobOrBuilder
- Returns:
- The queryList.
-
getQueryListOrBuilder
public QueryListOrBuilder getQueryListOrBuilder()
A list of queries.
.google.cloud.dataproc.v1.QueryList query_list = 2;
- Specified by:
getQueryListOrBuilder
in interfaceSparkSqlJobOrBuilder
-
getScriptVariablesCount
public int getScriptVariablesCount()
Description copied from interface:SparkSqlJobOrBuilder
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getScriptVariablesCount
in interfaceSparkSqlJobOrBuilder
-
containsScriptVariables
public boolean containsScriptVariables(String key)
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsScriptVariables
in interfaceSparkSqlJobOrBuilder
-
getScriptVariables
@Deprecated public Map<String,String> getScriptVariables()
Deprecated.UsegetScriptVariablesMap()
instead.- Specified by:
getScriptVariables
in interfaceSparkSqlJobOrBuilder
-
getScriptVariablesMap
public Map<String,String> getScriptVariablesMap()
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getScriptVariablesMap
in interfaceSparkSqlJobOrBuilder
-
getScriptVariablesOrDefault
public String getScriptVariablesOrDefault(String key, String defaultValue)
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getScriptVariablesOrDefault
in interfaceSparkSqlJobOrBuilder
-
getScriptVariablesOrThrow
public String getScriptVariablesOrThrow(String key)
Optional. Mapping of query variable names to values (equivalent to the Spark SQL command: SET `name="value";`).
map<string, string> script_variables = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getScriptVariablesOrThrow
in interfaceSparkSqlJobOrBuilder
-
getPropertiesCount
public int getPropertiesCount()
Description copied from interface:SparkSqlJobOrBuilder
Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesCount
in interfaceSparkSqlJobOrBuilder
-
containsProperties
public boolean containsProperties(String key)
Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
containsProperties
in interfaceSparkSqlJobOrBuilder
-
getProperties
@Deprecated public Map<String,String> getProperties()
Deprecated.UsegetPropertiesMap()
instead.- Specified by:
getProperties
in interfaceSparkSqlJobOrBuilder
-
getPropertiesMap
public Map<String,String> getPropertiesMap()
Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesMap
in interfaceSparkSqlJobOrBuilder
-
getPropertiesOrDefault
public String getPropertiesOrDefault(String key, String defaultValue)
Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesOrDefault
in interfaceSparkSqlJobOrBuilder
-
getPropertiesOrThrow
public String getPropertiesOrThrow(String key)
Optional. A mapping of property names to values, used to configure Spark SQL's SparkConf. Properties that conflict with values set by the Dataproc API may be overwritten.
map<string, string> properties = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPropertiesOrThrow
in interfaceSparkSqlJobOrBuilder
-
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 = 56 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getJarFileUrisList
in interfaceSparkSqlJobOrBuilder
- 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 = 56 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getJarFileUrisCount
in interfaceSparkSqlJobOrBuilder
- 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 = 56 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getJarFileUris
in interfaceSparkSqlJobOrBuilder
- 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 = 56 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getJarFileUrisBytes
in interfaceSparkSqlJobOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the jarFileUris at the given index.
-
hasLoggingConfig
public boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasLoggingConfig
in interfaceSparkSqlJobOrBuilder
- Returns:
- Whether the loggingConfig field is set.
-
getLoggingConfig
public LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLoggingConfig
in interfaceSparkSqlJobOrBuilder
- Returns:
- The loggingConfig.
-
getLoggingConfigOrBuilder
public LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getLoggingConfigOrBuilder
in interfaceSparkSqlJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SparkSqlJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SparkSqlJob parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SparkSqlJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SparkSqlJob parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static SparkSqlJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static SparkSqlJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static SparkSqlJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public SparkSqlJob.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static SparkSqlJob.Builder newBuilder()
-
newBuilder
public static SparkSqlJob.Builder newBuilder(SparkSqlJob prototype)
-
toBuilder
public SparkSqlJob.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SparkSqlJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static SparkSqlJob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<SparkSqlJob> parser()
-
getParserForType
public com.google.protobuf.Parser<SparkSqlJob> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public SparkSqlJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-