View Source GoogleApi.CloudSearch.V1.Model.SuggestResult (google_api_cloud_search v0.21.0)

One suggestion result.

Attributes

  • peopleSuggestion (type: GoogleApi.CloudSearch.V1.Model.PeopleSuggestion.t, default: nil) - This is present when the suggestion indicates a person. It contains more information about the person - like their email ID, name etc.
  • querySuggestion (type: GoogleApi.CloudSearch.V1.Model.QuerySuggestion.t, default: nil) - This field will be present if the suggested query is a word/phrase completion.
  • source (type: GoogleApi.CloudSearch.V1.Model.Source.t, default: nil) - The source of the suggestion.
  • suggestedQuery (type: String.t, default: nil) - The suggested query that will be used for search, when the user clicks on the suggestion

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.CloudSearch.V1.Model.SuggestResult{
  peopleSuggestion: GoogleApi.CloudSearch.V1.Model.PeopleSuggestion.t() | nil,
  querySuggestion: GoogleApi.CloudSearch.V1.Model.QuerySuggestion.t() | nil,
  source: GoogleApi.CloudSearch.V1.Model.Source.t() | nil,
  suggestedQuery: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.