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

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

Inheritance

object > Rule.Types.ReplacementAction

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

ReplacementAction()

public ReplacementAction()

ReplacementAction(ReplacementAction)

public ReplacementAction(Rule.Types.ReplacementAction other)
Parameter
Name Description
other RuleTypesReplacementAction

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
RepeatedFieldstring

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