generative-ai-python

google.generativeai.protos.Segment

Segment of the content.

`part_index` `int` Output only. The index of a Part object within its parent Content object.
`start_index` `int` Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero.
`end_index` `int` Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero.
`text` `str` Output only. The text corresponding to the segment from the response.