Interface Document.TextAnchorOrBuilder (2.43.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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.documentai.v1.Document.TextAnchor.TextSegmentOrBuilder>