Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverage

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

Transition coverage represents the percentage of all possible transitions present within any of a parent's test cases.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1TransitionCoverage

Returns a new instance of GoogleCloudDialogflowCxV3beta1TransitionCoverage.



6233
6234
6235
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6233

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

Instance Attribute Details

#coverage_scoreFloat

The percent of transitions in the agent that are covered. Corresponds to the JSON property coverageScore

Returns:

  • (Float)


6226
6227
6228
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6226

def coverage_score
  @coverage_score
end

#transitionsArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition>

The list of Transitions present in the agent. Corresponds to the JSON property transitions



6231
6232
6233
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6231

def transitions
  @transitions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6238
6239
6240
6241
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 6238

def update!(**args)
  @coverage_score = args[:coverage_score] if args.key?(:coverage_score)
  @transitions = args[:transitions] if args.key?(:transitions)
end