java.lang.Object
com.google.protobuf.AbstractMessageLite<RosterState,RosterState.Builder>
com.google.protobuf.GeneratedMessageLite<RosterState,RosterState.Builder>
com.hedera.hashgraph.sdk.proto.RosterState
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,RosterStateOrBuilder
@Generated
public final class RosterState
extends com.google.protobuf.GeneratedMessageLite<RosterState,RosterState.Builder>
implements RosterStateOrBuilder
* The current state of platform rosters.<br/> This message stores a roster data for the platform in network state. The roster state SHALL encapsulate the incoming candidate roster's hash, and a list of pairs of round number and active roster hash.<br/> This data SHALL be used to track round numbers and the rosters used in determining the consensus.<br/>Protobuf type
com.hedera.hapi.node.state.roster.RosterState-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* The current state of platform rosters.<br/> This message stores a roster data for the platform in network state.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
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.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) com.google.protobuf.ByteString* The SHA-384 hash of a candidate roster.static RosterStategetRoundRosterPairs(int index) * A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.int* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.getRoundRosterPairsOrBuilder(int index) * A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.List<? extends RoundRosterPairOrBuilder> * A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.boolean* Indicates whether the roster transplant is in progress.<br/> This is needed to determine if all the node creations and deletions are complete.static RosterState.Builderstatic RosterState.BuildernewBuilder(RosterState prototype) static RosterStateparseDelimitedFrom(InputStream input) static RosterStateparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RosterStateparseFrom(byte[] data) static RosterStateparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RosterStateparseFrom(com.google.protobuf.ByteString data) static RosterStateparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RosterStateparseFrom(com.google.protobuf.CodedInputStream input) static RosterStateparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RosterStateparseFrom(InputStream input) static RosterStateparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RosterStateparseFrom(ByteBuffer data) static RosterStateparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RosterState> parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
CANDIDATE_ROSTER_HASH_FIELD_NUMBER
public static final int CANDIDATE_ROSTER_HASH_FIELD_NUMBER- See Also:
-
ROUND_ROSTER_PAIRS_FIELD_NUMBER
public static final int ROUND_ROSTER_PAIRS_FIELD_NUMBER- See Also:
-
TRANSPLANT_IN_PROGRESS_FIELD_NUMBER
public static final int TRANSPLANT_IN_PROGRESS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getCandidateRosterHash
public com.google.protobuf.ByteString getCandidateRosterHash()* The SHA-384 hash of a candidate roster. <p> This is the hash of the roster that is currently being considered for adoption.<br/> A Node SHALL NOT, ever, have more than one candidate roster at the same time.
bytes candidate_roster_hash = 1;- Specified by:
getCandidateRosterHashin interfaceRosterStateOrBuilder- Returns:
- The candidateRosterHash.
-
getRoundRosterPairsList
* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.
repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2;- Specified by:
getRoundRosterPairsListin interfaceRosterStateOrBuilder
-
getRoundRosterPairsOrBuilderList
* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.
repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2; -
getRoundRosterPairsCount
public int getRoundRosterPairsCount()* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.
repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2;- Specified by:
getRoundRosterPairsCountin interfaceRosterStateOrBuilder
-
getRoundRosterPairs
* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.
repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2;- Specified by:
getRoundRosterPairsin interfaceRosterStateOrBuilder
-
getRoundRosterPairsOrBuilder
* A list of round numbers and roster hashes.<br/> The round number indicates the round in which the corresponding roster became active <p> This list SHALL be ordered by round numbers in descending order.
repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2; -
getTransplantInProgress
public boolean getTransplantInProgress()* Indicates whether the roster transplant is in progress.<br/> This is needed to determine if all the node creations and deletions are complete. True while a transplant roster is still being processed (nodes are being created/updated/deleted). Reset to false once dispatch is finished. <p> A transplant roster is one that has been adopted from another network using an override startup asset, rather than being generated by the current network's consensus.
bool transplant_in_progress = 3;- Specified by:
getTransplantInProgressin interfaceRosterStateOrBuilder- Returns:
- The transplantInProgress.
-
parseFrom
public static RosterState parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RosterState parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RosterState parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RosterState parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RosterState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RosterState parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RosterState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RosterState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RosterState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<RosterState,RosterState.Builder>
-
getDefaultInstance
-
parser
-