Retail v2 API - Class Rule.Types.TwowaySynonymsAction (2.9.0)

public sealed class Rule.Types.TwowaySynonymsAction : IMessage<Rule.Types.TwowaySynonymsAction>, IEquatable<Rule.Types.TwowaySynonymsAction>, IDeepCloneable<Rule.Types.TwowaySynonymsAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class Rule.Types.TwowaySynonymsAction.

Creates a set of terms that will be treated as synonyms of each other. Example: synonyms of "sneakers" and "shoes":

  • "sneakers" will use a synonym of "shoes".
  • "shoes" will use a synonym of "sneakers".

Inheritance

object > Rule.Types.TwowaySynonymsAction

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

TwowaySynonymsAction()

public TwowaySynonymsAction()

TwowaySynonymsAction(TwowaySynonymsAction)

public TwowaySynonymsAction(Rule.Types.TwowaySynonymsAction other)
Parameter
Name Description
other RuleTypesTwowaySynonymsAction

Properties

Synonyms

public RepeatedField<string> Synonyms { get; }

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms.

Property Value
Type Description
RepeatedFieldstring