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

Stay organized with collections Save and categorize content based on your preferences.
public sealed class 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(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>