Class RosterState

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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    com.google.protobuf.ByteString
    * The SHA-384 hash of a candidate roster.
     
    * 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.
    * 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.
    boolean
    * Indicates whether the roster transplant is in progress.<br/> This is needed to determine if all the node creations and deletions are complete.
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<RosterState>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getCandidateRosterHash in interface RosterStateOrBuilder
      Returns:
      The candidateRosterHash.
    • getRoundRosterPairsList

      public List<RoundRosterPair> 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:
      getRoundRosterPairsList in interface RosterStateOrBuilder
    • getRoundRosterPairsOrBuilderList

      public List<? extends RoundRosterPairOrBuilder> 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:
      getRoundRosterPairsCount in interface RosterStateOrBuilder
    • getRoundRosterPairs

      public RoundRosterPair getRoundRosterPairs(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.
       
      repeated .com.hedera.hapi.node.state.roster.RoundRosterPair round_roster_pairs = 2;
      Specified by:
      getRoundRosterPairs in interface RosterStateOrBuilder
    • getRoundRosterPairsOrBuilder

      public RoundRosterPairOrBuilder 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.
       
      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:
      getTransplantInProgress in interface RosterStateOrBuilder
      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

      public static RosterState parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterState parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RosterState parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static RosterState parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterState parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static RosterState parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static RosterState.Builder newBuilder()
    • newBuilder

      public static RosterState.Builder newBuilder(RosterState prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<RosterState,RosterState.Builder>
    • getDefaultInstance

      public static RosterState getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<RosterState> parser()