Skip to main content

processor_types

Creates, updates, deletes, gets or lists a processor_types resource.

Overview

Nameprocessor_types
TypeResource
Idgoogle.documentai.processor_types

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringThe resource name of the processor type. Format: projects/{project}/processorTypes/{processor_type}
allowCreationbooleanWhether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.
availableLocationsarrayThe locations in which this processor is available.
categorystringThe processor category, used by UI to group processor types.
launchStagestringLaunch stage of the processor type
sampleDocumentUrisarrayA set of Cloud Storage URIs of sample documents for this processor.
typestringThe processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_processor_types_getselectprojectsId, locationsId, processorTypesIdGets a processor type detail.
projects_locations_fetch_processor_typesselectprojectsId, locationsIdFetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated.
projects_locations_processor_types_listselectprojectsId, locationsIdpageSize, pageTokenLists the processor types that exist.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
processorTypesIdstring
projectsIdstring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Gets a processor type detail.

SELECT
name,
allowCreation,
availableLocations,
category,
launchStage,
sampleDocumentUris,
type
FROM google.documentai.processor_types
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND processorTypesId = '{{ processorTypesId }}' -- required;