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

namespace Google\Cloud\Dialogflow\Cx\V3;

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

/**
 * The response message for
 * [Environments.RunContinuousTest][google.cloud.dialogflow.cx.v3.Environments.RunContinuousTest].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.RunContinuousTestResponse</code>
 */
class RunContinuousTestResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The result for a continuous test run.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1;</code>
     */
    protected $continuous_test_result = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dialogflow\Cx\V3\ContinuousTestResult $continuous_test_result
     *           The result for a continuous test run.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Environment::initOnce();
        parent::__construct($data);
    }

    /**
     * The result for a continuous test run.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1;</code>
     * @return \Google\Cloud\Dialogflow\Cx\V3\ContinuousTestResult|null
     */
    public function getContinuousTestResult()
    {
        return $this->continuous_test_result;
    }

    public function hasContinuousTestResult()
    {
        return isset($this->continuous_test_result);
    }

    public function clearContinuousTestResult()
    {
        unset($this->continuous_test_result);
    }

    /**
     * The result for a continuous test run.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.cx.v3.ContinuousTestResult continuous_test_result = 1;</code>
     * @param \Google\Cloud\Dialogflow\Cx\V3\ContinuousTestResult $var
     * @return $this
     */
    public function setContinuousTestResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\Cx\V3\ContinuousTestResult::class);
        $this->continuous_test_result = $var;

        return $this;
    }

}

