<?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.ReplayInfo</code>
 */
class ReplayInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string replay_id = 1;</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 = 4;</code>
     */
    protected $duration = 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
     * }
     */
    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;
    }

    /**
     * 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 = 4;</code>
     * @return int|string
     */
    public function getDuration()
    {
        return $this->duration;
    }

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

        return $this;
    }

}

