class Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessage

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).

Attributes

basic_card[RW]

The basic card message. Useful for displaying information. Corresponds to the JSON property `basicCard` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageBasicCard]

card[RW]

The card response message. Corresponds to the JSON property `card` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageCard]

image[RW]

The image response message. Corresponds to the JSON property `image` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageImage]

list_select[RW]

The card for presenting a list of options to select from. Corresponds to the JSON property `listSelect` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageListSelect]

media_content[RW]

The media content card for Actions on Google. Corresponds to the JSON property `mediaContent` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageMediaContent]

payload[RW]

A custom platform-specific response. Corresponds to the JSON property `payload` @return [Hash<String,Object>]

platform[RW]

Optional. The platform that this message is intended for. Corresponds to the JSON property `platform` @return [String]

quick_replies[RW]

The quick replies response message. Corresponds to the JSON property `quickReplies` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageQuickReplies]

simple_responses[RW]

The collection of simple response candidates. This message in `QueryResult. fulfillment_messages` and `WebhookResponse.fulfillment_messages` should contain only one `SimpleResponse`. Corresponds to the JSON property `simpleResponses` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageSimpleResponses]

suggestions[RW]

The collection of suggestions. Corresponds to the JSON property `suggestions` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageSuggestions]

table_card[RW]

Table card for Actions on Google. Corresponds to the JSON property `tableCard` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageTableCard]

text[RW]

The text response message. Corresponds to the JSON property `text` @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentMessageText]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3/classes.rb, line 9863
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v3/classes.rb, line 9868
def update!(**args)
  @basic_card = args[:basic_card] if args.key?(:basic_card)
  @browse_carousel_card = args[:browse_carousel_card] if args.key?(:browse_carousel_card)
  @card = args[:card] if args.key?(:card)
  @carousel_select = args[:carousel_select] if args.key?(:carousel_select)
  @image = args[:image] if args.key?(:image)
  @link_out_suggestion = args[:link_out_suggestion] if args.key?(:link_out_suggestion)
  @list_select = args[:list_select] if args.key?(:list_select)
  @media_content = args[:media_content] if args.key?(:media_content)
  @payload = args[:payload] if args.key?(:payload)
  @platform = args[:platform] if args.key?(:platform)
  @quick_replies = args[:quick_replies] if args.key?(:quick_replies)
  @simple_responses = args[:simple_responses] if args.key?(:simple_responses)
  @suggestions = args[:suggestions] if args.key?(:suggestions)
  @table_card = args[:table_card] if args.key?(:table_card)
  @text = args[:text] if args.key?(:text)
end