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

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
Name Description
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
Type Description
int

setRevision

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

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this

getId

The id of the parent provenance.

Returns
Type Description
int

setId

The id of the parent provenance.

Parameter
Name Description
var int
Returns
Type Description
$this