Retail v2 API - Class Rule.Types.DoNotAssociateAction (2.6.0)

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

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

Prevents query_term from being associated with specified terms during search. Example: Don't associate "gShoe" and "cheap".

Inheritance

object > Rule.Types.DoNotAssociateAction

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

DoNotAssociateAction()

public DoNotAssociateAction()

DoNotAssociateAction(DoNotAssociateAction)

public DoNotAssociateAction(Rule.Types.DoNotAssociateAction other)
Parameter
NameDescription
otherRuleTypesDoNotAssociateAction

Properties

DoNotAssociateTerms

public RepeatedField<string> DoNotAssociateTerms { get; }

Cannot contain duplicates or the query term. Can specify up to 100 terms.

Property Value
TypeDescription
RepeatedFieldstring

QueryTerms

public RepeatedField<string> QueryTerms { get; }

Terms from the search query. Will not consider do_not_associate_terms for search if in search query. Can specify up to 100 terms.

Property Value
TypeDescription
RepeatedFieldstring

Terms

public RepeatedField<string> Terms { get; }

Will be [deprecated = true] post migration;

Property Value
TypeDescription
RepeatedFieldstring