Class DataStream.Types.Chunk
public sealed class DataStream.Types.Chunk : IMessage<DataStream.Types.Chunk>, IEquatable<DataStream.Types.Chunk>, IDeepCloneable<DataStream.Types.Chunk>, IBufferMessage, IMessage
- Inheritance
-
DataStream.Types.Chunk
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
Chunk()
public Chunk()
Chunk(Chunk)
public Chunk(DataStream.Types.Chunk other)
Parameters
otherDataStream.Types.Chunk
Fields
ChunkIndexFieldNumber
Field number for the "chunk_index" field.
public const int ChunkIndexFieldNumber = 2
Field Value
ContentFieldNumber
Field number for the "content" field.
public const int ContentFieldNumber = 3
Field Value
IvFieldNumber
Field number for the "iv" field.
public const int IvFieldNumber = 5
Field Value
StreamIdFieldNumber
Field number for the "stream_id" field.
public const int StreamIdFieldNumber = 1
Field Value
VersionFieldNumber
Field number for the "version" field.
public const int VersionFieldNumber = 4
Field Value
Properties
ChunkIndex
public ulong ChunkIndex { get; set; }
Property Value
Content
content as binary (bytes)
public ByteString Content { get; set; }
Property Value
- ByteString
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasIv
Gets whether the "iv" field is set
[Obsolete]
public bool HasIv { get; }
Property Value
Iv
this is set on the DataPacket
[Obsolete]
public ByteString Iv { get; set; }
Property Value
- ByteString
Parser
public static MessageParser<DataStream.Types.Chunk> Parser { get; }
Property Value
- MessageParser<DataStream.Types.Chunk>
StreamId
unique identifier for this data stream to map it to the correct header
public string StreamId { get; set; }
Property Value
Version
a version indicating that this chunk_index has been retroactively modified and the original one needs to be replaced
public int Version { get; set; }
Property Value
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.
ClearIv()
Clears the value of the "iv" field
[Obsolete]
public void ClearIv()
Clone()
Creates a deep clone of this object.
public DataStream.Types.Chunk Clone()
Returns
- DataStream.Types.Chunk
A deep clone of this object.
Equals(Chunk)
public bool Equals(DataStream.Types.Chunk other)
Parameters
otherDataStream.Types.Chunk
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(Chunk)
Merges the given message into this one.
public void MergeFrom(DataStream.Types.Chunk other)
Parameters
otherDataStream.Types.Chunk
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.