Class SparkRBatch.Builder

  • All Implemented Interfaces:
    SparkRBatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SparkRBatch

    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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • clear

        public SparkRBatch.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • getDefaultInstanceForType

        public SparkRBatch getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public SparkRBatch build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public SparkRBatch buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public SparkRBatch.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • setField

        public SparkRBatch.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • clearField

        public SparkRBatch.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • clearOneof

        public SparkRBatch.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • setRepeatedField

        public SparkRBatch.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • addRepeatedField

        public SparkRBatch.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • mergeFrom

        public SparkRBatch.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkRBatch.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • mergeFrom

        public SparkRBatch.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SparkRBatch.Builder>
        Throws:
        IOException
      • getMainRFileUri

        public 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];
        Specified by:
        getMainRFileUri in interface SparkRBatchOrBuilder
        Returns:
        The mainRFileUri.
      • getMainRFileUriBytes

        public 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];
        Specified by:
        getMainRFileUriBytes in interface SparkRBatchOrBuilder
        Returns:
        The bytes for mainRFileUri.
      • setMainRFileUri

        public 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];
        Parameters:
        value - The mainRFileUri to set.
        Returns:
        This builder for chaining.
      • clearMainRFileUri

        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];
        Returns:
        This builder for chaining.
      • setMainRFileUriBytes

        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];
        Parameters:
        value - The bytes for mainRFileUri to set.
        Returns:
        This builder for chaining.
      • getArgsList

        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];
        Specified by:
        getArgsList in interface SparkRBatchOrBuilder
        Returns:
        A list containing the args.
      • getArgsCount

        public 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];
        Specified by:
        getArgsCount in interface SparkRBatchOrBuilder
        Returns:
        The count of args.
      • getArgs

        public 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];
        Specified by:
        getArgs in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The args at the given index.
      • getArgsBytes

        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];
        Specified by:
        getArgsBytes in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the args at the given index.
      • setArgs

        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];
        Parameters:
        index - The index to set the value at.
        value - The args to set.
        Returns:
        This builder for chaining.
      • addArgs

        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];
        Parameters:
        value - The args to add.
        Returns:
        This builder for chaining.
      • addAllArgs

        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];
        Parameters:
        values - The args to add.
        Returns:
        This builder for chaining.
      • clearArgs

        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];
        Returns:
        This builder for chaining.
      • addArgsBytes

        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];
        Parameters:
        value - The bytes of the args to add.
        Returns:
        This builder for chaining.
      • getFileUrisList

        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];
        Specified by:
        getFileUrisList in interface SparkRBatchOrBuilder
        Returns:
        A list containing the fileUris.
      • getFileUrisCount

        public 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];
        Specified by:
        getFileUrisCount in interface SparkRBatchOrBuilder
        Returns:
        The count of fileUris.
      • getFileUris

        public 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];
        Specified by:
        getFileUris in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The fileUris at the given index.
      • getFileUrisBytes

        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];
        Specified by:
        getFileUrisBytes in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the fileUris at the given index.
      • setFileUris

        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];
        Parameters:
        index - The index to set the value at.
        value - The fileUris to set.
        Returns:
        This builder for chaining.
      • addFileUris

        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];
        Parameters:
        value - The fileUris to add.
        Returns:
        This builder for chaining.
      • addAllFileUris

        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];
        Parameters:
        values - The fileUris to add.
        Returns:
        This builder for chaining.
      • clearFileUris

        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];
        Returns:
        This builder for chaining.
      • addFileUrisBytes

        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];
        Parameters:
        value - The bytes of the fileUris to add.
        Returns:
        This builder for chaining.
      • getArchiveUrisList

        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];
        Specified by:
        getArchiveUrisList in interface SparkRBatchOrBuilder
        Returns:
        A list containing the archiveUris.
      • getArchiveUrisCount

        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 = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArchiveUrisCount in interface SparkRBatchOrBuilder
        Returns:
        The count of archiveUris.
      • getArchiveUris

        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 = 4 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getArchiveUris in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The archiveUris at the given index.
      • getArchiveUrisBytes

        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];
        Specified by:
        getArchiveUrisBytes in interface SparkRBatchOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the archiveUris at the given index.
      • setArchiveUris

        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];
        Parameters:
        index - The index to set the value at.
        value - The archiveUris to set.
        Returns:
        This builder for chaining.
      • addArchiveUris

        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];
        Parameters:
        value - The archiveUris to add.
        Returns:
        This builder for chaining.
      • addAllArchiveUris

        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];
        Parameters:
        values - The archiveUris to add.
        Returns:
        This builder for chaining.
      • clearArchiveUris

        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];
        Returns:
        This builder for chaining.
      • addArchiveUrisBytes

        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];
        Parameters:
        value - The bytes of the archiveUris to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SparkRBatch.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>
      • mergeUnknownFields

        public final SparkRBatch.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SparkRBatch.Builder>