public static final class Chainedbft.ChainedBftPhaseMessage extends com.google.protobuf.GeneratedMessageLite<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
| 限定符和类型 | 类和说明 |
|---|---|
static class |
Chainedbft.ChainedBftPhaseMessage.Builder
ChainedBftPhaseMessage is the proposal message of the protocal.
|
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MergeFromVisitor, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm, com.google.protobuf.GeneratedMessageLite.Visitor| 限定符和类型 | 字段和说明 |
|---|---|
static int |
JUSTIFYQC_FIELD_NUMBER |
static int |
MSGDIGEST_FIELD_NUMBER |
static int |
PROPOSALQC_FIELD_NUMBER |
static int |
SIGNATURE_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VIEWNUMBER_FIELD_NUMBER |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1) |
static Chainedbft.ChainedBftPhaseMessage |
getDefaultInstance() |
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; |
int |
getSerializedSize() |
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; |
static Chainedbft.ChainedBftPhaseMessage.Builder |
newBuilder() |
static Chainedbft.ChainedBftPhaseMessage.Builder |
newBuilder(Chainedbft.ChainedBftPhaseMessage prototype) |
static Chainedbft.ChainedBftPhaseMessage |
parseDelimitedFrom(InputStream input) |
static Chainedbft.ChainedBftPhaseMessage |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(byte[] data) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(com.google.protobuf.ByteString data) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(InputStream input) |
static Chainedbft.ChainedBftPhaseMessage |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Chainedbft.ChainedBftPhaseMessage> |
parser() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringpublic static final int TYPE_FIELD_NUMBER
public static final int VIEWNUMBER_FIELD_NUMBER
public static final int PROPOSALQC_FIELD_NUMBER
public static final int JUSTIFYQC_FIELD_NUMBER
public static final int MSGDIGEST_FIELD_NUMBER
public static final int SIGNATURE_FIELD_NUMBER
public int getTypeValue()
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 long getViewNumber()
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 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 com.google.protobuf.ByteString getMsgDigest()
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 void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo 在接口中 com.google.protobuf.MessageLiteIOExceptionpublic int getSerializedSize()
getSerializedSize 在接口中 com.google.protobuf.MessageLitepublic static Chainedbft.ChainedBftPhaseMessage parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(InputStream input) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Chainedbft.ChainedBftPhaseMessage.Builder newBuilder()
public static Chainedbft.ChainedBftPhaseMessage.Builder newBuilder(Chainedbft.ChainedBftPhaseMessage prototype)
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
dynamicMethod 在类中 com.google.protobuf.GeneratedMessageLite<Chainedbft.ChainedBftPhaseMessage,Chainedbft.ChainedBftPhaseMessage.Builder>public static Chainedbft.ChainedBftPhaseMessage getDefaultInstance()
public static com.google.protobuf.Parser<Chainedbft.ChainedBftPhaseMessage> parser()
Copyright © 2020. All rights reserved.