Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse

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

The response message for TestCases.CalculateCoverage.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse

Returns a new instance of GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse.



2559
2560
2561
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2559

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)


2545
2546
2547
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2545

def agent
  @agent
end

#intent_coverageGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentCoverage

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



2551
2552
2553
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2551

def intent_coverage
  @intent_coverage
end

#transition_coverageGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverage

Transition coverage represents the percentage of all possible transitions present within any of a parent's test cases. Corresponds to the JSON property transitionCoverage



2557
2558
2559
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2557

def transition_coverage
  @transition_coverage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2564
2565
2566
2567
2568
# File 'generated/google/apis/dialogflow_v3beta1/classes.rb', line 2564

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