Class Facet (0.11.4)

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

A facet result.

Attributes

NameDescription
key str
The key for this facet. E.g., "colors" or "price". It matches SearchRequest.FacetSpec.FacetKey.key.
values MutableSequence[google.cloud.discoveryengine_v1beta.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.

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