Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::Provenance::Parent (v1.1.1)

Reference documentation and code samples for the Document AI V1 API class Google::Cloud::DocumentAI::V1::Document::Provenance::Parent.

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#id

def id() -> ::Integer
Returns
  • (::Integer) — The id of the parent provenance.

#id=

def id=(value) -> ::Integer
Parameter
  • value (::Integer) — The id of the parent provenance.
Returns
  • (::Integer) — The id of the parent provenance.

#index

def index() -> ::Integer
Returns
  • (::Integer) — The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.

#index=

def index=(value) -> ::Integer
Parameter
  • value (::Integer) — The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.
Returns
  • (::Integer) — The index of the parent item in the corresponding item list (eg. list of entities, properties within entities, etc.) in the parent revision.

#revision

def revision() -> ::Integer
Returns
  • (::Integer) — The index of the index into current revision's parent_ids list.

#revision=

def revision=(value) -> ::Integer
Parameter
  • value (::Integer) — The index of the index into current revision's parent_ids list.
Returns
  • (::Integer) — The index of the index into current revision's parent_ids list.