Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleTwowaySynonymsAction
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaRuleTwowaySynonymsAction
- 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
Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes": * "sneakers" will use a synonym of "shoes" . * "shoes" will use a synonym of "sneakers".
Instance Attribute Summary collapse
-
#synonyms ⇒ Array<String>
Defines a set of synonyms.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaRuleTwowaySynonymsAction
constructor
A new instance of GoogleCloudRetailV2betaRuleTwowaySynonymsAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaRuleTwowaySynonymsAction
Returns a new instance of GoogleCloudRetailV2betaRuleTwowaySynonymsAction.
6882 6883 6884 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6882 def initialize(**args) update!(**args) end |
Instance Attribute Details
#synonyms ⇒ Array<String>
Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at
least 2 synonyms.
Corresponds to the JSON property synonyms
6880 6881 6882 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6880 def synonyms @synonyms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6887 6888 6889 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 6887 def update!(**args) @synonyms = args[:synonyms] if args.key?(:synonyms) end |