Class: Google::Apis::DocsV1::TextStyleSuggestionState

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

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

Returns a new instance of TextStyleSuggestionState.



5638
5639
5640
# File 'generated/google/apis/docs_v1/classes.rb', line 5638

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

Instance Attribute Details

#background_color_suggestedBoolean Also known as: background_color_suggested?

Indicates if there was a suggested change to background_color. Corresponds to the JSON property backgroundColorSuggested

Returns:

  • (Boolean)


5575
5576
5577
# File 'generated/google/apis/docs_v1/classes.rb', line 5575

def background_color_suggested
  @background_color_suggested
end

#baseline_offset_suggestedBoolean Also known as: baseline_offset_suggested?

Indicates if there was a suggested change to baseline_offset. Corresponds to the JSON property baselineOffsetSuggested

Returns:

  • (Boolean)


5581
5582
5583
# File 'generated/google/apis/docs_v1/classes.rb', line 5581

def baseline_offset_suggested
  @baseline_offset_suggested
end

#bold_suggestedBoolean Also known as: bold_suggested?

Indicates if there was a suggested change to bold. Corresponds to the JSON property boldSuggested

Returns:

  • (Boolean)


5587
5588
5589
# File 'generated/google/apis/docs_v1/classes.rb', line 5587

def bold_suggested
  @bold_suggested
end

#font_size_suggestedBoolean Also known as: font_size_suggested?

Indicates if there was a suggested change to font_size. Corresponds to the JSON property fontSizeSuggested

Returns:

  • (Boolean)


5593
5594
5595
# File 'generated/google/apis/docs_v1/classes.rb', line 5593

def font_size_suggested
  @font_size_suggested
end

#foreground_color_suggestedBoolean Also known as: foreground_color_suggested?

Indicates if there was a suggested change to foreground_color. Corresponds to the JSON property foregroundColorSuggested

Returns:

  • (Boolean)


5599
5600
5601
# File 'generated/google/apis/docs_v1/classes.rb', line 5599

def foreground_color_suggested
  @foreground_color_suggested
end

#italic_suggestedBoolean Also known as: italic_suggested?

Indicates if there was a suggested change to italic. Corresponds to the JSON property italicSuggested

Returns:

  • (Boolean)


5605
5606
5607
# File 'generated/google/apis/docs_v1/classes.rb', line 5605

def italic_suggested
  @italic_suggested
end

Indicates if there was a suggested change to link. Corresponds to the JSON property linkSuggested

Returns:

  • (Boolean)


5611
5612
5613
# File 'generated/google/apis/docs_v1/classes.rb', line 5611

def link_suggested
  @link_suggested
end

#small_caps_suggestedBoolean Also known as: small_caps_suggested?

Indicates if there was a suggested change to small_caps. Corresponds to the JSON property smallCapsSuggested

Returns:

  • (Boolean)


5617
5618
5619
# File 'generated/google/apis/docs_v1/classes.rb', line 5617

def small_caps_suggested
  @small_caps_suggested
end

#strikethrough_suggestedBoolean Also known as: strikethrough_suggested?

Indicates if there was a suggested change to strikethrough. Corresponds to the JSON property strikethroughSuggested

Returns:

  • (Boolean)


5623
5624
5625
# File 'generated/google/apis/docs_v1/classes.rb', line 5623

def strikethrough_suggested
  @strikethrough_suggested
end

#underline_suggestedBoolean Also known as: underline_suggested?

Indicates if there was a suggested change to underline. Corresponds to the JSON property underlineSuggested

Returns:

  • (Boolean)


5629
5630
5631
# File 'generated/google/apis/docs_v1/classes.rb', line 5629

def underline_suggested
  @underline_suggested
end

#weighted_font_family_suggestedBoolean Also known as: weighted_font_family_suggested?

Indicates if there was a suggested change to weighted_font_family. Corresponds to the JSON property weightedFontFamilySuggested

Returns:

  • (Boolean)


5635
5636
5637
# File 'generated/google/apis/docs_v1/classes.rb', line 5635

def weighted_font_family_suggested
  @weighted_font_family_suggested
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
# File 'generated/google/apis/docs_v1/classes.rb', line 5643

def update!(**args)
  @background_color_suggested = args[:background_color_suggested] if args.key?(:background_color_suggested)
  @baseline_offset_suggested = args[:baseline_offset_suggested] if args.key?(:baseline_offset_suggested)
  @bold_suggested = args[:bold_suggested] if args.key?(:bold_suggested)
  @font_size_suggested = args[:font_size_suggested] if args.key?(:font_size_suggested)
  @foreground_color_suggested = args[:foreground_color_suggested] if args.key?(:foreground_color_suggested)
  @italic_suggested = args[:italic_suggested] if args.key?(:italic_suggested)
  @link_suggested = args[:link_suggested] if args.key?(:link_suggested)
  @small_caps_suggested = args[:small_caps_suggested] if args.key?(:small_caps_suggested)
  @strikethrough_suggested = args[:strikethrough_suggested] if args.key?(:strikethrough_suggested)
  @underline_suggested = args[:underline_suggested] if args.key?(:underline_suggested)
  @weighted_font_family_suggested = args[:weighted_font_family_suggested] if args.key?(:weighted_font_family_suggested)
end