Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaControlSynonymsAction
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaControlSynonymsAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
Creates a set of terms that will act as synonyms of one another. Example: " happy" will also be considered as "glad", "glad" will also be considered as " happy".
Instance Attribute Summary collapse
-
#synonyms ⇒ Array<String>
Defines a set of synonyms.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlSynonymsAction
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaControlSynonymsAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlSynonymsAction
Returns a new instance of GoogleCloudDiscoveryengineV1alphaControlSynonymsAction.
5086 5087 5088 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5086 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. Otherwise an INVALID ARGUMENT error is thrown.
Corresponds to the JSON property synonyms
5084 5085 5086 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5084 def synonyms @synonyms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5091 5092 5093 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5091 def update!(**args) @synonyms = args[:synonyms] if args.key?(:synonyms) end |