Table of Contents

Class TextMessageResponse

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

Response to a text message request, multiple responses may be sent for a single request until it is complete.

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

Constructors

TextMessageResponse()

public TextMessageResponse()

TextMessageResponse(TextMessageResponse)

public TextMessageResponse(TextMessageResponse other)

Parameters

other TextMessageResponse

Fields

AgentHandoffFieldNumber

Field number for the "agent_handoff" field.

public const int AgentHandoffFieldNumber = 6

Field Value

int

CompleteFieldNumber

Field number for the "complete" field.

public const int CompleteFieldNumber = 7

Field Value

int

FunctionCallFieldNumber

Field number for the "function_call" field.

public const int FunctionCallFieldNumber = 4

Field Value

int

FunctionCallOutputFieldNumber

Field number for the "function_call_output" field.

public const int FunctionCallOutputFieldNumber = 5

Field Value

int

MessageFieldNumber

Field number for the "message" field.

public const int MessageFieldNumber = 3

Field Value

int

MessageIdFieldNumber

Field number for the "message_id" field.

public const int MessageIdFieldNumber = 1

Field Value

int

SessionIdFieldNumber

Field number for the "session_id" field.

public const int SessionIdFieldNumber = 2

Field Value

int

Properties

AgentHandoff

public AgentHandoff AgentHandoff { get; set; }

Property Value

AgentHandoff

Complete

public TextMessageComplete Complete { get; set; }

Property Value

TextMessageComplete

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EventCase

public TextMessageResponse.EventOneofCase EventCase { get; }

Property Value

TextMessageResponse.EventOneofCase

FunctionCall

public FunctionCall FunctionCall { get; set; }

Property Value

FunctionCall

FunctionCallOutput

public FunctionCallOutput FunctionCallOutput { get; set; }

Property Value

FunctionCallOutput

Message

public ChatMessage Message { get; set; }

Property Value

ChatMessage

MessageId

public string MessageId { get; set; }

Property Value

string

Parser

public static MessageParser<TextMessageResponse> Parser { get; }

Property Value

MessageParser<TextMessageResponse>

SessionId

public string SessionId { 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.

ClearEvent()

public void ClearEvent()

Clone()

Creates a deep clone of this object.

public TextMessageResponse Clone()

Returns

TextMessageResponse

A deep clone of this object.

Equals(TextMessageResponse)

public bool Equals(TextMessageResponse other)

Parameters

other TextMessageResponse

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

Merges the given message into this one.

public void MergeFrom(TextMessageResponse other)

Parameters

other TextMessageResponse

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.