Class: Google::Apis::CloudsearchV1::NamedProperty

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

A typed name-value pair for structured data. The type of the value should be the same as the registered type for the name property in the object definition of objectType.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ NamedProperty

Returns a new instance of NamedProperty.



14034
14035
14036
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14034

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

Instance Attribute Details

#boolean_valueBoolean Also known as: boolean_value?

Corresponds to the JSON property booleanValue

Returns:

  • (Boolean)


13984
13985
13986
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13984

def boolean_value
  @boolean_value
end

#date_valuesGoogle::Apis::CloudsearchV1::DateValues

List of date values. Corresponds to the JSON property dateValues



13990
13991
13992
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13990

def date_values
  @date_values
end

#double_valuesGoogle::Apis::CloudsearchV1::DoubleValues

List of double values. Corresponds to the JSON property doubleValues



13995
13996
13997
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 13995

def double_values
  @double_values
end

#enum_valuesGoogle::Apis::CloudsearchV1::EnumValues

List of enum values. Corresponds to the JSON property enumValues



14000
14001
14002
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14000

def enum_values
  @enum_values
end

#html_valuesGoogle::Apis::CloudsearchV1::HtmlValues

List of html values. Corresponds to the JSON property htmlValues



14005
14006
14007
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14005

def html_values
  @html_values
end

#integer_valuesGoogle::Apis::CloudsearchV1::IntegerValues

List of integer values. Corresponds to the JSON property integerValues



14010
14011
14012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14010

def integer_values
  @integer_values
end

#nameString

The name of the property. This name should correspond to the name of the property that was registered for object definition in the schema. The maximum allowable length for this property is 256 characters. Corresponds to the JSON property name

Returns:

  • (String)


14017
14018
14019
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14017

def name
  @name
end

#object_valuesGoogle::Apis::CloudsearchV1::ObjectValues

List of object values. Corresponds to the JSON property objectValues



14022
14023
14024
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14022

def object_values
  @object_values
end

#text_valuesGoogle::Apis::CloudsearchV1::TextValues

List of text values. Corresponds to the JSON property textValues



14027
14028
14029
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14027

def text_values
  @text_values
end

#timestamp_valuesGoogle::Apis::CloudsearchV1::TimestampValues

List of timestamp values. Corresponds to the JSON property timestampValues



14032
14033
14034
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14032

def timestamp_values
  @timestamp_values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 14039

def update!(**args)
  @boolean_value = args[:boolean_value] if args.key?(:boolean_value)
  @date_values = args[:date_values] if args.key?(:date_values)
  @double_values = args[:double_values] if args.key?(:double_values)
  @enum_values = args[:enum_values] if args.key?(:enum_values)
  @html_values = args[:html_values] if args.key?(:html_values)
  @integer_values = args[:integer_values] if args.key?(:integer_values)
  @name = args[:name] if args.key?(:name)
  @object_values = args[:object_values] if args.key?(:object_values)
  @text_values = args[:text_values] if args.key?(:text_values)
  @timestamp_values = args[:timestamp_values] if args.key?(:timestamp_values)
end