Class: Google::Apis::DocsV1::CropPropertiesSuggestionState

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 CropProperties 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) ⇒ CropPropertiesSuggestionState

Returns a new instance of CropPropertiesSuggestionState.



688
689
690
# File 'generated/google/apis/docs_v1/classes.rb', line 688

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

Instance Attribute Details

#angle_suggestedBoolean Also known as: angle_suggested?

Indicates if there was a suggested change to angle. Corresponds to the JSON property angleSuggested

Returns:

  • (Boolean)


661
662
663
# File 'generated/google/apis/docs_v1/classes.rb', line 661

def angle_suggested
  @angle_suggested
end

#offset_bottom_suggestedBoolean Also known as: offset_bottom_suggested?

Indicates if there was a suggested change to offset_bottom. Corresponds to the JSON property offsetBottomSuggested

Returns:

  • (Boolean)


667
668
669
# File 'generated/google/apis/docs_v1/classes.rb', line 667

def offset_bottom_suggested
  @offset_bottom_suggested
end

#offset_left_suggestedBoolean Also known as: offset_left_suggested?

Indicates if there was a suggested change to offset_left. Corresponds to the JSON property offsetLeftSuggested

Returns:

  • (Boolean)


673
674
675
# File 'generated/google/apis/docs_v1/classes.rb', line 673

def offset_left_suggested
  @offset_left_suggested
end

#offset_right_suggestedBoolean Also known as: offset_right_suggested?

Indicates if there was a suggested change to offset_right. Corresponds to the JSON property offsetRightSuggested

Returns:

  • (Boolean)


679
680
681
# File 'generated/google/apis/docs_v1/classes.rb', line 679

def offset_right_suggested
  @offset_right_suggested
end

#offset_top_suggestedBoolean Also known as: offset_top_suggested?

Indicates if there was a suggested change to offset_top. Corresponds to the JSON property offsetTopSuggested

Returns:

  • (Boolean)


685
686
687
# File 'generated/google/apis/docs_v1/classes.rb', line 685

def offset_top_suggested
  @offset_top_suggested
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
696
697
698
699
# File 'generated/google/apis/docs_v1/classes.rb', line 693

def update!(**args)
  @angle_suggested = args[:angle_suggested] if args.key?(:angle_suggested)
  @offset_bottom_suggested = args[:offset_bottom_suggested] if args.key?(:offset_bottom_suggested)
  @offset_left_suggested = args[:offset_left_suggested] if args.key?(:offset_left_suggested)
  @offset_right_suggested = args[:offset_right_suggested] if args.key?(:offset_right_suggested)
  @offset_top_suggested = args[:offset_top_suggested] if args.key?(:offset_top_suggested)
end