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 ClassesModifier and TypeClassDescriptionstatic 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
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) static NodeRewardsgetNodeActivities(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.getNodeActivitiesOrBuilder(int index) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.List<? extends NodeActivityOrBuilder> * 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.static NodeRewards.Builderstatic NodeRewards.BuildernewBuilder(NodeRewards prototype) static NodeRewardsparseDelimitedFrom(InputStream input) static NodeRewardsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeRewardsparseFrom(byte[] data) static NodeRewardsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeRewardsparseFrom(com.google.protobuf.ByteString data) static NodeRewardsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeRewardsparseFrom(com.google.protobuf.CodedInputStream input) static NodeRewardsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeRewardsparseFrom(InputStream input) static NodeRewardsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeRewardsparseFrom(ByteBuffer data) static NodeRewardsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NodeRewards> 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
-
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:
getNumRoundsInStakingPeriodin interfaceNodeRewardsOrBuilder- Returns:
- The numRoundsInStakingPeriod.
-
getNodeFeesCollected
public long getNodeFeesCollected()* The fees collected by node accounts in this period.
uint64 node_fees_collected = 2;- Specified by:
getNodeFeesCollectedin interfaceNodeRewardsOrBuilder- Returns:
- The nodeFeesCollected.
-
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:
getNodeActivitiesListin interfaceNodeRewardsOrBuilder
-
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:
getNodeActivitiesCountin interfaceNodeRewardsOrBuilder
-
getNodeActivities
* 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:
getNodeActivitiesin interfaceNodeRewardsOrBuilder
-
getNodeActivitiesOrBuilder
* 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
- Throws:
IOException
-
parseFrom
public static NodeRewards parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NodeRewards parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NodeRewards 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<NodeRewards,NodeRewards.Builder>
-
getDefaultInstance
-
parser
-