# Google Cloud Document Ai V1 Client - Class Revision (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 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 message `google.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` | `int[]` 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 the `revisions` field. |
| `↳ parent_ids` | `string[]` The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are `provenance.parent.revision` fields that index into this field. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time that the revision was created, internally generated by doc proto storage at the time of create. |
| `↳ human_review` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Revision.HumanReview` Human Review information of this revision. |

### getAgent

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 the `revisions` field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<int>` |   |

### setParent

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 the `revisions` field.

| **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 are
`provenance.parent.revision` fields that index into this field.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setParentIds

The revisions that this revision is based on. Must include all the ids
that have anything to do with this revision - eg. there are
`provenance.parent.revision` fields 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

The time that the revision was created, internally generated by
doc proto storage at the time of create.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHumanReview

Human Review information of this revision.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Revision.HumanReview|null` |   |

### hasHumanReview

### clearHumanReview

### setHumanReview

Human Review information of this revision.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.Document.Revision.HumanReview` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSource

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |