public sealed class Rule.Types.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 documentation page covers the \u003ccode\u003eRule.Types.ReplacementAction\u003c/code\u003e class within the Google Cloud Retail v2 API, specifically in version 2.8.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReplacementAction\u003c/code\u003e class is used to define how terms in a search query should be replaced with alternative terms, offering multiple replacement candidates.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties such as \u003ccode\u003eQueryTerms\u003c/code\u003e, which allows up to 100 search terms to be replaced, and \u003ccode\u003eReplacementTerm\u003c/code\u003e which specifies the replacement word.\u003c/p\u003e\n"],["\u003cp\u003eThe page contains version history, with version 2.12.0 being the latest and version 1.0.0 the oldest.\u003c/p\u003e\n"]]],[],null,[]]