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".
Implements
IMessage<Rule.Types.ReplacementAction>, IEquatable<Rule.Types.ReplacementAction>, IDeepCloneable<Rule.Types.ReplacementAction>, IBufferMessage, IMessageNamespace
Google.Cloud.Retail.V2Assembly
Google.Cloud.Retail.V2.dll
Constructors
ReplacementAction()
public ReplacementAction()
ReplacementAction(Rule.Types.ReplacementAction)
public ReplacementAction(Rule.Types.ReplacementAction other)
Parameter | |
---|---|
Name | Description |
other | Rule.Types.ReplacementAction |
Properties
QueryTerms
public RepeatedField<string> QueryTerms { get; }
Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |
ReplacementTerm
public string ReplacementTerm { get; set; }
Term that will be used for replacement.
Property Value | |
---|---|
Type | Description |
String |
Term
public string Term { get; set; }
Will be [deprecated = true] post migration;
Property Value | |
---|---|
Type | Description |
String |