public static final class SparkBatch.Builder extends GeneratedMessageV3.Builder<SparkBatch.Builder> implements SparkBatchOrBuilder
A configuration for running an [Apache Spark](http://spark.apache.org/) batch workload.Protobuf type
google.cloud.dataproc.v1.SparkBatch
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public SparkBatch build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public SparkBatch buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public SparkBatch.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<SparkBatch.Builder>
public SparkBatch.Builder mergeFrom(SparkBatch other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public SparkBatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<SparkBatch.Builder>
IOException
public SparkBatch.DriverCase getDriverCase()
getDriverCase
in interface SparkBatchOrBuilder
public SparkBatch.Builder clearDriver()
public boolean hasMainJarFileUri()
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
hasMainJarFileUri
in interface SparkBatchOrBuilder
public String getMainJarFileUri()
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
getMainJarFileUri
in interface SparkBatchOrBuilder
public ByteString getMainJarFileUriBytes()
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
getMainJarFileUriBytes
in interface SparkBatchOrBuilder
public SparkBatch.Builder setMainJarFileUri(String value)
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The mainJarFileUri to set.public SparkBatch.Builder clearMainJarFileUri()
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
public SparkBatch.Builder setMainJarFileUriBytes(ByteString value)
Optional. The HCFS URI of the jar file that contains the main class.
string main_jar_file_uri = 1 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for mainJarFileUri to set.public boolean hasMainClass()
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
hasMainClass
in interface SparkBatchOrBuilder
public String getMainClass()
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
getMainClass
in interface SparkBatchOrBuilder
public ByteString getMainClassBytes()
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
getMainClassBytes
in interface SparkBatchOrBuilder
public SparkBatch.Builder setMainClass(String value)
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The mainClass to set.public SparkBatch.Builder clearMainClass()
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
public SparkBatch.Builder setMainClassBytes(ByteString value)
Optional. The name of the driver main class. The jar file that contains the class must be in the classpath or specified in `jar_file_uris`.
string main_class = 2 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes for mainClass to set.public 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
getArgsList
in interface SparkBatchOrBuilder
public 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
getArgsCount
in interface SparkBatchOrBuilder
public 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
getArgs
in interface SparkBatchOrBuilder
index
- The index of the element to return.public 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
getArgsBytes
in interface SparkBatchOrBuilder
index
- The index of the value to return.public SparkBatch.Builder setArgs(int index, String value)
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
index
- The index to set the value at.value
- The args to set.public SparkBatch.Builder addArgs(String value)
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The args to add.public SparkBatch.Builder addAllArgs(Iterable<String> values)
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
values
- The args to add.public SparkBatch.Builder clearArgs()
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
public SparkBatch.Builder addArgsBytes(ByteString value)
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 = 3 [(.google.api.field_behavior) = OPTIONAL];
value
- The bytes of the args to add.public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
index
- The index of the element to return.public 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 SparkBatchOrBuilder
index
- The index of the value to return.public SparkBatch.Builder setJarFileUris(int index, String value)
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];
index
- The index to set the value at.value
- The jarFileUris to set.public SparkBatch.Builder addJarFileUris(String value)
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];
value
- The jarFileUris to add.public SparkBatch.Builder addAllJarFileUris(Iterable<String> values)
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];
values
- The jarFileUris to add.public SparkBatch.Builder clearJarFileUris()
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];
public SparkBatch.Builder addJarFileUrisBytes(ByteString value)
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];
value
- The bytes of the jarFileUris to add.public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
index
- The index of the element to return.public 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 SparkBatchOrBuilder
index
- The index of the value to return.public SparkBatch.Builder setFileUris(int index, String value)
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];
index
- The index to set the value at.value
- The fileUris to set.public SparkBatch.Builder addFileUris(String value)
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];
value
- The fileUris to add.public SparkBatch.Builder addAllFileUris(Iterable<String> values)
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];
values
- The fileUris to add.public SparkBatch.Builder clearFileUris()
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];
public SparkBatch.Builder addFileUrisBytes(ByteString value)
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];
value
- The bytes of the fileUris to add.public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
public 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 SparkBatchOrBuilder
index
- The index of the element to return.public 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 SparkBatchOrBuilder
index
- The index of the value to return.public SparkBatch.Builder setArchiveUris(int index, String value)
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];
index
- The index to set the value at.value
- The archiveUris to set.public SparkBatch.Builder addArchiveUris(String value)
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];
value
- The archiveUris to add.public SparkBatch.Builder addAllArchiveUris(Iterable<String> values)
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];
values
- The archiveUris to add.public SparkBatch.Builder clearArchiveUris()
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];
public SparkBatch.Builder addArchiveUrisBytes(ByteString value)
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];
value
- The bytes of the archiveUris to add.public final SparkBatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
public final SparkBatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<SparkBatch.Builder>
Copyright © 2022 Google LLC. All rights reserved.