<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/devtools/clouddebugger/v2/controller.proto

namespace Google\Cloud\Debugger\V2;

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

/**
 * Response for listing active breakpoints.
 *
 * Generated from protobuf message <code>google.devtools.clouddebugger.v2.ListActiveBreakpointsResponse</code>
 */
class ListActiveBreakpointsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of all active breakpoints.
     * The fields `id` and `location` are guaranteed to be set on each breakpoint.
     *
     * Generated from protobuf field <code>repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1;</code>
     */
    private $breakpoints;
    /**
     * A token that can be used in the next method call to block until
     * the list of breakpoints changes.
     *
     * Generated from protobuf field <code>string next_wait_token = 2;</code>
     */
    private $next_wait_token = '';
    /**
     * If set to `true`, indicates that there is no change to the
     * list of active breakpoints and the server-selected timeout has expired.
     * The `breakpoints` field would be empty and should be ignored.
     *
     * Generated from protobuf field <code>bool wait_expired = 3;</code>
     */
    private $wait_expired = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Debugger\V2\Breakpoint[]|\Google\Protobuf\Internal\RepeatedField $breakpoints
     *           List of all active breakpoints.
     *           The fields `id` and `location` are guaranteed to be set on each breakpoint.
     *     @type string $next_wait_token
     *           A token that can be used in the next method call to block until
     *           the list of breakpoints changes.
     *     @type bool $wait_expired
     *           If set to `true`, indicates that there is no change to the
     *           list of active breakpoints and the server-selected timeout has expired.
     *           The `breakpoints` field would be empty and should be ignored.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Devtools\Clouddebugger\V2\Controller::initOnce();
        parent::__construct($data);
    }

    /**
     * List of all active breakpoints.
     * The fields `id` and `location` are guaranteed to be set on each breakpoint.
     *
     * Generated from protobuf field <code>repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBreakpoints()
    {
        return $this->breakpoints;
    }

    /**
     * List of all active breakpoints.
     * The fields `id` and `location` are guaranteed to be set on each breakpoint.
     *
     * Generated from protobuf field <code>repeated .google.devtools.clouddebugger.v2.Breakpoint breakpoints = 1;</code>
     * @param \Google\Cloud\Debugger\V2\Breakpoint[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBreakpoints($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Debugger\V2\Breakpoint::class);
        $this->breakpoints = $arr;

        return $this;
    }

    /**
     * A token that can be used in the next method call to block until
     * the list of breakpoints changes.
     *
     * Generated from protobuf field <code>string next_wait_token = 2;</code>
     * @return string
     */
    public function getNextWaitToken()
    {
        return $this->next_wait_token;
    }

    /**
     * A token that can be used in the next method call to block until
     * the list of breakpoints changes.
     *
     * Generated from protobuf field <code>string next_wait_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextWaitToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_wait_token = $var;

        return $this;
    }

    /**
     * If set to `true`, indicates that there is no change to the
     * list of active breakpoints and the server-selected timeout has expired.
     * The `breakpoints` field would be empty and should be ignored.
     *
     * Generated from protobuf field <code>bool wait_expired = 3;</code>
     * @return bool
     */
    public function getWaitExpired()
    {
        return $this->wait_expired;
    }

    /**
     * If set to `true`, indicates that there is no change to the
     * list of active breakpoints and the server-selected timeout has expired.
     * The `breakpoints` field would be empty and should be ignored.
     *
     * Generated from protobuf field <code>bool wait_expired = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setWaitExpired($var)
    {
        GPBUtil::checkBool($var);
        $this->wait_expired = $var;

        return $this;
    }

}

