class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequest
The request message for a webhook call. The request is sent as a JSON object and the field names will be presented in camel cases.
Attributes
Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller. Corresponds to the JSON property `detectIntentResponseId` @return [String]
Represents fulfillment information communicated to the webhook. Corresponds to the JSON property `fulfillmentInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo]
Represents intent information communicated to the webhook. Corresponds to the JSON property `intentInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
The language code specified in the original request. Corresponds to the JSON property `languageCode` @return [String]
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` @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ResponseMessage>]
Represents page information communicated to and from the webhook. Corresponds to the JSON property `pageInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3PageInfo]
Custom data set in QueryParameters.payload. Corresponds to the JSON property `payload` @return [Hash<String,Object>]
Represents the result of sentiment analysis. Corresponds to the JSON property `sentimentAnalysisResult` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult]
Represents session information communicated to and from the webhook. Corresponds to the JSON property `sessionInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3SessionInfo]
If natural language text was provided as input, this field will contain a copy of the text. Corresponds to the JSON property `text` @return [String]
If natural language speech audio was provided as input, this field will contain the transcript for the audio. Corresponds to the JSON property `transcript` @return [String]
If an event was provided as input, this field will contain the name of the event. Corresponds to the JSON property `triggerEvent` @return [String]
If an intent was provided as input, this field will contain a copy of the intent identifier. Format: `projects//locations//agents//intents/`. Corresponds to the JSON property `triggerIntent` @return [String]
Public Class Methods
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 2355 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 2360 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) @language_code = args[:language_code] if args.key?(:language_code) @messages = args[:messages] if args.key?(:messages) @page_info = args[:page_info] if args.key?(:page_info) @payload = args[:payload] if args.key?(:payload) @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result) @session_info = args[:session_info] if args.key?(:session_info) @text = args[:text] if args.key?(:text) @transcript = args[:transcript] if args.key?(:transcript) @trigger_event = args[:trigger_event] if args.key?(:trigger_event) @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent) end