Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfo

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

Represents page information communicated to and from the webhook.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3PageInfo

Returns a new instance of GoogleCloudDialogflowCxV3PageInfo.



2057
2058
2059
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2057

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

Instance Attribute Details

#current_pageString

Always present for WebhookRequest. Ignored for WebhookResponse. The unique identifier of the current page. Format: projects//locations//agents//flows// pages/. Corresponds to the JSON property currentPage

Returns:

  • (String)


2044
2045
2046
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2044

def current_page
  @current_page
end

#display_nameString

Always present for WebhookRequest. Ignored for WebhookResponse. The display name of the current page. Corresponds to the JSON property displayName

Returns:

  • (String)


2050
2051
2052
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2050

def display_name
  @display_name
end

#form_infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfoFormInfo

Represents form information. Corresponds to the JSON property formInfo



2055
2056
2057
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2055

def form_info
  @form_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2062
2063
2064
2065
2066
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 2062

def update!(**args)
  @current_page = args[:current_page] if args.key?(:current_page)
  @display_name = args[:display_name] if args.key?(:display_name)
  @form_info = args[:form_info] if args.key?(:form_info)
end