public final class PySparkBatch extends com.google.protobuf.GeneratedMessageV3 implements PySparkBatchOrBuilder
A configuration for running an [Apache PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html) batch workload.Protobuf type
google.cloud.dataproc.v1.PySparkBatch| Modifier and Type | Class and Description |
|---|---|
static class |
PySparkBatch.Builder
A configuration for running an
[Apache
PySpark](https://spark.apache.org/docs/latest/api/python/getting_started/quickstart.html)
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 |
ARCHIVE_URIS_FIELD_NUMBER |
static int |
ARGS_FIELD_NUMBER |
static int |
FILE_URIS_FIELD_NUMBER |
static int |
JAR_FILE_URIS_FIELD_NUMBER |
static int |
MAIN_PYTHON_FILE_URI_FIELD_NUMBER |
static int |
PYTHON_FILE_URIS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getArchiveUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getArchiveUrisBytes(int index)
Optional.
|
int |
getArchiveUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getArchiveUrisList()
Optional.
|
String |
getArgs(int index)
Optional.
|
com.google.protobuf.ByteString |
getArgsBytes(int index)
Optional.
|
int |
getArgsCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getArgsList()
Optional.
|
static PySparkBatch |
getDefaultInstance() |
PySparkBatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getFileUrisBytes(int index)
Optional.
|
int |
getFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getFileUrisList()
Optional.
|
String |
getJarFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getJarFileUrisBytes(int index)
Optional.
|
int |
getJarFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getJarFileUrisList()
Optional.
|
String |
getMainPythonFileUri()
Required.
|
com.google.protobuf.ByteString |
getMainPythonFileUriBytes()
Required.
|
com.google.protobuf.Parser<PySparkBatch> |
getParserForType() |
String |
getPythonFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getPythonFileUrisBytes(int index)
Optional.
|
int |
getPythonFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getPythonFileUrisList()
Optional.
|
int |
getSerializedSize() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static PySparkBatch.Builder |
newBuilder() |
static PySparkBatch.Builder |
newBuilder(PySparkBatch prototype) |
PySparkBatch.Builder |
newBuilderForType() |
protected PySparkBatch.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static PySparkBatch |
parseDelimitedFrom(InputStream input) |
static PySparkBatch |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PySparkBatch |
parseFrom(byte[] data) |
static PySparkBatch |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PySparkBatch |
parseFrom(ByteBuffer data) |
static PySparkBatch |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PySparkBatch |
parseFrom(com.google.protobuf.ByteString data) |
static PySparkBatch |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PySparkBatch |
parseFrom(com.google.protobuf.CodedInputStream input) |
static PySparkBatch |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static PySparkBatch |
parseFrom(InputStream input) |
static PySparkBatch |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<PySparkBatch> |
parser() |
PySparkBatch.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, internalGetMapFieldReflection, 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 MAIN_PYTHON_FILE_URI_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER
public static final int PYTHON_FILE_URIS_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
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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getMainPythonFileUri()
Required. The HCFS URI of the main Python file to use as the Spark driver. Must be a .py file.
string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];getMainPythonFileUri in interface PySparkBatchOrBuilderpublic com.google.protobuf.ByteString getMainPythonFileUriBytes()
Required. The HCFS URI of the main Python file to use as the Spark driver. Must be a .py file.
string main_python_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];getMainPythonFileUriBytes in interface PySparkBatchOrBuilderpublic com.google.protobuf.ProtocolStringList getArgsList()
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as `--conf`, since a collision can occur that causes an incorrect batch submission.
repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];getArgsList in interface PySparkBatchOrBuilderpublic int getArgsCount()
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as `--conf`, since a collision can occur that causes an incorrect batch submission.
repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];getArgsCount in interface PySparkBatchOrBuilderpublic String getArgs(int index)
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as `--conf`, since a collision can occur that causes an incorrect batch submission.
repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];getArgs in interface PySparkBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArgsBytes(int index)
Optional. The arguments to pass to the driver. Do not include arguments that can be set as batch properties, such as `--conf`, since a collision can occur that causes an incorrect batch submission.
repeated string args = 2 [(.google.api.field_behavior) = OPTIONAL];getArgsBytes in interface PySparkBatchOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getPythonFileUrisList()
Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: `.py`, `.egg`, and `.zip`.
repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getPythonFileUrisList in interface PySparkBatchOrBuilderpublic int getPythonFileUrisCount()
Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: `.py`, `.egg`, and `.zip`.
repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getPythonFileUrisCount in interface PySparkBatchOrBuilderpublic String getPythonFileUris(int index)
Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: `.py`, `.egg`, and `.zip`.
repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getPythonFileUris in interface PySparkBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getPythonFileUrisBytes(int index)
Optional. HCFS file URIs of Python files to pass to the PySpark framework. Supported file types: `.py`, `.egg`, and `.zip`.
repeated string python_file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getPythonFileUrisBytes in interface PySparkBatchOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getJarFileUrisList()
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];getJarFileUrisList in interface PySparkBatchOrBuilderpublic int getJarFileUrisCount()
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];getJarFileUrisCount in interface PySparkBatchOrBuilderpublic String getJarFileUris(int index)
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];getJarFileUris in interface PySparkBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getJarFileUrisBytes(int index)
Optional. HCFS URIs of jar files to add to the classpath of the Spark driver and tasks.
repeated string jar_file_uris = 4 [(.google.api.field_behavior) = OPTIONAL];getJarFileUrisBytes in interface PySparkBatchOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getFileUrisList()
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];getFileUrisList in interface PySparkBatchOrBuilderpublic int getFileUrisCount()
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];getFileUrisCount in interface PySparkBatchOrBuilderpublic String getFileUris(int index)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];getFileUris in interface PySparkBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getFileUrisBytes(int index)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 5 [(.google.api.field_behavior) = OPTIONAL];getFileUrisBytes in interface PySparkBatchOrBuilderindex - The index of the value to return.public com.google.protobuf.ProtocolStringList getArchiveUrisList()
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisList in interface PySparkBatchOrBuilderpublic int getArchiveUrisCount()
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisCount in interface PySparkBatchOrBuilderpublic String getArchiveUris(int index)
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];getArchiveUris in interface PySparkBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArchiveUrisBytes(int index)
Optional. HCFS URIs of archives to be extracted into the working directory of each executor. Supported file types: `.jar`, `.tar`, `.tar.gz`, `.tgz`, and `.zip`.
repeated string archive_uris = 6 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisBytes in interface PySparkBatchOrBuilderindex - 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 PySparkBatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static PySparkBatch parseFrom(InputStream input) throws IOException
IOExceptionpublic static PySparkBatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PySparkBatch parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static PySparkBatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static PySparkBatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static PySparkBatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic PySparkBatch.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static PySparkBatch.Builder newBuilder()
public static PySparkBatch.Builder newBuilder(PySparkBatch prototype)
public PySparkBatch.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected PySparkBatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static PySparkBatch getDefaultInstance()
public static com.google.protobuf.Parser<PySparkBatch> parser()
public com.google.protobuf.Parser<PySparkBatch> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public PySparkBatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.