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

namespace Google\Cloud\AIPlatform\V1;

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

/**
 * Response message for
 * [VizierService.CheckTrialEarlyStoppingState][google.cloud.aiplatform.v1.VizierService.CheckTrialEarlyStoppingState].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse</code>
 */
class CheckTrialEarlyStoppingStateResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * True if the Trial should stop.
     *
     * Generated from protobuf field <code>bool should_stop = 1;</code>
     */
    private $should_stop = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $should_stop
     *           True if the Trial should stop.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\VizierService::initOnce();
        parent::__construct($data);
    }

    /**
     * True if the Trial should stop.
     *
     * Generated from protobuf field <code>bool should_stop = 1;</code>
     * @return bool
     */
    public function getShouldStop()
    {
        return $this->should_stop;
    }

    /**
     * True if the Trial should stop.
     *
     * Generated from protobuf field <code>bool should_stop = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setShouldStop($var)
    {
        GPBUtil::checkBool($var);
        $this->should_stop = $var;

        return $this;
    }

}

