public sealed class Rule.Types.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 document provides reference documentation for the \u003ccode\u003eRule.Types.OnewaySynonymsAction\u003c/code\u003e class within the Google Cloud Retail v2 API, specifically for .NET development.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOnewaySynonymsAction\u003c/code\u003e class allows mapping a set of query terms to a set of synonyms, where the synonyms are only treated as such for the query terms and not vice versa.\u003c/p\u003e\n"],["\u003cp\u003eThe class is part of the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.Retail.V2.dll\u003c/code\u003e assembly, with the code provided in the latest version available being 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eQueryTerms\u003c/code\u003e, which represent the search query terms, \u003ccode\u003eSynonyms\u003c/code\u003e, which define the set of synonyms, and \u003ccode\u003eOnewayTerms\u003c/code\u003e, which is marked for deprecation post-migration, and all of which can hold up to 100 elements.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two constructors: a default constructor and a constructor that takes another \u003ccode\u003eOnewaySynonymsAction\u003c/code\u003e object for initialization.\u003c/p\u003e\n"]]],[],null,[]]