Table of Contents

Class ChatMessage

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

Constructors

ChatMessage()

public ChatMessage()

ChatMessage(ChatMessage)

public ChatMessage(ChatMessage other)

Parameters

other ChatMessage

Fields

DeletedFieldNumber

Field number for the "deleted" field.

public const int DeletedFieldNumber = 5

Field Value

int

EditTimestampFieldNumber

Field number for the "edit_timestamp" field.

public const int EditTimestampFieldNumber = 3

Field Value

int

GeneratedFieldNumber

Field number for the "generated" field.

public const int GeneratedFieldNumber = 6

Field Value

int

IdFieldNumber

Field number for the "id" field.

public const int IdFieldNumber = 1

Field Value

int

MessageFieldNumber

Field number for the "message" field.

public const int MessageFieldNumber = 4

Field Value

int

TimestampFieldNumber

Field number for the "timestamp" field.

public const int TimestampFieldNumber = 2

Field Value

int

Properties

Deleted

true to remove message

public bool Deleted { get; set; }

Property Value

bool

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EditTimestamp

populated only if the intent is to edit/update an existing message

public long EditTimestamp { get; set; }

Property Value

long

Generated

true if the chat message has been generated by an agent from a participant's audio transcription

public bool Generated { get; set; }

Property Value

bool

HasEditTimestamp

Gets whether the "edit_timestamp" field is set

public bool HasEditTimestamp { get; }

Property Value

bool

Id

uuid

public string Id { get; set; }

Property Value

string

Message

public string Message { get; set; }

Property Value

string

Parser

public static MessageParser<ChatMessage> Parser { get; }

Property Value

MessageParser<ChatMessage>

Timestamp

public long Timestamp { get; set; }

Property Value

long

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.

ClearEditTimestamp()

Clears the value of the "edit_timestamp" field

public void ClearEditTimestamp()

Clone()

Creates a deep clone of this object.

public ChatMessage Clone()

Returns

ChatMessage

A deep clone of this object.

Equals(ChatMessage)

public bool Equals(ChatMessage other)

Parameters

other ChatMessage

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

Merges the given message into this one.

public void MergeFrom(ChatMessage other)

Parameters

other ChatMessage

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.