View Source GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1ProductSearchResultsResult (google_api_vision v0.25.0)

Information about a product.

Attributes

  • image (type: String.t, default: nil) - The resource name of the image from the product that is the closest match to the query.
  • product (type: GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1Product.t, default: nil) - The Product.
  • score (type: number(), default: nil) - A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1ProductSearchResultsResult{
    image: String.t() | nil,
    product:
      GoogleApi.Vision.V1.Model.GoogleCloudVisionV1p1beta1Product.t() | nil,
    score: number() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.