Retail v2 API - Class Rule.Types.ReplacementAction (2.5.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

GoogleCloudGoogle.Cloud.RetailV2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

ReplacementAction()

public ReplacementAction()

ReplacementAction(ReplacementAction)

public ReplacementAction(Rule.Types.ReplacementAction other)
Parameter
NameDescription
otherRuleTypesReplacementAction

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
RepeatedFieldstring

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