Class BatchProcessRequest.BatchInputConfig.Builder

    • 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<BatchProcessRequest.BatchInputConfig.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<BatchProcessRequest.BatchInputConfig.Builder>
      • getDefaultInstanceForType

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

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

        public BatchProcessRequest.BatchInputConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

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

        public BatchProcessRequest.BatchInputConfig.Builder setGcsSource​(String value)
         The Cloud Storage location as the source of the document.
         
        string gcs_source = 1;
        Parameters:
        value - The gcsSource to set.
        Returns:
        This builder for chaining.
      • setGcsSourceBytes

        public BatchProcessRequest.BatchInputConfig.Builder setGcsSourceBytes​(com.google.protobuf.ByteString value)
         The Cloud Storage location as the source of the document.
         
        string gcs_source = 1;
        Parameters:
        value - The bytes for gcsSource to set.
        Returns:
        This builder for chaining.
      • getMimeType

        public String getMimeType()
         An IANA published [media type (MIME
         type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
         the input. If the input is a raw document, refer to [supported file
         types](https://cloud.google.com/document-ai/docs/file-types) for the list
         of media types. If the input is a
         [Document][google.cloud.documentai.v1beta3.Document], the type should be
         `application/json`.
         
        string mime_type = 2;
        Specified by:
        getMimeType in interface BatchProcessRequest.BatchInputConfigOrBuilder
        Returns:
        The mimeType.
      • getMimeTypeBytes

        public com.google.protobuf.ByteString getMimeTypeBytes()
         An IANA published [media type (MIME
         type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
         the input. If the input is a raw document, refer to [supported file
         types](https://cloud.google.com/document-ai/docs/file-types) for the list
         of media types. If the input is a
         [Document][google.cloud.documentai.v1beta3.Document], the type should be
         `application/json`.
         
        string mime_type = 2;
        Specified by:
        getMimeTypeBytes in interface BatchProcessRequest.BatchInputConfigOrBuilder
        Returns:
        The bytes for mimeType.
      • setMimeType

        public BatchProcessRequest.BatchInputConfig.Builder setMimeType​(String value)
         An IANA published [media type (MIME
         type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
         the input. If the input is a raw document, refer to [supported file
         types](https://cloud.google.com/document-ai/docs/file-types) for the list
         of media types. If the input is a
         [Document][google.cloud.documentai.v1beta3.Document], the type should be
         `application/json`.
         
        string mime_type = 2;
        Parameters:
        value - The mimeType to set.
        Returns:
        This builder for chaining.
      • clearMimeType

        public BatchProcessRequest.BatchInputConfig.Builder clearMimeType()
         An IANA published [media type (MIME
         type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
         the input. If the input is a raw document, refer to [supported file
         types](https://cloud.google.com/document-ai/docs/file-types) for the list
         of media types. If the input is a
         [Document][google.cloud.documentai.v1beta3.Document], the type should be
         `application/json`.
         
        string mime_type = 2;
        Returns:
        This builder for chaining.
      • setMimeTypeBytes

        public BatchProcessRequest.BatchInputConfig.Builder setMimeTypeBytes​(com.google.protobuf.ByteString value)
         An IANA published [media type (MIME
         type)](https://www.iana.org/assignments/media-types/media-types.xhtml) of
         the input. If the input is a raw document, refer to [supported file
         types](https://cloud.google.com/document-ai/docs/file-types) for the list
         of media types. If the input is a
         [Document][google.cloud.documentai.v1beta3.Document], the type should be
         `application/json`.
         
        string mime_type = 2;
        Parameters:
        value - The bytes for mimeType to set.
        Returns:
        This builder for chaining.