Class NodeRewards

java.lang.Object
com.google.protobuf.AbstractMessageLite<NodeRewards,NodeRewards.Builder>
com.google.protobuf.GeneratedMessageLite<NodeRewards,NodeRewards.Builder>
com.hedera.hashgraph.sdk.proto.NodeRewards
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, NodeRewardsOrBuilder

@Generated public final class NodeRewards extends com.google.protobuf.GeneratedMessageLite<NodeRewards,NodeRewards.Builder> implements NodeRewardsOrBuilder
 *
 A record of node rewards status.<br/>
 This is used to record the number of "active" nodes in a staking
 period based on number of judges each node created in that period.
 It also records the number of rounds so far in the staking period.

 A Node SHALL be considered "active" if it produced "judges" according
 to the consensus algorithm in a percentage of rounds, during the
 staking period, greater than the network configuration value for
 `nodes.activeRoundsPercent`.
 
Protobuf type proto.NodeRewards
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A record of node rewards status.<br/> This is used to record the number of "active" nodes in a staking period based on number of judges each node created in that period.

    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)
     
     
    getNodeActivities(int index)
    * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.
    int
    * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.
    * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.
    * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.
    * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.
    long
    * The fees collected by node accounts in this period.
    long
    * A number of rounds so far, in this staking period.
     
     
     
    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<NodeRewards>
     

    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

    • NUM_ROUNDS_IN_STAKING_PERIOD_FIELD_NUMBER

      public static final int NUM_ROUNDS_IN_STAKING_PERIOD_FIELD_NUMBER
      See Also:
    • NODE_FEES_COLLECTED_FIELD_NUMBER

      public static final int NODE_FEES_COLLECTED_FIELD_NUMBER
      See Also:
    • NODE_ACTIVITIES_FIELD_NUMBER

      public static final int NODE_ACTIVITIES_FIELD_NUMBER
      See Also:
  • Method Details

    • getNumRoundsInStakingPeriod

      public long getNumRoundsInStakingPeriod()
       *
       A number of rounds so far, in this staking period.
       
      uint64 num_rounds_in_staking_period = 1;
      Specified by:
      getNumRoundsInStakingPeriod in interface NodeRewardsOrBuilder
      Returns:
      The numRoundsInStakingPeriod.
    • getNodeFeesCollected

      public long getNodeFeesCollected()
       *
       The fees collected by node accounts in this period.
       
      uint64 node_fees_collected = 2;
      Specified by:
      getNodeFeesCollected in interface NodeRewardsOrBuilder
      Returns:
      The nodeFeesCollected.
    • getNodeActivitiesList

      public List<NodeActivity> getNodeActivitiesList()
       *
       A list of node activities.<br/>
       This records the number of rounds when each node created
       judges for the consensus algorithm.
       <p>
       This list SHALL contain one entry for each node participating
       in consensus during this staking period.
       
      repeated .proto.NodeActivity node_activities = 3;
      Specified by:
      getNodeActivitiesList in interface NodeRewardsOrBuilder
    • getNodeActivitiesOrBuilderList

      public List<? extends NodeActivityOrBuilder> getNodeActivitiesOrBuilderList()
       *
       A list of node activities.<br/>
       This records the number of rounds when each node created
       judges for the consensus algorithm.
       <p>
       This list SHALL contain one entry for each node participating
       in consensus during this staking period.
       
      repeated .proto.NodeActivity node_activities = 3;
    • getNodeActivitiesCount

      public int getNodeActivitiesCount()
       *
       A list of node activities.<br/>
       This records the number of rounds when each node created
       judges for the consensus algorithm.
       <p>
       This list SHALL contain one entry for each node participating
       in consensus during this staking period.
       
      repeated .proto.NodeActivity node_activities = 3;
      Specified by:
      getNodeActivitiesCount in interface NodeRewardsOrBuilder
    • getNodeActivities

      public NodeActivity getNodeActivities(int index)
       *
       A list of node activities.<br/>
       This records the number of rounds when each node created
       judges for the consensus algorithm.
       <p>
       This list SHALL contain one entry for each node participating
       in consensus during this staking period.
       
      repeated .proto.NodeActivity node_activities = 3;
      Specified by:
      getNodeActivities in interface NodeRewardsOrBuilder
    • getNodeActivitiesOrBuilder

      public NodeActivityOrBuilder getNodeActivitiesOrBuilder(int index)
       *
       A list of node activities.<br/>
       This records the number of rounds when each node created
       judges for the consensus algorithm.
       <p>
       This list SHALL contain one entry for each node participating
       in consensus during this staking period.
       
      repeated .proto.NodeActivity node_activities = 3;
    • parseFrom

      public static NodeRewards parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeRewards parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeRewards parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeRewards parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeRewards parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static NodeRewards parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

      public static NodeRewards.Builder newBuilder()
    • newBuilder

      public static NodeRewards.Builder newBuilder(NodeRewards 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<NodeRewards,NodeRewards.Builder>
    • getDefaultInstance

      public static NodeRewards getDefaultInstance()
    • parser

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