<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/generator_evaluation.proto

namespace Google\Cloud\Dialogflow\V2\SummarizationEvaluationMetrics;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * Overall performance per metric. This is the aggregated score for each
 * metric across all conversations that are selected for summarization
 * evaluation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SummarizationEvaluationMetrics.OverallScoresByMetric</code>
 */
class OverallScoresByMetric extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Metric name. e.g. accuracy, adherence, completeness.
     *
     * Generated from protobuf field <code>string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $metric = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $metric
     *           Output only. Metric name. e.g. accuracy, adherence, completeness.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\GeneratorEvaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Metric name. e.g. accuracy, adherence, completeness.
     *
     * Generated from protobuf field <code>string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getMetric()
    {
        return $this->metric;
    }

    /**
     * Output only. Metric name. e.g. accuracy, adherence, completeness.
     *
     * Generated from protobuf field <code>string metric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setMetric($var)
    {
        GPBUtil::checkString($var, True);
        $this->metric = $var;

        return $this;
    }

}


