# Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::Provenance (v1.12.1)

1.12.1 (latest) 1.12.0 1.11.0 1.10.2 1.9.0 1.8.0 1.7.0 1.6.1 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.23.1 0.22.0 0.21.1 0.20.0 0.19.0 0.18.0 0.17.2 0.16.2 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.4 Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::Provenance.

Structure to identify provenance relationships between annotations in
different revisions.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #id

    def id() -> ::Integer

**Returns**

- (::Integer) --- The Id of this operation. Needs to be unique within the scope of the revision.

### #id=

    def id=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The Id of this operation. Needs to be unique within the scope of the revision.
**Returns**

- (::Integer) --- The Id of this operation. Needs to be unique within the scope of the revision.

### #parents

    def parents() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance::Parent>

**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::Provenance::Parent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-Parent)\>) --- References to the original elements that are replaced.

### #parents=

    def parents=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::Provenance::Parent>

**Parameter**

- **value** (::Array\<[::Google::Cloud::DocumentAI::V1::Document::Provenance::Parent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-Parent)\>) --- References to the original elements that are replaced.
**Returns**

- (::Array\<[::Google::Cloud::DocumentAI::V1::Document::Provenance::Parent](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-Parent)\>) --- References to the original elements that are replaced.

### #revision

    def revision() -> ::Integer

**Returns**

- (::Integer) --- The index of the revision that produced this element.

### #revision=

    def revision=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The index of the revision that produced this element.
**Returns**

- (::Integer) --- The index of the revision that produced this element.

### #type

    def type() -> ::Google::Cloud::DocumentAI::V1::Document::Provenance::OperationType

**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::Provenance::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-OperationType)) --- The type of provenance operation.

### #type=

    def type=(value) -> ::Google::Cloud::DocumentAI::V1::Document::Provenance::OperationType

**Parameter**

- **value** ([::Google::Cloud::DocumentAI::V1::Document::Provenance::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-OperationType)) --- The type of provenance operation.
**Returns**

- ([::Google::Cloud::DocumentAI::V1::Document::Provenance::OperationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-document_ai-v1/latest/Google-Cloud-DocumentAI-V1-Document-Provenance-OperationType)) --- The type of provenance operation.