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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.Ping</code>
 */
class Ping extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 timestamp = 1;</code>
     */
    protected $timestamp = 0;
    /**
     * rtt in milliseconds calculated by client
     *
     * Generated from protobuf field <code>int64 rtt = 2;</code>
     */
    protected $rtt = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $timestamp
     *     @type int|string $rtt
     *           rtt in milliseconds calculated by client
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * rtt in milliseconds calculated by client
     *
     * Generated from protobuf field <code>int64 rtt = 2;</code>
     * @return int|string
     */
    public function getRtt()
    {
        return $this->rtt;
    }

    /**
     * rtt in milliseconds calculated by client
     *
     * Generated from protobuf field <code>int64 rtt = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRtt($var)
    {
        GPBUtil::checkInt64($var);
        $this->rtt = $var;

        return $this;
    }

}

