Google Cloud Document Ai V1 Client - Class PBParent (1.9.0)

Reference documentation and code samples for the Google Cloud Document Ai V1 Client class PBParent.

The parent element the current element is based on. Used for referencing/aligning, removal and replacement operations.

Generated from protobuf message google.cloud.documentai.v1.Document.Provenance.Parent

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document \ Provenance

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ revision int

The index of the index into current revision's parent_ids list.

↳ index int

The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.

↳ id int

The id of the parent provenance.

getRevision

The index of the index into current revision's parent_ids list.

Returns
TypeDescription
int

setRevision

The index of the index into current revision's parent_ids list.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getIndex

The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.

Returns
TypeDescription
int

setIndex

The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getId

The id of the parent provenance.

Returns
TypeDescription
int

setId

The id of the parent provenance.

Parameter
NameDescription
var int
Returns
TypeDescription
$this