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

namespace Google\Cloud\DocumentAI\V1;

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

/**
 * Gives a short summary of an evaluation, and links to the evaluation itself.
 *
 * Generated from protobuf message <code>google.cloud.documentai.v1.EvaluationReference</code>
 */
class EvaluationReference extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the Long Running Operation for the evaluation.
     *
     * Generated from protobuf field <code>string operation = 1;</code>
     */
    protected $operation = '';
    /**
     * The resource name of the evaluation.
     *
     * Generated from protobuf field <code>string evaluation = 2 [(.google.api.resource_reference) = {</code>
     */
    protected $evaluation = '';
    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4;</code>
     */
    protected $aggregate_metrics = null;
    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5;</code>
     */
    protected $aggregate_metrics_exact = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $operation
     *           The resource name of the Long Running Operation for the evaluation.
     *     @type string $evaluation
     *           The resource name of the evaluation.
     *     @type \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $aggregate_metrics
     *           An aggregate of the statistics for the evaluation with fuzzy matching on.
     *     @type \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $aggregate_metrics_exact
     *           An aggregate of the statistics for the evaluation with fuzzy matching off.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Documentai\V1\Evaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the Long Running Operation for the evaluation.
     *
     * Generated from protobuf field <code>string operation = 1;</code>
     * @return string
     */
    public function getOperation()
    {
        return $this->operation;
    }

    /**
     * The resource name of the Long Running Operation for the evaluation.
     *
     * Generated from protobuf field <code>string operation = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setOperation($var)
    {
        GPBUtil::checkString($var, True);
        $this->operation = $var;

        return $this;
    }

    /**
     * The resource name of the evaluation.
     *
     * Generated from protobuf field <code>string evaluation = 2 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getEvaluation()
    {
        return $this->evaluation;
    }

    /**
     * The resource name of the evaluation.
     *
     * Generated from protobuf field <code>string evaluation = 2 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setEvaluation($var)
    {
        GPBUtil::checkString($var, True);
        $this->evaluation = $var;

        return $this;
    }

    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4;</code>
     * @return \Google\Cloud\DocumentAI\V1\Evaluation\Metrics|null
     */
    public function getAggregateMetrics()
    {
        return $this->aggregate_metrics;
    }

    public function hasAggregateMetrics()
    {
        return isset($this->aggregate_metrics);
    }

    public function clearAggregateMetrics()
    {
        unset($this->aggregate_metrics);
    }

    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching on.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics = 4;</code>
     * @param \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $var
     * @return $this
     */
    public function setAggregateMetrics($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Metrics::class);
        $this->aggregate_metrics = $var;

        return $this;
    }

    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5;</code>
     * @return \Google\Cloud\DocumentAI\V1\Evaluation\Metrics|null
     */
    public function getAggregateMetricsExact()
    {
        return $this->aggregate_metrics_exact;
    }

    public function hasAggregateMetricsExact()
    {
        return isset($this->aggregate_metrics_exact);
    }

    public function clearAggregateMetricsExact()
    {
        unset($this->aggregate_metrics_exact);
    }

    /**
     * An aggregate of the statistics for the evaluation with fuzzy matching off.
     *
     * Generated from protobuf field <code>.google.cloud.documentai.v1.Evaluation.Metrics aggregate_metrics_exact = 5;</code>
     * @param \Google\Cloud\DocumentAI\V1\Evaluation\Metrics $var
     * @return $this
     */
    public function setAggregateMetricsExact($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DocumentAI\V1\Evaluation\Metrics::class);
        $this->aggregate_metrics_exact = $var;

        return $this;
    }

}

