Class FacetGroup (0.1.1)

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

A group of facet buckets to be passed back and forth between backend & frontend.

Attributes

Name Description
facet_id str
Unique id of the facet group.
display_name str
Display name of the facet. To be used by UI for facet rendering.
buckets MutableSequence[google.cloud.visionai_v1alpha1.types.FacetBucket]
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
bucket_type google.cloud.visionai_v1alpha1.types.FacetBucketType
Facet bucket type.
fetch_matched_annotations bool
If true, return query matched annotations for this facet group's selection. This option is only applicable for facets based on partition level annotations. It supports the following facet values: - INTEGER - STRING (DataSchema.SearchStrategy.EXACT_SEARCH only)