Table of Contents

Class DataTrackSchemaEncoding

Namespace
LiveKit.Proto
Assembly
LiveKit.AspNetCore.ServerSdk.Abstractions.dll

Encoding for schema definition.

public sealed class DataTrackSchemaEncoding : IMessage<DataTrackSchemaEncoding>, IEquatable<DataTrackSchemaEncoding>, IDeepCloneable<DataTrackSchemaEncoding>, IBufferMessage, IMessage
Inheritance
DataTrackSchemaEncoding
Implements
IDeepCloneable<DataTrackSchemaEncoding>
IBufferMessage
IMessage
Inherited Members

Constructors

DataTrackSchemaEncoding()

public DataTrackSchemaEncoding()

DataTrackSchemaEncoding(DataTrackSchemaEncoding)

public DataTrackSchemaEncoding(DataTrackSchemaEncoding other)

Parameters

other DataTrackSchemaEncoding

Fields

CustomFieldNumber

Field number for the "custom" field.

public const int CustomFieldNumber = 2

Field Value

int

WellKnownFieldNumber

Field number for the "well_known" field.

public const int WellKnownFieldNumber = 1

Field Value

int

Properties

Custom

Identifier of a custom encoding not covered by the well-known cases. This must be non-empty and no longer than 32 characters.

public string Custom { get; set; }

Property Value

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasCustom

Gets whether the "custom" field is set

public bool HasCustom { get; }

Property Value

bool

HasWellKnown

Gets whether the "well_known" field is set

public bool HasWellKnown { get; }

Property Value

bool

Parser

public static MessageParser<DataTrackSchemaEncoding> Parser { get; }

Property Value

MessageParser<DataTrackSchemaEncoding>

ValueCase

public DataTrackSchemaEncoding.ValueOneofCase ValueCase { get; }

Property Value

DataTrackSchemaEncoding.ValueOneofCase

WellKnown

public DataTrackSchemaEncoding.Types.WellKnownSchemaEncoding WellKnown { get; set; }

Property Value

DataTrackSchemaEncoding.Types.WellKnownSchemaEncoding

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.

ClearCustom()

Clears the value of the oneof if it's currently set to "custom"

public void ClearCustom()

ClearValue()

public void ClearValue()

ClearWellKnown()

Clears the value of the oneof if it's currently set to "well_known"

public void ClearWellKnown()

Clone()

Creates a deep clone of this object.

public DataTrackSchemaEncoding Clone()

Returns

DataTrackSchemaEncoding

A deep clone of this object.

Equals(DataTrackSchemaEncoding)

public bool Equals(DataTrackSchemaEncoding other)

Parameters

other DataTrackSchemaEncoding

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(CodedInputStream)

Merges the data from the specified coded input stream with the current message.

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

Remarks

See the user guide for precise merge semantics.

MergeFrom(DataTrackSchemaEncoding)

Merges the given message into this one.

public void MergeFrom(DataTrackSchemaEncoding other)

Parameters

other DataTrackSchemaEncoding

Remarks

See the user guide for precise merge semantics.

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

Writes the data to the given coded output stream.

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream

Coded output stream to write the data to. Must not be null.