Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3CalculateCoverageResponse

Inherits:
Object
  • Object
show all
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

The response message for TestCases.CalculateCoverage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3CalculateCoverageResponse

Returns a new instance of GoogleCloudDialogflowCxV3CalculateCoverageResponse.



851
852
853
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 851

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

Instance Attribute Details

#agentString

The agent to calculate coverage for. Format: projects//locations//agents/. Corresponds to the JSON property agent

Returns:

  • (String)


829
830
831
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 829

def agent
  @agent
end

#intent_coverageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentCoverage

Intent coverage represents the percentage of all possible intents in the agent that are triggered in any of a parent's test cases. Corresponds to the JSON property intentCoverage



835
836
837
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 835

def intent_coverage
  @intent_coverage
end

#route_group_coverageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage

Transition route group coverage represents the percentage of all possible transition routes present within any of a parent's test cases. The results are grouped by the transition route group. Corresponds to the JSON property routeGroupCoverage



842
843
844
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 842

def route_group_coverage
  @route_group_coverage
end

#transition_coverageGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionCoverage

Transition coverage represents the percentage of all possible page transitions (page-level transition routes and event handlers, excluding transition route groups) present within any of a parent's test cases. Corresponds to the JSON property transitionCoverage



849
850
851
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 849

def transition_coverage
  @transition_coverage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



856
857
858
859
860
861
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 856

def update!(**args)
  @agent = args[:agent] if args.key?(:agent)
  @intent_coverage = args[:intent_coverage] if args.key?(:intent_coverage)
  @route_group_coverage = args[:route_group_coverage] if args.key?(:route_group_coverage)
  @transition_coverage = args[:transition_coverage] if args.key?(:transition_coverage)
end