public static final class Chainedbft.ChainedBftPhaseMessage.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Chainedbft.ChainedBftPhaseMessage,Chainedbft.ChainedBftPhaseMessage.Builder> implements Chainedbft.ChainedBftPhaseMessageOrBuilder
ChainedBftPhaseMessage is the proposal message of the protocal. In Hotstuff, there are two kinds of messages, "NEW_VIEW_MESSAGE" and "QC_Message". A stable leader can skip this "NEW_VIEW_MESSAGE".
Protobuf type pb.ChainedBftPhaseMessage
| 限定符和类型 | 方法和说明 |
|---|---|
Chainedbft.ChainedBftPhaseMessage.Builder |
clearJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
Chainedbft.ChainedBftPhaseMessage.Builder |
clearMsgDigest()
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5; |
Chainedbft.ChainedBftPhaseMessage.Builder |
clearProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
Chainedbft.ChainedBftPhaseMessage.Builder |
clearSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.ChainedBftPhaseMessage.Builder |
clearType()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1; |
Chainedbft.ChainedBftPhaseMessage.Builder |
clearViewNumber()
ViewNumber the current view number
optional int64 ViewNumber = 2; |
Chainedbft.QuorumCert |
getJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
com.google.protobuf.ByteString |
getMsgDigest()
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5; |
Chainedbft.QuorumCert |
getProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
Chainedbft.SignInfo |
getSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.QCState |
getType()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1; |
int |
getTypeValue()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1; |
long |
getViewNumber()
ViewNumber the current view number
optional int64 ViewNumber = 2; |
boolean |
hasJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
boolean |
hasProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
boolean |
hasSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.ChainedBftPhaseMessage.Builder |
mergeJustifyQC(Chainedbft.QuorumCert value)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
Chainedbft.ChainedBftPhaseMessage.Builder |
mergeProposalQC(Chainedbft.QuorumCert value)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
Chainedbft.ChainedBftPhaseMessage.Builder |
mergeSignature(Chainedbft.SignInfo value)
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setJustifyQC(Chainedbft.QuorumCert.Builder builderForValue)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setJustifyQC(Chainedbft.QuorumCert value)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setMsgDigest(com.google.protobuf.ByteString value)
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setProposalQC(Chainedbft.QuorumCert.Builder builderForValue)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setProposalQC(Chainedbft.QuorumCert value)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setSignature(Chainedbft.SignInfo.Builder builderForValue)
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setSignature(Chainedbft.SignInfo value)
Signature for this msg
optional .pb.SignInfo Signature = 6; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setType(Chainedbft.QCState value)
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setTypeValue(int value)
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1; |
Chainedbft.ChainedBftPhaseMessage.Builder |
setViewNumber(long value)
ViewNumber the current view number
optional int64 ViewNumber = 2; |
build, buildPartial, clear, clone, copyOnWrite, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFromaddAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic int getTypeValue()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1;public Chainedbft.ChainedBftPhaseMessage.Builder setTypeValue(int value)
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1;public Chainedbft.QCState getType()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1;public Chainedbft.ChainedBftPhaseMessage.Builder setType(Chainedbft.QCState value)
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1;public Chainedbft.ChainedBftPhaseMessage.Builder clearType()
Message Type: NEW_VIEW_MESSAGE or QC_MESSAGE
optional .pb.QCState Type = 1;public long getViewNumber()
ViewNumber the current view number
optional int64 ViewNumber = 2;public Chainedbft.ChainedBftPhaseMessage.Builder setViewNumber(long value)
ViewNumber the current view number
optional int64 ViewNumber = 2;public Chainedbft.ChainedBftPhaseMessage.Builder clearViewNumber()
ViewNumber the current view number
optional int64 ViewNumber = 2;public boolean hasProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public Chainedbft.QuorumCert getProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public Chainedbft.ChainedBftPhaseMessage.Builder setProposalQC(Chainedbft.QuorumCert value)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public Chainedbft.ChainedBftPhaseMessage.Builder setProposalQC(Chainedbft.QuorumCert.Builder builderForValue)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public Chainedbft.ChainedBftPhaseMessage.Builder mergeProposalQC(Chainedbft.QuorumCert value)
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public Chainedbft.ChainedBftPhaseMessage.Builder clearProposalQC()
The new proposal send to other replicas while the
optional .pb.QuorumCert ProposalQC = 3;public boolean hasJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public Chainedbft.QuorumCert getJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public Chainedbft.ChainedBftPhaseMessage.Builder setJustifyQC(Chainedbft.QuorumCert value)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public Chainedbft.ChainedBftPhaseMessage.Builder setJustifyQC(Chainedbft.QuorumCert.Builder builderForValue)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public Chainedbft.ChainedBftPhaseMessage.Builder mergeJustifyQC(Chainedbft.QuorumCert value)
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public Chainedbft.ChainedBftPhaseMessage.Builder clearJustifyQC()
JustifyQC is the QC of the leader gathered, send to next leader, while the message type is "NEW_VIEW_MESSAGE"
optional .pb.QuorumCert JustifyQC = 4;public com.google.protobuf.ByteString getMsgDigest()
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5;public Chainedbft.ChainedBftPhaseMessage.Builder setMsgDigest(com.google.protobuf.ByteString value)
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5;public Chainedbft.ChainedBftPhaseMessage.Builder clearMsgDigest()
MsgDigest is the digest of the msgg
optional bytes MsgDigest = 5;public boolean hasSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6;public Chainedbft.SignInfo getSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6;public Chainedbft.ChainedBftPhaseMessage.Builder setSignature(Chainedbft.SignInfo value)
Signature for this msg
optional .pb.SignInfo Signature = 6;public Chainedbft.ChainedBftPhaseMessage.Builder setSignature(Chainedbft.SignInfo.Builder builderForValue)
Signature for this msg
optional .pb.SignInfo Signature = 6;public Chainedbft.ChainedBftPhaseMessage.Builder mergeSignature(Chainedbft.SignInfo value)
Signature for this msg
optional .pb.SignInfo Signature = 6;public Chainedbft.ChainedBftPhaseMessage.Builder clearSignature()
Signature for this msg
optional .pb.SignInfo Signature = 6;Copyright © 2020. All rights reserved.