Class: Google::Apis::DocsV1::SizeSuggestionState

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 Size have been changed in this suggestion. For any field set to true, the Size has 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) ⇒ SizeSuggestionState

Returns a new instance of SizeSuggestionState.



4742
4743
4744
# File 'generated/google/apis/docs_v1/classes.rb', line 4742

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

Instance Attribute Details

#height_suggestedBoolean Also known as: height_suggested?

Indicates if there was a suggested change to height. Corresponds to the JSON property heightSuggested

Returns:

  • (Boolean)


4733
4734
4735
# File 'generated/google/apis/docs_v1/classes.rb', line 4733

def height_suggested
  @height_suggested
end

#width_suggestedBoolean Also known as: width_suggested?

Indicates if there was a suggested change to width. Corresponds to the JSON property widthSuggested

Returns:

  • (Boolean)


4739
4740
4741
# File 'generated/google/apis/docs_v1/classes.rb', line 4739

def width_suggested
  @width_suggested
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4747
4748
4749
4750
# File 'generated/google/apis/docs_v1/classes.rb', line 4747

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