<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * Decomposition details for accuracy.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SummarizationEvaluationMetrics.AccuracyDecomposition</code>
 */
class AccuracyDecomposition extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The breakdown point of the summary.
     *
     * Generated from protobuf field <code>string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $point = '';
    /**
     * Output only. The accuracy reasoning of the breakdown point.
     *
     * Generated from protobuf field <code>string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $accuracy_reasoning = '';
    /**
     * Output only. Whether the breakdown point is accurate or not.
     *
     * Generated from protobuf field <code>optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $is_accurate = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $point
     *           Output only. The breakdown point of the summary.
     *     @type string $accuracy_reasoning
     *           Output only. The accuracy reasoning of the breakdown point.
     *     @type bool $is_accurate
     *           Output only. Whether the breakdown point is accurate or not.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\GeneratorEvaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The breakdown point of the summary.
     *
     * Generated from protobuf field <code>string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPoint()
    {
        return $this->point;
    }

    /**
     * Output only. The breakdown point of the summary.
     *
     * Generated from protobuf field <code>string point = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPoint($var)
    {
        GPBUtil::checkString($var, True);
        $this->point = $var;

        return $this;
    }

    /**
     * Output only. The accuracy reasoning of the breakdown point.
     *
     * Generated from protobuf field <code>string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getAccuracyReasoning()
    {
        return $this->accuracy_reasoning;
    }

    /**
     * Output only. The accuracy reasoning of the breakdown point.
     *
     * Generated from protobuf field <code>string accuracy_reasoning = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setAccuracyReasoning($var)
    {
        GPBUtil::checkString($var, True);
        $this->accuracy_reasoning = $var;

        return $this;
    }

    /**
     * Output only. Whether the breakdown point is accurate or not.
     *
     * Generated from protobuf field <code>optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return bool
     */
    public function getIsAccurate()
    {
        return isset($this->is_accurate) ? $this->is_accurate : false;
    }

    public function hasIsAccurate()
    {
        return isset($this->is_accurate);
    }

    public function clearIsAccurate()
    {
        unset($this->is_accurate);
    }

    /**
     * Output only. Whether the breakdown point is accurate or not.
     *
     * Generated from protobuf field <code>optional bool is_accurate = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAccurate($var)
    {
        GPBUtil::checkBool($var);
        $this->is_accurate = $var;

        return $this;
    }

}

