Class: Google::Apis::CloudsearchV1::NamedProperty
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::NamedProperty
- 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
-
#boolean_value ⇒ Boolean
(also: #boolean_value?)
Corresponds to the JSON property
booleanValue
. -
#date_values ⇒ Google::Apis::CloudsearchV1::DateValues
List of date values.
-
#double_values ⇒ Google::Apis::CloudsearchV1::DoubleValues
List of double values.
-
#enum_values ⇒ Google::Apis::CloudsearchV1::EnumValues
List of enum values.
-
#html_values ⇒ Google::Apis::CloudsearchV1::HtmlValues
List of html values.
-
#integer_values ⇒ Google::Apis::CloudsearchV1::IntegerValues
List of integer values.
-
#name ⇒ String
The name of the property.
-
#object_values ⇒ Google::Apis::CloudsearchV1::ObjectValues
List of object values.
-
#text_values ⇒ Google::Apis::CloudsearchV1::TextValues
List of text values.
-
#timestamp_values ⇒ Google::Apis::CloudsearchV1::TimestampValues
List of timestamp values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ NamedProperty
constructor
A new instance of NamedProperty.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ NamedProperty
Returns a new instance of NamedProperty.
4953 4954 4955 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4953 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boolean_value ⇒ Boolean Also known as: boolean_value?
Corresponds to the JSON property booleanValue
4903 4904 4905 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4903 def boolean_value @boolean_value end |
#date_values ⇒ Google::Apis::CloudsearchV1::DateValues
List of date values.
Corresponds to the JSON property dateValues
4909 4910 4911 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4909 def date_values @date_values end |
#double_values ⇒ Google::Apis::CloudsearchV1::DoubleValues
List of double values.
Corresponds to the JSON property doubleValues
4914 4915 4916 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4914 def double_values @double_values end |
#enum_values ⇒ Google::Apis::CloudsearchV1::EnumValues
List of enum values.
Corresponds to the JSON property enumValues
4919 4920 4921 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4919 def enum_values @enum_values end |
#html_values ⇒ Google::Apis::CloudsearchV1::HtmlValues
List of html values.
Corresponds to the JSON property htmlValues
4924 4925 4926 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4924 def html_values @html_values end |
#integer_values ⇒ Google::Apis::CloudsearchV1::IntegerValues
List of integer values.
Corresponds to the JSON property integerValues
4929 4930 4931 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4929 def integer_values @integer_values end |
#name ⇒ String
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
4936 4937 4938 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4936 def name @name end |
#object_values ⇒ Google::Apis::CloudsearchV1::ObjectValues
List of object values.
Corresponds to the JSON property objectValues
4941 4942 4943 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4941 def object_values @object_values end |
#text_values ⇒ Google::Apis::CloudsearchV1::TextValues
List of text values.
Corresponds to the JSON property textValues
4946 4947 4948 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4946 def text_values @text_values end |
#timestamp_values ⇒ Google::Apis::CloudsearchV1::TimestampValues
List of timestamp values.
Corresponds to the JSON property timestampValues
4951 4952 4953 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4951 def @timestamp_values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4958 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 |