<?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.Pong</code>
 */
class Pong extends \Google\Protobuf\Internal\Message
{
    /**
     * timestamp field of last received ping request
     *
     * Generated from protobuf field <code>int64 last_ping_timestamp = 1;</code>
     */
    protected $last_ping_timestamp = 0;
    /**
     * Generated from protobuf field <code>int64 timestamp = 2;</code>
     */
    protected $timestamp = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $last_ping_timestamp
     *           timestamp field of last received ping request
     *     @type int|string $timestamp
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitRtc::initOnce();
        parent::__construct($data);
    }

    /**
     * timestamp field of last received ping request
     *
     * Generated from protobuf field <code>int64 last_ping_timestamp = 1;</code>
     * @return int|string
     */
    public function getLastPingTimestamp()
    {
        return $this->last_ping_timestamp;
    }

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

        return $this;
    }

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

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

        return $this;
    }

}

