java.lang.Object
com.google.protobuf.AbstractMessageLite<NetworkStakingRewards,NetworkStakingRewards.Builder>
com.google.protobuf.GeneratedMessageLite<NetworkStakingRewards,NetworkStakingRewards.Builder>
com.hedera.hashgraph.sdk.proto.NetworkStakingRewards
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,NetworkStakingRewardsOrBuilder
@Generated
public final class NetworkStakingRewards
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* An Hedera Token Service staking reward entity.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 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 NetworkStakingRewards* 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.newBuilder(NetworkStakingRewards prototype) static NetworkStakingRewardsparseDelimitedFrom(InputStream input) static NetworkStakingRewardsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkStakingRewardsparseFrom(byte[] data) static NetworkStakingRewardsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkStakingRewardsparseFrom(com.google.protobuf.ByteString data) static NetworkStakingRewardsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkStakingRewardsparseFrom(com.google.protobuf.CodedInputStream input) static NetworkStakingRewardsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkStakingRewardsparseFrom(InputStream input) static NetworkStakingRewardsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NetworkStakingRewardsparseFrom(ByteBuffer data) static NetworkStakingRewardsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NetworkStakingRewards> 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
-
STAKING_REWARDS_ACTIVATED_FIELD_NUMBER
public static final int STAKING_REWARDS_ACTIVATED_FIELD_NUMBER- See Also:
-
TOTAL_STAKED_REWARD_START_FIELD_NUMBER
public static final int TOTAL_STAKED_REWARD_START_FIELD_NUMBER- See Also:
-
TOTAL_STAKED_START_FIELD_NUMBER
public static final int TOTAL_STAKED_START_FIELD_NUMBER- See Also:
-
PENDING_REWARDS_FIELD_NUMBER
public static final int PENDING_REWARDS_FIELD_NUMBER- See Also:
-
LAST_NODE_REWARD_PAYMENTS_TIME_FIELD_NUMBER
public static final int LAST_NODE_REWARD_PAYMENTS_TIME_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static NetworkStakingRewards parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkStakingRewards parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkStakingRewards parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkStakingRewards parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkStakingRewards parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NetworkStakingRewards parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NetworkStakingRewards parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NetworkStakingRewards parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static NetworkStakingRewards parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static NetworkStakingRewards 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<NetworkStakingRewards,NetworkStakingRewards.Builder>
-
getDefaultInstance
-
parser
-