Table of Contents

Class EventMetric

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll
public sealed class EventMetric : IMessage<EventMetric>, IEquatable<EventMetric>, IDeepCloneable<EventMetric>, IBufferMessage, IMessage
Inheritance
EventMetric
Implements
IMessage<EventMetric>
IDeepCloneable<EventMetric>
IBufferMessage
IMessage
Inherited Members

Constructors

EventMetric()

public EventMetric()

EventMetric(EventMetric)

public EventMetric(EventMetric other)

Parameters

other EventMetric

Fields

EndTimestampMsFieldNumber

Field number for the "end_timestamp_ms" field.

public const int EndTimestampMsFieldNumber = 5

Field Value

int

LabelFieldNumber

Field number for the "label" field.

public const int LabelFieldNumber = 1

Field Value

int

MetadataFieldNumber

Field number for the "metadata" field.

public const int MetadataFieldNumber = 8

Field Value

int

NormalizedEndTimestampFieldNumber

Field number for the "normalized_end_timestamp" field.

public const int NormalizedEndTimestampFieldNumber = 7

Field Value

int

NormalizedStartTimestampFieldNumber

Field number for the "normalized_start_timestamp" field.

public const int NormalizedStartTimestampFieldNumber = 6

Field Value

int

ParticipantIdentityFieldNumber

Field number for the "participant_identity" field.

public const int ParticipantIdentityFieldNumber = 2

Field Value

int

RidFieldNumber

Field number for the "rid" field.

public const int RidFieldNumber = 9

Field Value

int

StartTimestampMsFieldNumber

Field number for the "start_timestamp_ms" field.

public const int StartTimestampMsFieldNumber = 4

Field Value

int

TrackSidFieldNumber

Field number for the "track_sid" field.

public const int TrackSidFieldNumber = 3

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EndTimestampMs

end time of event based on a monotonic clock (in milliseconds), if needed

public long EndTimestampMs { get; set; }

Property Value

long

HasEndTimestampMs

Gets whether the "end_timestamp_ms" field is set

public bool HasEndTimestampMs { get; }

Property Value

bool

Label

public uint Label { get; set; }

Property Value

uint

Metadata

public string Metadata { get; set; }

Property Value

string

NormalizedEndTimestamp

public Timestamp NormalizedEndTimestamp { get; set; }

Property Value

Timestamp

NormalizedStartTimestamp

public Timestamp NormalizedStartTimestamp { get; set; }

Property Value

Timestamp

Parser

public static MessageParser<EventMetric> Parser { get; }

Property Value

MessageParser<EventMetric>

ParticipantIdentity

index into str_data

public uint ParticipantIdentity { get; set; }

Property Value

uint

Rid

index into 'str_data'

public uint Rid { get; set; }

Property Value

uint

StartTimestampMs

start time of event based on a monotonic clock (in milliseconds)

public long StartTimestampMs { get; set; }

Property Value

long

TrackSid

index into str_data

public uint TrackSid { get; set; }

Property Value

uint

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.

ClearEndTimestampMs()

Clears the value of the "end_timestamp_ms" field

public void ClearEndTimestampMs()

Clone()

Creates a deep clone of this object.

public EventMetric Clone()

Returns

EventMetric

A deep clone of this object.

Equals(EventMetric)

public bool Equals(EventMetric other)

Parameters

other EventMetric

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(EventMetric)

Merges the given message into this one.

public void MergeFrom(EventMetric other)

Parameters

other EventMetric

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.