Document AI V1 API - Class Google::Cloud::DocumentAI::V1::Document::TextAnchor (v0.14.0)

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

Text reference indexing into the Document.text.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#content

def content() -> ::String
Returns
  • (::String) — Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.

#content=

def content=(value) -> ::String
Parameter
  • value (::String) — Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.
Returns
  • (::String) — Contains the content of the text span so that users do not have to look it up in the text_segments. It is always populated for formFields.

#text_segments

def text_segments() -> ::Array<::Google::Cloud::DocumentAI::V1::Document::TextAnchor::TextSegment>
Returns

#text_segments=

def text_segments=(value) -> ::Array<::Google::Cloud::DocumentAI::V1::Document::TextAnchor::TextSegment>
Parameter
Returns