public static final class SparkRBatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder> implements SparkRBatchOrBuilder
A configuration for running an [Apache SparkR](https://spark.apache.org/docs/latest/sparkr.html) batch workload.Protobuf type
google.cloud.dataproc.v1.SparkRBatch| Modifier and Type | Method and Description |
|---|---|
SparkRBatch.Builder |
addAllArchiveUris(Iterable<String> values)
Optional.
|
SparkRBatch.Builder |
addAllArgs(Iterable<String> values)
Optional.
|
SparkRBatch.Builder |
addAllFileUris(Iterable<String> values)
Optional.
|
SparkRBatch.Builder |
addArchiveUris(String value)
Optional.
|
SparkRBatch.Builder |
addArchiveUrisBytes(com.google.protobuf.ByteString value)
Optional.
|
SparkRBatch.Builder |
addArgs(String value)
Optional.
|
SparkRBatch.Builder |
addArgsBytes(com.google.protobuf.ByteString value)
Optional.
|
SparkRBatch.Builder |
addFileUris(String value)
Optional.
|
SparkRBatch.Builder |
addFileUrisBytes(com.google.protobuf.ByteString value)
Optional.
|
SparkRBatch.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SparkRBatch |
build() |
SparkRBatch |
buildPartial() |
SparkRBatch.Builder |
clear() |
SparkRBatch.Builder |
clearArchiveUris()
Optional.
|
SparkRBatch.Builder |
clearArgs()
Optional.
|
SparkRBatch.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SparkRBatch.Builder |
clearFileUris()
Optional.
|
SparkRBatch.Builder |
clearMainRFileUri()
Required.
|
SparkRBatch.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SparkRBatch.Builder |
clone() |
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.
|
SparkRBatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getFileUris(int index)
Optional.
|
com.google.protobuf.ByteString |
getFileUrisBytes(int index)
Optional.
|
int |
getFileUrisCount()
Optional.
|
com.google.protobuf.ProtocolStringList |
getFileUrisList()
Optional.
|
String |
getMainRFileUri()
Required.
|
com.google.protobuf.ByteString |
getMainRFileUriBytes()
Required.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SparkRBatch.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SparkRBatch.Builder |
mergeFrom(com.google.protobuf.Message other) |
SparkRBatch.Builder |
mergeFrom(SparkRBatch other) |
SparkRBatch.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SparkRBatch.Builder |
setArchiveUris(int index,
String value)
Optional.
|
SparkRBatch.Builder |
setArgs(int index,
String value)
Optional.
|
SparkRBatch.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SparkRBatch.Builder |
setFileUris(int index,
String value)
Optional.
|
SparkRBatch.Builder |
setMainRFileUri(String value)
Required.
|
SparkRBatch.Builder |
setMainRFileUriBytes(com.google.protobuf.ByteString value)
Required.
|
SparkRBatch.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SparkRBatch.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SparkRBatch build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SparkRBatch buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SparkRBatch.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkRBatch.Builder>public SparkRBatch.Builder mergeFrom(SparkRBatch other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public SparkRBatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkRBatch.Builder>IOExceptionpublic String getMainRFileUri()
Required. The HCFS URI of the main R file to use as the driver. Must be a `.R` or `.r` file.
string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];getMainRFileUri in interface SparkRBatchOrBuilderpublic com.google.protobuf.ByteString getMainRFileUriBytes()
Required. The HCFS URI of the main R file to use as the driver. Must be a `.R` or `.r` file.
string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];getMainRFileUriBytes in interface SparkRBatchOrBuilderpublic SparkRBatch.Builder setMainRFileUri(String value)
Required. The HCFS URI of the main R file to use as the driver. Must be a `.R` or `.r` file.
string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];value - The mainRFileUri to set.public SparkRBatch.Builder clearMainRFileUri()
Required. The HCFS URI of the main R file to use as the driver. Must be a `.R` or `.r` file.
string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];public SparkRBatch.Builder setMainRFileUriBytes(com.google.protobuf.ByteString value)
Required. The HCFS URI of the main R file to use as the driver. Must be a `.R` or `.r` file.
string main_r_file_uri = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for mainRFileUri to set.public com.google.protobuf.ProtocolStringList getArgsList()
Optional. The arguments to pass to the Spark 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 SparkRBatchOrBuilderpublic int getArgsCount()
Optional. The arguments to pass to the Spark 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 SparkRBatchOrBuilderpublic String getArgs(int index)
Optional. The arguments to pass to the Spark 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 SparkRBatchOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getArgsBytes(int index)
Optional. The arguments to pass to the Spark 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 SparkRBatchOrBuilderindex - The index of the value to return.public SparkRBatch.Builder setArgs(int index, String value)
Optional. The arguments to pass to the Spark 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];index - The index to set the value at.value - The args to set.public SparkRBatch.Builder addArgs(String value)
Optional. The arguments to pass to the Spark 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];value - The args to add.public SparkRBatch.Builder addAllArgs(Iterable<String> values)
Optional. The arguments to pass to the Spark 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];values - The args to add.public SparkRBatch.Builder clearArgs()
Optional. The arguments to pass to the Spark 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];public SparkRBatch.Builder addArgsBytes(com.google.protobuf.ByteString value)
Optional. The arguments to pass to the Spark 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];value - The bytes of the args to add.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 = 3 [(.google.api.field_behavior) = OPTIONAL];getFileUrisList in interface SparkRBatchOrBuilderpublic int getFileUrisCount()
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getFileUrisCount in interface SparkRBatchOrBuilderpublic String getFileUris(int index)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];getFileUris in interface SparkRBatchOrBuilderindex - 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 = 3 [(.google.api.field_behavior) = OPTIONAL];getFileUrisBytes in interface SparkRBatchOrBuilderindex - The index of the value to return.public SparkRBatch.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 = 3 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The fileUris to set.public SparkRBatch.Builder addFileUris(String value)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];value - The fileUris to add.public SparkRBatch.Builder addAllFileUris(Iterable<String> values)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];values - The fileUris to add.public SparkRBatch.Builder clearFileUris()
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];public SparkRBatch.Builder addFileUrisBytes(com.google.protobuf.ByteString value)
Optional. HCFS URIs of files to be placed in the working directory of each executor.
repeated string file_uris = 3 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the fileUris to add.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 = 4 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisList in interface SparkRBatchOrBuilderpublic 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 = 4 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisCount in interface SparkRBatchOrBuilderpublic 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 = 4 [(.google.api.field_behavior) = OPTIONAL];getArchiveUris in interface SparkRBatchOrBuilderindex - 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 = 4 [(.google.api.field_behavior) = OPTIONAL];getArchiveUrisBytes in interface SparkRBatchOrBuilderindex - The index of the value to return.public SparkRBatch.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 = 4 [(.google.api.field_behavior) = OPTIONAL];index - The index to set the value at.value - The archiveUris to set.public SparkRBatch.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 = 4 [(.google.api.field_behavior) = OPTIONAL];value - The archiveUris to add.public SparkRBatch.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 = 4 [(.google.api.field_behavior) = OPTIONAL];values - The archiveUris to add.public SparkRBatch.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 = 4 [(.google.api.field_behavior) = OPTIONAL];public SparkRBatch.Builder addArchiveUrisBytes(com.google.protobuf.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 = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes of the archiveUris to add.public final SparkRBatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>public final SparkRBatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>Copyright © 2024 Google LLC. All rights reserved.