class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage

Corresponds to the `Response` field in the Dialogflow console.

Attributes

basic_card[RW]

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

card[RW]

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

image[RW]

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

list_select[RW]

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

media_content[RW]

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

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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies]

rbm_standalone_rich_card[RW]

Standalone Rich Business Messaging (RBM) rich card. Rich cards allow you to respond to users with more vivid content, e.g. with media and suggestions. You can group multiple rich cards into one using RbmCarouselCard but carousel cards will give you less control over the card layout. Corresponds to the JSON property `rbmStandaloneRichCard` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard]

rbm_text[RW]

Rich Business Messaging (RBM) text response with suggestions. Corresponds to the JSON property `rbmText` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageRbmText]

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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses]

suggestions[RW]

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

table_card[RW]

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

telephony_play_audio[RW]

Plays audio from a file in Telephony Gateway. Corresponds to the JSON property `telephonyPlayAudio` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio]

telephony_synthesize_speech[RW]

Synthesizes speech and plays back the synthesized audio to the caller in Telephony Gateway. Telephony Gateway takes the synthesizer settings from ` DetectIntentResponse.output_audio_config` which can either be set at request- level or can come from the agent-level synthesizer config. Corresponds to the JSON property `telephonySynthesizeSpeech` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech]

telephony_transfer_call[RW]

Transfers the call in Telephony Gateway. Corresponds to the JSON property `telephonyTransferCall` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall]

text[RW]

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

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 10722
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_v2beta1/classes.rb, line 10727
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)
  @rbm_carousel_rich_card = args[:rbm_carousel_rich_card] if args.key?(:rbm_carousel_rich_card)
  @rbm_standalone_rich_card = args[:rbm_standalone_rich_card] if args.key?(:rbm_standalone_rich_card)
  @rbm_text = args[:rbm_text] if args.key?(:rbm_text)
  @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)
  @telephony_play_audio = args[:telephony_play_audio] if args.key?(:telephony_play_audio)
  @telephony_synthesize_speech = args[:telephony_synthesize_speech] if args.key?(:telephony_synthesize_speech)
  @telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
  @text = args[:text] if args.key?(:text)
end