class Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1WebhookRequest

The request message for a webhook call.

Attributes

alternative_query_results[RW]

Alternative query results from KnowledgeService. Corresponds to the JSON property `alternativeQueryResults` @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1QueryResult>]

original_detect_intent_request[RW]

Represents the contents of the original request that was passed to the `[ Streaming]DetectIntent` call. Corresponds to the JSON property `originalDetectIntentRequest` @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest]

query_result[RW]

Represents the result of conversational query or event processing. Corresponds to the JSON property `queryResult` @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1QueryResult]

response_id[RW]

The unique identifier of the response. Contains the same value as `[Streaming] DetectIntentResponse.response_id`. Corresponds to the JSON property `responseId` @return [String]

session[RW]

The unique identifier of detectIntent request session. Can be used to identify end-user inside webhook implementation. Supported formats: - `projects//agent/ sessions/, - `projects//locations//agent/sessions/`, - `projects//agent/ environments//users//sessions/`, - `projects//locations//agent/environments// users//sessions/`, Corresponds to the JSON property `session` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v3beta1/classes.rb, line 13759
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_v3beta1/classes.rb, line 13764
def update!(**args)
  @alternative_query_results = args[:alternative_query_results] if args.key?(:alternative_query_results)
  @original_detect_intent_request = args[:original_detect_intent_request] if args.key?(:original_detect_intent_request)
  @query_result = args[:query_result] if args.key?(:query_result)
  @response_id = args[:response_id] if args.key?(:response_id)
  @session = args[:session] if args.key?(:session)
end