View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse (google_api_retail v0.3.0)

Response message for SearchService.Search method.


  • appliedControls (type: list(String.t), default: nil) - The fully qualified resource name of applied controls.
  • attributionToken (type: String.t, default: nil) - A unique search token. This should be included in the UserEvent logs resulting from this search, which enables accurate attribution of search model performance.
  • correctedQuery (type: String.t, default: nil) - If spell correction applies, the corrected query. Otherwise, empty.
  • facets (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacet.t), default: nil) - Results of facets requested by user.
  • nextPageToken (type: String.t, default: nil) - A token that can be sent as SearchRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.
  • queryExpansionInfo (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseQueryExpansionInfo.t, default: nil) - Query expansion information for the returned results.
  • redirectUri (type: String.t, default: nil) - The URI of a customer-defined redirect page. If redirect action is triggered, no search will be performed, and only redirect_uri and attribution_token will be set in the response.
  • results (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseSearchResult.t), default: nil) - A list of matched items. The order represents the ranking.
  • totalSize (type: integer(), default: nil) - The estimated total count of matched items irrespective of pagination. The count of results returned by pagination may be less than the total_size that matches.

Link to this section Summary


Unwrap a decoded JSON object into its complex fields.

Link to this section Types


t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponse{
  appliedControls: [String.t()] | nil,
  attributionToken: String.t() | nil,
  correctedQuery: String.t() | nil,
    [GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchResponseFacet.t()] | nil,
  nextPageToken: String.t() | nil,
    | nil,
  redirectUri: String.t() | nil,
    | nil,
  totalSize: integer() | nil

Link to this section Functions


decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.