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

namespace Livekit;

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

/**
 * rates of different node stats (per second)
 *
 * Generated from protobuf message <code>livekit.NodeStatsRate</code>
 */
class NodeStatsRate extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>int64 started_at = 1;</code>
     */
    protected $started_at = 0;
    /**
     * Generated from protobuf field <code>int64 ended_at = 2;</code>
     */
    protected $ended_at = 0;
    /**
     * Generated from protobuf field <code>int64 duration = 3;</code>
     */
    protected $duration = 0;
    /**
     * Generated from protobuf field <code>float track_publish_attempts = 4;</code>
     */
    protected $track_publish_attempts = 0.0;
    /**
     * Generated from protobuf field <code>float track_publish_success = 5;</code>
     */
    protected $track_publish_success = 0.0;
    /**
     * Generated from protobuf field <code>float track_publish_cancels = 24;</code>
     */
    protected $track_publish_cancels = 0.0;
    /**
     * Generated from protobuf field <code>float track_subscribe_attempts = 6;</code>
     */
    protected $track_subscribe_attempts = 0.0;
    /**
     * Generated from protobuf field <code>float track_subscribe_success = 7;</code>
     */
    protected $track_subscribe_success = 0.0;
    /**
     * Generated from protobuf field <code>float track_subscribe_cancels = 25;</code>
     */
    protected $track_subscribe_cancels = 0.0;
    /**
     * Generated from protobuf field <code>float bytes_in = 8;</code>
     */
    protected $bytes_in = 0.0;
    /**
     * Generated from protobuf field <code>float bytes_out = 9;</code>
     */
    protected $bytes_out = 0.0;
    /**
     * Generated from protobuf field <code>float packets_in = 10;</code>
     */
    protected $packets_in = 0.0;
    /**
     * Generated from protobuf field <code>float packets_out = 11;</code>
     */
    protected $packets_out = 0.0;
    /**
     * Generated from protobuf field <code>float nack_total = 12;</code>
     */
    protected $nack_total = 0.0;
    /**
     * Generated from protobuf field <code>float sys_packets_out = 13;</code>
     */
    protected $sys_packets_out = 0.0;
    /**
     * Generated from protobuf field <code>float sys_packets_dropped = 14;</code>
     */
    protected $sys_packets_dropped = 0.0;
    /**
     * Generated from protobuf field <code>float retransmit_bytes_out = 15;</code>
     */
    protected $retransmit_bytes_out = 0.0;
    /**
     * Generated from protobuf field <code>float retransmit_packets_out = 16;</code>
     */
    protected $retransmit_packets_out = 0.0;
    /**
     * Generated from protobuf field <code>float participant_signal_connected = 17;</code>
     */
    protected $participant_signal_connected = 0.0;
    /**
     * Generated from protobuf field <code>float participant_rtc_connected = 18;</code>
     */
    protected $participant_rtc_connected = 0.0;
    /**
     * Generated from protobuf field <code>float participant_rtc_init = 19;</code>
     */
    protected $participant_rtc_init = 0.0;
    /**
     * Generated from protobuf field <code>float participant_rtc_canceled = 26;</code>
     */
    protected $participant_rtc_canceled = 0.0;
    /**
     * time weighted averages across stats windows forming part of a rate measurement interval
     *
     * Generated from protobuf field <code>float cpu_load = 20;</code>
     */
    protected $cpu_load = 0.0;
    /**
     * Generated from protobuf field <code>float memory_load = 21;</code>
     */
    protected $memory_load = 0.0;
    /**
     * Generated from protobuf field <code>float memory_used = 22;</code>
     */
    protected $memory_used = 0.0;
    /**
     * Generated from protobuf field <code>float memory_total = 23;</code>
     */
    protected $memory_total = 0.0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $started_at
     *     @type int|string $ended_at
     *     @type int|string $duration
     *     @type float $track_publish_attempts
     *     @type float $track_publish_success
     *     @type float $track_publish_cancels
     *     @type float $track_subscribe_attempts
     *     @type float $track_subscribe_success
     *     @type float $track_subscribe_cancels
     *     @type float $bytes_in
     *     @type float $bytes_out
     *     @type float $packets_in
     *     @type float $packets_out
     *     @type float $nack_total
     *     @type float $sys_packets_out
     *     @type float $sys_packets_dropped
     *     @type float $retransmit_bytes_out
     *     @type float $retransmit_packets_out
     *     @type float $participant_signal_connected
     *     @type float $participant_rtc_connected
     *     @type float $participant_rtc_init
     *     @type float $participant_rtc_canceled
     *     @type float $cpu_load
     *           time weighted averages across stats windows forming part of a rate measurement interval
     *     @type float $memory_load
     *     @type float $memory_used
     *     @type float $memory_total
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitInternal::initOnce();
        parent::__construct($data);
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_publish_attempts = 4;</code>
     * @return float
     */
    public function getTrackPublishAttempts()
    {
        return $this->track_publish_attempts;
    }

    /**
     * Generated from protobuf field <code>float track_publish_attempts = 4;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackPublishAttempts($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_publish_attempts = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_publish_success = 5;</code>
     * @return float
     */
    public function getTrackPublishSuccess()
    {
        return $this->track_publish_success;
    }

    /**
     * Generated from protobuf field <code>float track_publish_success = 5;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackPublishSuccess($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_publish_success = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_publish_cancels = 24;</code>
     * @return float
     */
    public function getTrackPublishCancels()
    {
        return $this->track_publish_cancels;
    }

    /**
     * Generated from protobuf field <code>float track_publish_cancels = 24;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackPublishCancels($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_publish_cancels = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_attempts = 6;</code>
     * @return float
     */
    public function getTrackSubscribeAttempts()
    {
        return $this->track_subscribe_attempts;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_attempts = 6;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackSubscribeAttempts($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_subscribe_attempts = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_success = 7;</code>
     * @return float
     */
    public function getTrackSubscribeSuccess()
    {
        return $this->track_subscribe_success;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_success = 7;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackSubscribeSuccess($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_subscribe_success = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_cancels = 25;</code>
     * @return float
     */
    public function getTrackSubscribeCancels()
    {
        return $this->track_subscribe_cancels;
    }

    /**
     * Generated from protobuf field <code>float track_subscribe_cancels = 25;</code>
     * @param float $var
     * @return $this
     */
    public function setTrackSubscribeCancels($var)
    {
        GPBUtil::checkFloat($var);
        $this->track_subscribe_cancels = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float bytes_in = 8;</code>
     * @return float
     */
    public function getBytesIn()
    {
        return $this->bytes_in;
    }

    /**
     * Generated from protobuf field <code>float bytes_in = 8;</code>
     * @param float $var
     * @return $this
     */
    public function setBytesIn($var)
    {
        GPBUtil::checkFloat($var);
        $this->bytes_in = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float bytes_out = 9;</code>
     * @return float
     */
    public function getBytesOut()
    {
        return $this->bytes_out;
    }

    /**
     * Generated from protobuf field <code>float bytes_out = 9;</code>
     * @param float $var
     * @return $this
     */
    public function setBytesOut($var)
    {
        GPBUtil::checkFloat($var);
        $this->bytes_out = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float packets_in = 10;</code>
     * @return float
     */
    public function getPacketsIn()
    {
        return $this->packets_in;
    }

    /**
     * Generated from protobuf field <code>float packets_in = 10;</code>
     * @param float $var
     * @return $this
     */
    public function setPacketsIn($var)
    {
        GPBUtil::checkFloat($var);
        $this->packets_in = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float packets_out = 11;</code>
     * @return float
     */
    public function getPacketsOut()
    {
        return $this->packets_out;
    }

    /**
     * Generated from protobuf field <code>float packets_out = 11;</code>
     * @param float $var
     * @return $this
     */
    public function setPacketsOut($var)
    {
        GPBUtil::checkFloat($var);
        $this->packets_out = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float nack_total = 12;</code>
     * @return float
     */
    public function getNackTotal()
    {
        return $this->nack_total;
    }

    /**
     * Generated from protobuf field <code>float nack_total = 12;</code>
     * @param float $var
     * @return $this
     */
    public function setNackTotal($var)
    {
        GPBUtil::checkFloat($var);
        $this->nack_total = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float sys_packets_out = 13;</code>
     * @return float
     */
    public function getSysPacketsOut()
    {
        return $this->sys_packets_out;
    }

    /**
     * Generated from protobuf field <code>float sys_packets_out = 13;</code>
     * @param float $var
     * @return $this
     */
    public function setSysPacketsOut($var)
    {
        GPBUtil::checkFloat($var);
        $this->sys_packets_out = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float sys_packets_dropped = 14;</code>
     * @return float
     */
    public function getSysPacketsDropped()
    {
        return $this->sys_packets_dropped;
    }

    /**
     * Generated from protobuf field <code>float sys_packets_dropped = 14;</code>
     * @param float $var
     * @return $this
     */
    public function setSysPacketsDropped($var)
    {
        GPBUtil::checkFloat($var);
        $this->sys_packets_dropped = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float retransmit_bytes_out = 15;</code>
     * @return float
     */
    public function getRetransmitBytesOut()
    {
        return $this->retransmit_bytes_out;
    }

    /**
     * Generated from protobuf field <code>float retransmit_bytes_out = 15;</code>
     * @param float $var
     * @return $this
     */
    public function setRetransmitBytesOut($var)
    {
        GPBUtil::checkFloat($var);
        $this->retransmit_bytes_out = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float retransmit_packets_out = 16;</code>
     * @return float
     */
    public function getRetransmitPacketsOut()
    {
        return $this->retransmit_packets_out;
    }

    /**
     * Generated from protobuf field <code>float retransmit_packets_out = 16;</code>
     * @param float $var
     * @return $this
     */
    public function setRetransmitPacketsOut($var)
    {
        GPBUtil::checkFloat($var);
        $this->retransmit_packets_out = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float participant_signal_connected = 17;</code>
     * @return float
     */
    public function getParticipantSignalConnected()
    {
        return $this->participant_signal_connected;
    }

    /**
     * Generated from protobuf field <code>float participant_signal_connected = 17;</code>
     * @param float $var
     * @return $this
     */
    public function setParticipantSignalConnected($var)
    {
        GPBUtil::checkFloat($var);
        $this->participant_signal_connected = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_connected = 18;</code>
     * @return float
     */
    public function getParticipantRtcConnected()
    {
        return $this->participant_rtc_connected;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_connected = 18;</code>
     * @param float $var
     * @return $this
     */
    public function setParticipantRtcConnected($var)
    {
        GPBUtil::checkFloat($var);
        $this->participant_rtc_connected = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_init = 19;</code>
     * @return float
     */
    public function getParticipantRtcInit()
    {
        return $this->participant_rtc_init;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_init = 19;</code>
     * @param float $var
     * @return $this
     */
    public function setParticipantRtcInit($var)
    {
        GPBUtil::checkFloat($var);
        $this->participant_rtc_init = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_canceled = 26;</code>
     * @return float
     */
    public function getParticipantRtcCanceled()
    {
        return $this->participant_rtc_canceled;
    }

    /**
     * Generated from protobuf field <code>float participant_rtc_canceled = 26;</code>
     * @param float $var
     * @return $this
     */
    public function setParticipantRtcCanceled($var)
    {
        GPBUtil::checkFloat($var);
        $this->participant_rtc_canceled = $var;

        return $this;
    }

    /**
     * time weighted averages across stats windows forming part of a rate measurement interval
     *
     * Generated from protobuf field <code>float cpu_load = 20;</code>
     * @return float
     */
    public function getCpuLoad()
    {
        return $this->cpu_load;
    }

    /**
     * time weighted averages across stats windows forming part of a rate measurement interval
     *
     * Generated from protobuf field <code>float cpu_load = 20;</code>
     * @param float $var
     * @return $this
     */
    public function setCpuLoad($var)
    {
        GPBUtil::checkFloat($var);
        $this->cpu_load = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float memory_load = 21;</code>
     * @return float
     */
    public function getMemoryLoad()
    {
        return $this->memory_load;
    }

    /**
     * Generated from protobuf field <code>float memory_load = 21;</code>
     * @param float $var
     * @return $this
     */
    public function setMemoryLoad($var)
    {
        GPBUtil::checkFloat($var);
        $this->memory_load = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float memory_used = 22;</code>
     * @return float
     */
    public function getMemoryUsed()
    {
        return $this->memory_used;
    }

    /**
     * Generated from protobuf field <code>float memory_used = 22;</code>
     * @param float $var
     * @return $this
     */
    public function setMemoryUsed($var)
    {
        GPBUtil::checkFloat($var);
        $this->memory_used = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float memory_total = 23;</code>
     * @return float
     */
    public function getMemoryTotal()
    {
        return $this->memory_total;
    }

    /**
     * Generated from protobuf field <code>float memory_total = 23;</code>
     * @param float $var
     * @return $this
     */
    public function setMemoryTotal($var)
    {
        GPBUtil::checkFloat($var);
        $this->memory_total = $var;

        return $this;
    }

}

