Class Roster.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<Roster,Roster.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<Roster,Roster.Builder>
com.hedera.hashgraph.sdk.proto.Roster.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, RosterOrBuilder, Cloneable
Enclosing class:
Roster

public static final class Roster.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Roster,Roster.Builder> implements RosterOrBuilder
 *
 A single roster in the network state.
 <p>
 The roster SHALL be a list of `RosterEntry` objects.
 
Protobuf type com.hedera.hapi.node.state.roster.Roster
  • Method Details

    • getRosterEntriesList

      public List<RosterEntry> getRosterEntriesList()
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
      Specified by:
      getRosterEntriesList in interface RosterOrBuilder
    • getRosterEntriesCount

      public int getRosterEntriesCount()
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
      Specified by:
      getRosterEntriesCount in interface RosterOrBuilder
    • getRosterEntries

      public RosterEntry getRosterEntries(int index)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
      Specified by:
      getRosterEntries in interface RosterOrBuilder
    • setRosterEntries

      public Roster.Builder setRosterEntries(int index, RosterEntry value)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • setRosterEntries

      public Roster.Builder setRosterEntries(int index, RosterEntry.Builder builderForValue)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • addRosterEntries

      public Roster.Builder addRosterEntries(RosterEntry value)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • addRosterEntries

      public Roster.Builder addRosterEntries(int index, RosterEntry value)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • addRosterEntries

      public Roster.Builder addRosterEntries(RosterEntry.Builder builderForValue)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • addRosterEntries

      public Roster.Builder addRosterEntries(int index, RosterEntry.Builder builderForValue)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • addAllRosterEntries

      public Roster.Builder addAllRosterEntries(Iterable<? extends RosterEntry> values)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • clearRosterEntries

      public Roster.Builder clearRosterEntries()
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;
    • removeRosterEntries

      public Roster.Builder removeRosterEntries(int index)
       *
       List of roster entries, one per consensus node.
       <p>
       This list SHALL contain roster entries in natural order of ascending node ids.
       This list SHALL NOT be empty.<br/>
       
      repeated .com.hedera.hapi.node.state.roster.RosterEntry roster_entries = 1;