<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_agent_dispatch.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ListAgentDispatchRequesst</code>
 */
class ListAgentDispatchRequesst extends \Google\Protobuf\Internal\Message
{
    /**
     * if set, only the dispatch whose id is given will be returned
     *
     * Generated from protobuf field <code>string dispatch_id = 1;</code>
     */
    protected $dispatch_id = '';
    /**
     * name of the room to list agents for. Must be set.
     *
     * Generated from protobuf field <code>string room = 2;</code>
     */
    protected $room = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $dispatch_id
     *           if set, only the dispatch whose id is given will be returned
     *     @type string $room
     *           name of the room to list agents for. Must be set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentDispatch::initOnce();
        parent::__construct($data);
    }

    /**
     * if set, only the dispatch whose id is given will be returned
     *
     * Generated from protobuf field <code>string dispatch_id = 1;</code>
     * @return string
     */
    public function getDispatchId()
    {
        return $this->dispatch_id;
    }

    /**
     * if set, only the dispatch whose id is given will be returned
     *
     * Generated from protobuf field <code>string dispatch_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setDispatchId($var)
    {
        GPBUtil::checkString($var, True);
        $this->dispatch_id = $var;

        return $this;
    }

    /**
     * name of the room to list agents for. Must be set.
     *
     * Generated from protobuf field <code>string room = 2;</code>
     * @return string
     */
    public function getRoom()
    {
        return $this->room;
    }

    /**
     * name of the room to list agents for. Must be set.
     *
     * Generated from protobuf field <code>string room = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setRoom($var)
    {
        GPBUtil::checkString($var, True);
        $this->room = $var;

        return $this;
    }

}

