public sealed class SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute : IMessage<SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute>, IEquatable<SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute>, IDeepCloneable<SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute.
[[["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\u003eThe \u003ccode\u003eRefinementAttribute\u003c/code\u003e class is part of the Discovery Engine v1beta API and is located within the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eSearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute\u003c/code\u003e, serves as a useful attribute for refining search results within the API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRefinementAttribute\u003c/code\u003e inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two constructors: a parameterless one and another that takes an existing \u003ccode\u003eRefinementAttribute\u003c/code\u003e object, allowing for the creation of new instances or cloning existing ones.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides two properties, \u003ccode\u003eAttributeKey\u003c/code\u003e and \u003ccode\u003eAttributeValue\u003c/code\u003e, both of which are strings, to specify the key and value for refining search results, such as "movie_type" and "drama" respectively.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute) \n\n public sealed class SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute : IMessage\u003cSearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute\u003e, IEquatable\u003cSearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute\u003e, IDeepCloneable\u003cSearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute.\n\nUseful attribute for search result refinements. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SearchResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types)[GuidedSearchResult](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types)[RefinementAttribute](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types)[GuidedSearchResult](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types)[RefinementAttribute](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types)[GuidedSearchResult](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types)[RefinementAttribute](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### RefinementAttribute()\n\n public RefinementAttribute()\n\n### RefinementAttribute(RefinementAttribute)\n\n public RefinementAttribute(SearchResponse.Types.GuidedSearchResult.Types.RefinementAttribute other)\n\nProperties\n----------\n\n### AttributeKey\n\n public string AttributeKey { get; set; }\n\nAttribute key used to refine the results. For example, `\"movie_type\"`.\n\n### AttributeValue\n\n public string AttributeValue { get; set; }\n\nAttribute value used to refine the results. For example, `\"drama\"`."]]