Class RevisionRef (2.25.0)

RevisionRef(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The revision reference specifies which revision on the document to read.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
revision_case google.cloud.documentai_v1beta3.types.RevisionRef.RevisionCase
Reads the revision by the predefined case. This field is a member of oneof_ source.
revision_id str
Reads the revision given by the id. This field is a member of oneof_ source.
latest_processor_version str
Reads the revision generated by the processor version. The format takes the full resource name of processor version. projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion} This field is a member of oneof_ source.

Classes

RevisionCase

RevisionCase(value)

Some predefined revision cases.

Values: REVISION_CASE_UNSPECIFIED (0): Unspecified case, fall back to read the LATEST_HUMAN_REVIEW. LATEST_HUMAN_REVIEW (1): The latest revision made by a human. LATEST_TIMESTAMP (2): The latest revision based on timestamp. BASE_OCR_REVISION (3): The first (OCR) revision.