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."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eRule.Types.RemoveFacetAction\u003c/code\u003e class within the Google Cloud Retail V2 API, detailing its purpose and usage.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRemoveFacetAction\u003c/code\u003e is used to remove specified attributes or facets from a request, based on defined conditions like query terms or page categories.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRule.Types.RemoveFacetAction\u003c/code\u003e class has several implementations including IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"],["\u003cp\u003eThe current documentation covers the \u003ccode\u003eRemoveFacetAction\u003c/code\u003e class, it's associated methods and properties, as well as the list of API versions, with the latest version being 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeNames\u003c/code\u003e property of the class, of type \u003ccode\u003eRepeatedField<string>\u003c/code\u003e, specifies the attribute names to remove from the dynamic facets, with a limit of 3 attribute names, each up to 80 characters long.\u003c/p\u003e\n"]]],[],null,[]]