Table of Contents

Class ServerInfo

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll

details about the server

public sealed class ServerInfo : IMessage<ServerInfo>, IEquatable<ServerInfo>, IDeepCloneable<ServerInfo>, IBufferMessage, IMessage
Inheritance
ServerInfo
Implements
IMessage<ServerInfo>
IDeepCloneable<ServerInfo>
IBufferMessage
IMessage
Inherited Members

Constructors

ServerInfo()

public ServerInfo()

ServerInfo(ServerInfo)

public ServerInfo(ServerInfo other)

Parameters

other ServerInfo

Fields

AgentProtocolFieldNumber

Field number for the "agent_protocol" field.

public const int AgentProtocolFieldNumber = 7

Field Value

int

DebugInfoFieldNumber

Field number for the "debug_info" field.

public const int DebugInfoFieldNumber = 6

Field Value

int

EditionFieldNumber

Field number for the "edition" field.

public const int EditionFieldNumber = 1

Field Value

int

NodeIdFieldNumber

Field number for the "node_id" field.

public const int NodeIdFieldNumber = 5

Field Value

int

ProtocolFieldNumber

Field number for the "protocol" field.

public const int ProtocolFieldNumber = 3

Field Value

int

RegionFieldNumber

Field number for the "region" field.

public const int RegionFieldNumber = 4

Field Value

int

VersionFieldNumber

Field number for the "version" field.

public const int VersionFieldNumber = 2

Field Value

int

Properties

AgentProtocol

public int AgentProtocol { get; set; }

Property Value

int

DebugInfo

additional debugging information. sent only if server is in development mode

public string DebugInfo { get; set; }

Property Value

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Edition

public ServerInfo.Types.Edition Edition { get; set; }

Property Value

ServerInfo.Types.Edition

NodeId

public string NodeId { get; set; }

Property Value

string

Parser

public static MessageParser<ServerInfo> Parser { get; }

Property Value

MessageParser<ServerInfo>

Protocol

public int Protocol { get; set; }

Property Value

int

Region

public string Region { get; set; }

Property Value

string

Version

public string Version { get; set; }

Property Value

string

Methods

CalculateSize()

Calculates the size of this message in Protocol Buffer wire format, in bytes.

public int CalculateSize()

Returns

int

The number of bytes required to write this message to a coded output stream.

Clone()

Creates a deep clone of this object.

public ServerInfo Clone()

Returns

ServerInfo

A deep clone of this object.

Equals(ServerInfo)

public bool Equals(ServerInfo other)

Parameters

other ServerInfo

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(ServerInfo)

Merges the given message into this one.

public void MergeFrom(ServerInfo other)

Parameters

other ServerInfo

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.