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

namespace Replay;

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

/**
 * Generated from protobuf message <code>replay.ListReplaysRequest</code>
 */
class ListReplaysRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * optional
     *
     * Generated from protobuf field <code>string room_name = 1;</code>
     */
    protected $room_name = '';
    /**
     * Generated from protobuf field <code>.livekit.TokenPagination page_token = 2;</code>
     */
    protected $page_token = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $room_name
     *           optional
     *     @type \Livekit\TokenPagination $page_token
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\CloudReplay::initOnce();
        parent::__construct($data);
    }

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

    /**
     * optional
     *
     * 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;
    }

    /**
     * Generated from protobuf field <code>.livekit.TokenPagination page_token = 2;</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);
    }

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

        return $this;
    }

}

