Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ControlSynonymsAction
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1ControlSynonymsAction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/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) ⇒ GoogleCloudDiscoveryengineV1ControlSynonymsAction
constructor
A new instance of GoogleCloudDiscoveryengineV1ControlSynonymsAction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1ControlSynonymsAction
Returns a new instance of GoogleCloudDiscoveryengineV1ControlSynonymsAction.
2913 2914 2915 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2913 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
2911 2912 2913 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2911 def synonyms @synonyms end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2918 2919 2920 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 2918 def update!(**args) @synonyms = args[:synonyms] if args.key?(:synonyms) end |