public sealed class 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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eRule.Types.DoNotAssociateAction\u003c/code\u003e class within the Google Cloud Retail v2 API, covering versions from 1.0.0 to 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDoNotAssociateAction\u003c/code\u003e class is used to prevent certain terms from being associated with other terms during search operations, such as preventing "gShoe" and "cheap" from being associated.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eDoNotAssociateAction\u003c/code\u003e class include \u003ccode\u003eDoNotAssociateTerms\u003c/code\u003e, which specifies terms that should not be associated, and \u003ccode\u003eQueryTerms\u003c/code\u003e, specifying terms that will not have do_not_associate_terms applied if present in the search query.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a \u003ccode\u003eTerms\u003c/code\u003e property that will be deprecated post-migration, as well as two constructors that are included, the default and one accepting the \u003ccode\u003eRule.Types.DoNotAssociateAction\u003c/code\u003e type as a parameter.\u003c/p\u003e\n"]]],[],null,[]]