View Source GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage (google_api_content_warehouse v0.4.0)

An image represents the data about an image or a photo. NextId: 13

Attributes

  • accessibilityText (type: String.t, default: nil) - A text description of the image to be used for accessibility, e.g. screen readers.
  • appIconIdentifier (type: String.t, default: nil) - App identifier. This field is specific to mobile surfaces and stands for app package name for Android surface, and app bundle identifier for iOS. In case identifier is specified but invalid, some default icon will be used, e.g. PackageManager.getDefaultActivityIcon() for Android. If you want to show image for AGSA versions which don't support this field, you can specify source_url as backup.
  • badgeImage (type: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage.t, default: nil) - This is the image that is displayed as the badge on the main image.
  • content (type: String.t, default: nil) - Content of the image in bytes.
  • height (type: integer(), default: nil) -
  • imageSource (type: String.t, default: nil) - Indicate the data source where the image is fetched.
  • jsonContent (type: String.t, default: nil) - Content of image in form of JSON representation.
  • letterDrawableText (type: String.t, default: nil) - Text used to generate a letter drawable (a letter icon with color). It will be the default icon if the source_url is empty or cannot be rendered.
  • providerUrl (type: String.t, default: nil) - Url of the image provider, which is the website containing the image. For example, https://www.agentx.com.
  • sourceUrl (type: String.t, default: nil) - The source url of the image. For example, https://www.agentx.com/logo.png
  • sourceUrlType (type: String.t, default: nil) - Type of the source url.
  • width (type: integer(), default: nil) - The width and height of the image in pixels.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage{
  accessibilityText: String.t() | nil,
  appIconIdentifier: String.t() | nil,
  badgeImage: t() | nil,
  content: String.t() | nil,
  height: integer() | nil,
  imageSource: String.t() | nil,
  jsonContent: String.t() | nil,
  letterDrawableText: String.t() | nil,
  providerUrl: String.t() | nil,
  sourceUrl: String.t() | nil,
  sourceUrlType: String.t() | nil,
  width: integer() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.