Google Cloud Document Ai V1 Client - Class ProcessorType (1.2.2)

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

A processor type is responsible for performing a certain document understanding task on a certain type of document.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The resource name of the processor type. Format: projects/{project}/processorTypes/{processor_type}

↳ type string

The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc.

↳ category string

The processor category, used by UI to group processor types.

↳ available_locations array<Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo>

The locations in which this processor is available.

↳ allow_creation bool

Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.

↳ launch_stage int

Launch stage of the processor type

↳ sample_document_uris array

A set of Cloud Storage URIs of sample documents for this processor.

getName

The resource name of the processor type.

Format: projects/{project}/processorTypes/{processor_type}

Returns
TypeDescription
string

setName

The resource name of the processor type.

Format: projects/{project}/processorTypes/{processor_type}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc.

Returns
TypeDescription
string

setType

The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategory

The processor category, used by UI to group processor types.

Returns
TypeDescription
string

setCategory

The processor category, used by UI to group processor types.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAvailableLocations

The locations in which this processor is available.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAvailableLocations

The locations in which this processor is available.

Parameter
NameDescription
var array<Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo>
Returns
TypeDescription
$this

getAllowCreation

Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.

Returns
TypeDescription
bool

setAllowCreation

Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLaunchStage

Launch stage of the processor type

Returns
TypeDescription
int

setLaunchStage

Launch stage of the processor type

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSampleDocumentUris

A set of Cloud Storage URIs of sample documents for this processor.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSampleDocumentUris

A set of Cloud Storage URIs of sample documents for this processor.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this