Class Segment (1.59.0)

Segment(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Segment of the content.

Attributes

Name Description
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.

Methods

Segment

Segment(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Segment of the content.