View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2WebhookRequest (google_api_dialogflow v0.88.2)

The request message for a webhook call.

Attributes

  • originalDetectIntentRequest (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2OriginalDetectIntentRequest.t, default: nil) - Optional. The contents of the original request that was passed to [Streaming]DetectIntent call.
  • queryResult (type: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryResult.t, default: nil) - The result of the conversational query or event processing. Contains the same value as [Streaming]DetectIntentResponse.query_result.
  • responseId (type: String.t, default: nil) - The unique identifier of the response. Contains the same value as [Streaming]DetectIntentResponse.response_id.
  • session (type: String.t, default: nil) - The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Format: projects//agent/sessions/, or projects//agent/environments//users//sessions/.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2WebhookRequest{
  originalDetectIntentRequest:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2OriginalDetectIntentRequest.t()
    | nil,
  queryResult:
    GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowV2QueryResult.t() | nil,
  responseId: String.t() | nil,
  session: String.t() | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.