Interface TextSegmentOrBuilder (2.40.0)

public interface TextSegmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getContent()

public abstract String getContent()

Output only. The content of the TextSegment.

string content = 3;

Returns
TypeDescription
String

The content.

getContentBytes()

public abstract ByteString getContentBytes()

Output only. The content of the TextSegment.

string content = 3;

Returns
TypeDescription
ByteString

The bytes for content.

getEndOffset()

public abstract long getEndOffset()

Required. Zero-based character index of the first character past the end of the text segment (counting character from the beginning of the text). The character at the end_offset is NOT included in the text segment.

int64 end_offset = 2;

Returns
TypeDescription
long

The endOffset.

getStartOffset()

public abstract long getStartOffset()

Required. Zero-based character index of the first character of the text segment (counting characters from the beginning of the text).

int64 start_offset = 1;

Returns
TypeDescription
long

The startOffset.