# Class FacetGroup (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.10

    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[https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.types.FacetBucket]` Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc. |
| `bucket_type` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1.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) |