java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NodeRewards,NodeRewards.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NodeRewards,NodeRewards.Builder>
com.hedera.hashgraph.sdk.proto.NodeRewards.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NodeRewardsOrBuilder,Cloneable
- Enclosing class:
NodeRewards
public static final class NodeRewards.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllNodeActivities(Iterable<? extends NodeActivity> values) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.addNodeActivities(int index, NodeActivity value) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.addNodeActivities(int index, NodeActivity.Builder builderForValue) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.addNodeActivities(NodeActivity value) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.addNodeActivities(NodeActivity.Builder builderForValue) * 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.* The fees collected by node accounts in this period.* A number of rounds so far, in this staking period.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.long* The fees collected by node accounts in this period.long* A number of rounds so far, in this staking period.removeNodeActivities(int index) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.setNodeActivities(int index, NodeActivity value) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.setNodeActivities(int index, NodeActivity.Builder builderForValue) * A list of node activities.<br/> This records the number of rounds when each node created judges for the consensus algorithm.setNodeFeesCollected(long value) * The fees collected by node accounts in this period.setNumRoundsInStakingPeriod(long value) * A number of rounds so far, in this staking period.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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.
-
setNumRoundsInStakingPeriod
* A number of rounds so far, in this staking period.
uint64 num_rounds_in_staking_period = 1;- Parameters:
value- The numRoundsInStakingPeriod to set.- Returns:
- This builder for chaining.
-
clearNumRoundsInStakingPeriod
* A number of rounds so far, in this staking period.
uint64 num_rounds_in_staking_period = 1;- Returns:
- This builder for chaining.
-
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.
-
setNodeFeesCollected
* The fees collected by node accounts in this period.
uint64 node_fees_collected = 2;- Parameters:
value- The nodeFeesCollected to set.- Returns:
- This builder for chaining.
-
clearNodeFeesCollected
* The fees collected by node accounts in this period.
uint64 node_fees_collected = 2;- Returns:
- This builder for chaining.
-
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
-
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
-
setNodeActivities
* 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; -
setNodeActivities
* 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; -
addNodeActivities
* 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; -
addNodeActivities
* 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; -
addNodeActivities
* 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; -
addNodeActivities
* 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; -
addAllNodeActivities
* 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; -
clearNodeActivities
* 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; -
removeNodeActivities
* 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;
-