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

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

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.

Generated from protobuf field int32 revision = 1;

Returns
TypeDescription
int

setRevision

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

Generated from protobuf field int32 revision = 1;

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.

Generated from protobuf field int32 index = 3;

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.

Generated from protobuf field int32 index = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getId

The id of the parent provenance.

Generated from protobuf field int32 id = 2 [deprecated = true];

Returns
TypeDescription
int

setId

The id of the parent provenance.

Generated from protobuf field int32 id = 2 [deprecated = true];

Parameter
NameDescription
var int
Returns
TypeDescription
$this