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

namespace Google\Cloud\Dialogflow\Cx\V3\IntentCoverage;

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

/**
 * The agent's intent.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.IntentCoverage.Intent</code>
 */
class Intent extends \Google\Protobuf\Internal\Message
{
    /**
     * The intent full resource name
     *
     * Generated from protobuf field <code>string intent = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $intent = '';
    /**
     * Whether the intent is covered by at least one of the agent's
     * test cases.
     *
     * Generated from protobuf field <code>bool covered = 2;</code>
     */
    protected $covered = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $intent
     *           The intent full resource name
     *     @type bool $covered
     *           Whether the intent is covered by at least one of the agent's
     *           test cases.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\TestCase::initOnce();
        parent::__construct($data);
    }

    /**
     * The intent full resource name
     *
     * Generated from protobuf field <code>string intent = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getIntent()
    {
        return $this->intent;
    }

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

        return $this;
    }

    /**
     * Whether the intent is covered by at least one of the agent's
     * test cases.
     *
     * Generated from protobuf field <code>bool covered = 2;</code>
     * @return bool
     */
    public function getCovered()
    {
        return $this->covered;
    }

    /**
     * Whether the intent is covered by at least one of the agent's
     * test cases.
     *
     * Generated from protobuf field <code>bool covered = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setCovered($var)
    {
        GPBUtil::checkBool($var);
        $this->covered = $var;

        return $this;
    }

}


