@datafire/google_documentai
v3.0.0
Published
DataFire integration for Cloud Document AI API
Downloads
4
Readme
@datafire/google_documentai
Client library for Cloud Document AI API
Installation and Usage
npm install --save @datafire/google_documentai
let google_documentai = require('@datafire/google_documentai').create({
access_token: "",
refresh_token: "",
client_id: "",
client_secret: "",
redirect_uri: ""
});
.then(data => {
console.log(data);
});
Description
Service to parse structured information from unstructured or semi-structured documents using state-of-the-art Google AI such as natural language, computer vision, translation, and AutoML.
Actions
oauthCallback
Exchange the code passed to your redirect URI for an access_token
google_documentai.oauthCallback({
"code": ""
}, context)
Input
- input
object
- code required
string
- code required
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
oauthRefresh
Exchange a refresh_token for an access_token
google_documentai.oauthRefresh(null, context)
Input
This action has no parameters
Output
- output
object
- access_token
string
- refresh_token
string
- token_type
string
- scope
string
- expiration
string
- access_token
documentai.projects.locations.processors.humanReviewConfig.reviewDocument
Send a document for Human Review. The input document should be processed by the specified processor.
google_documentai.documentai.projects.locations.processors.humanReviewConfig.reviewDocument({
"humanReviewConfig": ""
}, context)
Input
- input
object
- humanReviewConfig required
string
: Required. The resource name of the HumanReviewConfig that the document will be reviewed with. - body GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- humanReviewConfig required
Output
- output GoogleLongrunningOperation
documentai.projects.locations.operations.get
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
google_documentai.documentai.projects.locations.operations.get({
"name": ""
}, context)
Input
- input
object
- name required
string
: The name of the operation resource. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output GoogleLongrunningOperation
documentai.projects.locations.list
Lists information about the supported locations for this service.
google_documentai.documentai.projects.locations.list({
"name": ""
}, context)
Input
- input
object
- name required
string
: The resource that owns the locations collection, if applicable. - filter
string
: The standard list filter. - pageSize
integer
: The standard list page size. - pageToken
string
: The standard list page token. - $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
documentai.projects.locations.processors.processorVersions.batchProcess
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
google_documentai.documentai.projects.locations.processors.processorVersions.batchProcess({
"name": ""
}, context)
Input
- input
object
- name required
string
: Required. The resource name of Processor or ProcessorVersion. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVerions/{processorVersion} - body GoogleCloudDocumentaiV1beta3BatchProcessRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
- output GoogleLongrunningOperation
documentai.projects.locations.processors.processorVersions.process
Processes a single document.
google_documentai.documentai.projects.locations.processors.processorVersions.process({
"name": ""
}, context)
Input
- input
object
- name required
string
: Required. The resource name of the Processor or ProcessorVersion to use for processing. If a Processor is specified, the server will use its default version. Format: projects/{project}/locations/{location}/processors/{processor}, or projects/{project}/locations/{location}/processors/{processor}/processorVerions/{processorVersion} - body GoogleCloudDocumentaiV1beta3ProcessRequest
- $.xgafv
string
(values: 1, 2): V1 error format. - access_token
string
: OAuth access token. - alt
string
(values: json, media, proto): Data format for response. - callback
string
: JSONP - fields
string
: Selector specifying which fields to include in a partial response. - key
string
: API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - oauth_token
string
: OAuth 2.0 token for the current user. - prettyPrint
boolean
: Returns response with indentations and line breaks. - quotaUser
string
: Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - upload_protocol
string
: Upload protocol for media (e.g. "raw", "multipart"). - uploadType
string
: Legacy upload protocol for media (e.g. "media", "multipart").
- name required
Output
Definitions
GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
- GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
object
: The common metadata for long running operations.- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, RUNNING, CANCELLING, SUCCEEDED, FAILED, CANCELLED): The state of the operation. - stateMessage
string
: A message providing more details about the current state of processing. - updateTime
string
: The last update time of the operation.
- createTime
GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
- GoogleCloudDocumentaiUiv1beta3CreateLabelerPoolOperationMetadata
object
: The long running operation metadata for CreateLabelerPool.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
- GoogleCloudDocumentaiUiv1beta3CreateProcessorVersionMetadata
object
: The metadata that represents a processor version being created.- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, QUEUED, PREPARING, RUNNING, SUCCEEDED, FAILED, CANCELLING, CANCELLED): The state of the current disable processor operation. - updateTime
string
: The last update time of the operation.
- createTime
GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
- GoogleCloudDocumentaiUiv1beta3DeleteLabelerPoolOperationMetadata
object
: The long running operation metadata for DeleteLabelerPool.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
- GoogleCloudDocumentaiUiv1beta3DeleteProcessorMetadata
object
: The long running operation metadata for delete processor method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, WAITING, RUNNING, SUCCEEDED, FAILED): The state of the current delete processor operation. - stateMessage
string
: A message providing more details about the current state of processing. For example, the error message if the operation is failed. - updateTime
string
: The last update time of the operation.
GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
- GoogleCloudDocumentaiUiv1beta3DeleteProcessorVersionMetadata
object
: The long running operation metadata for delete processor version method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
- GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionMetadata
object
: The long running operation metadata for deploy processor version method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse
- GoogleCloudDocumentaiUiv1beta3DeployProcessorVersionResponse
object
: Response message for the deploy processor version method.
GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
- GoogleCloudDocumentaiUiv1beta3DisableProcessorMetadata
object
: The long running operation metadata for disable processor method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, WAITING, RUNNING, SUCCEEDED, CANCELLING, CANCELLED, FAILED): The state of the current disable processor operation. - stateMessage
string
: A message providing more details about the current state of processing. For example, the error message if the operation is failed. - updateTime
string
: The last update time of the operation.
GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse
- GoogleCloudDocumentaiUiv1beta3DisableProcessorResponse
object
: Response message for the disable processor method. Intentionally empty proto for adding fields in future.
GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
- GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
object
: The long running operation metadata for enable processor method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, WAITING, RUNNING, SUCCEEDED, CANCELLING, CANCELLED, FAILED): The state of the current enable processor operation. - stateMessage
string
: A message providing more details about the current state of processing. For example, the error message if the operation is failed. - updateTime
string
: The last update time of the operation.
GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse
- GoogleCloudDocumentaiUiv1beta3EnableProcessorResponse
object
: Response message for the enable processor method. Intentionally empty proto for adding fields in future.
GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
- GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionMetadata
object
: The long running operation metadata for the undeploy processor version method.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse
- GoogleCloudDocumentaiUiv1beta3UndeployProcessorVersionResponse
object
: Response message for the undeploy processor version method.
GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
- GoogleCloudDocumentaiUiv1beta3UpdateHumanReviewConfigMetadata
object
: The long running operation metadata for updating the human review configuration.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
- GoogleCloudDocumentaiUiv1beta3UpdateLabelerPoolOperationMetadata
object
: The long running operation metadata for UpdateLabelerPool.- commonMetadata GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata
GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
- GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
object
: Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.- responses
array
: Responses for each individual document.
- responses
GoogleCloudDocumentaiV1beta1BoundingPoly
- GoogleCloudDocumentaiV1beta1BoundingPoly
object
: A bounding polygon for the detected image annotation.- normalizedVertices
array
: The bounding polygon normalized vertices. - vertices
array
: The bounding polygon vertices.
- normalizedVertices
GoogleCloudDocumentaiV1beta1Document
- GoogleCloudDocumentaiV1beta1Document
object
: Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.- content
string
: Inline document content, represented as a stream of bytes. Note: As with allbytes
fields, protobuffers use a pure binary representation, whereas JSON representations use base64. - entities
array
: A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. - entityRelations
array
: Relationship among Document.entities. - error GoogleRpcStatus
- mimeType
string
: An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml. - pages
array
: Visual page layout for the Document. - revisions
array
: Revision history of this document. - shardInfo GoogleCloudDocumentaiV1beta1DocumentShardInfo
- text
string
: UTF-8 encoded text in reading order from the document. - textChanges
array
: A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. - textStyles
array
: Styles for the Document.text. - translations
array
: A list of translations on Document.text. For document shards, translations in this list may cross shard boundaries. - uri
string
: Currently supports Google Cloud Storage URI of the formgs://bucket_name/object_name
. Object versioning is not supported. See Google Cloud Storage Request URIs for more info.
- content
GoogleCloudDocumentaiV1beta1DocumentEntity
- GoogleCloudDocumentaiV1beta1DocumentEntity
object
: A phrase in the text that is a known entity type, such as a person, an organization, or location.- confidence
number
: Optional. Confidence of detected Schema entity. Range [0, 1]. - id
string
: Optional. Canonical id. This will be a unique value in the entity list for this document. - mentionId
string
: Deprecated. Useid
field instead. - mentionText
string
: Text value in the document e.g.1600 Amphitheatre Pkwy
. - normalizedValue GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
- pageAnchor GoogleCloudDocumentaiV1beta1DocumentPageAnchor
- properties
array
: Optional. Entities can be nested to form a hierarchical data structure representing the content in the document. - provenance GoogleCloudDocumentaiV1beta1DocumentProvenance
- redacted
boolean
: Optional. Whether the entity will be redacted for de-identification purposes. - textAnchor GoogleCloudDocumentaiV1beta1DocumentTextAnchor
- type
string
: Entity type from a schema e.g.Address
.
- confidence
GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
- GoogleCloudDocumentaiV1beta1DocumentEntityNormalizedValue
object
: Parsed and normalized entity value.- addressValue GoogleTypePostalAddress
- dateValue GoogleTypeDate
- datetimeValue GoogleTypeDateTime
- moneyValue GoogleTypeMoney
- text
string
: Required. Normalized entity value stored as a string. This field is populated for supported document type (e.g. Invoice). For some entity types, one of respective 'structured_value' fields may also be populated. - Money/Currency type (money_value
) is in the ISO 4217 text format. - Date type (date_value
) is in the ISO 8601 text format. - Datetime type (datetime_value
) is in the ISO 8601 text format.
GoogleCloudDocumentaiV1beta1DocumentEntityRelation
- GoogleCloudDocumentaiV1beta1DocumentEntityRelation
object
: Relationship between Entities.- objectId
string
: Object entity id. - relation
string
: Relationship description. - subjectId
string
: Subject entity id.
- objectId
GoogleCloudDocumentaiV1beta1DocumentPage
- GoogleCloudDocumentaiV1beta1DocumentPage
object
: A page in a Document.- blocks
array
: A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. - detectedLanguages
array
: A list of detected languages together with confidence. - dimension GoogleCloudDocumentaiV1beta1DocumentPageDimension
- formFields
array
: A list of visually detected form fields on the page. - image GoogleCloudDocumentaiV1beta1DocumentPageImage
- layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- lines
array
: A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. - pageNumber
integer
: 1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing. - paragraphs
array
: A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph. - tables
array
: A list of visually detected tables on the page. - tokens
array
: A list of visually detected tokens on the page. - transforms
array
: Transformation matrices that were applied to the original document image to produce Page.image. - visualElements
array
: A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
- blocks
GoogleCloudDocumentaiV1beta1DocumentPageAnchor
- GoogleCloudDocumentaiV1beta1DocumentPageAnchor
object
: Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.- pageRefs
array
: One or more references to visual page elements
- pageRefs
GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
- GoogleCloudDocumentaiV1beta1DocumentPageAnchorPageRef
object
: Represents a weak reference to a page element within a document.- boundingPoly GoogleCloudDocumentaiV1beta1BoundingPoly
- layoutId
string
: Optional. Deprecated. Use PageRef.bounding_poly instead. - layoutType
string
(values: LAYOUT_TYPE_UNSPECIFIED, BLOCK, PARAGRAPH, LINE, TOKEN, VISUAL_ELEMENT, TABLE, FORM_FIELD): Optional. The type of the layout element that is being referenced if any. - page
string
: Required. Index into the Document.pages element, for example using Document.pages to locate the related page element.
GoogleCloudDocumentaiV1beta1DocumentPageBlock
- GoogleCloudDocumentaiV1beta1DocumentPageBlock
object
: A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta1DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
- GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
object
: Detected language for a structural component.- confidence
number
: Confidence of detected language. Range [0, 1]. - languageCode
string
: The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- confidence
GoogleCloudDocumentaiV1beta1DocumentPageDimension
- GoogleCloudDocumentaiV1beta1DocumentPageDimension
object
: Dimension for the page.- height
number
: Page height. - unit
string
: Dimension unit. - width
number
: Page width.
- height
GoogleCloudDocumentaiV1beta1DocumentPageFormField
- GoogleCloudDocumentaiV1beta1DocumentPageFormField
object
: A form field detected on the page.- fieldName GoogleCloudDocumentaiV1beta1DocumentPageLayout
- fieldValue GoogleCloudDocumentaiV1beta1DocumentPageLayout
- nameDetectedLanguages
array
: A list of detected languages for name together with confidence. - valueDetectedLanguages
array
: A list of detected languages for value together with confidence. - valueType
string
: If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
GoogleCloudDocumentaiV1beta1DocumentPageImage
- GoogleCloudDocumentaiV1beta1DocumentPageImage
object
: Rendered image contents for this page.- content
string
: Raw byte content of the image. - height
integer
: Height of the image in pixels. - mimeType
string
: Encoding mime type for the image. - width
integer
: Width of the image in pixels.
- content
GoogleCloudDocumentaiV1beta1DocumentPageLayout
- GoogleCloudDocumentaiV1beta1DocumentPageLayout
object
: Visual element describing a layout unit on a page.- boundingPoly GoogleCloudDocumentaiV1beta1BoundingPoly
- confidence
number
: Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1]. - orientation
string
(values: ORIENTATION_UNSPECIFIED, PAGE_UP, PAGE_RIGHT, PAGE_DOWN, PAGE_LEFT): Detected orientation for the Layout. - textAnchor GoogleCloudDocumentaiV1beta1DocumentTextAnchor
GoogleCloudDocumentaiV1beta1DocumentPageLine
- GoogleCloudDocumentaiV1beta1DocumentPageLine
object
: A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta1DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta1DocumentPageMatrix
- GoogleCloudDocumentaiV1beta1DocumentPageMatrix
object
: Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.- cols
integer
: Number of columns in the matrix. - data
string
: The matrix data. - rows
integer
: Number of rows in the matrix. - type
integer
: This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
- cols
GoogleCloudDocumentaiV1beta1DocumentPageParagraph
- GoogleCloudDocumentaiV1beta1DocumentPageParagraph
object
: A collection of lines that a human would perceive as a paragraph.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta1DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta1DocumentPageTable
- GoogleCloudDocumentaiV1beta1DocumentPageTable
object
: A table representation similar to HTML table structure.- bodyRows
array
: Body rows of the table. - detectedLanguages
array
: A list of detected languages together with confidence. - headerRows
array
: Header rows of the table. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- bodyRows
GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
- GoogleCloudDocumentaiV1beta1DocumentPageTableTableCell
object
: A cell representation inside the table.- colSpan
integer
: How many columns this cell spans. - detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- rowSpan
integer
: How many rows this cell spans.
- colSpan
GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
- GoogleCloudDocumentaiV1beta1DocumentPageTableTableRow
object
: A row of table cells.- cells
array
: Cells that make up this row.
- cells
GoogleCloudDocumentaiV1beta1DocumentPageToken
- GoogleCloudDocumentaiV1beta1DocumentPageToken
object
: A detected token.- detectedBreak GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta1DocumentProvenance
GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
- GoogleCloudDocumentaiV1beta1DocumentPageTokenDetectedBreak
object
: Detected break at the end of a Token.- type
string
(values: TYPE_UNSPECIFIED, SPACE, WIDE_SPACE, HYPHEN): Detected break type.
- type
GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
- GoogleCloudDocumentaiV1beta1DocumentPageVisualElement
object
: Detected non-text visual elements e.g. checkbox, signature etc. on the page.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta1DocumentPageLayout
- type
string
: Type of the VisualElement.
- detectedLanguages
GoogleCloudDocumentaiV1beta1DocumentProvenance
- GoogleCloudDocumentaiV1beta1DocumentProvenance
object
: Structure to identify provenance relationships between annotations in different revisions.- id
integer
: The Id of this operation. Needs to be unique within the scope of the revision. - parents
array
: References to the original elements that are replaced. - revision
integer
: The index of the revision that produced this element. - type
string
(values: OPERATION_TYPE_UNSPECIFIED, ADD, REMOVE, REPLACE, EVAL_REQUESTED, EVAL_APPROVED): The type of provenance operation.
- id
GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
- GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
object
: Structure for referencing parent provenances. When an element replaces one of more other elements parent references identify the elements that are replaced.- id
integer
: The id of the parent provenance. - revision
integer
: The index of the [Document.revisions] identifying the parent revision.
- id
GoogleCloudDocumentaiV1beta1DocumentRevision
- GoogleCloudDocumentaiV1beta1DocumentRevision
object
: Contains past or forward revisions of this document.- agent
string
: If the change was made by a person specify the name or id of that person. - createTime
string
: The time that the revision was created. - humanReview GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
- id
string
: Id of the revision. Unique within the context of the document. - parent
array
: The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into therevisions
field.- items
integer
- items
- processor
string
: If the annotation was made by processor identify the processor by its resource name.
- agent
GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
- GoogleCloudDocumentaiV1beta1DocumentRevisionHumanReview
object
: Human Review information of the document.- state
string
: Human review state. e.g.requested
,succeeded
,rejected
. - stateMessage
string
: A message providing more details about the current state of processing. For example, the rejection reason when the state isrejected
.
- state
GoogleCloudDocumentaiV1beta1DocumentShardInfo
- GoogleCloudDocumentaiV1beta1DocumentShardInfo
object
: For a large document, sharding may be performed to produce several document shards. Each document shard contains this field to detail which shard it is.- shardCount
string
: Total number of shards. - shardIndex
string
: The 0-based index of this shard. - textOffset
string
: The index of the first character in Document.text in the overall document global text.
- shardCount
GoogleCloudDocumentaiV1beta1DocumentStyle
- GoogleCloudDocumentaiV1beta1DocumentStyle
object
: Annotation for common text style attributes. This adheres to CSS conventions as much as possible.- backgroundColor GoogleTypeColor
- color GoogleTypeColor
- fontSize GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
- fontWeight
string
: Font weight. Possible values are normal, bold, bolder, and lighter. https://www.w3schools.com/cssref/pr_font_weight.asp - textAnchor GoogleCloudDocumentaiV1beta1DocumentTextAnchor
- textDecoration
string
: Text decoration. Follows CSS standard. https://www.w3schools.com/cssref/pr_text_text-decoration.asp - textStyle
string
: Text style. Possible values are normal, italic, and oblique. https://www.w3schools.com/cssref/pr_font_font-style.asp
GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
- GoogleCloudDocumentaiV1beta1DocumentStyleFontSize
object
: Font size with unit.- size
number
: Font size for the text. - unit
string
: Unit for the font size. Follows CSS naming (in, px, pt, etc.).
- size
GoogleCloudDocumentaiV1beta1DocumentTextAnchor
- GoogleCloudDocumentaiV1beta1DocumentTextAnchor
object
: Text reference indexing into the Document.text.- content
string
: Contains the content of the text span so that users do not have to look it up in the text_segments. - textSegments
array
: The text segments from the Document.text.
- content
GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
- GoogleCloudDocumentaiV1beta1DocumentTextAnchorTextSegment
object
: A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset- endIndex
string
: TextSegment half open end UTF-8 char index in the Document.text. - startIndex
string
: TextSegment start UTF-8 char index in the Document.text.
- endIndex
GoogleCloudDocumentaiV1beta1DocumentTextChange
- GoogleCloudDocumentaiV1beta1DocumentTextChange
object
: This message is used for text changes aka. OCR corrections.- changedText
string
: The text that replaces the text identified in thetext_anchor
. - provenance
array
: The history of this annotation. - textAnchor GoogleCloudDocumentaiV1beta1DocumentTextAnchor
- changedText
GoogleCloudDocumentaiV1beta1DocumentTranslation
- GoogleCloudDocumentaiV1beta1DocumentTranslation
object
: A translation of the text segment.- languageCode
string
: The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. - provenance
array
: The history of this annotation. - textAnchor GoogleCloudDocumentaiV1beta1DocumentTextAnchor
- translatedText
string
: Text translated into the target language.
- languageCode
GoogleCloudDocumentaiV1beta1GcsDestination
- GoogleCloudDocumentaiV1beta1GcsDestination
object
: The Google Cloud Storage location where the output file will be written to.- uri
string
- uri
GoogleCloudDocumentaiV1beta1GcsSource
- GoogleCloudDocumentaiV1beta1GcsSource
object
: The Google Cloud Storage location where the input file will be read from.- uri
string
- uri
GoogleCloudDocumentaiV1beta1InputConfig
- GoogleCloudDocumentaiV1beta1InputConfig
object
: The desired input location and metadata.- gcsSource GoogleCloudDocumentaiV1beta1GcsSource
- mimeType
string
: Required. Mimetype of the input. Current supported mimetypes are application/pdf, image/tiff, and image/gif. In addition, application/json type is supported for requests with ProcessDocumentRequest.automl_params field set. The JSON file needs to be in Document format.
GoogleCloudDocumentaiV1beta1NormalizedVertex
- GoogleCloudDocumentaiV1beta1NormalizedVertex
object
: A vertex represents a 2D point in the image. NOTE: the normalized vertex coordinates are relative to the original image and range from 0 to 1.- x
number
: X coordinate. - y
number
: Y coordinate.
- x
GoogleCloudDocumentaiV1beta1OperationMetadata
- GoogleCloudDocumentaiV1beta1OperationMetadata
object
: Contains metadata for the BatchProcessDocuments operation.- createTime
string
: The creation time of the operation. - state
string
(values: STATE_UNSPECIFIED, ACCEPTED, WAITING, RUNNING, SUCCEEDED, CANCELLED, FAILED): The state of the current batch processing. - stateMessage
string
: A message providing more details about the current state of processing. - updateTime
string
: The last update time of the operation.
- createTime
GoogleCloudDocumentaiV1beta1OutputConfig
- GoogleCloudDocumentaiV1beta1OutputConfig
object
: The desired output location and metadata.- gcsDestination GoogleCloudDocumentaiV1beta1GcsDestination
- pagesPerShard
integer
: The max number of pages to include into each output Document shard JSON on Google Cloud Storage. The valid range is [1, 100]. If not specified, the default value is 20. For example, for one pdf file with 100 pages, 100 parsed pages will be produced. Ifpages_per_shard
= 20, then 5 Document shard JSON files each containing 20 parsed pages will be written under the prefix OutputConfig.gcs_destination.uri and suffix pages-x-to-y.json where x and y are 1-indexed page numbers. Example GCS outputs with 157 pages and pages_per_shard = 50: pages-001-to-050.json pages-051-to-100.json pages-101-to-150.json pages-151-to-157.json
GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
- GoogleCloudDocumentaiV1beta1ProcessDocumentResponse
object
: Response to a single document processing request.- inputConfig GoogleCloudDocumentaiV1beta1InputConfig
- outputConfig GoogleCloudDocumentaiV1beta1OutputConfig
GoogleCloudDocumentaiV1beta1Vertex
- GoogleCloudDocumentaiV1beta1Vertex
object
: A vertex represents a 2D point in the image. NOTE: the vertex coordinates are in the same scale as the original image.- x
integer
: X coordinate. - y
integer
: Y coordinate.
- x
GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
- GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
object
: Response to an batch document processing request. This is returned in the LRO Operation after the operation is complete.- responses
array
: Responses for each individual document.
- responses
GoogleCloudDocumentaiV1beta2BoundingPoly
- GoogleCloudDocumentaiV1beta2BoundingPoly
object
: A bounding polygon for the detected image annotation.- normalizedVertices
array
: The bounding polygon normalized vertices. - vertices
array
: The bounding polygon vertices.
- normalizedVertices
GoogleCloudDocumentaiV1beta2Document
- GoogleCloudDocumentaiV1beta2Document
object
: Document represents the canonical document resource in Document Understanding AI. It is an interchange format that provides insights into documents and allows for collaboration between users and Document Understanding AI to iterate and optimize for quality.- content
string
: Inline document content, represented as a stream of bytes. Note: As with allbytes
fields, protobuffers use a pure binary representation, whereas JSON representations use base64. - entities
array
: A list of entities detected on Document.text. For document shards, entities in this list may cross shard boundaries. - entityRelations
array
: Relationship among Document.entities. - error GoogleRpcStatus
- labels
array
: Labels for this document. - mimeType
string
: An IANA published MIME type (also referred to as media type). For more information, see https://www.iana.org/assignments/media-types/media-types.xhtml. - pages
array
: Visual page layout for the Document. - revisions
array
: Revision history of this document. - shardInfo GoogleCloudDocumentaiV1beta2DocumentShardInfo
- text
string
: UTF-8 encoded text in reading order from the document. - textChanges
array
: A list of text corrections made to [Document.text]. This is usually used for annotating corrections to OCR mistakes. Text changes for a given revision may not overlap with each other. - textStyles
array
: Styles for the Document.text. - translations
array
: A list of translations on Document.text. For document shards, translations in this list may cross shard boundaries. - uri
string
: Currently supports Google Cloud Storage URI of the formgs://bucket_name/object_name
. Object versioning is not supported. See Google Cloud Storage Request URIs for more info.
- content
GoogleCloudDocumentaiV1beta2DocumentEntity
- GoogleCloudDocumentaiV1beta2DocumentEntity
object
: A phrase in the text that is a known entity type, such as a person, an organization, or location.- confidence
number
: Optional. Confidence of detected Schema entity. Range [0, 1]. - id
string
: Optional. Canonical id. This will be a unique value in the entity list for this document. - mentionId
string
: Deprecated. Useid
field instead. - mentionText
string
: Text value in the document e.g.1600 Amphitheatre Pkwy
. - normalizedValue GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
- pageAnchor GoogleCloudDocumentaiV1beta2DocumentPageAnchor
- properties
array
: Optional. Entities can be nested to form a hierarchical data structure representing the content in the document. - provenance GoogleCloudDocumentaiV1beta2DocumentProvenance
- redacted
boolean
: Optional. Whether the entity will be redacted for de-identification purposes. - textAnchor GoogleCloudDocumentaiV1beta2DocumentTextAnchor
- type
string
: Entity type from a schema e.g.Address
.
- confidence
GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
- GoogleCloudDocumentaiV1beta2DocumentEntityNormalizedValue
object
: Parsed and normalized entity value.- addressValue GoogleTypePostalAddress
- dateValue GoogleTypeDate
- datetimeValue GoogleTypeDateTime
- moneyValue GoogleTypeMoney
- text
string
: Required. Normalized entity value stored as a string. This field is populated for supported document type (e.g. Invoice). For some entity types, one of respective 'structured_value' fields may also be populated. - Money/Currency type (money_value
) is in the ISO 4217 text format. - Date type (date_value
) is in the ISO 8601 text format. - Datetime type (datetime_value
) is in the ISO 8601 text format.
GoogleCloudDocumentaiV1beta2DocumentEntityRelation
- GoogleCloudDocumentaiV1beta2DocumentEntityRelation
object
: Relationship between Entities.- objectId
string
: Object entity id. - relation
string
: Relationship description. - subjectId
string
: Subject entity id.
- objectId
GoogleCloudDocumentaiV1beta2DocumentLabel
- GoogleCloudDocumentaiV1beta2DocumentLabel
object
: Label attaches schema information and/or other metadata to segments within a Document. Multiple Labels on a single field can denote either different labels, different instances of the same label created at different times, or some combination of both.- automlModel
string
: Label is generated AutoML model. This field stores the full resource name of the AutoML model. Format:projects/{project-id}/locations/{location-id}/models/{model-id}
- confidence
number
: Confidence score between 0 and 1 for label assignment. - name
string
: Name of the label. When the label is generated from AutoML Text Classification model, this field represents the name of the category.
- automlModel
GoogleCloudDocumentaiV1beta2DocumentPage
- GoogleCloudDocumentaiV1beta2DocumentPage
object
: A page in a Document.- blocks
array
: A list of visually detected text blocks on the page. A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation. - detectedLanguages
array
: A list of detected languages together with confidence. - dimension GoogleCloudDocumentaiV1beta2DocumentPageDimension
- formFields
array
: A list of visually detected form fields on the page. - image GoogleCloudDocumentaiV1beta2DocumentPageImage
- layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- lines
array
: A list of visually detected text lines on the page. A collection of tokens that a human would perceive as a line. - pageNumber
integer
: 1-based index for current Page in a parent Document. Useful when a page is taken out of a Document for individual processing. - paragraphs
array
: A list of visually detected text paragraphs on the page. A collection of lines that a human would perceive as a paragraph. - tables
array
: A list of visually detected tables on the page. - tokens
array
: A list of visually detected tokens on the page. - transforms
array
: Transformation matrices that were applied to the original document image to produce Page.image. - visualElements
array
: A list of detected non-text visual elements e.g. checkbox, signature etc. on the page.
- blocks
GoogleCloudDocumentaiV1beta2DocumentPageAnchor
- GoogleCloudDocumentaiV1beta2DocumentPageAnchor
object
: Referencing the visual context of the entity in the Document.pages. Page anchors can be cross-page, consist of multiple bounding polygons and optionally reference specific layout element types.- pageRefs
array
: One or more references to visual page elements
- pageRefs
GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
- GoogleCloudDocumentaiV1beta2DocumentPageAnchorPageRef
object
: Represents a weak reference to a page element within a document.- boundingPoly GoogleCloudDocumentaiV1beta2BoundingPoly
- layoutId
string
: Optional. Deprecated. Use PageRef.bounding_poly instead. - layoutType
string
(values: LAYOUT_TYPE_UNSPECIFIED, BLOCK, PARAGRAPH, LINE, TOKEN, VISUAL_ELEMENT, TABLE, FORM_FIELD): Optional. The type of the layout element that is being referenced if any. - page
string
: Required. Index into the Document.pages element, for example using Document.pages to locate the related page element.
GoogleCloudDocumentaiV1beta2DocumentPageBlock
- GoogleCloudDocumentaiV1beta2DocumentPageBlock
object
: A block has a set of lines (collected into paragraphs) that have a common line-spacing and orientation.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta2DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
- GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
object
: Detected language for a structural component.- confidence
number
: Confidence of detected language. Range [0, 1]. - languageCode
string
: The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
- confidence
GoogleCloudDocumentaiV1beta2DocumentPageDimension
- GoogleCloudDocumentaiV1beta2DocumentPageDimension
object
: Dimension for the page.- height
number
: Page height. - unit
string
: Dimension unit. - width
number
: Page width.
- height
GoogleCloudDocumentaiV1beta2DocumentPageFormField
- GoogleCloudDocumentaiV1beta2DocumentPageFormField
object
: A form field detected on the page.- fieldName GoogleCloudDocumentaiV1beta2DocumentPageLayout
- fieldValue GoogleCloudDocumentaiV1beta2DocumentPageLayout
- nameDetectedLanguages
array
: A list of detected languages for name together with confidence. - valueDetectedLanguages
array
: A list of detected languages for value together with confidence. - valueType
string
: If the value is non-textual, this field represents the type. Current valid values are: - blank (this indicates the field_value is normal text) - "unfilled_checkbox" - "filled_checkbox"
GoogleCloudDocumentaiV1beta2DocumentPageImage
- GoogleCloudDocumentaiV1beta2DocumentPageImage
object
: Rendered image contents for this page.- content
string
: Raw byte content of the image. - height
integer
: Height of the image in pixels. - mimeType
string
: Encoding mime type for the image. - width
integer
: Width of the image in pixels.
- content
GoogleCloudDocumentaiV1beta2DocumentPageLayout
- GoogleCloudDocumentaiV1beta2DocumentPageLayout
object
: Visual element describing a layout unit on a page.- boundingPoly GoogleCloudDocumentaiV1beta2BoundingPoly
- confidence
number
: Confidence of the current Layout within context of the object this layout is for. e.g. confidence can be for a single token, a table, a visual element, etc. depending on context. Range [0, 1]. - orientation
string
(values: ORIENTATION_UNSPECIFIED, PAGE_UP, PAGE_RIGHT, PAGE_DOWN, PAGE_LEFT): Detected orientation for the Layout. - textAnchor GoogleCloudDocumentaiV1beta2DocumentTextAnchor
GoogleCloudDocumentaiV1beta2DocumentPageLine
- GoogleCloudDocumentaiV1beta2DocumentPageLine
object
: A collection of tokens that a human would perceive as a line. Does not cross column boundaries, can be horizontal, vertical, etc.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta2DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta2DocumentPageMatrix
- GoogleCloudDocumentaiV1beta2DocumentPageMatrix
object
: Representation for transformation matrix, intended to be compatible and used with OpenCV format for image manipulation.- cols
integer
: Number of columns in the matrix. - data
string
: The matrix data. - rows
integer
: Number of rows in the matrix. - type
integer
: This encodes information about what data type the matrix uses. For example, 0 (CV_8U) is an unsigned 8-bit image. For the full list of OpenCV primitive data types, please refer to https://docs.opencv.org/4.3.0/d1/d1b/group__core__hal__interface.html
- cols
GoogleCloudDocumentaiV1beta2DocumentPageParagraph
- GoogleCloudDocumentaiV1beta2DocumentPageParagraph
object
: A collection of lines that a human would perceive as a paragraph.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta2DocumentProvenance
- detectedLanguages
GoogleCloudDocumentaiV1beta2DocumentPageTable
- GoogleCloudDocumentaiV1beta2DocumentPageTable
object
: A table representation similar to HTML table structure.- bodyRows
array
: Body rows of the table. - detectedLanguages
array
: A list of detected languages together with confidence. - headerRows
array
: Header rows of the table. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- bodyRows
GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
- GoogleCloudDocumentaiV1beta2DocumentPageTableTableCell
object
: A cell representation inside the table.- colSpan
integer
: How many columns this cell spans. - detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- rowSpan
integer
: How many rows this cell spans.
- colSpan
GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
- GoogleCloudDocumentaiV1beta2DocumentPageTableTableRow
object
: A row of table cells.- cells
array
: Cells that make up this row.
- cells
GoogleCloudDocumentaiV1beta2DocumentPageToken
- GoogleCloudDocumentaiV1beta2DocumentPageToken
object
: A detected token.- detectedBreak GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- provenance GoogleCloudDocumentaiV1beta2DocumentProvenance
GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
- GoogleCloudDocumentaiV1beta2DocumentPageTokenDetectedBreak
object
: Detected break at the end of a Token.- type
string
(values: TYPE_UNSPECIFIED, SPACE, WIDE_SPACE, HYPHEN): Detected break type.
- type
GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
- GoogleCloudDocumentaiV1beta2DocumentPageVisualElement
object
: Detected non-text visual elements e.g. checkbox, signature etc. on the page.- detectedLanguages
array
: A list of detected languages together with confidence. - layout GoogleCloudDocumentaiV1beta2DocumentPageLayout
- type
string
: Type of the VisualElement.
- detectedLanguages
GoogleCloudDocumentaiV1beta2DocumentProvenance
- GoogleCloudDocumentaiV1beta2DocumentProvenance
object
: Structure to identify provenance relationships between annotations in different revisions.- id
integer
: The Id of this operation. Needs to be unique within the scope of the revision. - parents
array
: References to the original elements that are replaced. - revision
integer
: The index of the revision that produced this element. - type
string
(values: OPERATION_TYPE_UNSPECIFIED, ADD, REMOVE, REPLACE, EVAL_REQUESTED, EVAL_APPROVED): The type of provenance operation.
- id
GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
- GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
object
: Structure for referencing parent provenances. When an element replaces one of more other elements parent references identify the elements that are replaced.- id
integer
: The id of the parent provenance. - revision
integer
: The index of the [Document.revisions] identifying the parent revision.
- id
GoogleCloudDocumentaiV1beta2DocumentRevision
- GoogleCloudDocumentaiV1beta2DocumentRevision
object
: Contains past or forward revisions of this document.- agent
string
: If the change was made by a person specify the name or id of that person. - createTime
string
: The time that the revision was created. - humanReview GoogleCloudDocumentaiV1beta2DocumentRevisionHumanReview
- id
string
: Id of the revision. Unique within the context of the document. - parent
array
: The revisions that this revision is based o
- agent