Class ByteStreamInfo
public sealed class ByteStreamInfo : Google.Protobuf.IMessage<ByteStreamInfo>, Google.Protobuf.IBufferMessage
- Inheritance
-
ByteStreamInfo
- Implements
-
IBufferMessage
- Extension Methods
Constructors
ByteStreamInfo()
public ByteStreamInfo()
ByteStreamInfo(ByteStreamInfo)
public ByteStreamInfo(ByteStreamInfo other)
Parameters
otherByteStreamInfo
Fields
AttributesFieldNumber
Field number for the "attributes" field.
public const int AttributesFieldNumber = 6
Field Value
EncryptionTypeFieldNumber
Field number for the "encryption_type" field.
public const int EncryptionTypeFieldNumber = 8
Field Value
MimeTypeFieldNumber
Field number for the "mime_type" field.
public const int MimeTypeFieldNumber = 3
Field Value
NameFieldNumber
Field number for the "name" field.
public const int NameFieldNumber = 7
Field Value
StreamIdFieldNumber
Field number for the "stream_id" field.
public const int StreamIdFieldNumber = 1
Field Value
TimestampFieldNumber
Field number for the "timestamp" field.
public const int TimestampFieldNumber = 2
Field Value
TopicFieldNumber
Field number for the "topic" field.
public const int TopicFieldNumber = 4
Field Value
TotalLengthFieldNumber
Field number for the "total_length" field.
public const int TotalLengthFieldNumber = 5
Field Value
Properties
Attributes
user defined attributes map that can carry additional info
public Google.Protobuf.Collections.MapField<string, string> Attributes { get; }
Property Value
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
EncryptionType
public EncryptionType EncryptionType { get; set; }
Property Value
HasEncryptionType
Gets whether the "encryption_type" field is set
public bool HasEncryptionType { get; }
Property Value
HasMimeType
Gets whether the "mime_type" field is set
public bool HasMimeType { get; }
Property Value
HasName
Gets whether the "name" field is set
public bool HasName { get; }
Property Value
HasStreamId
Gets whether the "stream_id" field is set
public bool HasStreamId { get; }
Property Value
HasTimestamp
Gets whether the "timestamp" field is set
public bool HasTimestamp { get; }
Property Value
HasTopic
Gets whether the "topic" field is set
public bool HasTopic { get; }
Property Value
HasTotalLength
Gets whether the "total_length" field is set
public bool HasTotalLength { get; }
Property Value
MimeType
public string MimeType { get; set; }
Property Value
Name
public string Name { get; set; }
Property Value
Parser
public static Google.Protobuf.MessageParser<ByteStreamInfo> Parser { get; }
Property Value
- MessageParser<ByteStreamInfo>
StreamId
unique identifier for this data stream
public string StreamId { get; set; }
Property Value
Timestamp
using int64 for Unix timestamp
public long Timestamp { get; set; }
Property Value
Topic
public string Topic { get; set; }
Property Value
TotalLength
only populated for finite streams, if it's a stream of unknown size this stays empty
public ulong TotalLength { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearEncryptionType()
Clears the value of the "encryption_type" field
public void ClearEncryptionType()
ClearMimeType()
Clears the value of the "mime_type" field
public void ClearMimeType()
ClearName()
Clears the value of the "name" field
public void ClearName()
ClearStreamId()
Clears the value of the "stream_id" field
public void ClearStreamId()
ClearTimestamp()
Clears the value of the "timestamp" field
public void ClearTimestamp()
ClearTopic()
Clears the value of the "topic" field
public void ClearTopic()
ClearTotalLength()
Clears the value of the "total_length" field
public void ClearTotalLength()
Clone()
public ByteStreamInfo Clone()
Returns
Equals(ByteStreamInfo)
public bool Equals(ByteStreamInfo other)
Parameters
otherByteStreamInfo
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(ByteStreamInfo)
public void MergeFrom(ByteStreamInfo other)
Parameters
otherByteStreamInfo
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream