public sealed class OnewaySynonymsAction : IMessage<Rule.Types.OnewaySynonymsAction>, IEquatable<Rule.Types.OnewaySynonymsAction>, IDeepCloneable<Rule.Types.OnewaySynonymsAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Rule.Types.OnewaySynonymsAction.
Maps a set of terms to a set of synonyms.
Set of synonyms will be treated as synonyms of each query term only.
query_terms will not be treated as synonyms of each other.
Example: "sneakers" will use a synonym of "shoes".
"shoes" will not use a synonym of "sneakers".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eRule.Types.OnewaySynonymsAction\u003c/code\u003e class within the Google Cloud Retail v2 API, detailing its usage and properties across multiple versions, from 1.0.0 to the latest, 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOnewaySynonymsAction\u003c/code\u003e class maps terms to synonyms, where \u003ccode\u003equery_terms\u003c/code\u003e have synonyms, but the synonyms are not synonyms of each other, only the query terms.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is part of the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eOnewaySynonymsAction\u003c/code\u003e class include \u003ccode\u003eOnewayTerms\u003c/code\u003e, \u003ccode\u003eQueryTerms\u003c/code\u003e, and \u003ccode\u003eSynonyms\u003c/code\u003e, all of which are \u003ccode\u003eRepeatedField<string>\u003c/code\u003e, and it includes inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors listed in the documentation for \u003ccode\u003eOnewaySynonymsAction\u003c/code\u003e, the default constructor, and one that takes a \u003ccode\u003eRule.Types.OnewaySynonymsAction\u003c/code\u003e instance as an argument.\u003c/p\u003e\n"]]],[],null,[]]