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

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

NameAccessible byRequired ParamsDescription
projects_locations_fetch_processor_typesSELECTlocationsId, projectsIdFetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated.
projects_locations_processor_types_getSELECTlocationsId, processorTypesId, projectsIdGets a processor type detail.
projects_locations_processor_types_listSELECTlocationsId, projectsIdLists the processor types that exist.

SELECT examples

Fetches processor types. Note that we don't use ListProcessorTypes here, because it isn't paginated.

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