class Google::Apis::DocsV1::Range
Specifies a contiguous range of text.
Attributes
The zero-based end index of this range, exclusive, in UTF-16 code units. In all current uses, an end index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. Corresponds to the JSON property `endIndex` @return [Fixnum]
The ID of the header, footer or footnote that this range is contained in. An empty segment ID signifies the document's body. Corresponds to the JSON property `segmentId` @return [String]
The zero-based start index of this range, in UTF-16 code units. In all current uses, a start index must be provided. This field is an Int32Value in order to accommodate future use cases with open-ended ranges. Corresponds to the JSON property `startIndex` @return [Fixnum]
Public Class Methods
# File lib/google/apis/docs_v1/classes.rb, line 3814 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/docs_v1/classes.rb, line 3819 def update!(**args) @end_index = args[:end_index] if args.key?(:end_index) @segment_id = args[:segment_id] if args.key?(:segment_id) @start_index = args[:start_index] if args.key?(:start_index) end