# 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.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCard do
@moduledoc """
Table card for Actions on Google.
## Attributes
* `buttons` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCardButton.t)`, *default:* `nil`) - Optional. List of buttons for the card.
* `columnProperties` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageColumnProperties.t)`, *default:* `nil`) - Optional. Display properties for the columns in this table.
* `image` (*type:* `GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageImage.t`, *default:* `nil`) - Optional. Image which should be displayed on the card.
* `rows` (*type:* `list(GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCardRow.t)`, *default:* `nil`) - Optional. Rows in this table of data.
* `subtitle` (*type:* `String.t`, *default:* `nil`) - Optional. Subtitle to the title.
* `title` (*type:* `String.t`, *default:* `nil`) - Required. Title of the card.
"""
use GoogleApi.Gax.ModelBase
@type t :: %__MODULE__{
:buttons =>
list(
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCardButton.t()
)
| nil,
:columnProperties =>
list(
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageColumnProperties.t()
)
| nil,
:image =>
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageImage.t() | nil,
:rows =>
list(
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCardRow.t()
)
| nil,
:subtitle => String.t() | nil,
:title => String.t() | nil
}
field(:buttons,
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageBasicCardButton,
type: :list
)
field(:columnProperties,
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageColumnProperties,
type: :list
)
field(:image, as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageImage)
field(:rows,
as: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCardRow,
type: :list
)
field(:subtitle)
field(:title)
end
defimpl Poison.Decoder,
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCard do
def decode(value, options) do
GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCard.decode(
value,
options
)
end
end
defimpl Poison.Encoder,
for: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2IntentMessageTableCard do
def encode(value, options) do
GoogleApi.Gax.ModelBase.encode(value, options)
end
end