Discovery Engine v1 API - Class Control.Types.SynonymsAction (1.4.0)

public sealed class Control.Types.SynonymsAction : IMessage<Control.Types.SynonymsAction>, IEquatable<Control.Types.SynonymsAction>, IDeepCloneable<Control.Types.SynonymsAction>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class Control.Types.SynonymsAction.

Creates a set of terms that will act as synonyms of one another.

Example: "happy" will also be considered as "glad", "glad" will also be considered as "happy".

Inheritance

object > Control.Types.SynonymsAction

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

SynonymsAction()

public SynonymsAction()

SynonymsAction(SynonymsAction)

public SynonymsAction(Control.Types.SynonymsAction other)
Parameter
Name Description
other ControlTypesSynonymsAction

Properties

Synonyms

public RepeatedField<string> Synonyms { get; }

Defines a set of synonyms. Can specify up to 100 synonyms. Must specify at least 2 synonyms. Otherwise an INVALID ARGUMENT error is thrown.

Property Value
Type Description
RepeatedFieldstring