Retail v2 API - Class SearchResponse.Types.Facet.Types.FacetValue (2.8.0)

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 Retail v2 API class SearchResponse.Types.Facet.Types.FacetValue.

A facet value which contains value names and their count.

Inheritance

object > SearchResponse.Types.Facet.Types.FacetValue

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

FacetValue()

public FacetValue()

FacetValue(FacetValue)

public FacetValue(SearchResponse.Types.Facet.Types.FacetValue other)
Parameter
NameDescription
otherSearchResponseTypesFacetTypesFacetValue

Properties

Count

public long Count { get; set; }

Number of items that have this facet value.

Property Value
TypeDescription
long

FacetValueCase

public SearchResponse.Types.Facet.Types.FacetValue.FacetValueOneofCase FacetValueCase { get; }
Property Value
TypeDescription
SearchResponseTypesFacetTypesFacetValueFacetValueOneofCase

HasValue

public bool HasValue { get; }

Gets whether the "value" field is set

Property Value
TypeDescription
bool

Interval

public Interval Interval { get; set; }

Interval value for a facet, such as [10, 20) for facet "price".

Property Value
TypeDescription
Interval

MaxValue

public double MaxValue { get; set; }

The maximum value in the [FacetValue.interval][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.

Property Value
TypeDescription
double

MinValue

public double MinValue { get; set; }

The minimum value in the [FacetValue.interval][google.cloud.retail.v2.SearchResponse.Facet.FacetValue.interval]. Only supported on numerical facets and returned if [SearchRequest.FacetSpec.FacetKey.return_min_max][google.cloud.retail.v2.SearchRequest.FacetSpec.FacetKey.return_min_max] is true.

Property Value
TypeDescription
double

Value

public string Value { get; set; }

Text value of a facet, such as "Black" for facet "colorFamilies".

Property Value
TypeDescription
string