Class TranscriptionSegment
Inheritance
TranscriptionSegment
Implements
IBufferMessage
IMessage
Namespace: LiveKit.Proto
Assembly: Uniform.LiveKit.Protocol.dll
Syntax
public sealed class TranscriptionSegment : IMessage<TranscriptionSegment>, IEquatable<TranscriptionSegment>, IDeepCloneable<TranscriptionSegment>, IBufferMessage, IMessage
Constructors
TranscriptionSegment()
Declaration
public TranscriptionSegment()
TranscriptionSegment(TranscriptionSegment)
Declaration
public TranscriptionSegment(TranscriptionSegment other)
Parameters
Fields
EndTimeFieldNumber
Field number for the "end_time" field.
Declaration
public const int EndTimeFieldNumber = 4
Field Value
FinalFieldNumber
Field number for the "final" field.
Declaration
public const int FinalFieldNumber = 5
Field Value
IdFieldNumber
Field number for the "id" field.
Declaration
public const int IdFieldNumber = 1
Field Value
LanguageFieldNumber
Field number for the "language" field.
Declaration
public const int LanguageFieldNumber = 6
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
Declaration
public const int StartTimeFieldNumber = 3
Field Value
TextFieldNumber
Field number for the "text" field.
Declaration
public const int TextFieldNumber = 2
Field Value
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
| Type |
Description |
| MessageDescriptor |
|
EndTime
Declaration
public ulong EndTime { get; set; }
Property Value
Final
Declaration
public bool Final { get; set; }
Property Value
Id
Declaration
public string Id { get; set; }
Property Value
Language
Declaration
public string Language { get; set; }
Property Value
Parser
Declaration
public static MessageParser<TranscriptionSegment> Parser { get; }
Property Value
StartTime
Declaration
public ulong StartTime { get; set; }
Property Value
Text
Declaration
public string Text { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| int |
The number of bytes required to write this message
to a coded output stream.
|
Clone()
Creates a deep clone of this object.
Declaration
public TranscriptionSegment Clone()
Returns
Equals(TranscriptionSegment)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(TranscriptionSegment other)
Parameters
Returns
| Type |
Description |
| bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object other)
Parameters
| Type |
Name |
Description |
| object |
other |
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
Merges the data from the specified coded input stream with the current message.
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
| Type |
Name |
Description |
| CodedInputStream |
input |
|
MergeFrom(TranscriptionSegment)
Merges the given message into this one.
Declaration
public void MergeFrom(TranscriptionSegment other)
Parameters
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
| Type |
Name |
Description |
| CodedOutputStream |
output |
Coded output stream to write the data to. Must not be null.
|
Implements
Google.Protobuf.IMessage<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage