WorkerInfo
extends Message
in package
Generated from protobuf message <code>livekit.WorkerInfo</code>
Table of Contents
Properties
- $active_jobs : mixed
- Generated from protobuf field <code>float active_jobs = 3;</code>
- $agent_name : mixed
- Generated from protobuf field <code>string agent_name = 2;</code>
- $protocol_version : mixed
- Generated from protobuf field <code>int32 protocol_version = 6;</code>
- $sdk_version : mixed
- Generated from protobuf field <code>string sdk_version = 4;</code>
- $worker_load : mixed
- Generated from protobuf field <code>float worker_load = 5;</code>
- $worker_type : mixed
- Generated from protobuf field <code>string worker_type = 1;</code>
Methods
- __construct() : mixed
- Constructor.
- getActiveJobs() : float
- Generated from protobuf field <code>float active_jobs = 3;</code>
- getAgentName() : string
- Generated from protobuf field <code>string agent_name = 2;</code>
- getProtocolVersion() : int
- Generated from protobuf field <code>int32 protocol_version = 6;</code>
- getSdkVersion() : string
- Generated from protobuf field <code>string sdk_version = 4;</code>
- getWorkerLoad() : float
- Generated from protobuf field <code>float worker_load = 5;</code>
- getWorkerType() : string
- Generated from protobuf field <code>string worker_type = 1;</code>
- setActiveJobs() : $this
- Generated from protobuf field <code>float active_jobs = 3;</code>
- setAgentName() : $this
- Generated from protobuf field <code>string agent_name = 2;</code>
- setProtocolVersion() : $this
- Generated from protobuf field <code>int32 protocol_version = 6;</code>
- setSdkVersion() : $this
- Generated from protobuf field <code>string sdk_version = 4;</code>
- setWorkerLoad() : $this
- Generated from protobuf field <code>float worker_load = 5;</code>
- setWorkerType() : $this
- Generated from protobuf field <code>string worker_type = 1;</code>
Properties
$active_jobs
Generated from protobuf field <code>float active_jobs = 3;</code>
protected
mixed
$active_jobs
= 0.0
$agent_name
Generated from protobuf field <code>string agent_name = 2;</code>
protected
mixed
$agent_name
= ''
$protocol_version
Generated from protobuf field <code>int32 protocol_version = 6;</code>
protected
mixed
$protocol_version
= 0
$sdk_version
Generated from protobuf field <code>string sdk_version = 4;</code>
protected
mixed
$sdk_version
= ''
$worker_load
Generated from protobuf field <code>float worker_load = 5;</code>
protected
mixed
$worker_load
= 0.0
$worker_type
Generated from protobuf field <code>string worker_type = 1;</code>
protected
mixed
$worker_type
= ''
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ 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}
getActiveJobs()
Generated from protobuf field <code>float active_jobs = 3;</code>
public
getActiveJobs() : float
Return values
floatgetAgentName()
Generated from protobuf field <code>string agent_name = 2;</code>
public
getAgentName() : string
Return values
stringgetProtocolVersion()
Generated from protobuf field <code>int32 protocol_version = 6;</code>
public
getProtocolVersion() : int
Return values
intgetSdkVersion()
Generated from protobuf field <code>string sdk_version = 4;</code>
public
getSdkVersion() : string
Return values
stringgetWorkerLoad()
Generated from protobuf field <code>float worker_load = 5;</code>
public
getWorkerLoad() : float
Return values
floatgetWorkerType()
Generated from protobuf field <code>string worker_type = 1;</code>
public
getWorkerType() : string
Return values
stringsetActiveJobs()
Generated from protobuf field <code>float active_jobs = 3;</code>
public
setActiveJobs(float $var) : $this
Parameters
- $var : float
Return values
$thissetAgentName()
Generated from protobuf field <code>string agent_name = 2;</code>
public
setAgentName(string $var) : $this
Parameters
- $var : string
Return values
$thissetProtocolVersion()
Generated from protobuf field <code>int32 protocol_version = 6;</code>
public
setProtocolVersion(int $var) : $this
Parameters
- $var : int
Return values
$thissetSdkVersion()
Generated from protobuf field <code>string sdk_version = 4;</code>
public
setSdkVersion(string $var) : $this
Parameters
- $var : string
Return values
$thissetWorkerLoad()
Generated from protobuf field <code>float worker_load = 5;</code>
public
setWorkerLoad(float $var) : $this
Parameters
- $var : float
Return values
$thissetWorkerType()
Generated from protobuf field <code>string worker_type = 1;</code>
public
setWorkerType(string $var) : $this
Parameters
- $var : string