Class: Google::Apis::CloudsearchV1::CaribouAttributeValue

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CaribouAttributeValue

Returns a new instance of CaribouAttributeValue.



5876
5877
5878
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5876

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

Instance Attribute Details

#boolean_valueBoolean Also known as: boolean_value?

Tags 1 through 15 are reserved for the most commonly used fields. Corresponds to the JSON property booleanValue

Returns:

  • (Boolean)


5847
5848
5849
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5847

def boolean_value
  @boolean_value
end

#int_valueFixnum

Corresponds to the JSON property intValue

Returns:

  • (Fixnum)


5853
5854
5855
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5853

def int_value
  @int_value
end

#long_valueFixnum

Corresponds to the JSON property longValue

Returns:

  • (Fixnum)


5858
5859
5860
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5858

def long_value
  @long_value
end

#raw_byte_valueString

Generally, applications should avoid storing raw bytes and instead store structured data as protocol buffer extensions. This both reduces the amount of ad-hoc attribute parsing code as well as eliminates an intermediate copy of the data when deserializing the value. The rawByteValue field is mainly provided for compatibility with attributes stored before the introduction of the Attribute.Value. Corresponds to the JSON property rawByteValue NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


5869
5870
5871
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5869

def raw_byte_value
  @raw_byte_value
end

#string_valueString

Corresponds to the JSON property stringValue

Returns:

  • (String)


5874
5875
5876
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5874

def string_value
  @string_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5881
5882
5883
5884
5885
5886
5887
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 5881

def update!(**args)
  @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
  @int_value = args[:int_value] if args.key?(:int_value)
  @long_value = args[:long_value] if args.key?(:long_value)
  @raw_byte_value = args[:raw_byte_value] if args.key?(:raw_byte_value)
  @string_value = args[:string_value] if args.key?(:string_value)
end