Reference documentation and code samples for the Google Cloud Document Ai V1 Client class Provenance.
Structure to identify provenance relationships between annotations in different revisions.
Generated from protobuf message google.cloud.documentai.v1.Document.Provenance
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ revision |
int
The index of the revision that produced this element. |
↳ id |
int
The Id of this operation. Needs to be unique within the scope of the revision. |
↳ parents |
array<Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent>
References to the original elements that are replaced. |
↳ type |
int
The type of provenance operation. |
getRevision
The index of the revision that produced this element.
Generated from protobuf field int32 revision = 1;
Returns | |
---|---|
Type | Description |
int |
setRevision
The index of the revision that produced this element.
Generated from protobuf field int32 revision = 1;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getId
The Id of this operation. Needs to be unique within the scope of the revision.
Generated from protobuf field int32 id = 2 [deprecated = true];
Returns | |
---|---|
Type | Description |
int |
setId
The Id of this operation. Needs to be unique within the scope of the revision.
Generated from protobuf field int32 id = 2 [deprecated = true];
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getParents
References to the original elements that are replaced.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setParents
References to the original elements that are replaced.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent>
|
Returns | |
---|---|
Type | Description |
$this |
getType
The type of provenance operation.
Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
Returns | |
---|---|
Type | Description |
int |
setType
The type of provenance operation.
Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |