public sealed class ReplacementAction : IMessage<Rule.Types.ReplacementAction>, IEquatable<Rule.Types.ReplacementAction>, IDeepCloneable<Rule.Types.ReplacementAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Rule.Types.ReplacementAction.
Replaces a term in the query. Multiple replacement candidates can be
specified. All query_terms will be replaced with the replacement term.
Example: Replace "gShoe" with "google shoe".
[[["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.ReplacementAction\u003c/code\u003e class within the Google Cloud Retail V2 API, detailing its purpose in replacing terms within a search query.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplacementAction\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace, allows for the substitution of up to 100 \u003ccode\u003eQueryTerms\u003c/code\u003e with a designated \u003ccode\u003eReplacementTerm\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided content includes a list of available versions of this class, ranging from version 1.0.0 to the latest version, 2.12.0, with the document pertaining to version 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eReplacementAction\u003c/code\u003e 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 has properties like \u003ccode\u003eQueryTerms\u003c/code\u003e, \u003ccode\u003eReplacementTerm\u003c/code\u003e and \u003ccode\u003eTerm\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors for \u003ccode\u003eReplacementAction\u003c/code\u003e; a default one and one that takes another \u003ccode\u003eRule.Types.ReplacementAction\u003c/code\u003e as a parameter.\u003c/p\u003e\n"]]],[],null,[]]