Class: Google::Apis::CloudsearchV1::ValueFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ValueFilter
- Defined in:
- generated/google/apis/cloudsearch_v1/classes.rb,
generated/google/apis/cloudsearch_v1/representations.rb,
generated/google/apis/cloudsearch_v1/representations.rb
Instance Attribute Summary collapse
-
#operator_name ⇒ String
The
operator_nameapplied to the query, such as price_greater_than. -
#value ⇒ Google::Apis::CloudsearchV1::Value
Definition of a single value with generic type.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ValueFilter
constructor
A new instance of ValueFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ ValueFilter
Returns a new instance of ValueFilter
4946 4947 4948 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4946 def initialize(**args) update!(**args) end |
Instance Attribute Details
#operator_name ⇒ String
The operator_name applied to the query, such as price_greater_than.
The filter can work against both types of filters defined in the schema
for your data source:
operator_name, where the query filters results by the property that matches the value.greater_than_operator_nameorless_than_operator_namein your schema. The query filters the results for the property values that are greater than or less than the supplied value in the query. Corresponds to the JSON propertyoperatorName
4939 4940 4941 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4939 def operator_name @operator_name end |
#value ⇒ Google::Apis::CloudsearchV1::Value
Definition of a single value with generic type.
Corresponds to the JSON property value
4944 4945 4946 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4944 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4951 4952 4953 4954 |
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 4951 def update!(**args) @operator_name = args[:operator_name] if args.key?(:operator_name) @value = args[:value] if args.key?(:value) end |