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

RecommendationResult represents a generic recommendation result with associated metadata.

Attributes

  • document (type: GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t, default: nil) - Set if returnDocument is set to true in RecommendRequest.params.
  • id (type: String.t, default: nil) - Resource ID of the recommended Document.
  • metadata (type: map(), default: nil) - Additional Document metadata or annotations. Possible values: * score: Recommendation score in double value. Is set if returnScore is set to true in RecommendRequest.params.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() ::
  %GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult{
    document:
      GoogleApi.DiscoveryEngine.V1.Model.GoogleCloudDiscoveryengineV1Document.t()
      | nil,
    id: String.t() | nil,
    metadata: map() | nil
  }

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.