View Source GoogleApi.ToolResults.V1beta3.Model.Thumbnail (google_api_tool_results v0.33.0)

A single thumbnail, with its size and format.

Attributes

  • contentType (type: String.t, default: nil) - The thumbnail's content type, i.e. "image/png". Always set.
  • data (type: String.t, default: nil) - The thumbnail file itself. That is, the bytes here are precisely the bytes that make up the thumbnail file; they can be served as an image as-is (with the appropriate content type.) Always set.
  • heightPx (type: integer(), default: nil) - The height of the thumbnail, in pixels. Always set.
  • widthPx (type: integer(), default: nil) - The width of the thumbnail, in pixels. Always set.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ToolResults.V1beta3.Model.Thumbnail{
  contentType: String.t() | nil,
  data: String.t() | nil,
  heightPx: integer() | nil,
  widthPx: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.