Class Rule.Types.TwowaySynonymsAction (2.2.0)

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

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(Rule.Types.TwowaySynonymsAction)

public TwowaySynonymsAction(Rule.Types.TwowaySynonymsAction other)
Parameter
NameDescription
otherRule.Types.TwowaySynonymsAction

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
TypeDescription
RepeatedField<String>