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

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

getName

The resource name of the processor type.

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

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

The resource name of the processor type.

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

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getType

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

Generated from protobuf field string type = 2;

Returns
TypeDescription
string

setType

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

Generated from protobuf field string type = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCategory

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

Generated from protobuf field string category = 3;

Returns
TypeDescription
string

setCategory

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

Generated from protobuf field string category = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAvailableLocations

The locations in which this processor is available.

Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAvailableLocations

The locations in which this processor is available.

Generated from protobuf field repeated .google.cloud.documentai.v1.ProcessorType.LocationInfo available_locations = 4;

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.

Generated from protobuf field bool allow_creation = 6;

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.

Generated from protobuf field bool allow_creation = 6;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getLaunchStage

Launch stage of the processor type

Generated from protobuf field .google.api.LaunchStage launch_stage = 8;

Returns
TypeDescription
int

setLaunchStage

Launch stage of the processor type

Generated from protobuf field .google.api.LaunchStage launch_stage = 8;

Parameter
NameDescription
var int
Returns
TypeDescription
$this