Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentCoverage

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1IntentCoverage

Returns a new instance of GoogleCloudDialogflowCxV3beta1IntentCoverage.



5397
5398
5399
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5397

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

Instance Attribute Details

#coverage_scoreFloat

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

Returns:

  • (Float)


5390
5391
5392
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5390

def coverage_score
  @coverage_score
end

#intentsArray<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentCoverageIntent>

The list of Intents present in the agent Corresponds to the JSON property intents



5395
5396
5397
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5395

def intents
  @intents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5402
5403
5404
5405
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 5402

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