public final class SparkJob extends GeneratedMessageV3 implements SparkJobOrBuilder
A Cloud Dataproc job for running [Apache Spark](http://spark.apache.org/) applications on YARN.Protobuf type
google.cloud.dataproc.v1.SparkJob| Modifier and Type | Class and Description |
|---|---|
static class |
SparkJob.Builder
A Cloud Dataproc job for running [Apache Spark](http://spark.apache.org/)
applications on YARN.
|
static class |
SparkJob.DriverCase |
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ARCHIVE_URIS_FIELD_NUMBER |
static int |
ARGS_FIELD_NUMBER |
static int |
FILE_URIS_FIELD_NUMBER |
static int |
JAR_FILE_URIS_FIELD_NUMBER |
static int |
LOGGING_CONFIG_FIELD_NUMBER |
static int |
MAIN_CLASS_FIELD_NUMBER |
static int |
MAIN_JAR_FILE_URI_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
containsProperties(java.lang.String key)
Optional.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArchiveUris(int index)
Optional.
|
ByteString |
getArchiveUrisBytes(int index)
Optional.
|
int |
getArchiveUrisCount()
Optional.
|
ProtocolStringList |
getArchiveUrisList()
Optional.
|
java.lang.String |
getArgs(int index)
Optional.
|
ByteString |
getArgsBytes(int index)
Optional.
|
int |
getArgsCount()
Optional.
|
ProtocolStringList |
getArgsList()
Optional.
|
static SparkJob |
getDefaultInstance() |
SparkJob |
getDefaultInstanceForType() |
static Descriptors.Descriptor |
getDescriptor() |
SparkJob.DriverCase |
getDriverCase() |
java.lang.String |
getFileUris(int index)
Optional.
|
ByteString |
getFileUrisBytes(int index)
Optional.
|
int |
getFileUrisCount()
Optional.
|
ProtocolStringList |
getFileUrisList()
Optional.
|
java.lang.String |
getJarFileUris(int index)
Optional.
|
ByteString |
getJarFileUrisBytes(int index)
Optional.
|
int |
getJarFileUrisCount()
Optional.
|
ProtocolStringList |
getJarFileUrisList()
Optional.
|
LoggingConfig |
getLoggingConfig()
Optional.
|
LoggingConfigOrBuilder |
getLoggingConfigOrBuilder()
Optional.
|
java.lang.String |
getMainClass()
The name of the driver's main class.
|
ByteString |
getMainClassBytes()
The name of the driver's main class.
|
java.lang.String |
getMainJarFileUri()
The HCFS URI of the jar file that contains the main class.
|
ByteString |
getMainJarFileUriBytes()
The HCFS URI of the jar file that contains the main class.
|
Parser<SparkJob> |
getParserForType() |
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
Deprecated.
|
int |
getPropertiesCount()
Optional.
|
java.util.Map<java.lang.String,java.lang.String> |
getPropertiesMap()
Optional.
|
java.lang.String |
getPropertiesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional.
|
java.lang.String |
getPropertiesOrThrow(java.lang.String key)
Optional.
|
int |
getSerializedSize() |
UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasLoggingConfig()
Optional.
|
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static SparkJob.Builder |
newBuilder() |
static SparkJob.Builder |
newBuilder(SparkJob prototype) |
SparkJob.Builder |
newBuilderForType() |
protected SparkJob.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static SparkJob |
parseDelimitedFrom(java.io.InputStream input) |
static SparkJob |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static SparkJob |
parseFrom(byte[] data) |
static SparkJob |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static SparkJob |
parseFrom(java.nio.ByteBuffer data) |
static SparkJob |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static SparkJob |
parseFrom(ByteString data) |
static SparkJob |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static SparkJob |
parseFrom(CodedInputStream input) |
static SparkJob |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static SparkJob |
parseFrom(java.io.InputStream input) |
static SparkJob |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<SparkJob> |
parser() |
SparkJob.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, newBuilderForType, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int MAIN_JAR_FILE_URI_FIELD_NUMBER
public static final int MAIN_CLASS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public static final int JAR_FILE_URIS_FIELD_NUMBER
public static final int FILE_URIS_FIELD_NUMBER
public static final int ARCHIVE_URIS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public static final int LOGGING_CONFIG_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected MapField internalGetMapField(int number)
internalGetMapField in class GeneratedMessageV3protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public SparkJob.DriverCase getDriverCase()
getDriverCase in interface SparkJobOrBuilderpublic java.lang.String getMainJarFileUri()
The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1;getMainJarFileUri in interface SparkJobOrBuilderpublic ByteString getMainJarFileUriBytes()
The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1;getMainJarFileUriBytes in interface SparkJobOrBuilderpublic java.lang.String getMainClass()
The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;getMainClass in interface SparkJobOrBuilderpublic ByteString getMainClassBytes()
The name of the driver's main class. The jar file that contains the class must be in the default CLASSPATH or specified in `jar_file_uris`.
string main_class = 2;getMainClassBytes in interface SparkJobOrBuilderpublic ProtocolStringList getArgsList()
Optional. The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;getArgsList in interface SparkJobOrBuilderpublic int getArgsCount()
Optional. The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;getArgsCount in interface SparkJobOrBuilderpublic java.lang.String getArgs(int index)
Optional. The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;getArgs in interface SparkJobOrBuilderpublic ByteString getArgsBytes(int index)
Optional. The arguments to pass to the driver. Do not include arguments, such as `--conf`, that can be set as job properties, since a collision may occur that causes an incorrect job submission.
repeated string args = 3;getArgsBytes in interface SparkJobOrBuilderpublic ProtocolStringList getJarFileUrisList()
Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
repeated string jar_file_uris = 4;getJarFileUrisList in interface SparkJobOrBuilderpublic int getJarFileUrisCount()
Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
repeated string jar_file_uris = 4;getJarFileUrisCount in interface SparkJobOrBuilderpublic java.lang.String getJarFileUris(int index)
Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
repeated string jar_file_uris = 4;getJarFileUris in interface SparkJobOrBuilderpublic ByteString getJarFileUrisBytes(int index)
Optional. HCFS URIs of jar files to add to the CLASSPATHs of the Spark driver and tasks.
repeated string jar_file_uris = 4;getJarFileUrisBytes in interface SparkJobOrBuilderpublic ProtocolStringList getFileUrisList()
Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;getFileUrisList in interface SparkJobOrBuilderpublic int getFileUrisCount()
Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;getFileUrisCount in interface SparkJobOrBuilderpublic java.lang.String getFileUris(int index)
Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;getFileUris in interface SparkJobOrBuilderpublic ByteString getFileUrisBytes(int index)
Optional. HCFS URIs of files to be copied to the working directory of Spark drivers and distributed tasks. Useful for naively parallel tasks.
repeated string file_uris = 5;getFileUrisBytes in interface SparkJobOrBuilderpublic ProtocolStringList getArchiveUrisList()
Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6;getArchiveUrisList in interface SparkJobOrBuilderpublic int getArchiveUrisCount()
Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6;getArchiveUrisCount in interface SparkJobOrBuilderpublic java.lang.String getArchiveUris(int index)
Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6;getArchiveUris in interface SparkJobOrBuilderpublic ByteString getArchiveUrisBytes(int index)
Optional. HCFS URIs of archives to be extracted in the working directory of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, .tgz, and .zip.
repeated string archive_uris = 6;getArchiveUrisBytes in interface SparkJobOrBuilderpublic int getPropertiesCount()
SparkJobOrBuilderOptional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
map<string, string> properties = 7;getPropertiesCount in interface SparkJobOrBuilderpublic boolean containsProperties(java.lang.String key)
Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
map<string, string> properties = 7;containsProperties in interface SparkJobOrBuilder@Deprecated public java.util.Map<java.lang.String,java.lang.String> getProperties()
getPropertiesMap() instead.getProperties in interface SparkJobOrBuilderpublic java.util.Map<java.lang.String,java.lang.String> getPropertiesMap()
Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
map<string, string> properties = 7;getPropertiesMap in interface SparkJobOrBuilderpublic java.lang.String getPropertiesOrDefault(java.lang.String key,
java.lang.String defaultValue)
Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
map<string, string> properties = 7;getPropertiesOrDefault in interface SparkJobOrBuilderpublic java.lang.String getPropertiesOrThrow(java.lang.String key)
Optional. A mapping of property names to values, used to configure Spark. Properties that conflict with values set by the Cloud Dataproc API may be overwritten. Can include properties set in /etc/spark/conf/spark-defaults.conf and classes in user code.
map<string, string> properties = 7;getPropertiesOrThrow in interface SparkJobOrBuilderpublic boolean hasLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;hasLoggingConfig in interface SparkJobOrBuilderpublic LoggingConfig getLoggingConfig()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;getLoggingConfig in interface SparkJobOrBuilderpublic LoggingConfigOrBuilder getLoggingConfigOrBuilder()
Optional. The runtime log config for job execution.
.google.cloud.dataproc.v1.LoggingConfig logging_config = 8;getLoggingConfigOrBuilder in interface SparkJobOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static SparkJob parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static SparkJob parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SparkJob parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SparkJob parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SparkJob parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static SparkJob parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static SparkJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic SparkJob.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static SparkJob.Builder newBuilder()
public static SparkJob.Builder newBuilder(SparkJob prototype)
public SparkJob.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected SparkJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static SparkJob getDefaultInstance()
public Parser<SparkJob> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public SparkJob getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder