View Source GoogleApi.Chat.V1.Model.KeyValue (google_api_chat v0.34.3)

A UI element contains a key (label) and a value (content). This element can also contain some actions such as onclick button.

Attributes

  • bottomLabel (type: String.t, default: nil) - The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
  • button (type: GoogleApi.Chat.V1.Model.Button.t, default: nil) - A button that can be clicked to trigger an action.
  • content (type: String.t, default: nil) - The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
  • contentMultiline (type: boolean(), default: nil) - If the content should be multiline.
  • icon (type: String.t, default: nil) - An enum value that's replaced by the Chat API with the corresponding icon image.
  • iconUrl (type: String.t, default: nil) - The icon specified by a URL.
  • onClick (type: GoogleApi.Chat.V1.Model.OnClick.t, default: nil) - The onclick action. Only the top label, bottom label, and content region are clickable.
  • topLabel (type: String.t, default: nil) - The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Chat.V1.Model.KeyValue{
  bottomLabel: String.t() | nil,
  button: GoogleApi.Chat.V1.Model.Button.t() | nil,
  content: String.t() | nil,
  contentMultiline: boolean() | nil,
  icon: String.t() | nil,
  iconUrl: String.t() | nil,
  onClick: GoogleApi.Chat.V1.Model.OnClick.t() | nil,
  topLabel: String.t() | nil
}

Functions

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

Unwrap a decoded JSON object into its complex fields.