Retail v2 API - Class Rule.Types.ReplacementAction (2.4.0)

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".

Inheritance

Object > Rule.Types.ReplacementAction

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

ReplacementAction()

public ReplacementAction()

ReplacementAction(Rule.Types.ReplacementAction)

public ReplacementAction(Rule.Types.ReplacementAction other)
Parameter
NameDescription
otherRule.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
TypeDescription
RepeatedField<String>

ReplacementTerm

public string ReplacementTerm { get; set; }

Term that will be used for replacement.

Property Value
TypeDescription
String

Term

public string Term { get; set; }

Will be [deprecated = true] post migration;

Property Value
TypeDescription
String