<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_egress.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.ListEgressRequest</code>
 */
class ListEgressRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * (optional, filter by room name)
     *
     * Generated from protobuf field <code>string room_name = 1;</code>
     */
    protected $room_name = '';
    /**
     * (optional, filter by egress ID)
     *
     * Generated from protobuf field <code>string egress_id = 2 [(.logger.name) = "egressID"];</code>
     */
    protected $egress_id = '';
    /**
     * (optional, list active egress only)
     *
     * Generated from protobuf field <code>bool active = 3;</code>
     */
    protected $active = false;
    /**
     * next field id: 5
     *
     * Generated from protobuf field <code>.livekit.TokenPagination page_token = 4;</code>
     */
    protected $page_token = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_name
     *           (optional, filter by room name)
     *     @type string $egress_id
     *           (optional, filter by egress ID)
     *     @type bool $active
     *           (optional, list active egress only)
     *     @type \Livekit\TokenPagination $page_token
     *           next field id: 5
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * (optional, filter by room name)
     *
     * Generated from protobuf field <code>string room_name = 1;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->room_name;
    }

    /**
     * (optional, filter by room name)
     *
     * Generated from protobuf field <code>string room_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setRoomName($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_name = $var;

        return $this;
    }

    /**
     * (optional, filter by egress ID)
     *
     * Generated from protobuf field <code>string egress_id = 2 [(.logger.name) = "egressID"];</code>
     * @return string
     */
    public function getEgressId()
    {
        return $this->egress_id;
    }

    /**
     * (optional, filter by egress ID)
     *
     * Generated from protobuf field <code>string egress_id = 2 [(.logger.name) = "egressID"];</code>
     * @param string $var
     * @return $this
     */
    public function setEgressId($var)
    {
        GPBUtil::checkString($var, True);
        $this->egress_id = $var;

        return $this;
    }

    /**
     * (optional, list active egress only)
     *
     * Generated from protobuf field <code>bool active = 3;</code>
     * @return bool
     */
    public function getActive()
    {
        return $this->active;
    }

    /**
     * (optional, list active egress only)
     *
     * Generated from protobuf field <code>bool active = 3;</code>
     * @param bool $var
     * @return $this
     */
    public function setActive($var)
    {
        GPBUtil::checkBool($var);
        $this->active = $var;

        return $this;
    }

    /**
     * next field id: 5
     *
     * Generated from protobuf field <code>.livekit.TokenPagination page_token = 4;</code>
     * @return \Livekit\TokenPagination|null
     */
    public function getPageToken()
    {
        return $this->page_token;
    }

    public function hasPageToken()
    {
        return isset($this->page_token);
    }

    public function clearPageToken()
    {
        unset($this->page_token);
    }

    /**
     * next field id: 5
     *
     * Generated from protobuf field <code>.livekit.TokenPagination page_token = 4;</code>
     * @param \Livekit\TokenPagination $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkMessage($var, \Livekit\TokenPagination::class);
        $this->page_token = $var;

        return $this;
    }

}

