View Source GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseFacet (google_api_discovery_engine v0.27.0)

A facet result.

Attributes

  • dynamicFacet (type: boolean(), default: nil) - Whether the facet is dynamically generated.
  • key (type: String.t, default: nil) - The key for this facet. For example, "colors" or "price". It matches SearchRequest.FacetSpec.FacetKey.key.
  • values (type: list(GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue.t), default: nil) - The facet values for this field.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseFacet{
    dynamicFacet: boolean() | nil,
    key: String.t() | nil,
    values:
      [
        GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue.t()
      ]
      | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.