Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleDoNotAssociateAction
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaRuleDoNotAssociateAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
Prevents query_term
from being associated with specified terms during search.
Example: Don't associate "gShoe" and "cheap".
Instance Attribute Summary collapse
-
#do_not_associate_terms ⇒ Array<String>
Cannot contain duplicates or the query term.
-
#query_terms ⇒ Array<String>
Terms from the search query.
-
#terms ⇒ Array<String>
Will be [deprecated = true] post migration; Corresponds to the JSON property
terms
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRuleDoNotAssociateAction
constructor
A new instance of GoogleCloudRetailV2alphaRuleDoNotAssociateAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaRuleDoNotAssociateAction
Returns a new instance of GoogleCloudRetailV2alphaRuleDoNotAssociateAction.
6202 6203 6204 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6202 def initialize(**args) update!(**args) end |
Instance Attribute Details
#do_not_associate_terms ⇒ Array<String>
Cannot contain duplicates or the query term. Can specify up to 100 terms.
Corresponds to the JSON property doNotAssociateTerms
6189 6190 6191 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6189 def do_not_associate_terms @do_not_associate_terms end |
#query_terms ⇒ Array<String>
Terms from the search query. Will not consider do_not_associate_terms for
search if in search query. Can specify up to 100 terms.
Corresponds to the JSON property queryTerms
6195 6196 6197 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6195 def query_terms @query_terms end |
#terms ⇒ Array<String>
Will be [deprecated = true] post migration;
Corresponds to the JSON property terms
6200 6201 6202 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6200 def terms @terms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6207 6208 6209 6210 6211 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 6207 def update!(**args) @do_not_associate_terms = args[:do_not_associate_terms] if args.key?(:do_not_associate_terms) @query_terms = args[:query_terms] if args.key?(:query_terms) @terms = args[:terms] if args.key?(:terms) end |