Google Cloud Document Ai V1 Client - Class Provenance (2.1.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
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<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
Type Description
int

setRevision

The index of the revision that produced this element.

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.

Returns
Type Description
int

setId

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

Parameter
Name Description
var int
Returns
Type Description
$this

getParents

References to the original elements that are replaced.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setParents

References to the original elements that are replaced.

Parameter
Name Description
var array<Provenance\PBParent>
Returns
Type Description
$this

getType

The type of provenance operation.

Returns
Type Description
int

setType

The type of provenance operation.

Parameter
Name Description
var int
Returns
Type Description
$this