# Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::ProcessRequest (v0.49.0)

0.49.0 (latest) 0.48.1 0.47.0 0.46.2 0.45.0 0.44.0 0.43.1 0.42.0 0.41.0 0.40.0 0.39.1 0.38.0 0.37.0 0.36.1 0.35.0 0.34.0 0.33.1 0.32.0 0.31.0 0.30.2 0.29.0 0.28.0 0.27.0 0.26.0 0.25.0 0.24.0 0.23.0 0.22.0 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.4 Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::ProcessRequest.

Request message for the
[ProcessDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-DocumentProcessorService-Client#Google__Cloud__DocumentAI__V1beta3__DocumentProcessorService__Client_process_document_instance_ "Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client#process_document (method)")
method.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #document

    def document() -> ::Google::Cloud::DocumentAI::V1beta3::Document

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- The document payload, the [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_content_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#content (method)") and [mime_type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_mime_type_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#mime_type (method)") fields must be set.

### #document=

    def document=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- The document payload, the [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_content_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#content (method)") and [mime_type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_mime_type_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#mime_type (method)") fields must be set.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- The document payload, the [content](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_content_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#content (method)") and [mime_type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document#Google__Cloud__DocumentAI__V1beta3__Document_mime_type_instance_ "Google::Cloud::DocumentAI::V1beta3::Document#mime_type (method)") fields must be set.

### #field_mask

    def field_mask() -> ::Google::Protobuf::FieldMask

**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Protobuf-FieldMask)) --- Specifies which fields to include in the [ProcessResponse.document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessResponse#Google__Cloud__DocumentAI__V1beta3__ProcessResponse_document_instance_ "Google::Cloud::DocumentAI::V1beta3::ProcessResponse#document (method)") 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}`.

### #field_mask=

    def field_mask=(value) -> ::Google::Protobuf::FieldMask

**Parameter**

- **value** ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Protobuf-FieldMask)) --- Specifies which fields to include in the [ProcessResponse.document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessResponse#Google__Cloud__DocumentAI__V1beta3__ProcessResponse_document_instance_ "Google::Cloud::DocumentAI::V1beta3::ProcessResponse#document (method)") 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}`.
**Returns**

- ([::Google::Protobuf::FieldMask](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Protobuf-FieldMask)) --- Specifies which fields to include in the [ProcessResponse.document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessResponse#Google__Cloud__DocumentAI__V1beta3__ProcessResponse_document_instance_ "Google::Cloud::DocumentAI::V1beta3::ProcessResponse#document (method)") 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}`.

### #gcs_document

    def gcs_document() -> ::Google::Cloud::DocumentAI::V1beta3::GcsDocument

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::GcsDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-GcsDocument)) --- A raw document on Google Cloud Storage.


  Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #gcs_document=

    def gcs_document=(value) -> ::Google::Cloud::DocumentAI::V1beta3::GcsDocument

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::GcsDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-GcsDocument)) --- A raw document on Google Cloud Storage.


  Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::GcsDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-GcsDocument)) --- A raw document on Google Cloud Storage.


  Note: The following fields are mutually exclusive: `gcs_document`, `inline_document`, `raw_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #imageless_mode

    def imageless_mode() -> ::Boolean

**Returns**

- (::Boolean) --- Optional. Option to remove images from the document.

### #imageless_mode=

    def imageless_mode=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Optional. Option to remove images from the document.
**Returns**

- (::Boolean) --- Optional. Option to remove images from the document.

### #inline_document

    def inline_document() -> ::Google::Cloud::DocumentAI::V1beta3::Document

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- An inline document proto.


  Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #inline_document=

    def inline_document=(value) -> ::Google::Cloud::DocumentAI::V1beta3::Document

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- An inline document proto.


  Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::Document](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Document)) --- An inline document proto.


  Note: The following fields are mutually exclusive: `inline_document`, `raw_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #labels

    def labels() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels with user-defined metadata for the request.

  Label keys and values can be no longer than 63 characters
  (Unicode codepoints) and can only contain lowercase letters, numeric
  characters, underscores, and dashes. International characters are allowed.
  Label values are optional. Label keys must start with a letter.

### #labels=

    def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels with user-defined metadata for the request.


  Label keys and values can be no longer than 63 characters
  (Unicode codepoints) and can only contain lowercase letters, numeric
  characters, underscores, and dashes. International characters are allowed.
  Label values are optional. Label keys must start with a letter.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Optional. The labels with user-defined metadata for the request.

  Label keys and values can be no longer than 63 characters
  (Unicode codepoints) and can only contain lowercase letters, numeric
  characters, underscores, and dashes. International characters are allowed.
  Label values are optional. Label keys must start with a letter.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") or [ProcessorVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessorVersion "Google::Cloud::DocumentAI::V1beta3::ProcessorVersion (class)") to use for processing. If a [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") 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}`

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") or [ProcessorVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessorVersion "Google::Cloud::DocumentAI::V1beta3::ProcessorVersion (class)") to use for processing. If a [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") 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}`
**Returns**

- (::String) --- Required. The resource name of the [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") or [ProcessorVersion](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessorVersion "Google::Cloud::DocumentAI::V1beta3::ProcessorVersion (class)") to use for processing. If a [Processor](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-Processor "Google::Cloud::DocumentAI::V1beta3::Processor (class)") 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}`

### #process_options

    def process_options() -> ::Google::Cloud::DocumentAI::V1beta3::ProcessOptions

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::ProcessOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessOptions)) --- Inference-time options for the process API

### #process_options=

    def process_options=(value) -> ::Google::Cloud::DocumentAI::V1beta3::ProcessOptions

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::ProcessOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessOptions)) --- Inference-time options for the process API
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::ProcessOptions](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-ProcessOptions)) --- Inference-time options for the process API

### #raw_document

    def raw_document() -> ::Google::Cloud::DocumentAI::V1beta3::RawDocument

**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::RawDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-RawDocument)) --- A raw document content (bytes).


  Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #raw_document=

    def raw_document=(value) -> ::Google::Cloud::DocumentAI::V1beta3::RawDocument

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1beta3::RawDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-RawDocument)) --- A raw document content (bytes).


  Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::DocumentAI::V1beta3::RawDocument](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1beta3/latest/Google-Cloud-DocumentAI-V1beta3-RawDocument)) --- A raw document content (bytes).


  Note: The following fields are mutually exclusive: `raw_document`, `inline_document`, `gcs_document`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #skip_human_review

    def skip_human_review() -> ::Boolean

**Returns**

- (::Boolean) --- Whether human review should be skipped for this request. Default to `false`.

### #skip_human_review=

    def skip_human_review=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- Whether human review should be skipped for this request. Default to `false`.
**Returns**

- (::Boolean) --- Whether human review should be skipped for this request. Default to `false`.