Class FileOutput
Unified file output — replaces v1 EncodedFileOutput and DirectFileOutput. Whether transcoded depends on encoding options on the request.
public sealed class FileOutput : IMessage<FileOutput>, IEquatable<FileOutput>, IDeepCloneable<FileOutput>, IBufferMessage, IMessage
- Inheritance
-
FileOutput
- Implements
-
IMessage<FileOutput>IDeepCloneable<FileOutput>IBufferMessageIMessage
- Inherited Members
Constructors
FileOutput()
public FileOutput()
FileOutput(FileOutput)
public FileOutput(FileOutput other)
Parameters
otherFileOutput
Fields
DisableManifestFieldNumber
Field number for the "disable_manifest" field.
public const int DisableManifestFieldNumber = 3
Field Value
FileTypeFieldNumber
Field number for the "file_type" field.
public const int FileTypeFieldNumber = 1
Field Value
FilepathFieldNumber
Field number for the "filepath" field.
public const int FilepathFieldNumber = 2
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DisableManifest
public bool DisableManifest { get; set; }
Property Value
FileType
public EncodedFileType FileType { get; set; }
Property Value
Filepath
public string Filepath { get; set; }
Property Value
Parser
public static MessageParser<FileOutput> Parser { get; }
Property Value
- MessageParser<FileOutput>
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.
Clone()
Creates a deep clone of this object.
public FileOutput Clone()
Returns
- FileOutput
A deep clone of this object.
Equals(FileOutput)
public bool Equals(FileOutput other)
Parameters
otherFileOutput
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(FileOutput)
Merges the given message into this one.
public void MergeFrom(FileOutput other)
Parameters
otherFileOutput
Remarks
See the user guide for precise merge semantics.
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStreamCoded output stream to write the data to. Must not be null.