Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleFilterAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

  • Rule Condition: - No Condition.query_terms provided is a global match. - 1 or more Condition.query_terms provided are combined with OR operator. * Action Input: The request query and filter that are applied to the retrieved products, in addition to any filters already provided with the SearchRequest. The AND operator is used to combine the query's existing filters with the filter rule( s). NOTE: May result in 0 results when filters conflict. * Action Result: Filters the returned objects to be ONLY those that passed the filter.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaRuleFilterAction

Returns a new instance of GoogleCloudRetailV2betaRuleFilterAction.



7123
7124
7125
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7123

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

Instance Attribute Details

#filterString

A filter to apply on the matching condition results. Supported features: * filter must be set. * Filter syntax is identical to SearchRequest.filter. For more information, see Filter. * To filter products with product ID "product_1" or "product_2", and color "Red" or "Blue": *(id: ANY("product_1", "product_2")) * *AND * *(colorFamilies: ANY(" Red", "Blue")) * Corresponds to the JSON property filter

Returns:

  • (String)


7121
7122
7123
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7121

def filter
  @filter
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7128
7129
7130
# File 'lib/google/apis/retail_v2beta/classes.rb', line 7128

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