Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Overview

Rubric details of the completeness evaluation result.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric

Returns a new instance of GoogleCloudDialogflowV2SummarizationEvaluationMetricsCompletenessRubric.



18173
18174
18175
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18173

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

Instance Attribute Details

#is_addressedBoolean Also known as: is_addressed?

Output only. A boolean that indicates whether the rubric question is addressed or not. Corresponds to the JSON property isAddressed

Returns:

  • (Boolean)


18164
18165
18166
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18164

def is_addressed
  @is_addressed
end

#questionString

Output only. The question generated from instruction that used to evaluate summary. Corresponds to the JSON property question

Returns:

  • (String)


18171
18172
18173
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18171

def question
  @question
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18178
18179
18180
18181
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 18178

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