Interface Document.TextAnchor.TextSegmentOrBuilder (2.32.0)

public static interface Document.TextAnchor.TextSegmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract long getEndIndex()

TextSegment half open end UTF-8 char index in the Document.text.

int64 end_index = 2;

Returns
TypeDescription
long

The endIndex.

getStartIndex()

public abstract long getStartIndex()

TextSegment start UTF-8 char index in the Document.text.

int64 start_index = 1;

Returns
TypeDescription
long

The startIndex.