Class: Google::Apis::DialogflowV2beta1::IntentMessage

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) ⇒ IntentMessage

Returns a new instance of IntentMessage



1101
1102
1103
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1101

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

Instance Attribute Details

#basic_cardGoogle::Apis::DialogflowV2beta1::IntentMessageBasicCard

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



1040
1041
1042
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1040

def basic_card
  @basic_card
end

#cardGoogle::Apis::DialogflowV2beta1::IntentMessageCard

The card response message. Corresponds to the JSON property card



1045
1046
1047
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1045

def card
  @card
end

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



1050
1051
1052
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1050

def carousel_select
  @carousel_select
end

#imageGoogle::Apis::DialogflowV2beta1::IntentMessageImage

The image response message. Corresponds to the JSON property image



1055
1056
1057
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1055

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



1061
1062
1063
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1061

def link_out_suggestion
  @link_out_suggestion
end

#list_selectGoogle::Apis::DialogflowV2beta1::IntentMessageListSelect

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



1066
1067
1068
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1066

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


1071
1072
1073
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1071

def payload
  @payload
end

#platformString

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

Returns:

  • (String)


1076
1077
1078
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1076

def platform
  @platform
end

#quick_repliesGoogle::Apis::DialogflowV2beta1::IntentMessageQuickReplies

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



1081
1082
1083
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1081

def quick_replies
  @quick_replies
end

#simple_responsesGoogle::Apis::DialogflowV2beta1::IntentMessageSimpleResponses

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



1089
1090
1091
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1089

def simple_responses
  @simple_responses
end

#suggestionsGoogle::Apis::DialogflowV2beta1::IntentMessageSuggestions

The collection of suggestions. Corresponds to the JSON property suggestions



1094
1095
1096
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1094

def suggestions
  @suggestions
end

#textGoogle::Apis::DialogflowV2beta1::IntentMessageText

The text response message. Corresponds to the JSON property text



1099
1100
1101
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1099

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
# File 'generated/google/apis/dialogflow_v2beta1/classes.rb', line 1106

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