class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequest

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

detect_intent_response_id[RW]

Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller. Corresponds to the JSON property `detectIntentResponseId` @return [String]

fulfillment_info[RW]

Represents fulfillment information communicated to the webhook. Corresponds to the JSON property `fulfillmentInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo]

intent_info[RW]

Represents intent information communicated to the webhook. Corresponds to the JSON property `intentInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]

language_code[RW]

The language code specified in the original request. Corresponds to the JSON property `languageCode` @return [String]

messages[RW]

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::GoogleCloudDialogflowCxV3beta1ResponseMessage>]

page_info[RW]

Represents page information communicated to and from the webhook. Corresponds to the JSON property `pageInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfo]

payload[RW]

Custom data set in QueryParameters.payload. Corresponds to the JSON property `payload` @return [Hash<String,Object>]

sentiment_analysis_result[RW]

Represents the result of sentiment analysis. Corresponds to the JSON property `sentimentAnalysisResult` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult]

session_info[RW]

Represents session information communicated to and from the webhook. Corresponds to the JSON property `sessionInfo` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]

text[RW]

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]

transcript[RW]

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]

trigger_event[RW]

If an event was provided as input, this field will contain the name of the event. Corresponds to the JSON property `triggerEvent` @return [String]

trigger_intent[RW]

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

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 4896
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 4901
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