Class DataStream.Types.Trailer
public sealed class DataStream.Types.Trailer : IMessage<DataStream.Types.Trailer>, IEquatable<DataStream.Types.Trailer>, IDeepCloneable<DataStream.Types.Trailer>, IBufferMessage, IMessage
- Inheritance
-
DataStream.Types.Trailer
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
Trailer()
public Trailer()
Trailer(Trailer)
public Trailer(DataStream.Types.Trailer other)
Parameters
otherDataStream.Types.Trailer
Fields
AttributesFieldNumber
Field number for the "attributes" field.
public const int AttributesFieldNumber = 3
Field Value
ReasonFieldNumber
Field number for the "reason" field.
public const int ReasonFieldNumber = 2
Field Value
StreamIdFieldNumber
Field number for the "stream_id" field.
public const int StreamIdFieldNumber = 1
Field Value
Properties
Attributes
finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
public MapField<string, string> Attributes { get; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
Parser
public static MessageParser<DataStream.Types.Trailer> Parser { get; }
Property Value
- MessageParser<DataStream.Types.Trailer>
Reason
reason why the stream was closed (could contain "error" / "interrupted" / empty for expected end)
public string Reason { get; set; }
Property Value
StreamId
unique identifier for this data stream
public string StreamId { 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.
Clone()
Creates a deep clone of this object.
public DataStream.Types.Trailer Clone()
Returns
- DataStream.Types.Trailer
A deep clone of this object.
Equals(Trailer)
public bool Equals(DataStream.Types.Trailer other)
Parameters
otherDataStream.Types.Trailer
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(Trailer)
Merges the given message into this one.
public void MergeFrom(DataStream.Types.Trailer other)
Parameters
otherDataStream.Types.Trailer
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.