Package com.exonum.messages.core
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 Blockchain.AdditionalHeaders
getAdditionalHeaders()
.exonum.AdditionalHeaders additional_headers = 8;
Blockchain.AdditionalHeadersOrBuilder
getAdditionalHeadersOrBuilder()
.exonum.AdditionalHeaders additional_headers = 8;
Types.Hash
getErrorHash()
.exonum.crypto.Hash error_hash = 7;
Types.HashOrBuilder
getErrorHashOrBuilder()
.exonum.crypto.Hash error_hash = 7;
long
getHeight()
uint64 height = 2;
Types.Hash
getPrevHash()
.exonum.crypto.Hash prev_hash = 4;
Types.HashOrBuilder
getPrevHashOrBuilder()
.exonum.crypto.Hash prev_hash = 4;
int
getProposerId()
uint32 proposer_id = 1;
Types.Hash
getStateHash()
.exonum.crypto.Hash state_hash = 6;
Types.HashOrBuilder
getStateHashOrBuilder()
.exonum.crypto.Hash state_hash = 6;
int
getTxCount()
uint32 tx_count = 3;
Types.Hash
getTxHash()
.exonum.crypto.Hash tx_hash = 5;
Types.HashOrBuilder
getTxHashOrBuilder()
.exonum.crypto.Hash tx_hash = 5;
boolean
hasAdditionalHeaders()
.exonum.AdditionalHeaders additional_headers = 8;
boolean
hasErrorHash()
.exonum.crypto.Hash error_hash = 7;
boolean
hasPrevHash()
.exonum.crypto.Hash prev_hash = 4;
boolean
hasStateHash()
.exonum.crypto.Hash state_hash = 6;
boolean
hasTxHash()
.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;
-
hasErrorHash
boolean hasErrorHash().exonum.crypto.Hash error_hash = 7;
- Returns:
- Whether the errorHash field is set.
-
getErrorHash
Types.Hash getErrorHash().exonum.crypto.Hash error_hash = 7;
- Returns:
- The errorHash.
-
getErrorHashOrBuilder
Types.HashOrBuilder getErrorHashOrBuilder().exonum.crypto.Hash error_hash = 7;
-
hasAdditionalHeaders
boolean hasAdditionalHeaders().exonum.AdditionalHeaders additional_headers = 8;
- Returns:
- Whether the additionalHeaders field is set.
-
getAdditionalHeaders
Blockchain.AdditionalHeaders getAdditionalHeaders().exonum.AdditionalHeaders additional_headers = 8;
- Returns:
- The additionalHeaders.
-
getAdditionalHeadersOrBuilder
Blockchain.AdditionalHeadersOrBuilder getAdditionalHeadersOrBuilder().exonum.AdditionalHeaders additional_headers = 8;
-