Table of Contents

Class ByteStreamReaderWriteToFileRequest

Namespace
LiveKit.Proto

Writes data from an incoming stream to a file as it arrives.

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

Constructors

ByteStreamReaderWriteToFileRequest()

public ByteStreamReaderWriteToFileRequest()

ByteStreamReaderWriteToFileRequest(ByteStreamReaderWriteToFileRequest)

public ByteStreamReaderWriteToFileRequest(ByteStreamReaderWriteToFileRequest other)

Parameters

other ByteStreamReaderWriteToFileRequest

Fields

DirectoryFieldNumber

Field number for the "directory" field.

public const int DirectoryFieldNumber = 3

Field Value

int

NameOverrideFieldNumber

Field number for the "name_override" field.

public const int NameOverrideFieldNumber = 4

Field Value

int

ReaderHandleFieldNumber

Field number for the "reader_handle" field.

public const int ReaderHandleFieldNumber = 1

Field Value

int

RequestAsyncIdFieldNumber

Field number for the "request_async_id" field.

public const int RequestAsyncIdFieldNumber = 2

Field Value

int

Properties

Descriptor

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

Property Value

MessageDescriptor

Directory

Directory to write the file in (must be writable by the current process). If not provided, the file will be written to the system's temp directory.

public string Directory { get; set; }

Property Value

string

HasDirectory

Gets whether the "directory" field is set

public bool HasDirectory { get; }

Property Value

bool

HasNameOverride

Gets whether the "name_override" field is set

public bool HasNameOverride { get; }

Property Value

bool

HasReaderHandle

Gets whether the "reader_handle" field is set

public bool HasReaderHandle { get; }

Property Value

bool

HasRequestAsyncId

Gets whether the "request_async_id" field is set

public bool HasRequestAsyncId { get; }

Property Value

bool

NameOverride

Name to use for the written file. If not provided, the file's name and extension will be inferred from the stream's info.

public string NameOverride { get; set; }

Property Value

string

Parser

public static Google.Protobuf.MessageParser<ByteStreamReaderWriteToFileRequest> Parser { get; }

Property Value

MessageParser<ByteStreamReaderWriteToFileRequest>

ReaderHandle

public ulong ReaderHandle { get; set; }

Property Value

ulong

RequestAsyncId

public ulong RequestAsyncId { get; set; }

Property Value

ulong

Methods

CalculateSize()

public int CalculateSize()

Returns

int

ClearDirectory()

Clears the value of the "directory" field

public void ClearDirectory()

ClearNameOverride()

Clears the value of the "name_override" field

public void ClearNameOverride()

ClearReaderHandle()

Clears the value of the "reader_handle" field

public void ClearReaderHandle()

ClearRequestAsyncId()

Clears the value of the "request_async_id" field

public void ClearRequestAsyncId()

Clone()

public ByteStreamReaderWriteToFileRequest Clone()

Returns

ByteStreamReaderWriteToFileRequest

Equals(ByteStreamReaderWriteToFileRequest)

public bool Equals(ByteStreamReaderWriteToFileRequest other)

Parameters

other ByteStreamReaderWriteToFileRequest

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(ByteStreamReaderWriteToFileRequest)

public void MergeFrom(ByteStreamReaderWriteToFileRequest other)

Parameters

other ByteStreamReaderWriteToFileRequest

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(Google.Protobuf.CodedOutputStream output)

Parameters

output CodedOutputStream