Class Facet (0.4.2)

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

A facet result. .. attribute:: key

The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".

:type: str

Attributes

NameDescription
values Sequence[google.cloud.retail_v2.types.SearchResponse.Facet.FacetValue]
The facet values for this field.
dynamic_facet bool
Whether the facet is dynamically generated.

Classes

FacetValue

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

A facet value which contains value names and their count. .. attribute:: value

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

:type: str