Class Facet (1.7.0)

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

A facet result.

Attributes

NameDescription
key str
The key for this facet. E.g., "colorFamilies" or "price" or "attributes.attr1".
values Sequence[google.cloud.retail_v2alpha.types.SearchResponse.Facet.FacetValue]
The facet values for this field.
dynamic_facet bool
Whether the facet is dynamically generated.

Inheritance

builtins.object > proto.message.Message > Facet

Classes

FacetValue

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