Google Cloud Document Ai V1 Client - Class ProcessRequest (1.5.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ProcessRequest.

Request message for the ProcessDocument method.

Generated from protobuf message google.cloud.documentai.v1.ProcessRequest

Namespace

Google \ Cloud \ DocumentAI \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ inline_document Google\Cloud\DocumentAI\V1\Document

An inline document proto.

↳ raw_document Google\Cloud\DocumentAI\V1\RawDocument

A raw document content (bytes).

↳ name string

Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

↳ skip_human_review bool

Whether human review should be skipped for this request. Default to false.

↳ field_mask Google\Protobuf\FieldMask

Specifies which fields to include in the 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}.

getInlineDocument

An inline document proto.

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\Document|null

hasInlineDocument

setInlineDocument

An inline document proto.

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\Document
Returns
TypeDescription
$this

getRawDocument

A raw document content (bytes).

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\RawDocument|null

hasRawDocument

setRawDocument

A raw document content (bytes).

Parameter
NameDescription
var Google\Cloud\DocumentAI\V1\RawDocument
Returns
TypeDescription
$this

getName

Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version.

Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

Returns
TypeDescription
string

setName

Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version.

Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSkipHumanReview

Whether human review should be skipped for this request. Default to false.

Returns
TypeDescription
bool

setSkipHumanReview

Whether human review should be skipped for this request. Default to false.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getFieldMask

Specifies which fields to include in the 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}.

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasFieldMask

clearFieldMask

setFieldMask

Specifies which fields to include in the 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}.

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this

getSource

Returns
TypeDescription
string

static::build

Parameter
NameDescription
name string

Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}

Returns
TypeDescription
Google\Cloud\DocumentAI\V1\ProcessRequest