Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class NetworkStakingRewards.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NetworkStakingRewards,NetworkStakingRewards.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NetworkStakingRewards,NetworkStakingRewards.Builder>
com.hedera.hashgraph.sdk.proto.NetworkStakingRewards.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NetworkStakingRewardsOrBuilder,Cloneable
- Enclosing class:
NetworkStakingRewards
public static final class NetworkStakingRewards.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<NetworkStakingRewards,NetworkStakingRewards.Builder>
implements NetworkStakingRewardsOrBuilder
* An Hedera Token Service staking reward entity. This stores values related to the aggregate staking rewards for all nodes in the network. It is calculated at the beginning of each staking period.Protobuf type
proto.NetworkStakingRewards-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The last time a node reward payment was made.* The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period.* A flag indicating that staking rewards are activated on the network.* A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period.* A global snapshot of the `stake` value for all nodes at the beginning of the current staking period.* The last time a node reward payment was made.long* The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period.boolean* A flag indicating that staking rewards are activated on the network.long* A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period.long* A global snapshot of the `stake` value for all nodes at the beginning of the current staking period.boolean* The last time a node reward payment was made.* The last time a node reward payment was made.* The last time a node reward payment was made.setLastNodeRewardPaymentsTime(Timestamp.Builder builderForValue) * The last time a node reward payment was made.setPendingRewards(long value) * The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period.setStakingRewardsActivated(boolean value) * A flag indicating that staking rewards are activated on the network.setTotalStakedRewardStart(long value) * A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period.setTotalStakedStart(long value) * A global snapshot of the `stake` value for all nodes at the beginning of the current 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
-
getStakingRewardsActivated
public boolean getStakingRewardsActivated()* A flag indicating that staking rewards are activated on the network. <p> Among other criteria, this is set to true when the balance of 0.0.800 (the account that pays rewards) reaches a minimum required balance.
bool staking_rewards_activated = 1;- Specified by:
getStakingRewardsActivatedin interfaceNetworkStakingRewardsOrBuilder- Returns:
- The stakingRewardsActivated.
-
setStakingRewardsActivated
* A flag indicating that staking rewards are activated on the network. <p> Among other criteria, this is set to true when the balance of 0.0.800 (the account that pays rewards) reaches a minimum required balance.
bool staking_rewards_activated = 1;- Parameters:
value- The stakingRewardsActivated to set.- Returns:
- This builder for chaining.
-
clearStakingRewardsActivated
* A flag indicating that staking rewards are activated on the network. <p> Among other criteria, this is set to true when the balance of 0.0.800 (the account that pays rewards) reaches a minimum required balance.
bool staking_rewards_activated = 1;- Returns:
- This builder for chaining.
-
getTotalStakedRewardStart
public long getTotalStakedRewardStart()* A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period. <p> The `stake_to_reward` value is the sum of balance and `staked_to_me` for all accounts staked to a node that do not decline staking rewards.<br/> This is needed for calculating rewards for current staking period without considering changes to `stake_to_reward` within the current staking period.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_reward_start = 2;- Specified by:
getTotalStakedRewardStartin interfaceNetworkStakingRewardsOrBuilder- Returns:
- The totalStakedRewardStart.
-
setTotalStakedRewardStart
* A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period. <p> The `stake_to_reward` value is the sum of balance and `staked_to_me` for all accounts staked to a node that do not decline staking rewards.<br/> This is needed for calculating rewards for current staking period without considering changes to `stake_to_reward` within the current staking period.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_reward_start = 2;- Parameters:
value- The totalStakedRewardStart to set.- Returns:
- This builder for chaining.
-
clearTotalStakedRewardStart
* A global snapshot of the `stake_to_reward` value for all nodes at the beginning of the current staking period. <p> The `stake_to_reward` value is the sum of balance and `staked_to_me` for all accounts staked to a node that do not decline staking rewards.<br/> This is needed for calculating rewards for current staking period without considering changes to `stake_to_reward` within the current staking period.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_reward_start = 2;- Returns:
- This builder for chaining.
-
getTotalStakedStart
public long getTotalStakedStart()* A global snapshot of the `stake` value for all nodes at the beginning of the current staking period. <p> The `stake` value is the sum of balance and `staked_to_me` for all accounts staked to a node, and SHALL NOT consider whether the account has accepted or declined rewards.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_start = 3;- Specified by:
getTotalStakedStartin interfaceNetworkStakingRewardsOrBuilder- Returns:
- The totalStakedStart.
-
setTotalStakedStart
* A global snapshot of the `stake` value for all nodes at the beginning of the current staking period. <p> The `stake` value is the sum of balance and `staked_to_me` for all accounts staked to a node, and SHALL NOT consider whether the account has accepted or declined rewards.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_start = 3;- Parameters:
value- The totalStakedStart to set.- Returns:
- This builder for chaining.
-
clearTotalStakedStart
* A global snapshot of the `stake` value for all nodes at the beginning of the current staking period. <p> The `stake` value is the sum of balance and `staked_to_me` for all accounts staked to a node, and SHALL NOT consider whether the account has accepted or declined rewards.<br/> This value SHALL be reset at the beginning of every staking period.
int64 total_staked_start = 3;- Returns:
- This builder for chaining.
-
getPendingRewards
public long getPendingRewards()* The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period. <p> This SHALL be calculated assuming that no account "renounces" its rewards by setting `decline_reward` to true, or is ineligible for some other reason.<br/> If a node is removed, the `pending_rewards` value of that node SHALL be subtracted from this value.
int64 pending_rewards = 4;- Specified by:
getPendingRewardsin interfaceNetworkStakingRewardsOrBuilder- Returns:
- The pendingRewards.
-
setPendingRewards
* The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period. <p> This SHALL be calculated assuming that no account "renounces" its rewards by setting `decline_reward` to true, or is ineligible for some other reason.<br/> If a node is removed, the `pending_rewards` value of that node SHALL be subtracted from this value.
int64 pending_rewards = 4;- Parameters:
value- The pendingRewards to set.- Returns:
- This builder for chaining.
-
clearPendingRewards
* The total staking rewards, in tinybars, that may be collected by all accounts staking to all nodes after the end of this staking period. <p> This SHALL be calculated assuming that no account "renounces" its rewards by setting `decline_reward` to true, or is ineligible for some other reason.<br/> If a node is removed, the `pending_rewards` value of that node SHALL be subtracted from this value.
int64 pending_rewards = 4;- Returns:
- This builder for chaining.
-
hasLastNodeRewardPaymentsTime
public boolean hasLastNodeRewardPaymentsTime()* The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5;- Specified by:
hasLastNodeRewardPaymentsTimein interfaceNetworkStakingRewardsOrBuilder- Returns:
- Whether the lastNodeRewardPaymentsTime field is set.
-
getLastNodeRewardPaymentsTime
* The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5;- Specified by:
getLastNodeRewardPaymentsTimein interfaceNetworkStakingRewardsOrBuilder- Returns:
- The lastNodeRewardPaymentsTime.
-
setLastNodeRewardPaymentsTime
* The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5; -
setLastNodeRewardPaymentsTime
public NetworkStakingRewards.Builder setLastNodeRewardPaymentsTime(Timestamp.Builder builderForValue) * The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5; -
mergeLastNodeRewardPaymentsTime
* The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5; -
clearLastNodeRewardPaymentsTime
* The last time a node reward payment was made. This will be set at the end of a staking period.
.proto.Timestamp last_node_reward_payments_time = 5;
-