Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class BlockStreamInfo.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<BlockStreamInfo,BlockStreamInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<BlockStreamInfo,BlockStreamInfo.Builder>
com.hedera.hashgraph.sdk.proto.BlockStreamInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,BlockStreamInfoOrBuilder,Cloneable
- Enclosing class:
BlockStreamInfo
public static final class BlockStreamInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<BlockStreamInfo,BlockStreamInfo.Builder>
implements BlockStreamInfoOrBuilder
* A message stored in state to maintain block stream parameters.<br/> Nodes use this information for three purposes. 1. To maintain hash chain continuity at restart and reconnect boundaries. 2. To store historical hashes for implementation of the EVM `BLOCKHASH` and `PREVRANDAO` opcodes. 3. To track the amount of consensus time that has passed between blocks. This value MUST be updated for every block.<br/> This value MUST be transmitted in the "state changes" section of _each_ block, but MUST be updated at the beginning of the _next_ block.<br/> This value SHALL contain the block hash up to, and including, the immediately prior completed block.<br/> The state change to update this singleton MUST be the last block item in this block.Protobuf type
com.hedera.hapi.node.state.blockstream.BlockStreamInfo-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllIntermediatePreviousBlockRootHashes(Iterable<? extends com.google.protobuf.ByteString> values) * The intermediate hashes needed for subroot 2 in the block merkle tree structure.addAllRightmostPrecedingStateChangesTreeHashes(Iterable<? extends com.google.protobuf.ByteString> values) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.addIntermediatePreviousBlockRootHashes(com.google.protobuf.ByteString value) * The intermediate hashes needed for subroot 2 in the block merkle tree structure.addRightmostPrecedingStateChangesTreeHashes(com.google.protobuf.ByteString value) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.* A block-end consensus time stamp.* A block number.<br/> This is the current block number.* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.* A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.* A version describing the version of application software.* A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.* The number of leaves in the intermediate block roots subtree.* The intermediate hashes needed for subroot 2 in the block merkle tree structure.* The time stamp at which the last user transaction was handled.* The time stamp at which the last interval process was done.* A count of "state change" block items in this block.* A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.* Whether the post-upgrade work has been done.* A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.* A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.* A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.* A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes.* A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.* A block-end consensus time stamp.long* A block number.<br/> This is the current block number.* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.com.google.protobuf.ByteString* A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.* A version describing the version of application software.com.google.protobuf.ByteString* A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.long* The number of leaves in the intermediate block roots subtree.com.google.protobuf.ByteStringgetIntermediatePreviousBlockRootHashes(int index) * The intermediate hashes needed for subroot 2 in the block merkle tree structure.int* The intermediate hashes needed for subroot 2 in the block merkle tree structure.List<com.google.protobuf.ByteString> * The intermediate hashes needed for subroot 2 in the block merkle tree structure.* The time stamp at which the last user transaction was handled.* The time stamp at which the last interval process was done.long* A count of "state change" block items in this block.com.google.protobuf.ByteString* A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.boolean* Whether the post-upgrade work has been done.com.google.protobuf.ByteStringgetRightmostPrecedingStateChangesTreeHashes(int index) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.int* A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.List<com.google.protobuf.ByteString> * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.com.google.protobuf.ByteString* A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.com.google.protobuf.ByteString* A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.com.google.protobuf.ByteString* A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes.com.google.protobuf.ByteString* A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.boolean* A block-end consensus time stamp.boolean* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.boolean* A version describing the version of application software.boolean* The time stamp at which the last user transaction was handled.boolean* The time stamp at which the last interval process was done.mergeBlockEndTime(Timestamp value) * A block-end consensus time stamp.mergeBlockTime(Timestamp value) * A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.* A version describing the version of application software.mergeLastHandleTime(Timestamp value) * The time stamp at which the last user transaction was handled.* The time stamp at which the last interval process was done.setBlockEndTime(Timestamp value) * A block-end consensus time stamp.setBlockEndTime(Timestamp.Builder builderForValue) * A block-end consensus time stamp.setBlockNumber(long value) * A block number.<br/> This is the current block number.setBlockTime(Timestamp value) * A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.setBlockTime(Timestamp.Builder builderForValue) * A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time.setConsensusHeaderRootHash(com.google.protobuf.ByteString value) * A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.* A version describing the version of application software.setCreationSoftwareVersion(SemanticVersion.Builder builderForValue) * A version describing the version of application software.setInputTreeRootHash(com.google.protobuf.ByteString value) * A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.setIntermediateBlockRootsLeafCount(long value) * The number of leaves in the intermediate block roots subtree.setIntermediatePreviousBlockRootHashes(int index, com.google.protobuf.ByteString value) * The intermediate hashes needed for subroot 2 in the block merkle tree structure.setLastHandleTime(Timestamp value) * The time stamp at which the last user transaction was handled.setLastHandleTime(Timestamp.Builder builderForValue) * The time stamp at which the last user transaction was handled.* The time stamp at which the last interval process was done.setLastIntervalProcessTime(Timestamp.Builder builderForValue) * The time stamp at which the last interval process was done.setNumPrecedingStateChangesItems(long value) * A count of "state change" block items in this block.setOutputItemRootHash(com.google.protobuf.ByteString value) * A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.setPostUpgradeWorkDone(boolean value) * Whether the post-upgrade work has been done.setRightmostPrecedingStateChangesTreeHashes(int index, com.google.protobuf.ByteString value) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree.setStartOfBlockStateHash(com.google.protobuf.ByteString value) * A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.setTraceDataRootHash(com.google.protobuf.ByteString value) * A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.setTrailingBlockHashes(com.google.protobuf.ByteString value) * A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes.setTrailingOutputHashes(com.google.protobuf.ByteString value) * A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getBlockNumber
public long getBlockNumber()* A block number.<br/> This is the current block number.
uint64 block_number = 1;- Specified by:
getBlockNumberin interfaceBlockStreamInfoOrBuilder- Returns:
- The blockNumber.
-
setBlockNumber
* A block number.<br/> This is the current block number.
uint64 block_number = 1;- Parameters:
value- The blockNumber to set.- Returns:
- This builder for chaining.
-
clearBlockNumber
* A block number.<br/> This is the current block number.
uint64 block_number = 1;- Returns:
- This builder for chaining.
-
hasBlockTime
public boolean hasBlockTime()* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2;- Specified by:
hasBlockTimein interfaceBlockStreamInfoOrBuilder- Returns:
- Whether the blockTime field is set.
-
getBlockTime
* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2;- Specified by:
getBlockTimein interfaceBlockStreamInfoOrBuilder- Returns:
- The blockTime.
-
setBlockTime
* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2; -
setBlockTime
* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2; -
mergeBlockTime
* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2; -
clearBlockTime
* A consensus time for the current block.<br/> This is the consensus time of the first round in the current block, which equates to the first contained transaction's consensus time. It is used to determine if this block was the first across an important boundary in consensus time, such as UTC midnight. This may also be used to purge entities expiring between the last block time and this time.
.proto.Timestamp block_time = 2; -
getTrailingOutputHashes
public com.google.protobuf.ByteString getTrailingOutputHashes()* A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.
bytes trailing_output_hashes = 3;- Specified by:
getTrailingOutputHashesin interfaceBlockStreamInfoOrBuilder- Returns:
- The trailingOutputHashes.
-
setTrailingOutputHashes
* A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.
bytes trailing_output_hashes = 3;- Parameters:
value- The trailingOutputHashes to set.- Returns:
- This builder for chaining.
-
clearTrailingOutputHashes
* A concatenation of hash values.<br/> This combines several trailing output block item hashes and is used as a seed value for a pseudo-random number generator.<br/> This is also required to implement the EVM `PREVRANDAO` opcode.<br/> This MUST contain at least 256 bits of entropy.
bytes trailing_output_hashes = 3;- Returns:
- This builder for chaining.
-
getTrailingBlockHashes
public com.google.protobuf.ByteString getTrailingBlockHashes()* A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes. <p> If this message is for block number N, then the earliest available hash SHALL be for block number N-256.<br/> The latest available hash SHALL be for block N-1.<br/> This is REQUIRED to implement the EVM `BLOCKHASH` opcode. <p> ### Field Length Each hash value SHALL be the trailing 265 bits of a SHA2-384 hash.<br/> The length of this field SHALL be an integer multiple of 32 bytes.<br/> This field SHALL be at least 32 bytes.<br/> The maximum length of this field SHALL be 8192 bytes.
bytes trailing_block_hashes = 4;- Specified by:
getTrailingBlockHashesin interfaceBlockStreamInfoOrBuilder- Returns:
- The trailingBlockHashes.
-
setTrailingBlockHashes
* A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes. <p> If this message is for block number N, then the earliest available hash SHALL be for block number N-256.<br/> The latest available hash SHALL be for block N-1.<br/> This is REQUIRED to implement the EVM `BLOCKHASH` opcode. <p> ### Field Length Each hash value SHALL be the trailing 265 bits of a SHA2-384 hash.<br/> The length of this field SHALL be an integer multiple of 32 bytes.<br/> This field SHALL be at least 32 bytes.<br/> The maximum length of this field SHALL be 8192 bytes.
bytes trailing_block_hashes = 4;- Parameters:
value- The trailingBlockHashes to set.- Returns:
- This builder for chaining.
-
clearTrailingBlockHashes
* A concatenation of hash values.<br/> This field combines up to 256 trailing block hashes. <p> If this message is for block number N, then the earliest available hash SHALL be for block number N-256.<br/> The latest available hash SHALL be for block N-1.<br/> This is REQUIRED to implement the EVM `BLOCKHASH` opcode. <p> ### Field Length Each hash value SHALL be the trailing 265 bits of a SHA2-384 hash.<br/> The length of this field SHALL be an integer multiple of 32 bytes.<br/> This field SHALL be at least 32 bytes.<br/> The maximum length of this field SHALL be 8192 bytes.
bytes trailing_block_hashes = 4;- Returns:
- This builder for chaining.
-
getInputTreeRootHash
public com.google.protobuf.ByteString getInputTreeRootHash()* A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.
bytes input_tree_root_hash = 5;- Specified by:
getInputTreeRootHashin interfaceBlockStreamInfoOrBuilder- Returns:
- The inputTreeRootHash.
-
setInputTreeRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.
bytes input_tree_root_hash = 5;- Parameters:
value- The inputTreeRootHash to set.- Returns:
- This builder for chaining.
-
clearInputTreeRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "input" subtree for this block.
bytes input_tree_root_hash = 5;- Returns:
- This builder for chaining.
-
getStartOfBlockStateHash
public com.google.protobuf.ByteString getStartOfBlockStateHash()* A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.
bytes start_of_block_state_hash = 6;- Specified by:
getStartOfBlockStateHashin interfaceBlockStreamInfoOrBuilder- Returns:
- The startOfBlockStateHash.
-
setStartOfBlockStateHash
* A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.
bytes start_of_block_state_hash = 6;- Parameters:
value- The startOfBlockStateHash to set.- Returns:
- This builder for chaining.
-
clearStartOfBlockStateHash
* A SHA2-384 hash value.<br/> This is the hash of consensus state at the _start_ of this block.
bytes start_of_block_state_hash = 6;- Returns:
- This builder for chaining.
-
getNumPrecedingStateChangesItems
public long getNumPrecedingStateChangesItems()* A count of "state change" block items in this block. <p> This SHALL count the number of state change block items that _precede_ the state change that updates this singleton.
uint64 num_preceding_state_changes_items = 7;- Specified by:
getNumPrecedingStateChangesItemsin interfaceBlockStreamInfoOrBuilder- Returns:
- The numPrecedingStateChangesItems.
-
setNumPrecedingStateChangesItems
* A count of "state change" block items in this block. <p> This SHALL count the number of state change block items that _precede_ the state change that updates this singleton.
uint64 num_preceding_state_changes_items = 7;- Parameters:
value- The numPrecedingStateChangesItems to set.- Returns:
- This builder for chaining.
-
clearNumPrecedingStateChangesItems
* A count of "state change" block items in this block. <p> This SHALL count the number of state change block items that _precede_ the state change that updates this singleton.
uint64 num_preceding_state_changes_items = 7;- Returns:
- This builder for chaining.
-
getRightmostPrecedingStateChangesTreeHashesList
* A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Specified by:
getRightmostPrecedingStateChangesTreeHashesListin interfaceBlockStreamInfoOrBuilder- Returns:
- A list containing the rightmostPrecedingStateChangesTreeHashes.
-
getRightmostPrecedingStateChangesTreeHashesCount
public int getRightmostPrecedingStateChangesTreeHashesCount()* A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Specified by:
getRightmostPrecedingStateChangesTreeHashesCountin interfaceBlockStreamInfoOrBuilder- Returns:
- The count of rightmostPrecedingStateChangesTreeHashes.
-
getRightmostPrecedingStateChangesTreeHashes
public com.google.protobuf.ByteString getRightmostPrecedingStateChangesTreeHashes(int index) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Specified by:
getRightmostPrecedingStateChangesTreeHashesin interfaceBlockStreamInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The rightmostPrecedingStateChangesTreeHashes at the given index.
-
setRightmostPrecedingStateChangesTreeHashes
public BlockStreamInfo.Builder setRightmostPrecedingStateChangesTreeHashes(int index, com.google.protobuf.ByteString value) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Parameters:
value- The rightmostPrecedingStateChangesTreeHashes to set.- Returns:
- This builder for chaining.
-
addRightmostPrecedingStateChangesTreeHashes
public BlockStreamInfo.Builder addRightmostPrecedingStateChangesTreeHashes(com.google.protobuf.ByteString value) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Parameters:
value- The rightmostPrecedingStateChangesTreeHashes to add.- Returns:
- This builder for chaining.
-
addAllRightmostPrecedingStateChangesTreeHashes
public BlockStreamInfo.Builder addAllRightmostPrecedingStateChangesTreeHashes(Iterable<? extends com.google.protobuf.ByteString> values) * A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Parameters:
values- The rightmostPrecedingStateChangesTreeHashes to add.- Returns:
- This builder for chaining.
-
clearRightmostPrecedingStateChangesTreeHashes
* A concatenation of SHA2-384 hash values.<br/> This is the "rightmost" values of the "output" subtree. <p> The subtree containing these hashes SHALL be constructed from all "output" `BlockItem`s in this block that _precede_ the update to this singleton.
repeated bytes rightmost_preceding_state_changes_tree_hashes = 8;- Returns:
- This builder for chaining.
-
hasBlockEndTime
public boolean hasBlockEndTime()* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9;- Specified by:
hasBlockEndTimein interfaceBlockStreamInfoOrBuilder- Returns:
- Whether the blockEndTime field is set.
-
getBlockEndTime
* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9;- Specified by:
getBlockEndTimein interfaceBlockStreamInfoOrBuilder- Returns:
- The blockEndTime.
-
setBlockEndTime
* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9; -
setBlockEndTime
* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9; -
mergeBlockEndTime
* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9; -
clearBlockEndTime
* A block-end consensus time stamp. <p> This field SHALL hold the last-used consensus time for the current block.
.proto.Timestamp block_end_time = 9; -
getPostUpgradeWorkDone
public boolean getPostUpgradeWorkDone()* Whether the post-upgrade work has been done. <p> This MUST be false if and only if the network just restarted after an upgrade and has not yet done the post-upgrade work.
bool post_upgrade_work_done = 10;- Specified by:
getPostUpgradeWorkDonein interfaceBlockStreamInfoOrBuilder- Returns:
- The postUpgradeWorkDone.
-
setPostUpgradeWorkDone
* Whether the post-upgrade work has been done. <p> This MUST be false if and only if the network just restarted after an upgrade and has not yet done the post-upgrade work.
bool post_upgrade_work_done = 10;- Parameters:
value- The postUpgradeWorkDone to set.- Returns:
- This builder for chaining.
-
clearPostUpgradeWorkDone
* Whether the post-upgrade work has been done. <p> This MUST be false if and only if the network just restarted after an upgrade and has not yet done the post-upgrade work.
bool post_upgrade_work_done = 10;- Returns:
- This builder for chaining.
-
hasCreationSoftwareVersion
public boolean hasCreationSoftwareVersion()* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11;- Specified by:
hasCreationSoftwareVersionin interfaceBlockStreamInfoOrBuilder- Returns:
- Whether the creationSoftwareVersion field is set.
-
getCreationSoftwareVersion
* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11;- Specified by:
getCreationSoftwareVersionin interfaceBlockStreamInfoOrBuilder- Returns:
- The creationSoftwareVersion.
-
setCreationSoftwareVersion
* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11; -
setCreationSoftwareVersion
* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11; -
mergeCreationSoftwareVersion
* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11; -
clearCreationSoftwareVersion
* A version describing the version of application software. <p> This SHALL be the software version that created this block.
.proto.SemanticVersion creation_software_version = 11; -
hasLastIntervalProcessTime
public boolean hasLastIntervalProcessTime()* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12;- Specified by:
hasLastIntervalProcessTimein interfaceBlockStreamInfoOrBuilder- Returns:
- Whether the lastIntervalProcessTime field is set.
-
getLastIntervalProcessTime
* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12;- Specified by:
getLastIntervalProcessTimein interfaceBlockStreamInfoOrBuilder- Returns:
- The lastIntervalProcessTime.
-
setLastIntervalProcessTime
* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12; -
setLastIntervalProcessTime
* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12; -
mergeLastIntervalProcessTime
* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12; -
clearLastIntervalProcessTime
* The time stamp at which the last interval process was done. <p> This field SHALL hold the consensus time for the last time at which an interval of time-dependent events were processed.
.proto.Timestamp last_interval_process_time = 12; -
hasLastHandleTime
public boolean hasLastHandleTime()* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13;- Specified by:
hasLastHandleTimein interfaceBlockStreamInfoOrBuilder- Returns:
- Whether the lastHandleTime field is set.
-
getLastHandleTime
* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13;- Specified by:
getLastHandleTimein interfaceBlockStreamInfoOrBuilder- Returns:
- The lastHandleTime.
-
setLastHandleTime
* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13; -
setLastHandleTime
* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13; -
mergeLastHandleTime
* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13; -
clearLastHandleTime
* The time stamp at which the last user transaction was handled. <p> This field SHALL hold the consensus time for the last time at which a user transaction was handled.
.proto.Timestamp last_handle_time = 13; -
getConsensusHeaderRootHash
public com.google.protobuf.ByteString getConsensusHeaderRootHash()* A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.
bytes consensus_header_root_hash = 14;- Specified by:
getConsensusHeaderRootHashin interfaceBlockStreamInfoOrBuilder- Returns:
- The consensusHeaderRootHash.
-
setConsensusHeaderRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.
bytes consensus_header_root_hash = 14;- Parameters:
value- The consensusHeaderRootHash to set.- Returns:
- This builder for chaining.
-
clearConsensusHeaderRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "consensus headers" subtree for this block.
bytes consensus_header_root_hash = 14;- Returns:
- This builder for chaining.
-
getOutputItemRootHash
public com.google.protobuf.ByteString getOutputItemRootHash()* A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.
bytes output_item_root_hash = 15;- Specified by:
getOutputItemRootHashin interfaceBlockStreamInfoOrBuilder- Returns:
- The outputItemRootHash.
-
setOutputItemRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.
bytes output_item_root_hash = 15;- Parameters:
value- The outputItemRootHash to set.- Returns:
- This builder for chaining.
-
clearOutputItemRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "output" subtree for this block.
bytes output_item_root_hash = 15;- Returns:
- This builder for chaining.
-
getTraceDataRootHash
public com.google.protobuf.ByteString getTraceDataRootHash()* A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.
bytes trace_data_root_hash = 16;- Specified by:
getTraceDataRootHashin interfaceBlockStreamInfoOrBuilder- Returns:
- The traceDataRootHash.
-
setTraceDataRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.
bytes trace_data_root_hash = 16;- Parameters:
value- The traceDataRootHash to set.- Returns:
- This builder for chaining.
-
clearTraceDataRootHash
* A SHA2-384 hash value.<br/> This is the final hash of the "trace data" subtree for this block.
bytes trace_data_root_hash = 16;- Returns:
- This builder for chaining.
-
getIntermediatePreviousBlockRootHashesList
* The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Specified by:
getIntermediatePreviousBlockRootHashesListin interfaceBlockStreamInfoOrBuilder- Returns:
- A list containing the intermediatePreviousBlockRootHashes.
-
getIntermediatePreviousBlockRootHashesCount
public int getIntermediatePreviousBlockRootHashesCount()* The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Specified by:
getIntermediatePreviousBlockRootHashesCountin interfaceBlockStreamInfoOrBuilder- Returns:
- The count of intermediatePreviousBlockRootHashes.
-
getIntermediatePreviousBlockRootHashes
public com.google.protobuf.ByteString getIntermediatePreviousBlockRootHashes(int index) * The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Specified by:
getIntermediatePreviousBlockRootHashesin interfaceBlockStreamInfoOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The intermediatePreviousBlockRootHashes at the given index.
-
setIntermediatePreviousBlockRootHashes
public BlockStreamInfo.Builder setIntermediatePreviousBlockRootHashes(int index, com.google.protobuf.ByteString value) * The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Parameters:
value- The intermediatePreviousBlockRootHashes to set.- Returns:
- This builder for chaining.
-
addIntermediatePreviousBlockRootHashes
public BlockStreamInfo.Builder addIntermediatePreviousBlockRootHashes(com.google.protobuf.ByteString value) * The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Parameters:
value- The intermediatePreviousBlockRootHashes to add.- Returns:
- This builder for chaining.
-
addAllIntermediatePreviousBlockRootHashes
public BlockStreamInfo.Builder addAllIntermediatePreviousBlockRootHashes(Iterable<? extends com.google.protobuf.ByteString> values) * The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Parameters:
values- The intermediatePreviousBlockRootHashes to add.- Returns:
- This builder for chaining.
-
clearIntermediatePreviousBlockRootHashes
* The intermediate hashes needed for subroot 2 in the block merkle tree structure. These hashes SHALL include the minimum required block root hashes needed to construct subroot 2's final state at the end of the previous block.
repeated bytes intermediate_previous_block_root_hashes = 17;- Returns:
- This builder for chaining.
-
getIntermediateBlockRootsLeafCount
public long getIntermediateBlockRootsLeafCount()* The number of leaves in the intermediate block roots subtree.
uint64 intermediate_block_roots_leaf_count = 18;- Specified by:
getIntermediateBlockRootsLeafCountin interfaceBlockStreamInfoOrBuilder- Returns:
- The intermediateBlockRootsLeafCount.
-
setIntermediateBlockRootsLeafCount
* The number of leaves in the intermediate block roots subtree.
uint64 intermediate_block_roots_leaf_count = 18;- Parameters:
value- The intermediateBlockRootsLeafCount to set.- Returns:
- This builder for chaining.
-
clearIntermediateBlockRootsLeafCount
* The number of leaves in the intermediate block roots subtree.
uint64 intermediate_block_roots_leaf_count = 18;- Returns:
- This builder for chaining.
-