Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition

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

Overview

A transition in a page.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition

Returns a new instance of GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition.



8106
8107
8108
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8106

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

Instance Attribute Details

#coveredBoolean Also known as: covered?

Whether or not the transition is covered by at least one of the agent's test cases. Corresponds to the JSON property covered

Returns:

  • (Boolean)


8067
8068
8069
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8067

def covered
  @covered
end

#event_handlerGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1EventHandler

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_page associated with the event, the session will transition into the specified page. * If there is a target_flow associated with the event, the session will transition into the specified flow. Corresponds to the JSON property eventHandler


8078
8079
8080
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8078

def event_handler
  @event_handler
end

#indexFixnum

The index of a transition in the transition list. Starting from 0. Corresponds to the JSON property index

Returns:

  • (Fixnum)


8083
8084
8085
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8083

def index
  @index
end

#sourceGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode

The source or target of a transition. Corresponds to the JSON property source



8088
8089
8090
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8088

def source
  @source
end

#targetGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode

The source or target of a transition. Corresponds to the JSON property target



8093
8094
8095
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8093

def target
  @target
end

#transition_routeGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRoute

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



8104
8105
8106
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8104

def transition_route
  @transition_route
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8111
8112
8113
8114
8115
8116
8117
8118
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 8111

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