Class: Google::Apis::DocsV1::InsertTextRequest
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::InsertTextRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb
Overview
Inserts text at the specified location.
Instance Attribute Summary collapse
-
#end_of_segment_location ⇒ Google::Apis::DocsV1::EndOfSegmentLocation
Location at the end of a body, header, footer or footnote.
-
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
-
#text ⇒ String
The text to be inserted.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InsertTextRequest
constructor
A new instance of InsertTextRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ InsertTextRequest
Returns a new instance of InsertTextRequest.
2407 2408 2409 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2407 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_of_segment_location ⇒ Google::Apis::DocsV1::EndOfSegmentLocation
Location at the end of a body, header, footer or footnote. The location is
immediately before the last newline in the document segment.
Corresponds to the JSON property endOfSegmentLocation
2384 2385 2386 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2384 def end_of_segment_location @end_of_segment_location end |
#location ⇒ Google::Apis::DocsV1::Location
A particular location in the document.
Corresponds to the JSON property location
2389 2390 2391 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2389 def location @location end |
#text ⇒ String
The text to be inserted.
Inserting a newline character will implicitly create a new
Paragraph at that index.
The paragraph style of the new paragraph will be copied from the paragraph
at the current insertion index, including lists and bullets.
Text styles for inserted text will be determined automatically, generally
preserving the styling of neighboring text. In most cases, the text style
for the inserted text will match the text immediately before the insertion
index.
Some control characters (U+0000-U+0008, U+000C-U+001F) and characters
from the Unicode Basic Multilingual Plane Private Use Area (U+E000-U+F8FF)
will be stripped out of the inserted text.
Corresponds to the JSON property text
2405 2406 2407 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2405 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2412 2413 2414 2415 2416 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2412 def update!(**args) @end_of_segment_location = args[:end_of_segment_location] if args.key?(:end_of_segment_location) @location = args[:location] if args.key?(:location) @text = args[:text] if args.key?(:text) end |