Class: Google::Apis::DocsV1::ParagraphElement

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb

Overview

A ParagraphElement describes content within a Paragraph.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParagraphElement

Returns a new instance of ParagraphElement.



3188
3189
3190
# File 'lib/google/apis/docs_v1/classes.rb', line 3188

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#auto_textGoogle::Apis::DocsV1::AutoText

A ParagraphElement representing a spot in the text that is dynamically replaced with content that can change over time, like a page number. Corresponds to the JSON property autoText



3125
3126
3127
# File 'lib/google/apis/docs_v1/classes.rb', line 3125

def auto_text
  @auto_text
end

#column_breakGoogle::Apis::DocsV1::ColumnBreak

A ParagraphElement representing a column break. A column break makes the subsequent text start at the top of the next column. Corresponds to the JSON property columnBreak



3131
3132
3133
# File 'lib/google/apis/docs_v1/classes.rb', line 3131

def column_break
  @column_break
end

#end_indexFixnum

The zero-base end index of this paragraph element, exclusive, in UTF-16 code units. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


3137
3138
3139
# File 'lib/google/apis/docs_v1/classes.rb', line 3137

def end_index
  @end_index
end

#equationGoogle::Apis::DocsV1::Equation

A ParagraphElement representing an equation. Corresponds to the JSON property equation



3142
3143
3144
# File 'lib/google/apis/docs_v1/classes.rb', line 3142

def equation
  @equation
end

#footnote_referenceGoogle::Apis::DocsV1::FootnoteReference

A ParagraphElement representing a footnote reference. A footnote reference is the inline content rendered with a number and is used to identify the footnote. Corresponds to the JSON property footnoteReference



3148
3149
3150
# File 'lib/google/apis/docs_v1/classes.rb', line 3148

def footnote_reference
  @footnote_reference
end

#horizontal_ruleGoogle::Apis::DocsV1::HorizontalRule

A ParagraphElement representing a horizontal line. Corresponds to the JSON property horizontalRule



3153
3154
3155
# File 'lib/google/apis/docs_v1/classes.rb', line 3153

def horizontal_rule
  @horizontal_rule
end

#inline_object_elementGoogle::Apis::DocsV1::InlineObjectElement

A ParagraphElement that contains an InlineObject. Corresponds to the JSON property inlineObjectElement



3158
3159
3160
# File 'lib/google/apis/docs_v1/classes.rb', line 3158

def inline_object_element
  @inline_object_element
end

#page_breakGoogle::Apis::DocsV1::PageBreak

A ParagraphElement representing a page break. A page break makes the subsequent text start at the top of the next page. Corresponds to the JSON property pageBreak



3164
3165
3166
# File 'lib/google/apis/docs_v1/classes.rb', line 3164

def page_break
  @page_break
end

#personGoogle::Apis::DocsV1::Person

A person or email address mentioned in a document. These mentions behave as a single, immutable element containing the person's name or email address. Corresponds to the JSON property person



3170
3171
3172
# File 'lib/google/apis/docs_v1/classes.rb', line 3170

def person
  @person
end

A link to a Google resource (e.g., a file in Drive, a YouTube video, a Calendar event, etc.). Corresponds to the JSON property richLink



3176
3177
3178
# File 'lib/google/apis/docs_v1/classes.rb', line 3176

def rich_link
  @rich_link
end

#start_indexFixnum

The zero-based start index of this paragraph element, in UTF-16 code units. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


3181
3182
3183
# File 'lib/google/apis/docs_v1/classes.rb', line 3181

def start_index
  @start_index
end

#text_runGoogle::Apis::DocsV1::TextRun

A ParagraphElement that represents a run of text that all has the same styling. Corresponds to the JSON property textRun



3186
3187
3188
# File 'lib/google/apis/docs_v1/classes.rb', line 3186

def text_run
  @text_run
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
# File 'lib/google/apis/docs_v1/classes.rb', line 3193

def update!(**args)
  @auto_text = args[:auto_text] if args.key?(:auto_text)
  @column_break = args[:column_break] if args.key?(:column_break)
  @end_index = args[:end_index] if args.key?(:end_index)
  @equation = args[:equation] if args.key?(:equation)
  @footnote_reference = args[:footnote_reference] if args.key?(:footnote_reference)
  @horizontal_rule = args[:horizontal_rule] if args.key?(:horizontal_rule)
  @inline_object_element = args[:inline_object_element] if args.key?(:inline_object_element)
  @page_break = args[:page_break] if args.key?(:page_break)
  @person = args[:person] if args.key?(:person)
  @rich_link = args[:rich_link] if args.key?(:rich_link)
  @start_index = args[:start_index] if args.key?(:start_index)
  @text_run = args[:text_run] if args.key?(:text_run)
end