Class: Google::Apis::CloudsearchV1::Value

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

Overview

Definition of a single value with generic type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Value

Returns a new instance of Value.



5946
5947
5948
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5946

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

Instance Attribute Details

#boolean_valueBoolean Also known as: boolean_value?

Corresponds to the JSON property booleanValue

Returns:

  • (Boolean)


5914
5915
5916
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5914

def boolean_value
  @boolean_value
end

#date_valueGoogle::Apis::CloudsearchV1::Date

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. The date must be a valid calendar date between the year 1 and 9999. Corresponds to the JSON property dateValue



5924
5925
5926
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5924

def date_value
  @date_value
end

#double_valueFloat

Corresponds to the JSON property doubleValue

Returns:

  • (Float)


5929
5930
5931
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5929

def double_value
  @double_value
end

#integer_valueFixnum

Corresponds to the JSON property integerValue

Returns:

  • (Fixnum)


5934
5935
5936
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5934

def integer_value
  @integer_value
end

#string_valueString

Corresponds to the JSON property stringValue

Returns:

  • (String)


5939
5940
5941
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5939

def string_value
  @string_value
end

#timestamp_valueString

Corresponds to the JSON property timestampValue

Returns:

  • (String)


5944
5945
5946
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5944

def timestamp_value
  @timestamp_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5951
5952
5953
5954
5955
5956
5957
5958
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5951

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