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"]],[["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."],[[["The `Rule.Types.RemoveFacetAction` 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."],["This 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."],["The 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."],["The `AttributeNames` property of the `RemoveFacetAction` 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."],["The class implements multiple interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and is part of the `Google.Cloud.Retail.V2` namespace within the `Google.Cloud.Retail.V2.dll` assembly."]]],[]]