Class DataStream.Types.Chunk
public sealed class DataStream.Types.Chunk : Google.Protobuf.IMessage<DataStream.Types.Chunk>, Google.Protobuf.IBufferMessage
- Inheritance
-
DataStream.Types.Chunk
- Implements
-
IBufferMessage
- Extension Methods
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 Google.Protobuf.ByteString Content { get; set; }
Property Value
- ByteString
Descriptor
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasChunkIndex
Gets whether the "chunk_index" field is set
public bool HasChunkIndex { get; }
Property Value
HasContent
Gets whether the "content" field is set
public bool HasContent { get; }
Property Value
HasIv
Gets whether the "iv" field is set
public bool HasIv { get; }
Property Value
HasStreamId
Gets whether the "stream_id" field is set
public bool HasStreamId { get; }
Property Value
HasVersion
Gets whether the "version" field is set
public bool HasVersion { get; }
Property Value
Iv
optional, initialization vector for AES-GCM encryption
public Google.Protobuf.ByteString Iv { get; set; }
Property Value
- ByteString
Parser
public static Google.Protobuf.MessageParser<DataStream.Types.Chunk> Parser { get; }
Property Value
- MessageParser<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()
public int CalculateSize()
Returns
ClearChunkIndex()
Clears the value of the "chunk_index" field
public void ClearChunkIndex()
ClearContent()
Clears the value of the "content" field
public void ClearContent()
ClearIv()
Clears the value of the "iv" field
public void ClearIv()
ClearStreamId()
Clears the value of the "stream_id" field
public void ClearStreamId()
ClearVersion()
Clears the value of the "version" field
public void ClearVersion()
Clone()
public DataStream.Types.Chunk Clone()
Returns
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)
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
inputCodedInputStream
MergeFrom(Chunk)
public void MergeFrom(DataStream.Types.Chunk other)
Parameters
otherDataStream.Types.Chunk
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
outputCodedOutputStream