Reference documentation and code samples for the Google Cloud Retail V2 Client class FacetValue.
A facet value which contains value names and their count.
Generated from protobuf message google.cloud.retail.v2.SearchResponse.Facet.FacetValue
Namespace
Google \ Cloud \ Retail \ V2 \ SearchResponse \ FacetMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ value
string
Text value of a facet, such as "Black" for facet "colorFamilies".
↳ interval
↳ count
int|string
Number of items that have this facet value.
↳ min_value
float
The minimum value in the [FacetValue.interval. Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
↳ max_value
float
The maximum value in the FacetValue.interval . Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
getValue
Text value of a facet, such as "Black" for facet "colorFamilies".
string
hasValue
setValue
Text value of a facet, such as "Black" for facet "colorFamilies".
var
string
$this
getInterval
Interval value for a facet, such as [10, 20) for facet "price".
hasInterval
setInterval
Interval value for a facet, such as [10, 20) for facet "price".
$this
getCount
Number of items that have this facet value.
int|string
setCount
Number of items that have this facet value.
var
int|string
$this
getMinValue
The minimum value in the FacetValue.interval .
Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
float
setMinValue
The minimum value in the FacetValue.interval .
Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
var
float
$this
getMaxValue
The maximum value in the FacetValue.interval .
Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
float
setMaxValue
The maximum value in the FacetValue.interval .
Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
var
float
$this
getFacetValue
string