Class: Google::Apis::DocsV1::ImagePropertiesSuggestionState

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 ImageProperties 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) ⇒ ImagePropertiesSuggestionState

Returns a new instance of ImagePropertiesSuggestionState.



1971
1972
1973
# File 'generated/google/apis/docs_v1/classes.rb', line 1971

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)


1930
1931
1932
# File 'generated/google/apis/docs_v1/classes.rb', line 1930

def angle_suggested
  @angle_suggested
end

#brightness_suggestedBoolean Also known as: brightness_suggested?

Indicates if there was a suggested change to brightness. Corresponds to the JSON property brightnessSuggested

Returns:

  • (Boolean)


1936
1937
1938
# File 'generated/google/apis/docs_v1/classes.rb', line 1936

def brightness_suggested
  @brightness_suggested
end

#content_uri_suggestedBoolean Also known as: content_uri_suggested?

Indicates if there was a suggested change to content_uri. Corresponds to the JSON property contentUriSuggested

Returns:

  • (Boolean)


1943
1944
1945
# File 'generated/google/apis/docs_v1/classes.rb', line 1943

def content_uri_suggested
  @content_uri_suggested
end

#contrast_suggestedBoolean Also known as: contrast_suggested?

Indicates if there was a suggested change to contrast. Corresponds to the JSON property contrastSuggested

Returns:

  • (Boolean)


1949
1950
1951
# File 'generated/google/apis/docs_v1/classes.rb', line 1949

def contrast_suggested
  @contrast_suggested
end

#crop_properties_suggestion_stateGoogle::Apis::DocsV1::CropPropertiesSuggestionState

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. Corresponds to the JSON property cropPropertiesSuggestionState



1957
1958
1959
# File 'generated/google/apis/docs_v1/classes.rb', line 1957

def crop_properties_suggestion_state
  @crop_properties_suggestion_state
end

#source_uri_suggestedBoolean Also known as: source_uri_suggested?

Indicates if there was a suggested change to source_uri. Corresponds to the JSON property sourceUriSuggested

Returns:

  • (Boolean)


1962
1963
1964
# File 'generated/google/apis/docs_v1/classes.rb', line 1962

def source_uri_suggested
  @source_uri_suggested
end

#transparency_suggestedBoolean Also known as: transparency_suggested?

Indicates if there was a suggested change to transparency. Corresponds to the JSON property transparencySuggested

Returns:

  • (Boolean)


1968
1969
1970
# File 'generated/google/apis/docs_v1/classes.rb', line 1968

def transparency_suggested
  @transparency_suggested
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1976
1977
1978
1979
1980
1981
1982
1983
1984
# File 'generated/google/apis/docs_v1/classes.rb', line 1976

def update!(**args)
  @angle_suggested = args[:angle_suggested] if args.key?(:angle_suggested)
  @brightness_suggested = args[:brightness_suggested] if args.key?(:brightness_suggested)
  @content_uri_suggested = args[:content_uri_suggested] if args.key?(:content_uri_suggested)
  @contrast_suggested = args[:contrast_suggested] if args.key?(:contrast_suggested)
  @crop_properties_suggestion_state = args[:crop_properties_suggestion_state] if args.key?(:crop_properties_suggestion_state)
  @source_uri_suggested = args[:source_uri_suggested] if args.key?(:source_uri_suggested)
  @transparency_suggested = args[:transparency_suggested] if args.key?(:transparency_suggested)
end