Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessage

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v2beta1/classes.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb,
generated/google/apis/dialogflow_v2beta1/representations.rb

Overview

Corresponds to the Response field in API.AI console.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentMessage

Returns a new instance of GoogleCloudDialogflowV2beta1IntentMessage



2484
2485
2486
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2484

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#basic_cardGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageBasicCard

The basic card message. Useful for displaying information. Corresponds to the JSON property basicCard



2423
2424
2425
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2423

def basic_card
  @basic_card
end

#cardGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageCard

The card response message. Corresponds to the JSON property card



2428
2429
2430
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2428

def card
  @card
end

The card for presenting a carousel of options to select from. Corresponds to the JSON property carouselSelect



2433
2434
2435
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2433

def carousel_select
  @carousel_select
end

#imageGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageImage

The image response message. Corresponds to the JSON property image



2438
2439
2440
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2438

def image
  @image
end

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



2444
2445
2446
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2444

def link_out_suggestion
  @link_out_suggestion
end

#list_selectGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageListSelect

The card for presenting a list of options to select from. Corresponds to the JSON property listSelect



2449
2450
2451
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2449

def list_select
  @list_select
end

#payloadHash<String,Object>

The response containing a custom payload. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


2454
2455
2456
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2454

def payload
  @payload
end

#platformString

Optional. The platform that this message is intended for. Corresponds to the JSON property platform

Returns:

  • (String)


2459
2460
2461
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2459

def platform
  @platform
end

#quick_repliesGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageQuickReplies

The quick replies response message. Corresponds to the JSON property quickReplies



2464
2465
2466
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2464

def quick_replies
  @quick_replies
end

#simple_responsesGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses

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



2472
2473
2474
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2472

def simple_responses
  @simple_responses
end

#suggestionsGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageSuggestions

The collection of suggestions. Corresponds to the JSON property suggestions



2477
2478
2479
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2477

def suggestions
  @suggestions
end

#textGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentMessageText

The text response message. Corresponds to the JSON property text



2482
2483
2484
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2482

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 2489

def update!(**args)
  @basic_card = args[:basic_card] if args.key?(:basic_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)
  @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)
  @text = args[:text] if args.key?(:text)
end