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 | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The resource name of the processor type. Format: |
↳ type |
string
The processor type, e.g., |
↳ 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 | |
---|---|
Type | Description |
string |
setName
The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
Generated from protobuf field string name = 1;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getType
The processor type, e.g., OCR_PROCESSOR
, INVOICE_PROCESSOR
, etc.
Generated from protobuf field string type = 2;
Returns | |
---|---|
Type | Description |
string |
setType
The processor type, e.g., OCR_PROCESSOR
, INVOICE_PROCESSOR
, etc.
Generated from protobuf field string type = 2;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getCategory
The processor category, used by UI to group processor types.
Generated from protobuf field string category = 3;
Returns | |
---|---|
Type | Description |
string |
setCategory
The processor category, used by UI to group processor types.
Generated from protobuf field string category = 3;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array<Google\Cloud\DocumentAI\V1\ProcessorType\LocationInfo>
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |
getLaunchStage
Launch stage of the processor type
Generated from protobuf field .google.api.LaunchStage launch_stage = 8;
Returns | |
---|---|
Type | Description |
int |
setLaunchStage
Launch stage of the processor type
Generated from protobuf field .google.api.LaunchStage launch_stage = 8;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |