Node
extends Message
in package
Generated from protobuf message <code>livekit.Node</code>
Table of Contents
Properties
- $id : mixed
- Generated from protobuf field <code>string id = 1;</code>
- $ip : mixed
- Generated from protobuf field <code>string ip = 2;</code>
- $num_cpus : mixed
- Generated from protobuf field <code>uint32 num_cpus = 3;</code>
- $region : mixed
- Generated from protobuf field <code>string region = 7;</code>
- $state : mixed
- Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
- $stats : mixed
- Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
- $type : mixed
- Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
Methods
- __construct() : mixed
- Constructor.
- clearStats() : mixed
- getId() : string
- Generated from protobuf field <code>string id = 1;</code>
- getIp() : string
- Generated from protobuf field <code>string ip = 2;</code>
- getNumCpus() : int
- Generated from protobuf field <code>uint32 num_cpus = 3;</code>
- getRegion() : string
- Generated from protobuf field <code>string region = 7;</code>
- getState() : int
- Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
- getStats() : NodeStats|null
- Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
- getType() : int
- Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
- hasStats() : mixed
- setId() : $this
- Generated from protobuf field <code>string id = 1;</code>
- setIp() : $this
- Generated from protobuf field <code>string ip = 2;</code>
- setNumCpus() : $this
- Generated from protobuf field <code>uint32 num_cpus = 3;</code>
- setRegion() : $this
- Generated from protobuf field <code>string region = 7;</code>
- setState() : $this
- Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
- setStats() : $this
- Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
- setType() : $this
- Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
Properties
$id
Generated from protobuf field <code>string id = 1;</code>
protected
mixed
$id
= ''
$ip
Generated from protobuf field <code>string ip = 2;</code>
protected
mixed
$ip
= ''
$num_cpus
Generated from protobuf field <code>uint32 num_cpus = 3;</code>
protected
mixed
$num_cpus
= 0
$region
Generated from protobuf field <code>string region = 7;</code>
protected
mixed
$region
= ''
$state
Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
protected
mixed
$state
= 0
$stats
Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
protected
mixed
$stats
= null
$type
Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
protected
mixed
$type
= 0
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 $id @type string $ip @type int $num_cpus @type \Livekit\NodeStats $stats @type int $type @type int $state @type string $region}
clearStats()
public
clearStats() : mixed
getId()
Generated from protobuf field <code>string id = 1;</code>
public
getId() : string
Return values
stringgetIp()
Generated from protobuf field <code>string ip = 2;</code>
public
getIp() : string
Return values
stringgetNumCpus()
Generated from protobuf field <code>uint32 num_cpus = 3;</code>
public
getNumCpus() : int
Return values
intgetRegion()
Generated from protobuf field <code>string region = 7;</code>
public
getRegion() : string
Return values
stringgetState()
Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
public
getState() : int
Return values
intgetStats()
Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
public
getStats() : NodeStats|null
Return values
NodeStats|nullgetType()
Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
public
getType() : int
Return values
inthasStats()
public
hasStats() : mixed
setId()
Generated from protobuf field <code>string id = 1;</code>
public
setId(string $var) : $this
Parameters
- $var : string
Return values
$thissetIp()
Generated from protobuf field <code>string ip = 2;</code>
public
setIp(string $var) : $this
Parameters
- $var : string
Return values
$thissetNumCpus()
Generated from protobuf field <code>uint32 num_cpus = 3;</code>
public
setNumCpus(int $var) : $this
Parameters
- $var : int
Return values
$thissetRegion()
Generated from protobuf field <code>string region = 7;</code>
public
setRegion(string $var) : $this
Parameters
- $var : string
Return values
$thissetState()
Generated from protobuf field <code>.livekit.NodeState state = 6;</code>
public
setState(int $var) : $this
Parameters
- $var : int
Return values
$thissetStats()
Generated from protobuf field <code>.livekit.NodeStats stats = 4;</code>
public
setStats(NodeStats $var) : $this
Parameters
- $var : NodeStats
Return values
$thissetType()
Generated from protobuf field <code>.livekit.NodeType type = 5;</code>
public
setType(int $var) : $this
Parameters
- $var : int