Class ProcessRequest

  • All Implemented Interfaces:
    ProcessRequestOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ProcessRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements ProcessRequestOrBuilder
     Request message for the
     [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
     method.
     
    Protobuf type google.cloud.documentai.v1beta3.ProcessRequest
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • hasInlineDocument

        public boolean hasInlineDocument()
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
        Specified by:
        hasInlineDocument in interface ProcessRequestOrBuilder
        Returns:
        Whether the inlineDocument field is set.
      • getInlineDocument

        public Document getInlineDocument()
         An inline document proto.
         
        .google.cloud.documentai.v1beta3.Document inline_document = 4;
        Specified by:
        getInlineDocument in interface ProcessRequestOrBuilder
        Returns:
        The inlineDocument.
      • hasRawDocument

        public boolean hasRawDocument()
         A raw document content (bytes).
         
        .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
        Specified by:
        hasRawDocument in interface ProcessRequestOrBuilder
        Returns:
        Whether the rawDocument field is set.
      • getRawDocument

        public RawDocument getRawDocument()
         A raw document content (bytes).
         
        .google.cloud.documentai.v1beta3.RawDocument raw_document = 5;
        Specified by:
        getRawDocument in interface ProcessRequestOrBuilder
        Returns:
        The rawDocument.
      • hasGcsDocument

        public boolean hasGcsDocument()
         A raw document on Google Cloud Storage.
         
        .google.cloud.documentai.v1beta3.GcsDocument gcs_document = 8;
        Specified by:
        hasGcsDocument in interface ProcessRequestOrBuilder
        Returns:
        Whether the gcsDocument field is set.
      • getGcsDocument

        public GcsDocument getGcsDocument()
         A raw document on Google Cloud Storage.
         
        .google.cloud.documentai.v1beta3.GcsDocument gcs_document = 8;
        Specified by:
        getGcsDocument in interface ProcessRequestOrBuilder
        Returns:
        The gcsDocument.
      • getName

        public String getName()
         Required. The resource name of the
         [Processor][google.cloud.documentai.v1beta3.Processor] or
         [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
         to use for processing. If a
         [Processor][google.cloud.documentai.v1beta3.Processor] is specified, the
         server will use its [default
         version][google.cloud.documentai.v1beta3.Processor.default_processor_version].
         Format: `projects/{project}/locations/{location}/processors/{processor}`,
         or
         `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getName in interface ProcessRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. The resource name of the
         [Processor][google.cloud.documentai.v1beta3.Processor] or
         [ProcessorVersion][google.cloud.documentai.v1beta3.ProcessorVersion]
         to use for processing. If a
         [Processor][google.cloud.documentai.v1beta3.Processor] is specified, the
         server will use its [default
         version][google.cloud.documentai.v1beta3.Processor.default_processor_version].
         Format: `projects/{project}/locations/{location}/processors/{processor}`,
         or
         `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNameBytes in interface ProcessRequestOrBuilder
        Returns:
        The bytes for name.
      • hasDocument

        @Deprecated
        public boolean hasDocument()
        Deprecated.
        google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=384
         The document payload, the
         [content][google.cloud.documentai.v1beta3.Document.content] and
         [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
         be set.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
        Specified by:
        hasDocument in interface ProcessRequestOrBuilder
        Returns:
        Whether the document field is set.
      • getDocument

        @Deprecated
        public Document getDocument()
        Deprecated.
        google.cloud.documentai.v1beta3.ProcessRequest.document is deprecated. See google/cloud/documentai/v1beta3/document_processor_service.proto;l=384
         The document payload, the
         [content][google.cloud.documentai.v1beta3.Document.content] and
         [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
         be set.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
        Specified by:
        getDocument in interface ProcessRequestOrBuilder
        Returns:
        The document.
      • getDocumentOrBuilder

        @Deprecated
        public DocumentOrBuilder getDocumentOrBuilder()
        Deprecated.
         The document payload, the
         [content][google.cloud.documentai.v1beta3.Document.content] and
         [mime_type][google.cloud.documentai.v1beta3.Document.mime_type] fields must
         be set.
         
        .google.cloud.documentai.v1beta3.Document document = 2 [deprecated = true];
        Specified by:
        getDocumentOrBuilder in interface ProcessRequestOrBuilder
      • getSkipHumanReview

        public boolean getSkipHumanReview()
         Whether human review should be skipped for this request. Default to
         `false`.
         
        bool skip_human_review = 3;
        Specified by:
        getSkipHumanReview in interface ProcessRequestOrBuilder
        Returns:
        The skipHumanReview.
      • hasFieldMask

        public boolean hasFieldMask()
         Specifies which fields to include in the
         [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
         output. Only supports top-level document and pages field, so it must be in
         the form of `{document_field_name}` or `pages.{page_field_name}`.
         
        .google.protobuf.FieldMask field_mask = 6;
        Specified by:
        hasFieldMask in interface ProcessRequestOrBuilder
        Returns:
        Whether the fieldMask field is set.
      • getFieldMask

        public com.google.protobuf.FieldMask getFieldMask()
         Specifies which fields to include in the
         [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
         output. Only supports top-level document and pages field, so it must be in
         the form of `{document_field_name}` or `pages.{page_field_name}`.
         
        .google.protobuf.FieldMask field_mask = 6;
        Specified by:
        getFieldMask in interface ProcessRequestOrBuilder
        Returns:
        The fieldMask.
      • getFieldMaskOrBuilder

        public com.google.protobuf.FieldMaskOrBuilder getFieldMaskOrBuilder()
         Specifies which fields to include in the
         [ProcessResponse.document][google.cloud.documentai.v1beta3.ProcessResponse.document]
         output. Only supports top-level document and pages field, so it must be in
         the form of `{document_field_name}` or `pages.{page_field_name}`.
         
        .google.protobuf.FieldMask field_mask = 6;
        Specified by:
        getFieldMaskOrBuilder in interface ProcessRequestOrBuilder
      • hasProcessOptions

        public boolean hasProcessOptions()
         Inference-time options for the process API
         
        .google.cloud.documentai.v1beta3.ProcessOptions process_options = 7;
        Specified by:
        hasProcessOptions in interface ProcessRequestOrBuilder
        Returns:
        Whether the processOptions field is set.
      • getProcessOptions

        public ProcessOptions getProcessOptions()
         Inference-time options for the process API
         
        .google.cloud.documentai.v1beta3.ProcessOptions process_options = 7;
        Specified by:
        getProcessOptions in interface ProcessRequestOrBuilder
        Returns:
        The processOptions.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ProcessRequest parseFrom​(ByteBuffer data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(ByteBuffer data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(com.google.protobuf.ByteString data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(com.google.protobuf.ByteString data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(byte[] data)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(byte[] data,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ProcessRequest parseFrom​(com.google.protobuf.CodedInputStream input,
                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                        throws IOException
        Throws:
        IOException
      • newBuilderForType

        public ProcessRequest.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ProcessRequest.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ProcessRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ProcessRequest getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ProcessRequest> parser()
      • getParserForType

        public com.google.protobuf.Parser<ProcessRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ProcessRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder