public sealed class Rule.Types.OnewaySynonymsAction : IMessage<Rule.Types.OnewaySynonymsAction>, IEquatable<Rule.Types.OnewaySynonymsAction>, IDeepCloneable<Rule.Types.OnewaySynonymsAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Rule.Types.OnewaySynonymsAction.
Maps a set of terms to a set of synonyms.
Set of synonyms will be treated as synonyms of each query term only.
query_terms
will not be treated as synonyms of each other.
Example: "sneakers" will use a synonym of "shoes".
"shoes" will not use a synonym of "sneakers".
Implements
IMessageRuleTypesOnewaySynonymsAction, IEquatableRuleTypesOnewaySynonymsAction, IDeepCloneableRuleTypesOnewaySynonymsAction, IBufferMessage, IMessageNamespace
GoogleCloudGoogle.Cloud.RetailV2Assembly
Google.Cloud.Retail.V2.dll
Constructors
OnewaySynonymsAction()
public OnewaySynonymsAction()
OnewaySynonymsAction(OnewaySynonymsAction)
public OnewaySynonymsAction(Rule.Types.OnewaySynonymsAction other)
Parameter | |
---|---|
Name | Description |
other | RuleTypesOnewaySynonymsAction |
Properties
OnewayTerms
public RepeatedField<string> OnewayTerms { get; }
Will be [deprecated = true] post migration;
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
QueryTerms
public RepeatedField<string> QueryTerms { get; }
Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |
Synonyms
public RepeatedField<string> Synonyms { get; }
Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.
Property Value | |
---|---|
Type | Description |
RepeatedFieldstring |