Class: Google::Apis::DocsV1::SuggestedParagraphStyle

Inherits:
Object
  • Object
show all
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

A suggested change to a ParagraphStyle.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SuggestedParagraphStyle

Returns a new instance of SuggestedParagraphStyle.



5010
5011
5012
# File 'generated/google/apis/docs_v1/classes.rb', line 5010

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

Instance Attribute Details

#paragraph_styleGoogle::Apis::DocsV1::ParagraphStyle

Styles that apply to a whole paragraph. Inherited paragraph styles are represented as unset fields in this message. A paragraph style's parent depends on where the paragraph style is defined:

  • The ParagraphStyle on a Paragraph inherits from the paragraph's corresponding named style type.
  • The ParagraphStyle on a named style inherits from the normal text named style.
  • The ParagraphStyle of the normal text named style inherits from the default paragraph style in the Docs editor.
  • The ParagraphStyle on a Paragraph element that is contained in a table may inherit its paragraph style from the table style. If the paragraph style does not inherit from a parent, unsetting fields will revert the style to a value matching the defaults in the Docs editor. Corresponds to the JSON property paragraphStyle


5001
5002
5003
# File 'generated/google/apis/docs_v1/classes.rb', line 5001

def paragraph_style
  @paragraph_style
end

#paragraph_style_suggestion_stateGoogle::Apis::DocsV1::ParagraphStyleSuggestionState

A mask that indicates which of the fields on the base ParagraphStyle have been changed in this suggestion. For any field set to true, there is a new suggested value. Corresponds to the JSON property paragraphStyleSuggestionState



5008
5009
5010
# File 'generated/google/apis/docs_v1/classes.rb', line 5008

def paragraph_style_suggestion_state
  @paragraph_style_suggestion_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5015
5016
5017
5018
# File 'generated/google/apis/docs_v1/classes.rb', line 5015

def update!(**args)
  @paragraph_style = args[:paragraph_style] if args.key?(:paragraph_style)
  @paragraph_style_suggestion_state = args[:paragraph_style_suggestion_state] if args.key?(:paragraph_style_suggestion_state)
end