Class TimedString
public sealed class TimedString : IMessage<TimedString>, IEquatable<TimedString>, IDeepCloneable<TimedString>, IBufferMessage, IMessage
- Inheritance
-
TimedString
- Implements
-
IMessage<TimedString>IDeepCloneable<TimedString>IBufferMessageIMessage
- Inherited Members
Constructors
TimedString()
public TimedString()
TimedString(TimedString)
public TimedString(TimedString other)
Parameters
otherTimedString
Fields
ConfidenceFieldNumber
Field number for the "confidence" field.
public const int ConfidenceFieldNumber = 4
Field Value
EndTimeFieldNumber
Field number for the "end_time" field.
public const int EndTimeFieldNumber = 3
Field Value
SpeakerIdFieldNumber
Field number for the "speaker_id" field.
public const int SpeakerIdFieldNumber = 6
Field Value
StartTimeFieldNumber
Field number for the "start_time" field.
public const int StartTimeFieldNumber = 2
Field Value
StartTimeOffsetFieldNumber
Field number for the "start_time_offset" field.
public const int StartTimeOffsetFieldNumber = 5
Field Value
TextFieldNumber
Field number for the "text" field.
public const int TextFieldNumber = 1
Field Value
Properties
Confidence
public double Confidence { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EndTime
public double EndTime { get; set; }
Property Value
HasConfidence
Gets whether the "confidence" field is set
public bool HasConfidence { get; }
Property Value
HasEndTime
Gets whether the "end_time" field is set
public bool HasEndTime { get; }
Property Value
HasSpeakerId
Gets whether the "speaker_id" field is set
public bool HasSpeakerId { get; }
Property Value
HasStartTime
Gets whether the "start_time" field is set
public bool HasStartTime { get; }
Property Value
HasStartTimeOffset
Gets whether the "start_time_offset" field is set
public bool HasStartTimeOffset { get; }
Property Value
Parser
public static MessageParser<TimedString> Parser { get; }
Property Value
- MessageParser<TimedString>
SpeakerId
public string SpeakerId { get; set; }
Property Value
StartTime
public double StartTime { get; set; }
Property Value
StartTimeOffset
public double StartTimeOffset { get; set; }
Property Value
Text
public string Text { get; set; }
Property Value
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
otherTimedString
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(TimedString)
Merges the given message into this one.
public void MergeFrom(TimedString other)
Parameters
otherTimedString
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.