Class: Google::Apis::DocsV1::DateElementPropertiesSuggestionState

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/docs_v1/classes.rb,
lib/google/apis/docs_v1/representations.rb,
lib/google/apis/docs_v1/representations.rb

Overview

A mask that indicates which of the fields on the base DateElementProperties have been changed in this suggestion. For any field set to true, there's a new suggested value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DateElementPropertiesSuggestionState



904
905
906
# File 'lib/google/apis/docs_v1/classes.rb', line 904

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

Instance Attribute Details

#date_format_suggestedBoolean Also known as: date_format_suggested?

Indicates if there was a suggested change to date_format. Corresponds to the JSON property dateFormatSuggested



877
878
879
# File 'lib/google/apis/docs_v1/classes.rb', line 877

def date_format_suggested
  @date_format_suggested
end

#locale_suggestedBoolean Also known as: locale_suggested?

Indicates if there was a suggested change to locale. Corresponds to the JSON property localeSuggested



883
884
885
# File 'lib/google/apis/docs_v1/classes.rb', line 883

def locale_suggested
  @locale_suggested
end

#time_format_suggestedBoolean Also known as: time_format_suggested?

Indicates if there was a suggested change to time_format. Corresponds to the JSON property timeFormatSuggested



889
890
891
# File 'lib/google/apis/docs_v1/classes.rb', line 889

def time_format_suggested
  @time_format_suggested
end

#time_zone_id_suggestedBoolean Also known as: time_zone_id_suggested?

Indicates if there was a suggested change to time_zone_id. Corresponds to the JSON property timeZoneIdSuggested



895
896
897
# File 'lib/google/apis/docs_v1/classes.rb', line 895

def time_zone_id_suggested
  @time_zone_id_suggested
end

#timestamp_suggestedBoolean Also known as: timestamp_suggested?

Indicates if there was a suggested change to timestamp. Corresponds to the JSON property timestampSuggested



901
902
903
# File 'lib/google/apis/docs_v1/classes.rb', line 901

def timestamp_suggested
  @timestamp_suggested
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



909
910
911
912
913
914
915
# File 'lib/google/apis/docs_v1/classes.rb', line 909

def update!(**args)
  @date_format_suggested = args[:date_format_suggested] if args.key?(:date_format_suggested)
  @locale_suggested = args[:locale_suggested] if args.key?(:locale_suggested)
  @time_format_suggested = args[:time_format_suggested] if args.key?(:time_format_suggested)
  @time_zone_id_suggested = args[:time_zone_id_suggested] if args.key?(:time_zone_id_suggested)
  @timestamp_suggested = args[:timestamp_suggested] if args.key?(:timestamp_suggested)
end