public sealed class SearchResponse.Types.Facet.Types.FacetValue : IMessage<SearchResponse.Types.Facet.Types.FacetValue>, IEquatable<SearchResponse.Types.Facet.Types.FacetValue>, IDeepCloneable<SearchResponse.Types.Facet.Types.FacetValue>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class SearchResponse.Types.Facet.Types.FacetValue.
A facet value which contains value names and their count.
Interval value for a facet, such as [10, 20) for facet "price". It
matches
[SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals].
[[["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 latest version of the \u003ccode\u003eSearchResponse.Types.Facet.Types.FacetValue\u003c/code\u003e class is 1.6.0, and it is part of the Google Cloud Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class represents a facet value, which includes value names and their corresponding counts in search results.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eFacetValue\u003c/code\u003e class include \u003ccode\u003eCount\u003c/code\u003e for the number of items, \u003ccode\u003eFacetValueCase\u003c/code\u003e to determine which field is populated, \u003ccode\u003eHasValue\u003c/code\u003e to see if a value is present, \u003ccode\u003eInterval\u003c/code\u003e to give an interval of a facet, and \u003ccode\u003eValue\u003c/code\u003e for the textual representation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eFacetValue\u003c/code\u003e class has two constructors, a default one, and another one that takes a \u003ccode\u003eSearchResponse.Types.Facet.Types.FacetValue\u003c/code\u003e object as an argument to create a copy of it.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class SearchResponse.Types.Facet.Types.FacetValue (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue) \n\n public sealed class SearchResponse.Types.Facet.Types.FacetValue : IMessage\u003cSearchResponse.Types.Facet.Types.FacetValue\u003e, IEquatable\u003cSearchResponse.Types.Facet.Types.FacetValue\u003e, IDeepCloneable\u003cSearchResponse.Types.Facet.Types.FacetValue\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class SearchResponse.Types.Facet.Types.FacetValue.\n\nA facet value which contains value names and their count. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SearchResponse.Types.Facet.Types.FacetValue \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.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types)[Facet](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types)[FacetValue](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SearchResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types)[Facet](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types)[FacetValue](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SearchResponse](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types)[Facet](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types)[FacetValue](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.SearchResponse.Types.Facet.Types.FacetValue), [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.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### FacetValue()\n\n public FacetValue()\n\n### FacetValue(FacetValue)\n\n public FacetValue(SearchResponse.Types.Facet.Types.FacetValue other)\n\nProperties\n----------\n\n### Count\n\n public long Count { get; set; }\n\nNumber of items that have this facet value.\n\n### FacetValueCase\n\n public SearchResponse.Types.Facet.Types.FacetValue.FacetValueOneofCase FacetValueCase { get; }\n\n### HasValue\n\n public bool HasValue { get; }\n\nGets whether the \"value\" field is set\n\n### Interval\n\n public Interval Interval { get; set; }\n\nInterval value for a facet, such as \\[10, 20) for facet \"price\". It\nmatches\n\\[SearchRequest.FacetSpec.FacetKey.intervals\\]\\[google.cloud.discoveryengine.v1.SearchRequest.FacetSpec.FacetKey.intervals\\].\n\n### Value\n\n public string Value { get; set; }\n\nText value of a facet, such as \"Black\" for facet \"colors\"."]]