Interface SegmentOrBuilder (4.105.0)

public interface SegmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract int getEndIndex()

Output only. The end index of the segment, measured in bytes. This marks the end of the segment and is exclusive, meaning the segment includes content up to, but not including, the byte at this index.

int32 end_index = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The endIndex.

getStartIndex()

public abstract int getStartIndex()

Output only. The start index of the segment, measured in bytes. This marks the beginning of the segment and is inclusive, meaning the byte at this index is the first byte of the segment.

int32 start_index = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The startIndex.

getText()

public abstract String getText()

Output only. The text of the segment.

string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Output only. The text of the segment.

string text = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for text.