Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequest

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

Overview

The request message for a webhook call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1WebhookRequest

Returns a new instance of GoogleCloudDialogflowCxV3beta1WebhookRequest.



6691
6692
6693
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6691

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)


6658
6659
6660
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6658

def detect_intent_response_id
  @detect_intent_response_id
end

#fulfillment_infoGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo

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



6663
6664
6665
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6663

def fulfillment_info
  @fulfillment_info
end

#intent_infoGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo

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



6668
6669
6670
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6668

def intent_info
  @intent_info
end

#messagesArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>

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



6674
6675
6676
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6674

def messages
  @messages
end

#page_infoGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1PageInfo

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



6679
6680
6681
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6679

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>)


6684
6685
6686
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6684

def payload
  @payload
end

#session_infoGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo

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



6689
6690
6691
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6689

def session_info
  @session_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6696
6697
6698
6699
6700
6701
6702
6703
6704
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6696

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