View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaCompletionSuggestion (google_api_discovery_engine v0.27.0)

Autocomplete suggestions that are imported from Customer.

Attributes

  • alternativePhrases (type: list(String.t), default: nil) - Alternative matching phrases for this suggestion.
  • frequency (type: String.t, default: nil) - Frequency of this suggestion. Will be used to rank suggestions when score is not available.
  • globalScore (type: float(), default: nil) - Global score of this suggestion. Control how this suggestion would be scored / ranked.
  • groupId (type: String.t, default: nil) - If two suggestions have the same groupId, they will not be returned together. Instead the one ranked higher will be returned. This can be used to deduplicate semantically identical suggestions.
  • groupScore (type: float(), default: nil) - The score of this suggestion within its group.
  • languageCode (type: String.t, default: nil) - BCP-47 language code of this suggestion.
  • suggestion (type: String.t, default: nil) - Required. The suggestion text.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaCompletionSuggestion{
    alternativePhrases: [String.t()] | nil,
    frequency: String.t() | nil,
    globalScore: float() | nil,
    groupId: String.t() | nil,
    groupScore: float() | nil,
    languageCode: String.t() | nil,
    suggestion: String.t() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.