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
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#end_index
def end_index() -> ::Integer
Returns
- (::Integer) — TextSegment half open end UTF-8 char index in the Document.text.
#end_index=
def end_index=(value) -> ::Integer
Parameter
- value (::Integer) — TextSegment half open end UTF-8 char index in the Document.text.
Returns
- (::Integer) — TextSegment half open end UTF-8 char index in the Document.text.
#start_index
def start_index() -> ::Integer
Returns
- (::Integer) — TextSegment start UTF-8 char index in the Document.text.
#start_index=
def start_index=(value) -> ::Integer
Parameter
- value (::Integer) — TextSegment start UTF-8 char index in the Document.text.
Returns
- (::Integer) — TextSegment start UTF-8 char index in the Document.text.