Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class FacetGroup.
A group of facet buckets to be passed back and forth between backend & frontend.
Generated from protobuf message google.cloud.visionai.v1.FacetGroup
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ facet_id
string
Unique id of the facet group.
↳ display_name
string
Display name of the facet. To be used by UI for facet rendering.
↳ buckets
array< FacetBucket
>
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
↳ bucket_type
int
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)
getFacetId
Unique id of the facet group.
string
setFacetId
Unique id of the facet group.
var
string
$this
getDisplayName
Display name of the facet. To be used by UI for facet rendering.
string
setDisplayName
Display name of the facet. To be used by UI for facet rendering.
var
string
$this
getBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
setBuckets
Buckets associated with the facet. E.g. for "Team" facet, the bucket can be 49ers, patriots, etc.
$this
getBucketType
Facet bucket type.
setBucketType
Facet bucket type.
$this
getFetchMatchedAnnotations
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)
bool
setFetchMatchedAnnotations
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)
var
bool
$this

