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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.WorkerInfo</code>
 */
class WorkerInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string worker_type = 1;</code>
     */
    protected $worker_type = '';
    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     */
    protected $agent_name = '';
    /**
     * Generated from protobuf field <code>float active_jobs = 3;</code>
     */
    protected $active_jobs = 0.0;
    /**
     * Generated from protobuf field <code>string sdk_version = 4;</code>
     */
    protected $sdk_version = '';
    /**
     * Generated from protobuf field <code>float worker_load = 5;</code>
     */
    protected $worker_load = 0.0;
    /**
     * Generated from protobuf field <code>int32 protocol_version = 6;</code>
     */
    protected $protocol_version = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $worker_type
     *     @type string $agent_name
     *     @type float $active_jobs
     *     @type string $sdk_version
     *     @type float $worker_load
     *     @type int $protocol_version
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitAgentWorker::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>string worker_type = 1;</code>
     * @return string
     */
    public function getWorkerType()
    {
        return $this->worker_type;
    }

    /**
     * Generated from protobuf field <code>string worker_type = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setWorkerType($var)
    {
        GPBUtil::checkString($var, True);
        $this->worker_type = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     * @return string
     */
    public function getAgentName()
    {
        return $this->agent_name;
    }

    /**
     * Generated from protobuf field <code>string agent_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAgentName($var)
    {
        GPBUtil::checkString($var, True);
        $this->agent_name = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>float active_jobs = 3;</code>
     * @return float
     */
    public function getActiveJobs()
    {
        return $this->active_jobs;
    }

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

        return $this;
    }

    /**
     * Generated from protobuf field <code>string sdk_version = 4;</code>
     * @return string
     */
    public function getSdkVersion()
    {
        return $this->sdk_version;
    }

    /**
     * Generated from protobuf field <code>string sdk_version = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setSdkVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->sdk_version = $var;

        return $this;
    }

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

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

        return $this;
    }

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

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

        return $this;
    }

}

