public sealed class Rule.Types.RemoveFacetAction : IMessage<Rule.Types.RemoveFacetAction>, IEquatable<Rule.Types.RemoveFacetAction>, IDeepCloneable<Rule.Types.RemoveFacetAction>, IBufferMessage, IMessage
Reference documentation and code samples for the Retail v2 API class Rule.Types.RemoveFacetAction.
Removes an attribute/facet in the request if is present.
Rule Condition:
Must specify non-empty
[Condition.query_terms][google.cloud.retail.v2.Condition.query_terms]
(for search only) or
[Condition.page_categories][google.cloud.retail.v2.Condition.page_categories]
(for browse only), but can't specify both.
Action Input: attribute name
Action Result: Will remove the attribute (as a facet) from the request
if it is present.
Example: Suppose the query is "shoes", the
[Condition.query_terms][google.cloud.retail.v2.Condition.query_terms] is
"shoes" and the attribute name "size", then facet key "size" will be
removed from the request (if it is present).
public RepeatedField<string> AttributeNames { get; }
The attribute names (i.e. facet keys) to remove from the dynamic facets
(if present in the request). There can't be more 3 attribute names.
Each attribute name should be a valid attribute name, be non-empty and
contain at most 80 characters.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRule.Types.RemoveFacetAction\u003c/code\u003e class in the Retail v2 API allows for the removal of specific attributes or facets from search or browse requests, enhancing the refinement of search results.\u003c/p\u003e\n"],["\u003cp\u003eThis class supports the removal of an attribute if it is present, conditional on the existence of non-empty query terms for searches or page categories for browsing, but not both at the same time.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this feature is 2.12.0, and it has been implemented since version 1.0.0, demonstrating ongoing support and updates to the functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeNames\u003c/code\u003e property of the \u003ccode\u003eRemoveFacetAction\u003c/code\u003e class, limited to three names, allows specifying the facet keys that are to be removed, with each key being a string of at most 80 characters.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and is part of the \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e namespace within the \u003ccode\u003eGoogle.Cloud.Retail.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]