Class ByteStreamReaderWriteToFileRequest
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
Fields
DirectoryFieldNumber
Field number for the "directory" field.
public const int DirectoryFieldNumber = 3
Field Value
NameOverrideFieldNumber
Field number for the "name_override" field.
public const int NameOverrideFieldNumber = 4
Field Value
ReaderHandleFieldNumber
Field number for the "reader_handle" field.
public const int ReaderHandleFieldNumber = 1
Field Value
RequestAsyncIdFieldNumber
Field number for the "request_async_id" field.
public const int RequestAsyncIdFieldNumber = 2
Field Value
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
HasDirectory
Gets whether the "directory" field is set
public bool HasDirectory { get; }
Property Value
HasNameOverride
Gets whether the "name_override" field is set
public bool HasNameOverride { get; }
Property Value
HasReaderHandle
Gets whether the "reader_handle" field is set
public bool HasReaderHandle { get; }
Property Value
HasRequestAsyncId
Gets whether the "request_async_id" field is set
public bool HasRequestAsyncId { get; }
Property Value
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
Parser
public static Google.Protobuf.MessageParser<ByteStreamReaderWriteToFileRequest> Parser { get; }
Property Value
- MessageParser<ByteStreamReaderWriteToFileRequest>
ReaderHandle
public ulong ReaderHandle { get; set; }
Property Value
RequestAsyncId
public ulong RequestAsyncId { get; set; }
Property Value
Methods
CalculateSize()
public int CalculateSize()
Returns
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
Equals(ByteStreamReaderWriteToFileRequest)
public bool Equals(ByteStreamReaderWriteToFileRequest other)
Parameters
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(ByteStreamReaderWriteToFileRequest)
public void MergeFrom(ByteStreamReaderWriteToFileRequest other)
Parameters
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream