<?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.SeekRequest</code>
 */
class SeekRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string playback_id = 1 [(.logger.name) = "playbackID"];</code>
     */
    protected $playback_id = '';
    /**
     * timestamp (ms)
     *
     * Generated from protobuf field <code>int64 seek_offset_ms = 2;</code>
     */
    protected $seek_offset_ms = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $playback_id
     *     @type int|string $seek_offset_ms
     *           timestamp (ms)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\CloudReplay::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

