Table of Contents

Class TimedString

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

Constructors

TimedString()

public TimedString()

TimedString(TimedString)

public TimedString(TimedString other)

Parameters

other TimedString

Fields

ConfidenceFieldNumber

Field number for the "confidence" field.

public const int ConfidenceFieldNumber = 4

Field Value

int

EndTimeFieldNumber

Field number for the "end_time" field.

public const int EndTimeFieldNumber = 3

Field Value

int

SpeakerIdFieldNumber

Field number for the "speaker_id" field.

public const int SpeakerIdFieldNumber = 6

Field Value

int

StartTimeFieldNumber

Field number for the "start_time" field.

public const int StartTimeFieldNumber = 2

Field Value

int

StartTimeOffsetFieldNumber

Field number for the "start_time_offset" field.

public const int StartTimeOffsetFieldNumber = 5

Field Value

int

TextFieldNumber

Field number for the "text" field.

public const int TextFieldNumber = 1

Field Value

int

Properties

Confidence

public double Confidence { get; set; }

Property Value

double

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

EndTime

public double EndTime { get; set; }

Property Value

double

HasConfidence

Gets whether the "confidence" field is set

public bool HasConfidence { get; }

Property Value

bool

HasEndTime

Gets whether the "end_time" field is set

public bool HasEndTime { get; }

Property Value

bool

HasSpeakerId

Gets whether the "speaker_id" field is set

public bool HasSpeakerId { get; }

Property Value

bool

HasStartTime

Gets whether the "start_time" field is set

public bool HasStartTime { get; }

Property Value

bool

HasStartTimeOffset

Gets whether the "start_time_offset" field is set

public bool HasStartTimeOffset { get; }

Property Value

bool

Parser

public static MessageParser<TimedString> Parser { get; }

Property Value

MessageParser<TimedString>

SpeakerId

public string SpeakerId { get; set; }

Property Value

string

StartTime

public double StartTime { get; set; }

Property Value

double

StartTimeOffset

public double StartTimeOffset { get; set; }

Property Value

double

Text

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

ClearConfidence()

Clears the value of the "confidence" field

public void ClearConfidence()

ClearEndTime()

Clears the value of the "end_time" field

public void ClearEndTime()

ClearSpeakerId()

Clears the value of the "speaker_id" field

public void ClearSpeakerId()

ClearStartTime()

Clears the value of the "start_time" field

public void ClearStartTime()

ClearStartTimeOffset()

Clears the value of the "start_time_offset" field

public void ClearStartTimeOffset()

Clone()

Creates a deep clone of this object.

public TimedString Clone()

Returns

TimedString

A deep clone of this object.

Equals(TimedString)

public bool Equals(TimedString other)

Parameters

other TimedString

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

Merges the given message into this one.

public void MergeFrom(TimedString other)

Parameters

other TimedString

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.