Class Message

A rich response message. Corresponds to the intent Response field in the Dialogflow console. For more information, see Rich response messages <https://cloud.google.com/dialogflow/docs/intents-rich-messages>__.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
google.cloud.dialogflow_v2.types.Intent.Message.Texttext
The text response. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.Imageimage
The image response. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.QuickRepliesquick_replies
The quick replies response. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.Cardcard
The card response. This field is a member of `oneof`_ ``message``.
google.protobuf.struct_pb2.Structpayload
A custom platform-specific response. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.SimpleResponsessimple_responses
The voice and text-only responses for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.BasicCardbasic_card
The basic card response for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.Suggestionssuggestions
The suggestion chips for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.LinkOutSuggestionlink_out_suggestion
The link out suggestion chip for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.ListSelectlist_select
The list card response for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.CarouselSelectcarousel_select
The carousel card response for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.BrowseCarouselCardbrowse_carousel_card
Browse carousel card for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.TableCardtable_card
Table card for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.MediaContentmedia_content
The media content card for Actions on Google. This field is a member of `oneof`_ ``message``.
google.cloud.dialogflow_v2.types.Intent.Message.Platformplatform
Optional. The platform that this message is intended for.

Inheritance

builtins.object > proto.message.Message > Message

Classes

BasicCard

BasicCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The basic card message. Useful for displaying information.

BrowseCarouselCard

BrowseCarouselCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Card

Card(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card response message.

CarouselSelect

CarouselSelect(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card for presenting a carousel of options to select from.

ColumnProperties

ColumnProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Column properties for TableCard.

Image

Image(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The image response message.

LinkOutSuggestion

LinkOutSuggestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The suggestion chip message that allows the user to jump out to the app or website associated with this agent.

ListSelect

ListSelect(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The card for presenting a list of options to select from.

MediaContent

MediaContent(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The media content card for Actions on Google.

Platform

Platform(value)

The rich response message integration platform. See Integrations <https://cloud.google.com/dialogflow/docs/integrations>__.

QuickReplies

QuickReplies(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The quick replies response message.

SelectItemInfo

SelectItemInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Additional info about the select item for when it is triggered in a dialog.

SimpleResponse

SimpleResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The simple response message containing speech or text.

SimpleResponses

SimpleResponses(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The collection of simple response candidates. This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.

Suggestion

Suggestion(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The suggestion chip message that the user can tap to quickly post a reply to the conversation.

Suggestions

Suggestions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The collection of suggestions.

TableCard

TableCard(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Table card for Actions on Google.

TableCardCell

TableCardCell(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Cell of TableCardRow.

TableCardRow

TableCardRow(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Row of TableCard.

Text

Text(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The text response message.