Skip to main content

processors

Overview

Nameprocessors
TypeResource
Idgoogle.documentai.processors

Fields

NameDatatypeDescription
namestringOutput only. Immutable. The resource name of the processor. Format: projects/{project}/locations/{location}/processors/{processor}
processEndpointstringOutput only. Immutable. The http endpoint that can be called to invoke processing.
createTimestringThe time the processor was created.
statestringOutput only. The state of the processor.
processorVersionAliasesarrayOutput only. The processor version aliases.
displayNamestringThe display name of the processor.
typestringThe processor type, such as: OCR_PROCESSOR, INVOICE_PROCESSOR. To get a list of processor types, see FetchProcessorTypes.
defaultProcessorVersionstringThe default processor version.
kmsKeyNamestringThe KMS key used for encryption and decryption in CMEK scenarios.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_processors_getSELECTlocationsId, processorsId, projectsIdGets a processor detail.
projects_locations_processors_listSELECTlocationsId, projectsIdLists all processors which belong to this project.
projects_locations_processors_createINSERTlocationsId, projectsIdCreates a processor from the ProcessorType provided. The processor will be at ENABLED state by default after its creation.
projects_locations_processors_deleteDELETElocationsId, processorsId, projectsIdDeletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
_projects_locations_processors_listEXEClocationsId, projectsIdLists all processors which belong to this project.
projects_locations_processors_batch_processEXEClocationsId, processorsId, projectsIdLRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
projects_locations_processors_disableEXEClocationsId, processorsId, projectsIdDisables a processor
projects_locations_processors_enableEXEClocationsId, processorsId, projectsIdEnables a processor
projects_locations_processors_processEXEClocationsId, processorsId, projectsIdProcesses a single document.
projects_locations_processors_set_default_processor_versionEXEClocationsId, processorsId, projectsIdSet the default (active) version of a Processor that will be used in ProcessDocument and BatchProcessDocuments.