<?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.PlaybackRequest</code>
 */
class PlaybackRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string replay_id = 1;</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 = 3;</code>
     */
    protected $seek_offset = 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
     *           initial timestamp (ms)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\CloudReplay::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>string replay_id = 1;</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 = 3;</code>
     * @return int|string
     */
    public function getSeekOffset()
    {
        return $this->seek_offset;
    }

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

        return $this;
    }

}

