Class DataChunk
Namespace: ArmoniK.Api.gRPC.V1
Assembly: ArmoniK.Api.Common.dll
public sealed class DataChunk : IMessage<DataChunk>, IEquatable<DataChunk>, IDeepCloneable<DataChunk>, IBufferMessage, IMessage
Inheritance
Implements
IMessage<DataChunk>, IEquatable<DataChunk>, IDeepCloneable<DataChunk>, IBufferMessage, IMessage
Inherited Members
object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object, object), object.ToString()
Constructors
DataChunk()
public DataChunk()
DataChunk(DataChunk)
public DataChunk(DataChunk other)
Parameters
other DataChunk
Fields
DataCompleteFieldNumber
Field number for the “data_complete” field.
public const int DataCompleteFieldNumber = 2
Field Value
DataFieldNumber
Field number for the “data” field.
public const int DataFieldNumber = 1
Field Value
Properties
Data
public ByteString Data { get; set; }
Property Value
ByteString
DataComplete
public bool DataComplete { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
MessageDescriptor
HasData
Gets whether the “data” field is set
public bool HasData { get; }
Property Value
HasDataComplete
Gets whether the “data_complete” field is set
public bool HasDataComplete { get; }
Property Value
Parser
public static MessageParser<DataChunk> Parser { get; }
Property Value
MessageParser<DataChunk>
TypeCase
public DataChunk.TypeOneofCase TypeCase { get; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
The number of bytes required to write this message to a coded output stream.
ClearData()
Clears the value of the oneof if it’s currently set to “data”
public void ClearData()
ClearDataComplete()
Clears the value of the oneof if it’s currently set to “data_complete”
public void ClearDataComplete()
ClearType()
public void ClearType()
Clone()
Creates a deep clone of this object.
public DataChunk Clone()
Returns
A deep clone of this object.
Equals(object)
public override bool Equals(object other)
Parameters
other object
Returns
Equals(DataChunk)
public bool Equals(DataChunk other)
Parameters
other DataChunk
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(DataChunk)
Merges the given message into this one.
public void MergeFrom(DataChunk other)
Parameters
other DataChunk
Remarks
See the user guide for precise merge semantics.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input CodedInputStream
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
output CodedOutputStream
Coded output stream to write the data to. Must not be null.