Class TextSegment

A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset

Attributes
NameDescription
intstart_index
TextSegment start UTF-8 char index in the Document.text.
intend_index
TextSegment half open end UTF-8 char index in the Document.text.

Inheritance

builtins.object > proto.message.Message > TextSegment