Google Cloud Document Ai V1 Client - Class Provenance (1.8.2)

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

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Returns
TypeDescription
int

setRevision

The index of the revision that produced this element.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getId

The Id of this operation. Needs to be unique within the scope of the revision.

Returns
TypeDescription
int

setId

The Id of this operation. Needs to be unique within the scope of the revision.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getParents

References to the original elements that are replaced.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setParents

References to the original elements that are replaced.

Parameter
NameDescription
var array<Google\Cloud\DocumentAI\V1\Document\Provenance\PBParent>
Returns
TypeDescription
$this

getType

The type of provenance operation.

Returns
TypeDescription
int

setType

The type of provenance operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this