AssistantApiCoreTypesImage

AI Overview😉

  • The potential purpose of this module is to extract and process image-related data from web pages, which can be used to improve image search results, provide better image descriptions for accessibility, and enhance the overall user experience.
  • This module could impact search results by influencing the ranking of image search results based on factors such as image accessibility, source URL, and provider URL. It may also affect the display of images in search results, including the use of badge images, app icons, and letter drawable text.
  • A website may change things to be more favorable for this function by ensuring that images have accurate and descriptive alt text, providing high-quality images with relevant source URLs, and optimizing images for accessibility. Additionally, websites may want to consider using structured data to provide additional context about their images, such as using schema.org metadata to describe images.

Interesting Module? Vote 👇

Voting helps other researchers find interesting modules.

Current Votes: 0

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

Types

t()

Functions

decode(value, options)

Unwrap a decoded JSON object into its complex fields.

Types

Link to this type

t()

@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

Link to this function

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.