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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.WorkerPong</code>
 */
class WorkerPong extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 last_timestamp = 1;</code>
     */
    protected $last_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_timestamp
     *     @type int|string $timestamp
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgent::initOnce();
        parent::__construct($data);
    }

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

    /**
     * Generated from protobuf field <code>int64 last_timestamp = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLastTimestamp($var)
    {
        GPBUtil::checkInt64($var);
        $this->last_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;
    }

}

