View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacetFacetValue (google_api_retail v0.10.0)

A facet value which contains value names and their count.

Attributes

  • count (type: String.t, default: nil) - Number of items that have this facet value.
  • interval (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval.t, default: nil) - Interval value for a facet, such as [10, 20) for facet "price".
  • maxValue (type: float(), default: nil) - The maximum value in the FacetValue.interval. Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
  • minValue (type: float(), default: nil) - The minimum value in the FacetValue.interval. Only supported on numerical facets and returned if SearchRequest.FacetSpec.FacetKey.return_min_max is true.
  • value (type: String.t, default: nil) - Text value of a facet, such as "Black" for facet "colorFamilies".

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacetFacetValue{
    count: String.t() | nil,
    interval: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval.t() | nil,
    maxValue: float() | nil,
    minValue: float() | nil,
    value: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.