<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/contactcenterinsights/v1/resources.proto

namespace Google\Cloud\ContactCenterInsights\V1\QaQuestion;

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

/**
 * A wrapper representing metrics calculated against a test-set on a LLM that
 * was fine tuned for this question.
 *
 * Generated from protobuf message <code>google.cloud.contactcenterinsights.v1.QaQuestion.Metrics</code>
 */
class Metrics extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Accuracy of the model. Measures the percentage of correct
     * answers the model gave on the test set.
     *
     * Generated from protobuf field <code>double accuracy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $accuracy = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type float $accuracy
     *           Output only. Accuracy of the model. Measures the percentage of correct
     *           answers the model gave on the test set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Contactcenterinsights\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Accuracy of the model. Measures the percentage of correct
     * answers the model gave on the test set.
     *
     * Generated from protobuf field <code>double accuracy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return float
     */
    public function getAccuracy()
    {
        return $this->accuracy;
    }

    /**
     * Output only. Accuracy of the model. Measures the percentage of correct
     * answers the model gave on the test set.
     *
     * Generated from protobuf field <code>double accuracy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param float $var
     * @return $this
     */
    public function setAccuracy($var)
    {
        GPBUtil::checkDouble($var);
        $this->accuracy = $var;

        return $this;
    }

}

