Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Revision.
Contains past or forward revisions of this document.
Generated from protobuf messagegoogle.cloud.documentai.v1.Document.Revision
Namespace
Google \ Cloud \ DocumentAI \ V1 \ Document
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ agent
string
If the change was made by a person specify the name or id of that person.
↳ processor
string
If the annotation was made by processor identify the processor by its resource name.
↳ id
string
Id of the revision, internally generated by doc proto storage. 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 therevisionsfield.
↳ parent_ids
array
The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there areprovenance.parent.revisionfields that index into this field.
If the change was made by a person specify the name or id of that
person.
Returns
Type
Description
string
hasAgent
setAgent
If the change was made by a person specify the name or id of that
person.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getProcessor
If the annotation was made by processor identify the processor by its
resource name.
Returns
Type
Description
string
hasProcessor
setProcessor
If the annotation was made by processor identify the processor by its
resource name.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getId
Id of the revision, internally generated by doc proto storage.
Unique within the context of the document.
Returns
Type
Description
string
setId
Id of the revision, internally generated by doc proto storage.
Unique within the context of the document.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getParent
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 therevisionsfield.
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 therevisionsfield.
Parameter
Name
Description
var
int[]
Returns
Type
Description
$this
getParentIds
The revisions that this revision is based on. Must include all the ids
that have anything to do with this revision - eg. there areprovenance.parent.revisionfields that index into this field.
The revisions that this revision is based on. Must include all the ids
that have anything to do with this revision - eg. there areprovenance.parent.revisionfields that index into this field.
Parameter
Name
Description
var
string[]
Returns
Type
Description
$this
getCreateTime
The time that the revision was created, internally generated by
doc proto storage at the time of create.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Document Ai V1 Client - Class Revision (2.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.0 (latest)](/php/docs/reference/cloud-document-ai/latest/V1.Document.Revision)\n- [2.2.2](/php/docs/reference/cloud-document-ai/2.2.2/V1.Document.Revision)\n- [2.1.3](/php/docs/reference/cloud-document-ai/2.1.3/V1.Document.Revision)\n- [2.0.0](/php/docs/reference/cloud-document-ai/2.0.0/V1.Document.Revision)\n- [1.14.0](/php/docs/reference/cloud-document-ai/1.14.0/V1.Document.Revision)\n- [1.13.1](/php/docs/reference/cloud-document-ai/1.13.1/V1.Document.Revision)\n- [1.12.2](/php/docs/reference/cloud-document-ai/1.12.2/V1.Document.Revision)\n- [1.9.0](/php/docs/reference/cloud-document-ai/1.9.0/V1.Document.Revision)\n- [1.8.2](/php/docs/reference/cloud-document-ai/1.8.2/V1.Document.Revision)\n- [1.7.0](/php/docs/reference/cloud-document-ai/1.7.0/V1.Document.Revision)\n- [1.6.0](/php/docs/reference/cloud-document-ai/1.6.0/V1.Document.Revision)\n- [1.5.0](/php/docs/reference/cloud-document-ai/1.5.0/V1.Document.Revision)\n- [1.4.0](/php/docs/reference/cloud-document-ai/1.4.0/V1.Document.Revision)\n- [1.3.0](/php/docs/reference/cloud-document-ai/1.3.0/V1.Document.Revision)\n- [1.2.2](/php/docs/reference/cloud-document-ai/1.2.2/V1.Document.Revision)\n- [1.1.1](/php/docs/reference/cloud-document-ai/1.1.1/V1.Document.Revision)\n- [1.0.1](/php/docs/reference/cloud-document-ai/1.0.1/V1.Document.Revision) \nReference documentation and code samples for the Google Cloud Document Ai V1 Client class Revision.\n\nContains past or forward revisions of this document.\n\nGenerated from protobuf message `google.cloud.documentai.v1.Document.Revision`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DocumentAI \\\\ V1 \\\\ Document\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAgent\n\nIf the change was made by a person specify the name or id of that\nperson.\n\n### hasAgent\n\n### setAgent\n\nIf the change was made by a person specify the name or id of that\nperson.\n\n### getProcessor\n\nIf the annotation was made by processor identify the processor by its\nresource name.\n\n### hasProcessor\n\n### setProcessor\n\nIf the annotation was made by processor identify the processor by its\nresource name.\n\n### getId\n\nId of the revision, internally generated by doc proto storage.\n\nUnique within the context of the document.\n\n### setId\n\nId of the revision, internally generated by doc proto storage.\n\nUnique within the context of the document.\n\n### getParent\n\nThe revisions that this revision is based on. This can include one or\nmore parent (when documents are merged.) This field represents the\nindex into the `revisions` field.\n\n### setParent\n\nThe revisions that this revision is based on. This can include one or\nmore parent (when documents are merged.) This field represents the\nindex into the `revisions` field.\n\n### getParentIds\n\nThe revisions that this revision is based on. Must include all the ids\nthat have anything to do with this revision - eg. there are\n`provenance.parent.revision` fields that index into this field.\n\n### setParentIds\n\nThe revisions that this revision is based on. Must include all the ids\nthat have anything to do with this revision - eg. there are\n`provenance.parent.revision` fields that index into this field.\n\n### getCreateTime\n\nThe time that the revision was created, internally generated by\ndoc proto storage at the time of create.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nThe time that the revision was created, internally generated by\ndoc proto storage at the time of create.\n\n### getHumanReview\n\nHuman Review information of this revision.\n\n### hasHumanReview\n\n### clearHumanReview\n\n### setHumanReview\n\nHuman Review information of this revision.\n\n### getSource"]]