Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransition
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
A transition in a page.
Instance Attribute Summary collapse
-
#covered ⇒ Boolean
(also: #covered?)
Whether the transition is covered by at least one of the agent's test cases.
-
#event_handler ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler
An event handler specifies an event that can be handled during a session.
-
#index ⇒ Fixnum
The index of a transition in the transition list.
-
#source ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode
The source or target of a transition.
-
#target ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode
The source or target of a transition.
-
#transition_route ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute
A transition route specifies a intent that can be matched and/or a data condition that can be evaluated during a session.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3TransitionCoverageTransition
constructor
A new instance of GoogleCloudDialogflowCxV3TransitionCoverageTransition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3TransitionCoverageTransition
Returns a new instance of GoogleCloudDialogflowCxV3TransitionCoverageTransition.
7012 7013 7014 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7012 def initialize(**args) update!(**args) end |
Instance Attribute Details
#covered ⇒ Boolean Also known as: covered?
Whether the transition is covered by at least one of the agent's test cases.
Corresponds to the JSON property covered
6973 6974 6975 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6973 def covered @covered end |
#event_handler ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler
An event handler specifies an event that can be handled during a session. When
the specified event happens, the following actions are taken in order: * If
there is a trigger_fulfillment associated with the event, it will be called.
- If there is a
target_pageassociated with the event, the session will transition into the specified page. * If there is atarget_flowassociated with the event, the session will transition into the specified flow. Corresponds to the JSON propertyeventHandler
6984 6985 6986 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6984 def event_handler @event_handler end |
#index ⇒ Fixnum
The index of a transition in the transition list. Starting from 0.
Corresponds to the JSON property index
6989 6990 6991 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6989 def index @index end |
#source ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode
The source or target of a transition.
Corresponds to the JSON property source
6994 6995 6996 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6994 def source @source end |
#target ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode
The source or target of a transition.
Corresponds to the JSON property target
6999 7000 7001 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 6999 def target @target end |
#transition_route ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute
A transition route specifies a intent that can be matched and/or a data
condition that can be evaluated during a session. When a specified transition
is matched, the following actions are taken in order: * If there is a
trigger_fulfillment associated with the transition, it will be called. * If
there is a target_page associated with the transition, the session will
transition into the specified page. * If there is a target_flow associated
with the transition, the session will transition into the specified flow.
Corresponds to the JSON property transitionRoute
7010 7011 7012 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7010 def transition_route @transition_route end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7017 7018 7019 7020 7021 7022 7023 7024 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 7017 def update!(**args) @covered = args[:covered] if args.key?(:covered) @event_handler = args[:event_handler] if args.key?(:event_handler) @index = args[:index] if args.key?(:index) @source = args[:source] if args.key?(:source) @target = args[:target] if args.key?(:target) @transition_route = args[:transition_route] if args.key?(:transition_route) end |