Google Cloud Document Ai V1 Client - Class TextAnchor (1.5.0)

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

Text reference indexing into the Document.text .

Generated from protobuf message google.cloud.documentai.v1.Document.TextAnchor

Namespace

Google \ Cloud \ DocumentAI \ V1 \ Document

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ text_segments
↳ content
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.

getTextSegments

The text segments from the Document.text .

Returns
Type
Description

setTextSegments

The text segments from the Document.text .

Parameter
Name
Description
Returns
Type
Description
$this

getContent

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
Type
Description
string

setContent

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.

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: