Table of Contents

Class AgentSessionState

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

Constructors

AgentSessionState()

public AgentSessionState()

AgentSessionState(AgentSessionState)

public AgentSessionState(AgentSessionState other)

Parameters

other AgentSessionState

Fields

DeltaFieldNumber

Field number for the "delta" field.

public const int DeltaFieldNumber = 3

Field Value

int

SnapshotFieldNumber

Field number for the "snapshot" field.

public const int SnapshotFieldNumber = 2

Field Value

int

VersionFieldNumber

Field number for the "version" field.

public const int VersionFieldNumber = 1

Field Value

int

Properties

DataCase

public AgentSessionState.DataOneofCase DataCase { get; }

Property Value

AgentSessionState.DataOneofCase

Delta

public ByteString Delta { get; set; }

Property Value

ByteString

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasDelta

Gets whether the "delta" field is set

public bool HasDelta { get; }

Property Value

bool

HasSnapshot

Gets whether the "snapshot" field is set

public bool HasSnapshot { get; }

Property Value

bool

Parser

public static MessageParser<AgentSessionState> Parser { get; }

Property Value

MessageParser<AgentSessionState>

Snapshot

public ByteString Snapshot { get; set; }

Property Value

ByteString

Version

public ulong Version { get; set; }

Property Value

ulong

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.

ClearData()

public void ClearData()

ClearDelta()

Clears the value of the oneof if it's currently set to "delta"

public void ClearDelta()

ClearSnapshot()

Clears the value of the oneof if it's currently set to "snapshot"

public void ClearSnapshot()

Clone()

Creates a deep clone of this object.

public AgentSessionState Clone()

Returns

AgentSessionState

A deep clone of this object.

Equals(AgentSessionState)

public bool Equals(AgentSessionState other)

Parameters

other AgentSessionState

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

Merges the given message into this one.

public void MergeFrom(AgentSessionState other)

Parameters

other AgentSessionState

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.