Package com.exonum.core.messages
Interface Blockchain.BlockOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Blockchain.Block,Blockchain.Block.Builder
- Enclosing class:
- Blockchain
public static interface Blockchain.BlockOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description longgetHeight()uint64 height = 2;Types.HashgetPrevHash().exonum.crypto.Hash prev_hash = 4;Types.HashOrBuildergetPrevHashOrBuilder().exonum.crypto.Hash prev_hash = 4;intgetProposerId()uint32 proposer_id = 1;Types.HashgetStateHash().exonum.crypto.Hash state_hash = 6;Types.HashOrBuildergetStateHashOrBuilder().exonum.crypto.Hash state_hash = 6;intgetTxCount()uint32 tx_count = 3;Types.HashgetTxHash().exonum.crypto.Hash tx_hash = 5;Types.HashOrBuildergetTxHashOrBuilder().exonum.crypto.Hash tx_hash = 5;booleanhasPrevHash().exonum.crypto.Hash prev_hash = 4;booleanhasStateHash().exonum.crypto.Hash state_hash = 6;booleanhasTxHash().exonum.crypto.Hash tx_hash = 5;Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getProposerId
int getProposerId()uint32 proposer_id = 1;- Returns:
- The proposerId.
-
getHeight
long getHeight()uint64 height = 2;- Returns:
- The height.
-
getTxCount
int getTxCount()uint32 tx_count = 3;- Returns:
- The txCount.
-
hasPrevHash
boolean hasPrevHash().exonum.crypto.Hash prev_hash = 4;- Returns:
- Whether the prevHash field is set.
-
getPrevHash
Types.Hash getPrevHash().exonum.crypto.Hash prev_hash = 4;- Returns:
- The prevHash.
-
getPrevHashOrBuilder
Types.HashOrBuilder getPrevHashOrBuilder().exonum.crypto.Hash prev_hash = 4; -
hasTxHash
boolean hasTxHash().exonum.crypto.Hash tx_hash = 5;- Returns:
- Whether the txHash field is set.
-
getTxHash
Types.Hash getTxHash().exonum.crypto.Hash tx_hash = 5;- Returns:
- The txHash.
-
getTxHashOrBuilder
Types.HashOrBuilder getTxHashOrBuilder().exonum.crypto.Hash tx_hash = 5; -
hasStateHash
boolean hasStateHash().exonum.crypto.Hash state_hash = 6;- Returns:
- Whether the stateHash field is set.
-
getStateHash
Types.Hash getStateHash().exonum.crypto.Hash state_hash = 6;- Returns:
- The stateHash.
-
getStateHashOrBuilder
Types.HashOrBuilder getStateHashOrBuilder().exonum.crypto.Hash state_hash = 6;
-