Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::Control::SynonymsAction (v0.14.1)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::Control::SynonymsAction.

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".

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#synonyms

def synonyms() -> ::Array<::String>
Returns
  • (::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.

#synonyms=

def synonyms=(value) -> ::Array<::String>
Parameter
  • value (::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.
Returns
  • (::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.