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 v1beta API class SearchResponse.Types.Facet.Types.FacetValue.
A facet value which contains value names and their count.
Implements
IMessageSearchResponseTypesFacetTypesFacetValue, IEquatableSearchResponseTypesFacetTypesFacetValue, IDeepCloneableSearchResponseTypesFacetTypesFacetValue, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
FacetValue()
public FacetValue()
FacetValue(FacetValue)
public FacetValue(SearchResponse.Types.Facet.Types.FacetValue other)
Parameter | |
---|---|
Name | Description |
other | SearchResponseTypesFacetTypesFacetValue |
Properties
Count
public long Count { get; set; }
Number of items that have this facet value.
Property Value | |
---|---|
Type | Description |
long |
FacetValueCase
public SearchResponse.Types.Facet.Types.FacetValue.FacetValueOneofCase FacetValueCase { get; }
Property Value | |
---|---|
Type | Description |
SearchResponseTypesFacetTypesFacetValueFacetValueOneofCase |
HasValue
public bool HasValue { get; }
Gets whether the "value" field is set
Property Value | |
---|---|
Type | Description |
bool |
Interval
public Interval Interval { get; set; }
Interval value for a facet, such as [10, 20) for facet "price". It matches [SearchRequest.FacetSpec.FacetKey.intervals][google.cloud.discoveryengine.v1beta.SearchRequest.FacetSpec.FacetKey.intervals].
Property Value | |
---|---|
Type | Description |
Interval |
Value
public string Value { get; set; }
Text value of a facet, such as "Black" for facet "colors".
Property Value | |
---|---|
Type | Description |
string |