class Google::Apis::CloudsearchV1::Value

Definition of a single value with generic type.

Attributes

boolean_value[RW]

Corresponds to the JSON property `booleanValue` @return [Boolean]

boolean_value?[RW]

Corresponds to the JSON property `booleanValue` @return [Boolean]

date_value[RW]

Represents a whole calendar date, for example a date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the [Proleptic Gregorian Calendar](en.wikipedia.org/ wiki/Proleptic_Gregorian_calendar). The date must be a valid calendar date between the year 1 and 9999. Corresponds to the JSON property `dateValue` @return [Google::Apis::CloudsearchV1::Date]

double_value[RW]

Corresponds to the JSON property `doubleValue` @return [Float]

integer_value[RW]

Corresponds to the JSON property `integerValue` @return [Fixnum]

string_value[RW]

Corresponds to the JSON property `stringValue` @return [String]

timestamp_value[RW]

Corresponds to the JSON property `timestampValue` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 5169
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 5174
def update!(**args)
  @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
  @date_value = args[:date_value] if args.key?(:date_value)
  @double_value = args[:double_value] if args.key?(:double_value)
  @integer_value = args[:integer_value] if args.key?(:integer_value)
  @string_value = args[:string_value] if args.key?(:string_value)
  @timestamp_value = args[:timestamp_value] if args.key?(:timestamp_value)
end