Flow.Net
Show / Hide Table of Contents

Class Chunk

Inheritance
Object
Chunk
Implements
Google.Protobuf.IMessage<Chunk>
IEquatable<Chunk>
Google.Protobuf.IDeepCloneable<Chunk>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
Namespace: Flow.Net.Sdk.Protos.entities
Assembly: Flow.Net.Sdk.Client.Grpc.dll
Syntax
public sealed class Chunk : IMessage<Chunk>, IEquatable<Chunk>, IDeepCloneable<Chunk>, IBufferMessage, IMessage

Constructors

| Improve this Doc View Source

Chunk()

Declaration
public Chunk()
| Improve this Doc View Source

Chunk(Chunk)

Declaration
public Chunk(Chunk other)
Parameters
Type Name Description
Chunk other

Fields

| Improve this Doc View Source

BlockIdFieldNumber

Field number for the "block_id" field.

Declaration
public const int BlockIdFieldNumber = 4
Field Value
Type Description
Int32
| Improve this Doc View Source

CollectionIndexFieldNumber

Field number for the "CollectionIndex" field.

Declaration
public const int CollectionIndexFieldNumber = 1
Field Value
Type Description
Int32
| Improve this Doc View Source

EndStateFieldNumber

Field number for the "end_state" field.

Declaration
public const int EndStateFieldNumber = 8
Field Value
Type Description
Int32
| Improve this Doc View Source

EventCollectionFieldNumber

Field number for the "event_collection" field.

Declaration
public const int EventCollectionFieldNumber = 3
Field Value
Type Description
Int32
| Improve this Doc View Source

ExecutionDataIdFieldNumber

Field number for the "execution_data_id" field.

Declaration
public const int ExecutionDataIdFieldNumber = 9
Field Value
Type Description
Int32
| Improve this Doc View Source

IndexFieldNumber

Field number for the "index" field.

Declaration
public const int IndexFieldNumber = 7
Field Value
Type Description
Int32
| Improve this Doc View Source

NumberOfTransactionsFieldNumber

Field number for the "number_of_transactions" field.

Declaration
public const int NumberOfTransactionsFieldNumber = 6
Field Value
Type Description
Int32
| Improve this Doc View Source

StartStateFieldNumber

Field number for the "start_state" field.

Declaration
public const int StartStateFieldNumber = 2
Field Value
Type Description
Int32
| Improve this Doc View Source

TotalComputationUsedFieldNumber

Field number for the "total_computation_used" field.

Declaration
public const int TotalComputationUsedFieldNumber = 5
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

BlockId

Block id of the execution result this chunk belongs to

Declaration
public ByteString BlockId { get; set; }
Property Value
Type Description
Google.Protobuf.ByteString
| Improve this Doc View Source

CollectionIndex

Declaration
public uint CollectionIndex { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
Google.Protobuf.Reflection.MessageDescriptor
| Improve this Doc View Source

EndState

EndState inferred from next chunk or from the ER

Declaration
public ByteString EndState { get; set; }
Property Value
Type Description
Google.Protobuf.ByteString
| Improve this Doc View Source

EventCollection

Events generated by executing results

Declaration
public ByteString EventCollection { get; set; }
Property Value
Type Description
Google.Protobuf.ByteString
| Improve this Doc View Source

ExecutionDataId

Declaration
public ByteString ExecutionDataId { get; set; }
Property Value
Type Description
Google.Protobuf.ByteString
| Improve this Doc View Source

Index

chunk index inside the ER (starts from zero)

Declaration
public ulong Index { get; set; }
Property Value
Type Description
UInt64
| Improve this Doc View Source

NumberOfTransactions

number of transactions inside the collection

Declaration
public uint NumberOfTransactions { get; set; }
Property Value
Type Description
UInt32
| Improve this Doc View Source

Parser

Declaration
public static MessageParser<Chunk> Parser { get; }
Property Value
Type Description
Google.Protobuf.MessageParser<Chunk>
| Improve this Doc View Source

StartState

state when starting executing this chunk

Declaration
public ByteString StartState { get; set; }
Property Value
Type Description
Google.Protobuf.ByteString
| Improve this Doc View Source

TotalComputationUsed

total amount of computation used by running all txs in this chunk

Declaration
public ulong TotalComputationUsed { get; set; }
Property Value
Type Description
UInt64

Methods

| Improve this Doc View Source

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
Int32
| Improve this Doc View Source

Clone()

Declaration
public Chunk Clone()
Returns
Type Description
Chunk
| Improve this Doc View Source

Equals(Chunk)

Declaration
public bool Equals(Chunk other)
Parameters
Type Name Description
Chunk other
Returns
Type Description
Boolean
| Improve this Doc View Source

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
Object other
Returns
Type Description
Boolean
Overrides
Object.Equals(Object)
| Improve this Doc View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
| Improve this Doc View Source

MergeFrom(Chunk)

Declaration
public void MergeFrom(Chunk other)
Parameters
Type Name Description
Chunk other
| Improve this Doc View Source

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
Google.Protobuf.CodedInputStream input
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()
| Improve this Doc View Source

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
Google.Protobuf.CodedOutputStream output

Explicit Interface Implementations

| Improve this Doc View Source

IBufferMessage.InternalMergeFrom(ref ParseContext)

Declaration
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameters
Type Name Description
Google.Protobuf.ParseContext input
| Improve this Doc View Source

IBufferMessage.InternalWriteTo(ref WriteContext)

Declaration
void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameters
Type Name Description
Google.Protobuf.WriteContext output
| Improve this Doc View Source

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
Google.Protobuf.Reflection.MessageDescriptor

Implements

Google.Protobuf.IMessage<T>
System.IEquatable<T>
Google.Protobuf.IDeepCloneable<T>
Google.Protobuf.IBufferMessage
Google.Protobuf.IMessage
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX