Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentCoverage

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

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) ⇒ GoogleCloudDialogflowCxV3IntentCoverage

Returns a new instance of GoogleCloudDialogflowCxV3IntentCoverage.



4051
4052
4053
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4051

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)


4044
4045
4046
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4044

def coverage_score
  @coverage_score
end

#intentsArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3IntentCoverageIntent>

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



4049
4050
4051
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4049

def intents
  @intents
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4056
4057
4058
4059
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 4056

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