Skip to main content

processor_versions

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

Overview

Nameprocessor_versions
TypeResource
Idgoogle.documentai.processor_versions

Fields

NameDatatypeDescription
namestringIdentifier. The resource name of the processor version. Format: projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}
createTimestringThe time the processor version was created.
deprecationInfoobjectInformation about the upcoming deprecation of this processor version.
displayNamestringThe display name of the processor version.
documentSchemaobjectThe schema defines the output of the processed document by a processor.
genAiModelInfoobjectInformation about Generative AI model-based processor versions.
googleManagedbooleanOutput only. Denotes that this ProcessorVersion is managed by Google.
kmsKeyNamestringThe KMS key name used for encryption.
kmsKeyVersionNamestringThe KMS key version with which data is encrypted.
latestEvaluationobjectGives a short summary of an evaluation, and links to the evaluation itself.
modelTypestringOutput only. The model type of this processor version.
satisfiesPzibooleanOutput only. Reserved for future use.
satisfiesPzsbooleanOutput only. Reserved for future use.
statestringOutput only. The state of the processor version.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_processors_processor_versions_getSELECTlocationsId, processorVersionsId, processorsId, projectsIdGets a processor version detail.
projects_locations_processors_processor_versions_listSELECTlocationsId, processorsId, projectsIdLists all versions of a processor.
projects_locations_processors_processor_versions_deleteDELETElocationsId, processorVersionsId, processorsId, projectsIdDeletes the processor version, all artifacts under the processor version will be deleted.
projects_locations_processors_processor_versions_batch_processEXEClocationsId, processorVersionsId, processorsId, projectsIdLRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
projects_locations_processors_processor_versions_deployEXEClocationsId, processorVersionsId, processorsId, projectsIdDeploys the processor version.
projects_locations_processors_processor_versions_evaluate_processor_versionEXEClocationsId, processorVersionsId, processorsId, projectsIdEvaluates a ProcessorVersion against annotated documents, producing an Evaluation.
projects_locations_processors_processor_versions_processEXEClocationsId, processorVersionsId, processorsId, projectsIdProcesses a single document.
projects_locations_processors_processor_versions_trainEXEClocationsId, processorsId, projectsIdTrains a new processor version. Operation metadata is returned as TrainProcessorVersionMetadata.
projects_locations_processors_processor_versions_undeployEXEClocationsId, processorVersionsId, processorsId, projectsIdUndeploys the processor version.

SELECT examples

Lists all versions of a processor.

SELECT
name,
createTime,
deprecationInfo,
displayName,
documentSchema,
genAiModelInfo,
googleManaged,
kmsKeyName,
kmsKeyVersionName,
latestEvaluation,
modelType,
satisfiesPzi,
satisfiesPzs,
state
FROM google.documentai.processor_versions
WHERE locationsId = '{{ locationsId }}'
AND processorsId = '{{ processorsId }}'
AND projectsId = '{{ projectsId }}';

DELETE example

Deletes the specified processor_versions resource.

/*+ delete */
DELETE FROM google.documentai.processor_versions
WHERE locationsId = '{{ locationsId }}'
AND processorVersionsId = '{{ processorVersionsId }}'
AND processorsId = '{{ processorsId }}'
AND projectsId = '{{ projectsId }}';