java.lang.Object
com.google.protobuf.AbstractMessageLite<NodeStake,NodeStake.Builder>
com.google.protobuf.GeneratedMessageLite<NodeStake,NodeStake.Builder>
com.hedera.hashgraph.sdk.proto.NodeStake
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,NodeStakeOrBuilder
@Generated
public final class NodeStake
extends com.google.protobuf.GeneratedMessageLite<NodeStake,NodeStake.Builder>
implements NodeStakeOrBuilder
* Staking information for one node at the end of a staking period. This SHALL be one entry in a list reported at the end of each full staking period.Protobuf type
proto.NodeStake-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Staking information for one node at the end of a staking 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 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 NodeStakelong* A limit to the amount of stake considered for consensus weight.long* A minimum amount of HBAR staked to a node to receive rewards.long* A node identifier.<br/> This value uniquely identifies this node within the network address book.long* The rate of rewards, in tinybar per HBAR, for the staking reward period that just ended.longgetStake()* A consensus weight assigned to this node for the next staking period.long* The total amount staked to this node, while declining rewards.long* The total amount staked to this node, while accepting rewards.static NodeStake.Builderstatic NodeStake.BuildernewBuilder(NodeStake prototype) static NodeStakeparseDelimitedFrom(InputStream input) static NodeStakeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeStakeparseFrom(byte[] data) static NodeStakeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeStakeparseFrom(com.google.protobuf.ByteString data) static NodeStakeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeStakeparseFrom(com.google.protobuf.CodedInputStream input) static NodeStakeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeStakeparseFrom(InputStream input) static NodeStakeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static NodeStakeparseFrom(ByteBuffer data) static NodeStakeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<NodeStake> 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
-
MAX_STAKE_FIELD_NUMBER
public static final int MAX_STAKE_FIELD_NUMBER- See Also:
-
MIN_STAKE_FIELD_NUMBER
public static final int MIN_STAKE_FIELD_NUMBER- See Also:
-
NODE_ID_FIELD_NUMBER
public static final int NODE_ID_FIELD_NUMBER- See Also:
-
REWARD_RATE_FIELD_NUMBER
public static final int REWARD_RATE_FIELD_NUMBER- See Also:
-
STAKE_FIELD_NUMBER
public static final int STAKE_FIELD_NUMBER- See Also:
-
STAKE_NOT_REWARDED_FIELD_NUMBER
public static final int STAKE_NOT_REWARDED_FIELD_NUMBER- See Also:
-
STAKE_REWARDED_FIELD_NUMBER
public static final int STAKE_REWARDED_FIELD_NUMBER- See Also:
-
-
Method Details
-
getMaxStake
public long getMaxStake()* A limit to the amount of stake considered for consensus weight. <p> The amount of stake (whether accepting rewards or not) assigned to a node that exceeds this limit SHALL NOT be considered for consensus weight calculation.<br/> If stake to _reward_ for a node exceeds this threshold, then all accounts staking to that node SHALL receive a lower reward rate in proportion to the excess stake.
int64 max_stake = 1;- Specified by:
getMaxStakein interfaceNodeStakeOrBuilder- Returns:
- The maxStake.
-
getMinStake
public long getMinStake()* A minimum amount of HBAR staked to a node to receive rewards. <p> If the amount of stake (whether accepting rewards or not) assigned to a node at the start of a staking period is less than this threshold, then no rewards SHALL be paid to that node or to any accounts staking to that node.
int64 min_stake = 2;- Specified by:
getMinStakein interfaceNodeStakeOrBuilder- Returns:
- The minStake.
-
getNodeId
public long getNodeId()* A node identifier.<br/> This value uniquely identifies this node within the network address book.
int64 node_id = 3;- Specified by:
getNodeIdin interfaceNodeStakeOrBuilder- Returns:
- The nodeId.
-
getRewardRate
public long getRewardRate()* The rate of rewards, in tinybar per HBAR, for the staking reward period that just ended.
int64 reward_rate = 4;- Specified by:
getRewardRatein interfaceNodeStakeOrBuilder- Returns:
- The rewardRate.
-
getStake
public long getStake()* A consensus weight assigned to this node for the next staking period.
int64 stake = 5;- Specified by:
getStakein interfaceNodeStakeOrBuilder- Returns:
- The stake.
-
getStakeNotRewarded
public long getStakeNotRewarded()* The total amount staked to this node, while declining rewards. <p> This SHALL be the total staked amount, in tinybar, that is staked to this node with the value of the `decline_reward` set.<br/> This value MUST be calculated at the beginning of the staking period.
int64 stake_not_rewarded = 6;- Specified by:
getStakeNotRewardedin interfaceNodeStakeOrBuilder- Returns:
- The stakeNotRewarded.
-
getStakeRewarded
public long getStakeRewarded()* The total amount staked to this node, while accepting rewards. <p> This SHALL be the total staked amount, in tinybar, that is staked to this node with the value of the `decline_reward` not set.<br/> This value MUST be calculated at the beginning of the staking period.
int64 stake_rewarded = 7;- Specified by:
getStakeRewardedin interfaceNodeStakeOrBuilder- Returns:
- The stakeRewarded.
-
parseFrom
public static NodeStake parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeStake parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeStake parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeStake parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeStake parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NodeStake parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NodeStake parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static NodeStake parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static NodeStake 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<NodeStake,NodeStake.Builder>
-
getDefaultInstance
-
parser
-