Table of Contents

Class DataStream.Types.Header

Namespace
LiveKit.Proto

main DataStream.Header that contains a oneof for specific headers

public sealed class DataStream.Types.Header : Google.Protobuf.IMessage<DataStream.Types.Header>, Google.Protobuf.IBufferMessage
Inheritance
DataStream.Types.Header
Implements
IBufferMessage
Extension Methods

Constructors

Header()

public Header()

Header(Header)

public Header(DataStream.Types.Header other)

Parameters

other DataStream.Types.Header

Fields

AttributesFieldNumber

Field number for the "attributes" field.

public const int AttributesFieldNumber = 6

Field Value

int

ByteHeaderFieldNumber

Field number for the "byte_header" field.

public const int ByteHeaderFieldNumber = 8

Field Value

int

MimeTypeFieldNumber

Field number for the "mime_type" field.

public const int MimeTypeFieldNumber = 3

Field Value

int

StreamIdFieldNumber

Field number for the "stream_id" field.

public const int StreamIdFieldNumber = 1

Field Value

int

TextHeaderFieldNumber

Field number for the "text_header" field.

public const int TextHeaderFieldNumber = 7

Field Value

int

TimestampFieldNumber

Field number for the "timestamp" field.

public const int TimestampFieldNumber = 2

Field Value

int

TopicFieldNumber

Field number for the "topic" field.

public const int TopicFieldNumber = 4

Field Value

int

TotalLengthFieldNumber

Field number for the "total_length" field.

public const int TotalLengthFieldNumber = 5

Field Value

int

Properties

Attributes

user defined attributes map that can carry additional info

public Google.Protobuf.Collections.MapField<string, string> Attributes { get; }

Property Value

MapField<string, string>

ByteHeader

public DataStream.Types.ByteHeader ByteHeader { get; set; }

Property Value

DataStream.Types.ByteHeader

ContentHeaderCase

public DataStream.Types.Header.ContentHeaderOneofCase ContentHeaderCase { get; }

Property Value

DataStream.Types.Header.ContentHeaderOneofCase

Descriptor

public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasMimeType

Gets whether the "mime_type" field is set

public bool HasMimeType { get; }

Property Value

bool

HasStreamId

Gets whether the "stream_id" field is set

public bool HasStreamId { get; }

Property Value

bool

HasTimestamp

Gets whether the "timestamp" field is set

public bool HasTimestamp { get; }

Property Value

bool

HasTopic

Gets whether the "topic" field is set

public bool HasTopic { get; }

Property Value

bool

HasTotalLength

Gets whether the "total_length" field is set

public bool HasTotalLength { get; }

Property Value

bool

MimeType

public string MimeType { get; set; }

Property Value

string

Parser

public static Google.Protobuf.MessageParser<DataStream.Types.Header> Parser { get; }

Property Value

MessageParser<Header>

StreamId

unique identifier for this data stream

public string StreamId { get; set; }

Property Value

string

TextHeader

public DataStream.Types.TextHeader TextHeader { get; set; }

Property Value

DataStream.Types.TextHeader

Timestamp

using int64 for Unix timestamp

public long Timestamp { get; set; }

Property Value

long

Topic

public string Topic { get; set; }

Property Value

string

TotalLength

only populated for finite streams, if it's a stream of unknown size this stays empty

public ulong TotalLength { get; set; }

Property Value

ulong

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearContentHeader()

public void ClearContentHeader()

ClearMimeType()

Clears the value of the "mime_type" field

public void ClearMimeType()

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 DataStream.Types.Header Clone()

Returns

DataStream.Types.Header

Equals(Header)

public bool Equals(DataStream.Types.Header other)

Parameters

other DataStream.Types.Header

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

public void MergeFrom(Google.Protobuf.CodedInputStream input)

Parameters

input CodedInputStream

MergeFrom(Header)

public void MergeFrom(DataStream.Types.Header other)

Parameters

other DataStream.Types.Header

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream