Class: Google::Apis::CloudsearchV1::ValueFilter

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ValueFilter

Returns a new instance of ValueFilter



5238
5239
5240
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5238

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

Instance Attribute Details

#operator_nameString

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

Returns:

  • (String)


5231
5232
5233
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5231

def operator_name
  @operator_name
end

#valueGoogle::Apis::CloudsearchV1::Value

Definition of a single value with generic type. Corresponds to the JSON property value



5236
5237
5238
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5236

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5243
5244
5245
5246
# File 'generated/google/apis/cloudsearch_v1/classes.rb', line 5243

def update!(**args)
  @operator_name = args[:operator_name] if args.key?(:operator_name)
  @value = args[:value] if args.key?(:value)
end