Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v3/classes.rb,
generated/google/apis/dialogflow_v3/representations.rb,
generated/google/apis/dialogflow_v3/representations.rb

Overview

The request message for a webhook call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookRequest

Returns a new instance of GoogleCloudDialogflowCxV3WebhookRequest.



4384
4385
4386
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4384

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#detect_intent_response_idString

Always present. The unique identifier of the DetectIntentResponse that will be returned to the API caller. Corresponds to the JSON property detectIntentResponseId

Returns:

  • (String)


4351
4352
4353
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4351

def detect_intent_response_id
  @detect_intent_response_id
end

#fulfillment_infoGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo

Represents fulfillment information communicated to the webhook. Corresponds to the JSON property fulfillmentInfo



4356
4357
4358
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4356

def fulfillment_info
  @fulfillment_info
end

#intent_infoGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo

Represents intent information communicated to the webhook. Corresponds to the JSON property intentInfo



4361
4362
4363
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4361

def intent_info
  @intent_info
end

#messagesArray<Google::Apis::DialogflowV3::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



4367
4368
4369
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4367

def messages
  @messages
end

#page_infoGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3PageInfo

Represents page information communicated to and from the webhook. Corresponds to the JSON property pageInfo



4372
4373
4374
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4372

def page_info
  @page_info
end

#payloadHash<String,Object>

Custom data set in QueryParameters.payload. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


4377
4378
4379
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4377

def payload
  @payload
end

#session_infoGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo

Represents session information communicated to and from the webhook. Corresponds to the JSON property sessionInfo



4382
4383
4384
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4382

def session_info
  @session_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4389
4390
4391
4392
4393
4394
4395
4396
4397
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 4389

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