Class: Google::Apis::CloudsearchV1::ValueFilter
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::ValueFilter
- 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
-
#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.
Constructor Details
#initialize(**args) ⇒ ValueFilter
Returns a new instance of ValueFilter.
18687 18688 18689 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18687 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: 1. operator_name, where the query filters results by the
property that matches the value. 2. greater_than_operator_name or
less_than_operator_name in 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 property operatorName
18680 18681 18682 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18680 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
18685 18686 18687 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18685 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18692 18693 18694 18695 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18692 def update!(**args) @operator_name = args[:operator_name] if args.key?(:operator_name) @value = args[:value] if args.key?(:value) end |