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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.AnalyticsVideoLayer</code>
 */
class AnalyticsVideoLayer extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int32 layer = 1;</code>
     */
    protected $layer = 0;
    /**
     * Generated from protobuf field <code>uint32 packets = 2;</code>
     */
    protected $packets = 0;
    /**
     * Generated from protobuf field <code>uint64 bytes = 3;</code>
     */
    protected $bytes = 0;
    /**
     * Generated from protobuf field <code>uint32 frames = 4;</code>
     */
    protected $frames = 0;

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

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

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

        return $this;
    }

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

    /**
     * Generated from protobuf field <code>uint32 packets = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setPackets($var)
    {
        GPBUtil::checkUint32($var);
        $this->packets = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 bytes = 3;</code>
     * @return int|string
     */
    public function getBytes()
    {
        return $this->bytes;
    }

    /**
     * Generated from protobuf field <code>uint64 bytes = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setBytes($var)
    {
        GPBUtil::checkUint64($var);
        $this->bytes = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint32 frames = 4;</code>
     * @return int
     */
    public function getFrames()
    {
        return $this->frames;
    }

    /**
     * Generated from protobuf field <code>uint32 frames = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setFrames($var)
    {
        GPBUtil::checkUint32($var);
        $this->frames = $var;

        return $this;
    }

}

