Table of Contents

Class AgentSessionMessage

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

Constructors

AgentSessionMessage()

public AgentSessionMessage()

AgentSessionMessage(AgentSessionMessage)

public AgentSessionMessage(AgentSessionMessage other)

Parameters

other AgentSessionMessage

Fields

AudioInputFieldNumber

Field number for the "audio_input" field.

public const int AudioInputFieldNumber = 1

Field Value

int

AudioOutputFieldNumber

Field number for the "audio_output" field.

public const int AudioOutputFieldNumber = 2

Field Value

int

AudioPlaybackClearFieldNumber

Field number for the "audio_playback_clear" field.

public const int AudioPlaybackClearFieldNumber = 7

Field Value

int

AudioPlaybackFinishedFieldNumber

Field number for the "audio_playback_finished" field.

public const int AudioPlaybackFinishedFieldNumber = 8

Field Value

int

AudioPlaybackFlushFieldNumber

Field number for the "audio_playback_flush" field.

public const int AudioPlaybackFlushFieldNumber = 6

Field Value

int

EventFieldNumber

Field number for the "event" field.

public const int EventFieldNumber = 3

Field Value

int

RequestFieldNumber

Field number for the "request" field.

public const int RequestFieldNumber = 4

Field Value

int

ResponseFieldNumber

Field number for the "response" field.

public const int ResponseFieldNumber = 5

Field Value

int

Properties

AudioInput

public AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame AudioInput { get; set; }

Property Value

AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame

AudioOutput

public AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame AudioOutput { get; set; }

Property Value

AgentSessionMessage.Types.ConsoleIO.Types.AudioFrame

AudioPlaybackClear

public AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackClear AudioPlaybackClear { get; set; }

Property Value

AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackClear

AudioPlaybackFinished

public AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackFinished AudioPlaybackFinished { get; set; }

Property Value

AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackFinished

AudioPlaybackFlush

public AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackFlush AudioPlaybackFlush { get; set; }

Property Value

AgentSessionMessage.Types.ConsoleIO.Types.AudioPlaybackFlush

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Event

public AgentSessionEvent Event { get; set; }

Property Value

AgentSessionEvent

MessageCase

public AgentSessionMessage.MessageOneofCase MessageCase { get; }

Property Value

AgentSessionMessage.MessageOneofCase

Parser

public static MessageParser<AgentSessionMessage> Parser { get; }

Property Value

MessageParser<AgentSessionMessage>

Request

public SessionRequest Request { get; set; }

Property Value

SessionRequest

Response

public SessionResponse Response { get; set; }

Property Value

SessionResponse

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.

ClearMessage()

public void ClearMessage()

Clone()

Creates a deep clone of this object.

public AgentSessionMessage Clone()

Returns

AgentSessionMessage

A deep clone of this object.

Equals(AgentSessionMessage)

public bool Equals(AgentSessionMessage other)

Parameters

other AgentSessionMessage

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

Merges the given message into this one.

public void MergeFrom(AgentSessionMessage other)

Parameters

other AgentSessionMessage

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.