View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCard (google_api_dialogflow v0.88.0)

The basic card message. Useful for displaying information.

Attributes

  • buttons (type: list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCardButton.t), default: nil) - Optional. The collection of card buttons.
  • formattedText (type: String.t, default: nil) - Required, unless image is present. The body text of the card.
  • image (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageImage.t, default: nil) - Optional. The image for the card.
  • subtitle (type: String.t, default: nil) - Optional. The subtitle of the card.
  • title (type: String.t, default: nil) - Optional. The title of the card.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCard{
    buttons:
      [
        GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCardButton.t()
      ]
      | nil,
    formattedText: String.t() | nil,
    image:
      GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageImage.t()
      | nil,
    subtitle: String.t() | nil,
    title: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.