Interface SegmentOrBuilder (3.47.0)

public interface SegmentOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEndIndex()

public abstract int getEndIndex()

Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.

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

Returns
Type Description
int

The endIndex.

getPartIndex()

public abstract int getPartIndex()

Output only. The index of a Part object within its parent Content object.

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

Returns
Type Description
int

The partIndex.

getStartIndex()

public abstract int getStartIndex()

Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.

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

Returns
Type Description
int

The startIndex.

getText()

public abstract String getText()

Output only. The text corresponding to the segment from the response.

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

Returns
Type Description
String

The text.

getTextBytes()

public abstract ByteString getTextBytes()

Output only. The text corresponding to the segment from the response.

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

Returns
Type Description
ByteString

The bytes for text.