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.
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;
int
setRevision
The index of the revision that produced this element.
Generated from protobuf field int32 revision = 1;
var
int
$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];
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];
var
int
$this
getParents
References to the original elements that are replaced.
Generated from protobuf field repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
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;
$this
getType
The type of provenance operation.
Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
int
setType
The type of provenance operation.
Generated from protobuf field .google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
var
int
$this