Package com.exonum.messages.core
Interface Messages.PrecommitOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Messages.Precommit,Messages.Precommit.Builder
- Enclosing class:
- Messages
public static interface Messages.PrecommitOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description Types.HashgetBlockHash()Hash of the new block.Types.HashOrBuildergetBlockHashOrBuilder()Hash of the new block.longgetEpoch()The consensus algorithm epoch to which the message is related.Types.HashgetProposeHash()Hash of the block proposal.Types.HashOrBuildergetProposeHashOrBuilder()Hash of the block proposal.intgetRound()The round to which the message is related.com.google.protobuf.TimestampgetTime()Local time of the validator node when the `Precommit` was created.com.google.protobuf.TimestampOrBuildergetTimeOrBuilder()Local time of the validator node when the `Precommit` was created.intgetValidator()ID of the validator endorsing the block.booleanhasBlockHash()Hash of the new block.booleanhasProposeHash()Hash of the block proposal.booleanhasTime()Local time of the validator node when the `Precommit` was created.Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getValidator
int getValidator()ID of the validator endorsing the block.
uint32 validator = 1;- Returns:
- The validator.
-
getEpoch
long getEpoch()The consensus algorithm epoch to which the message is related.
uint64 epoch = 2;- Returns:
- The epoch.
-
getRound
int getRound()The round to which the message is related.
uint32 round = 3;- Returns:
- The round.
-
hasProposeHash
boolean hasProposeHash()Hash of the block proposal. Note that the proposal format is not defined by the core.
.exonum.crypto.Hash propose_hash = 4;- Returns:
- Whether the proposeHash field is set.
-
getProposeHash
Types.Hash getProposeHash()Hash of the block proposal. Note that the proposal format is not defined by the core.
.exonum.crypto.Hash propose_hash = 4;- Returns:
- The proposeHash.
-
getProposeHashOrBuilder
Types.HashOrBuilder getProposeHashOrBuilder()Hash of the block proposal. Note that the proposal format is not defined by the core.
.exonum.crypto.Hash propose_hash = 4; -
hasBlockHash
boolean hasBlockHash()Hash of the new block.
.exonum.crypto.Hash block_hash = 5;- Returns:
- Whether the blockHash field is set.
-
getBlockHash
Types.Hash getBlockHash()Hash of the new block.
.exonum.crypto.Hash block_hash = 5;- Returns:
- The blockHash.
-
getBlockHashOrBuilder
Types.HashOrBuilder getBlockHashOrBuilder()Hash of the new block.
.exonum.crypto.Hash block_hash = 5; -
hasTime
boolean hasTime()Local time of the validator node when the `Precommit` was created.
.google.protobuf.Timestamp time = 6;- Returns:
- Whether the time field is set.
-
getTime
com.google.protobuf.Timestamp getTime()Local time of the validator node when the `Precommit` was created.
.google.protobuf.Timestamp time = 6;- Returns:
- The time.
-
getTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getTimeOrBuilder()Local time of the validator node when the `Precommit` was created.
.google.protobuf.Timestamp time = 6;
-