Table of Contents

Class SessionResponse

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

Constructors

SessionResponse()

public SessionResponse()

SessionResponse(SessionResponse)

public SessionResponse(SessionResponse other)

Parameters

other SessionResponse

Fields

ErrorFieldNumber

Field number for the "error" field.

public const int ErrorFieldNumber = 2

Field Value

int

GetAgentInfoFieldNumber

Field number for the "get_agent_info" field.

public const int GetAgentInfoFieldNumber = 7

Field Value

int

GetChatHistoryFieldNumber

Field number for the "get_chat_history" field.

public const int GetChatHistoryFieldNumber = 5

Field Value

int

GetFrameworkInfoFieldNumber

Field number for the "get_framework_info" field.

public const int GetFrameworkInfoFieldNumber = 11

Field Value

int

GetRtcStatsFieldNumber

Field number for the "get_rtc_stats" field.

public const int GetRtcStatsFieldNumber = 9

Field Value

int

GetSessionStateFieldNumber

Field number for the "get_session_state" field.

public const int GetSessionStateFieldNumber = 8

Field Value

int

GetSessionUsageFieldNumber

Field number for the "get_session_usage" field.

public const int GetSessionUsageFieldNumber = 10

Field Value

int

PongFieldNumber

Field number for the "pong" field.

public const int PongFieldNumber = 3

Field Value

int

RequestIdFieldNumber

Field number for the "request_id" field.

public const int RequestIdFieldNumber = 1

Field Value

int

RunInputFieldNumber

Field number for the "run_input" field.

public const int RunInputFieldNumber = 6

Field Value

int

UpdateIoFieldNumber

Field number for the "update_io" field.

public const int UpdateIoFieldNumber = 12

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

Error

public string Error { get; set; }

Property Value

string

GetAgentInfo

public SessionResponse.Types.GetAgentInfoResponse GetAgentInfo { get; set; }

Property Value

SessionResponse.Types.GetAgentInfoResponse

GetChatHistory

public SessionResponse.Types.GetChatHistoryResponse GetChatHistory { get; set; }

Property Value

SessionResponse.Types.GetChatHistoryResponse

GetFrameworkInfo

public SessionResponse.Types.GetFrameworkInfoResponse GetFrameworkInfo { get; set; }

Property Value

SessionResponse.Types.GetFrameworkInfoResponse

GetRtcStats

public SessionResponse.Types.GetRTCStatsResponse GetRtcStats { get; set; }

Property Value

SessionResponse.Types.GetRTCStatsResponse

GetSessionState

public SessionResponse.Types.GetSessionStateResponse GetSessionState { get; set; }

Property Value

SessionResponse.Types.GetSessionStateResponse

GetSessionUsage

public SessionResponse.Types.GetSessionUsageResponse GetSessionUsage { get; set; }

Property Value

SessionResponse.Types.GetSessionUsageResponse

HasError

Gets whether the "error" field is set

public bool HasError { get; }

Property Value

bool

Parser

public static MessageParser<SessionResponse> Parser { get; }

Property Value

MessageParser<SessionResponse>

Pong

public SessionResponse.Types.Pong Pong { get; set; }

Property Value

SessionResponse.Types.Pong

RequestId

public string RequestId { get; set; }

Property Value

string

ResponseCase

public SessionResponse.ResponseOneofCase ResponseCase { get; }

Property Value

SessionResponse.ResponseOneofCase

RunInput

public SessionResponse.Types.RunInputResponse RunInput { get; set; }

Property Value

SessionResponse.Types.RunInputResponse

UpdateIo

public SessionResponse.Types.UpdateIOResponse UpdateIo { get; set; }

Property Value

SessionResponse.Types.UpdateIOResponse

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.

ClearError()

Clears the value of the "error" field

public void ClearError()

ClearResponse()

public void ClearResponse()

Clone()

Creates a deep clone of this object.

public SessionResponse Clone()

Returns

SessionResponse

A deep clone of this object.

Equals(SessionResponse)

public bool Equals(SessionResponse other)

Parameters

other SessionResponse

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

Merges the given message into this one.

public void MergeFrom(SessionResponse other)

Parameters

other SessionResponse

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.