Class FacetValue (1.24.0)

FacetValue(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A facet value which contains value names and their count.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
value str
Text value of a facet, such as "Black" for facet "colorFamilies". This field is a member of oneof_ facet_value.
interval google.cloud.retail_v2alpha.types.Interval
Interval value for a facet, such as [10, 20) for facet "price". This field is a member of oneof_ facet_value.
count int
Number of items that have this facet value.
min_value float
The minimum value in the FacetValue.interval. Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
max_value float
The maximum value in the FacetValue.interval. Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.