View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult (google_api_discovery_engine v0.7.0)

RecommendationResult represents a generic recommendation result with associated metadata.

Attributes

  • document (type: GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaDocument.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 / 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

@type t() ::
  %GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult{
    document:
      GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaDocument.t()
      | nil,
    id: String.t() | nil,
    metadata: map() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.