<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: livekit_models.proto

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.TimedVersion</code>
 */
class TimedVersion extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 unix_micro = 1;</code>
     */
    protected $unix_micro = 0;
    /**
     * Generated from protobuf field <code>int32 ticks = 2;</code>
     */
    protected $ticks = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $unix_micro
     *     @type int $ticks
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitModels::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>int32 ticks = 2;</code>
     * @return int
     */
    public function getTicks()
    {
        return $this->ticks;
    }

    /**
     * Generated from protobuf field <code>int32 ticks = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setTicks($var)
    {
        GPBUtil::checkInt32($var);
        $this->ticks = $var;

        return $this;
    }

}

