Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookResponse

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

Overview

The response message for a webhook call.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3WebhookResponse

Returns a new instance of GoogleCloudDialogflowCxV3WebhookResponse.



3533
3534
3535
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3533

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

Instance Attribute Details

#fulfillment_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse

Represents a fulfillment response to the user. Corresponds to the JSON property fulfillmentResponse



3504
3505
3506
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3504

def fulfillment_response
  @fulfillment_response
end

#page_infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfo

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



3509
3510
3511
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3509

def page_info
  @page_info
end

#payloadHash<String,Object>

Value to append directly to QueryResult.webhook_payloads. Corresponds to the JSON property payload

Returns:

  • (Hash<String,Object>)


3514
3515
3516
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3514

def payload
  @payload
end

#session_infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo

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



3519
3520
3521
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3519

def session_info
  @session_info
end

#target_flowString

The target flow to transition to. Format: projects//locations//agents//flows/ . Corresponds to the JSON property targetFlow

Returns:

  • (String)


3525
3526
3527
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3525

def target_flow
  @target_flow
end

#target_pageString

The target page to transition to. Format: projects//locations//agents//flows// pages/. Corresponds to the JSON property targetPage

Returns:

  • (String)


3531
3532
3533
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3531

def target_page
  @target_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3538
3539
3540
3541
3542
3543
3544
3545
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 3538

def update!(**args)
  @fulfillment_response = args[:fulfillment_response] if args.key?(:fulfillment_response)
  @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)
  @target_flow = args[:target_flow] if args.key?(:target_flow)
  @target_page = args[:target_page] if args.key?(:target_page)
end