Interface Document.TextAnchorOrBuilder (2.3.1)

See more code actions.
public static interface Document.TextAnchorOrBuilder extends MessageOrBuilder
MessageOrBuilder
public abstract Document.TextAnchor.TextSegment getTextSegments(int index)

The text segments from the Document.text.

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

Parameter
NameDescription
indexint
Returns

getTextSegmentsCount()

public abstract int getTextSegmentsCount()

The text segments from the Document.text.

repeated .google.cloud.documentai.v1beta1.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.v1beta1.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.v1beta1.Document.TextAnchor.TextSegment text_segments = 1;

Parameter
NameDescription
indexint
Returns

getTextSegmentsOrBuilderList()

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

The text segments from the Document.text.

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

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta1.Document.TextAnchor.TextSegmentOrBuilder>