public sealed class Rule.Types.TwowaySynonymsAction : IMessage<Rule.Types.TwowaySynonymsAction>, IEquatable<Rule.Types.TwowaySynonymsAction>, IDeepCloneable<Rule.Types.TwowaySynonymsAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Rule.Types.TwowaySynonymsAction.
Creates a set of terms that will be treated as synonyms of each other.
Example: synonyms of "sneakers" and "shoes":
[[["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 documentation page covers the \u003ccode\u003eRule.Types.TwowaySynonymsAction\u003c/code\u003e class within the Google.Cloud.Retail.V2 namespace, detailing its functionality for managing two-way synonyms.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eTwowaySynonymsAction\u003c/code\u003e is used to define sets of terms that should be treated as synonyms of each other in the Retail v2 API, such as "sneakers" and "shoes" being mutually recognized as synonyms.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e and offers constructors for creating instances, including one that takes another \u003ccode\u003eTwowaySynonymsAction\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes a \u003ccode\u003eSynonyms\u003c/code\u003e property, which is a \u003ccode\u003eRepeatedField<string>\u003c/code\u003e allowing up to 100 synonyms to be specified, with a minimum of 2 synonyms required.\u003c/p\u003e\n"],["\u003cp\u003eThere is version history for the document, starting at version 1.0.0 going all the way to version 2.12.0, with the document you are reading being for version 2.7.0.\u003c/p\u003e\n"]]],[],null,[]]