Class: Google::Apis::DocsV1::SuggestedTextStyle

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 TextStyle.

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) ⇒ SuggestedTextStyle

Returns a new instance of SuggestedTextStyle.



5135
5136
5137
# File 'generated/google/apis/docs_v1/classes.rb', line 5135

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

Instance Attribute Details

#text_styleGoogle::Apis::DocsV1::TextStyle

Represents the styling that can be applied to text. Inherited text styles are represented as unset fields in this message. A text style's parent depends on where the text style is defined:

  • The TextStyle of text in a Paragraph inherits from the paragraph's corresponding named style type.
  • The TextStyle on a named style inherits from the normal text named style.
  • The TextStyle of the normal text named style inherits from the default text style in the Docs editor.
  • The TextStyle on a Paragraph element that is contained in a table may inherit its text style from the table style. If the text 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 textStyle


5126
5127
5128
# File 'generated/google/apis/docs_v1/classes.rb', line 5126

def text_style
  @text_style
end

#text_style_suggestion_stateGoogle::Apis::DocsV1::TextStyleSuggestionState

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



5133
5134
5135
# File 'generated/google/apis/docs_v1/classes.rb', line 5133

def text_style_suggestion_state
  @text_style_suggestion_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5140
5141
5142
5143
# File 'generated/google/apis/docs_v1/classes.rb', line 5140

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