Reference documentation and code samples for the Google Cloud Discovery Engine V1beta 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 message google.cloud.discoveryengine.v1beta.Control.SynonymsAction
Namespace
Google \ Cloud \ DiscoveryEngine \ V1beta \ ControlMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ synonyms |
array
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.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setSynonyms
Defines a set of synonyms.
Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |