Segment

@Serializable
data class Segment(val startIndex: Int? = null, val endIndex: Int? = null, val partIndex: Int? = null, val text: String? = null)

Segment of the content this support belongs to.

Constructors

Link copied to clipboard
constructor(startIndex: Int? = null, endIndex: Int? = null, partIndex: Int? = null, text: String? = null)

Properties

Link copied to clipboard
val endIndex: Int? = null

Output only. End index in the given Part, measured in bytes.

Link copied to clipboard
val partIndex: Int? = null

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

Link copied to clipboard
val startIndex: Int? = null

Output only. Start index in the given Part, measured in bytes.

Link copied to clipboard
val text: String? = null

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