Interface Document.TextAnchorOrBuilder (2.50.0)

public static interface Document.TextAnchorOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String 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.

string content = 2;

Returns
Type Description
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

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.

string content = 2;

Returns
Type Description
ByteString

The bytes for content.

getTextSegments(int index)

public abstract Document.TextAnchor.TextSegment getTextSegments(int index)

The text segments from the Document.text.

repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;

Parameter
Name Description
index int
Returns
Type Description
Document.TextAnchor.TextSegment

getTextSegmentsCount()

public abstract int getTextSegmentsCount()

The text segments from the Document.text.

repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;

Returns
Type Description
int

getTextSegmentsList()

public abstract List<Document.TextAnchor.TextSegment> getTextSegmentsList()

The text segments from the Document.text.

repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;

Returns
Type Description
List<TextSegment>

getTextSegmentsOrBuilder(int index)

public abstract Document.TextAnchor.TextSegmentOrBuilder getTextSegmentsOrBuilder(int index)

The text segments from the Document.text.

repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;

Parameter
Name Description
index int
Returns
Type Description
Document.TextAnchor.TextSegmentOrBuilder

getTextSegmentsOrBuilderList()

public abstract List<? extends Document.TextAnchor.TextSegmentOrBuilder> getTextSegmentsOrBuilderList()

The text segments from the Document.text.

repeated .google.cloud.documentai.v1.Document.TextAnchor.TextSegment text_segments = 1;

Returns
Type Description
List<? extends com.google.cloud.documentai.v1.Document.TextAnchor.TextSegmentOrBuilder>