# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# NOTE: This file is auto generated by the elixir code generator program.
# Do not edit this file manually.

defmodule GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessage do
  @moduledoc """
  Corresponds to the `Response` field in the Dialogflow console.

  ## Attributes

  *   `basicCard` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBasicCard.t`, *default:* `nil`) - Displays a basic card for Actions on Google.
  *   `browseCarouselCard` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard.t`, *default:* `nil`) - Browse carousel card for Actions on Google.
  *   `card` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCard.t`, *default:* `nil`) - Displays a card.
  *   `carouselSelect` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect.t`, *default:* `nil`) - Displays a carousel card for Actions on Google.
  *   `image` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageImage.t`, *default:* `nil`) - Displays an image.
  *   `linkOutSuggestion` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion.t`, *default:* `nil`) - Displays a link out suggestion chip for Actions on Google.
  *   `listSelect` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageListSelect.t`, *default:* `nil`) - Displays a list card for Actions on Google.
  *   `mediaContent` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageMediaContent.t`, *default:* `nil`) - The media content card for Actions on Google.
  *   `payload` (*type:* `map()`, *default:* `nil`) - A custom platform-specific response.
  *   `platform` (*type:* `String.t`, *default:* `nil`) - Optional. The platform that this message is intended for.
  *   `quickReplies` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies.t`, *default:* `nil`) - Displays quick replies.
  *   `rbmCarouselRichCard` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard.t`, *default:* `nil`) - Rich Business Messaging (RBM) carousel rich card response.
  *   `rbmStandaloneRichCard` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard.t`, *default:* `nil`) - Standalone Rich Business Messaging (RBM) rich card response.
  *   `rbmText` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmText.t`, *default:* `nil`) - Rich Business Messaging (RBM) text response. RBM allows businesses to send enriched and branded versions of SMS. See https://jibe.google.com/business-messaging.
  *   `simpleResponses` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses.t`, *default:* `nil`) - Returns a voice or text-only response for Actions on Google.
  *   `suggestions` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSuggestions.t`, *default:* `nil`) - Displays suggestion chips for Actions on Google.
  *   `tableCard` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTableCard.t`, *default:* `nil`) - Table card for Actions on Google.
  *   `telephonyPlayAudio` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.t`, *default:* `nil`) - Plays audio from a file in Telephony Gateway.
  *   `telephonySynthesizeSpeech` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.t`, *default:* `nil`) - Synthesizes speech in Telephony Gateway.
  *   `telephonyTransferCall` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall.t`, *default:* `nil`) - Transfers the call in Telephony Gateway.
  *   `text` (*type:* `GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageText.t`, *default:* `nil`) - Returns a text response.
  """

  use GoogleApi.Gax.ModelBase

  @type t :: %__MODULE__{
          :basicCard =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBasicCard.t()
            | nil,
          :browseCarouselCard =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard.t()
            | nil,
          :card =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCard.t() | nil,
          :carouselSelect =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect.t()
            | nil,
          :image =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageImage.t() | nil,
          :linkOutSuggestion =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion.t()
            | nil,
          :listSelect =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageListSelect.t()
            | nil,
          :mediaContent =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageMediaContent.t()
            | nil,
          :payload => map() | nil,
          :platform => String.t() | nil,
          :quickReplies =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies.t()
            | nil,
          :rbmCarouselRichCard =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard.t()
            | nil,
          :rbmStandaloneRichCard =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard.t()
            | nil,
          :rbmText =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmText.t()
            | nil,
          :simpleResponses =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses.t()
            | nil,
          :suggestions =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSuggestions.t()
            | nil,
          :tableCard =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTableCard.t()
            | nil,
          :telephonyPlayAudio =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio.t()
            | nil,
          :telephonySynthesizeSpeech =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech.t()
            | nil,
          :telephonyTransferCall =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall.t()
            | nil,
          :text =>
            GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageText.t() | nil
        }

  field(:basicCard,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBasicCard
  )

  field(:browseCarouselCard,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
  )

  field(:card, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCard)

  field(:carouselSelect,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
  )

  field(:image, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageImage)

  field(:linkOutSuggestion,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
  )

  field(:listSelect,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageListSelect
  )

  field(:mediaContent,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageMediaContent
  )

  field(:payload, type: :map)
  field(:platform)

  field(:quickReplies,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
  )

  field(:rbmCarouselRichCard,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
  )

  field(:rbmStandaloneRichCard,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
  )

  field(:rbmText,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageRbmText
  )

  field(:simpleResponses,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
  )

  field(:suggestions,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageSuggestions
  )

  field(:tableCard,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTableCard
  )

  field(:telephonyPlayAudio,
    as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
  )

  field(:telephonySynthesizeSpeech,
    as:
      GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
  )

  field(:telephonyTransferCall,
    as:
      GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
  )

  field(:text, as: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessageText)
end

defimpl Poison.Decoder,
  for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessage do
  def decode(value, options) do
    GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessage.decode(value, options)
  end
end

defimpl Poison.Encoder,
  for: GoogleApi.Dialogflow.V3.Model.GoogleCloudDialogflowV2beta1IntentMessage do
  def encode(value, options) do
    GoogleApi.Gax.ModelBase.encode(value, options)
  end
end
