Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequest
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/dialogflow_v3beta1/classes.rb,
generated/google/apis/dialogflow_v3beta1/representations.rb,
generated/google/apis/dialogflow_v3beta1/representations.rb
Overview
The request message for a webhook call.
Instance Attribute Summary collapse
-
#detect_intent_response_id ⇒ String
Always present.
-
#fulfillment_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
Represents fulfillment information communicated to the webhook.
-
#intent_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
Represents intent information communicated to the webhook.
-
#messages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessage>
The list of rich message responses to present to the user.
-
#page_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3PageInfo
Represents page information communicated to and from the webhook.
-
#payload ⇒ Hash<String,Object>
Custom data set in QueryParameters.payload.
-
#session_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo
Represents session information communicated to and from the webhook.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequest
constructor
A new instance of GoogleCloudDialogflowCxV3WebhookRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequest
Returns a new instance of GoogleCloudDialogflowCxV3WebhookRequest.
2166 2167 2168 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2166 def initialize(**args) update!(**args) end |
Instance Attribute Details
#detect_intent_response_id ⇒ String
Always present. The unique identifier of the DetectIntentResponse that will be
returned to the API caller.
Corresponds to the JSON property detectIntentResponseId
2133 2134 2135 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2133 def detect_intent_response_id @detect_intent_response_id end |
#fulfillment_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
Represents fulfillment information communicated to the webhook.
Corresponds to the JSON property fulfillmentInfo
2138 2139 2140 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2138 def fulfillment_info @fulfillment_info end |
#intent_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
Represents intent information communicated to the webhook.
Corresponds to the JSON property intentInfo
2143 2144 2145 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2143 def intent_info @intent_info end |
#messages ⇒ Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3ResponseMessage>
The list of rich message responses to present to the user. Webhook can choose
to append or replace this list in WebhookResponse.fulfillment_response;
Corresponds to the JSON property messages
2149 2150 2151 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2149 def @messages end |
#page_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3PageInfo
Represents page information communicated to and from the webhook.
Corresponds to the JSON property pageInfo
2154 2155 2156 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2154 def page_info @page_info end |
#payload ⇒ Hash<String,Object>
Custom data set in QueryParameters.payload.
Corresponds to the JSON property payload
2159 2160 2161 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2159 def payload @payload end |
#session_info ⇒ Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo
Represents session information communicated to and from the webhook.
Corresponds to the JSON property sessionInfo
2164 2165 2166 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2164 def session_info @session_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2171 2172 2173 2174 2175 2176 2177 2178 2179 |
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2171 def update!(**args) @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id) @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info) @intent_info = args[:intent_info] if args.key?(:intent_info) @messages = args[:messages] if args.key?(:messages) @page_info = args[:page_info] if args.key?(:page_info) @payload = args[:payload] if args.key?(:payload) @session_info = args[:session_info] if args.key?(:session_info) end |