<?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.ReplayInfo</code>
 */
class ReplayInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string replay_id = 1 [(.logger.name) = "replayID"];</code>
     */
    protected $replay_id = '';
    /**
     * Generated from protobuf field <code>string room_name = 2;</code>
     */
    protected $room_name = '';
    /**
     * Generated from protobuf field <code>int64 start_time = 3;</code>
     */
    protected $start_time = 0;
    /**
     * Generated from protobuf field <code>int64 duration_ms = 4;</code>
     */
    protected $duration_ms = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $replay_id
     *     @type string $room_name
     *     @type int|string $start_time
     *     @type int|string $duration_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;
    }

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

    /**
     * Generated from protobuf field <code>string room_name = 2;</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>int64 start_time = 3;</code>
     * @return int|string
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int64 duration_ms = 4;</code>
     * @return int|string
     */
    public function getDurationMs()
    {
        return $this->duration_ms;
    }

    /**
     * Generated from protobuf field <code>int64 duration_ms = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setDurationMs($var)
    {
        GPBUtil::checkInt64($var);
        $this->duration_ms = $var;

        return $this;
    }

}

