AssistantApiCoreTypesImage

GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage


Table of Contents ▼

Jump to a specific part of the page:

Description

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

Attributes List

This module has the following attributes (case-insensitive ascending order):

View Attributes

Attributes

  1. accessibilityText (type: String.t, default: nil)
    - A text description of the image to be used for accessibility, e.g. screen readers.
  2. 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.
  3. badgeImage (type: GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage, default: nil)
    - This is the image that is displayed as the badge on the main image.
  4. content (type: String.t, default: nil)
    - Content of the image in bytes.
  5. height (type: integer(), default: nil)
    -
  6. imageSource (type: String.t, default: nil)
    - Indicate the data source where the image is fetched.
  7. jsonContent (type: String.t, default: nil)
    - Content of image in form of JSON representation.
  8. 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.
  9. providerUrl (type: String.t, default: nil)
    - Url of the image provider, which is the website containing the image. For example, https://www.agentx.com.
  10. sourceUrl (type: String.t, default: nil)
    - The source url of the image. For example, https://www.agentx.com/logo.png
  11. sourceUrlType (type: String.t, default: nil)
    - Type of the source url.
  12. width (type: integer(), default: nil)
    - The width and height of the image in pixels.

Type

@type t() :: %GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage{
accessibilityText: String.t() | nil,
appIconIdentifier: String.t() | nil,
badgeImage: #t:t/0() | 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
}

Function

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

Data sourced from HexDocs : GoogleApi.ContentWarehouse.V1.Model.AssistantApiCoreTypesImage