Google Cloud Discovery Engine V1 Client - Class SynonymsAction (1.11.1)Stay organized with collectionsSave and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class 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".
Generated from protobuf messagegoogle.cloud.discoveryengine.v1.Control.SynonymsAction
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ Control
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ synonyms
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.
getSynonyms
Defines a set of synonyms.
Can specify up to 100 synonyms.
Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is
thrown.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-03-18 UTC."],[],[]]