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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.PlaybackRequest</code>
 */
class PlaybackRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string replay_id = 1 [(.logger.name) = "replayID"];</code>
     */
    protected $replay_id = '';
    /**
     * name of room to play into
     *
     * Generated from protobuf field <code>string playback_room = 2;</code>
     */
    protected $playback_room = '';
    /**
     * initial timestamp (ms)
     *
     * Generated from protobuf field <code>int64 seek_offset_ms = 3;</code>
     */
    protected $seek_offset_ms = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $replay_id
     *     @type string $playback_room
     *           name of room to play into
     *     @type int|string $seek_offset_ms
     *           initial timestamp (ms)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\CloudReplay::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string replay_id = 1 [(.logger.name) = "replayID"];</code>
     * @return string
     */
    public function getReplayId()
    {
        return $this->replay_id;
    }

    /**
     * Generated from protobuf field <code>string replay_id = 1 [(.logger.name) = "replayID"];</code>
     * @param string $var
     * @return $this
     */
    public function setReplayId($var)
    {
        GPBUtil::checkString($var, True);
        $this->replay_id = $var;

        return $this;
    }

    /**
     * name of room to play into
     *
     * Generated from protobuf field <code>string playback_room = 2;</code>
     * @return string
     */
    public function getPlaybackRoom()
    {
        return $this->playback_room;
    }

    /**
     * name of room to play into
     *
     * Generated from protobuf field <code>string playback_room = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPlaybackRoom($var)
    {
        GPBUtil::checkString($var, True);
        $this->playback_room = $var;

        return $this;
    }

    /**
     * initial timestamp (ms)
     *
     * Generated from protobuf field <code>int64 seek_offset_ms = 3;</code>
     * @return int|string
     */
    public function getSeekOffsetMs()
    {
        return $this->seek_offset_ms;
    }

    /**
     * initial timestamp (ms)
     *
     * Generated from protobuf field <code>int64 seek_offset_ms = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setSeekOffsetMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->seek_offset_ms = $var;

        return $this;
    }

}

