Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaControlSynonymsAction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaControlSynonymsAction

Returns a new instance of GoogleCloudDiscoveryengineV1alphaControlSynonymsAction.



10250
10251
10252
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10250

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

Instance Attribute Details

#synonymsArray<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

Returns:

  • (Array<String>)


10248
10249
10250
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10248

def synonyms
  @synonyms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10255
10256
10257
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10255

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