<?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;

/**
 * Rubric details of the completeness evaluation result.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.SummarizationEvaluationMetrics.CompletenessRubric</code>
 */
class CompletenessRubric extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The question generated from instruction that used to
     * evaluate summary.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $question = '';
    /**
     * Output only. A boolean that indicates whether the rubric question is
     * addressed or not.
     *
     * Generated from protobuf field <code>optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $is_addressed = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $question
     *           Output only. The question generated from instruction that used to
     *           evaluate summary.
     *     @type bool $is_addressed
     *           Output only. A boolean that indicates whether the rubric question is
     *           addressed or not.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\GeneratorEvaluation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The question generated from instruction that used to
     * evaluate summary.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getQuestion()
    {
        return $this->question;
    }

    /**
     * Output only. The question generated from instruction that used to
     * evaluate summary.
     *
     * Generated from protobuf field <code>string question = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setQuestion($var)
    {
        GPBUtil::checkString($var, True);
        $this->question = $var;

        return $this;
    }

    /**
     * Output only. A boolean that indicates whether the rubric question is
     * addressed or not.
     *
     * Generated from protobuf field <code>optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return bool
     */
    public function getIsAddressed()
    {
        return isset($this->is_addressed) ? $this->is_addressed : false;
    }

    public function hasIsAddressed()
    {
        return isset($this->is_addressed);
    }

    public function clearIsAddressed()
    {
        unset($this->is_addressed);
    }

    /**
     * Output only. A boolean that indicates whether the rubric question is
     * addressed or not.
     *
     * Generated from protobuf field <code>optional bool is_addressed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param bool $var
     * @return $this
     */
    public function setIsAddressed($var)
    {
        GPBUtil::checkBool($var);
        $this->is_addressed = $var;

        return $this;
    }

}

