Google Cloud Dialogflow V2 Client - Class MetricDetail (2.3.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class MetricDetail.

Aggregated result on metric level. This conatins the evaluation results of all the sections.

Generated from protobuf message google.cloud.dialogflow.v2.SummarizationEvaluationMetrics.ConversationDetail.MetricDetail

Namespace

Google \ Cloud \ Dialogflow \ V2 \ SummarizationEvaluationMetrics \ ConversationDetail

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metric string

Output only. Metrics name. e.g. accuracy, adherence, completeness.

↳ score float

Output only. Aggregated(average) score on this metric across all sections.

↳ section_details array<MetricDetail\SectionDetail>

Output only. List of section details.

getMetric

Output only. Metrics name. e.g. accuracy, adherence, completeness.

Returns
Type Description
string

setMetric

Output only. Metrics name. e.g. accuracy, adherence, completeness.

Parameter
Name Description
var string
Returns
Type Description
$this

getScore

Output only. Aggregated(average) score on this metric across all sections.

Returns
Type Description
float

hasScore

clearScore

setScore

Output only. Aggregated(average) score on this metric across all sections.

Parameter
Name Description
var float
Returns
Type Description
$this

getSectionDetails

Output only. List of section details.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSectionDetails

Output only. List of section details.

Parameter
Name Description
var array<MetricDetail\SectionDetail>
Returns
Type Description
$this