Class NodeStake

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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
     
    static NodeStake
     
    long
    * 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.
    long
    * 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.
     
    newBuilder(NodeStake prototype)
     
    static NodeStake
     
    static NodeStake
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static NodeStake
    parseFrom(byte[] data)
     
    static NodeStake
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static NodeStake
    parseFrom(com.google.protobuf.ByteString data)
     
    static NodeStake
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static NodeStake
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static NodeStake
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static NodeStake
     
    static NodeStake
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static NodeStake
     
    static NodeStake
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<NodeStake>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getMaxStake in interface NodeStakeOrBuilder
      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:
      getMinStake in interface NodeStakeOrBuilder
      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:
      getNodeId in interface NodeStakeOrBuilder
      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:
      getRewardRate in interface NodeStakeOrBuilder
      Returns:
      The rewardRate.
    • getStake

      public long getStake()
       *
       A consensus weight assigned to this node for the next staking period.
       
      int64 stake = 5;
      Specified by:
      getStake in interface NodeStakeOrBuilder
      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:
      getStakeNotRewarded in interface NodeStakeOrBuilder
      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:
      getStakeRewarded in interface NodeStakeOrBuilder
      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

      public static NodeStake parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeStake parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NodeStake parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static NodeStake parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeStake parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static NodeStake parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static NodeStake.Builder newBuilder()
    • newBuilder

      public static NodeStake.Builder newBuilder(NodeStake prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<NodeStake,NodeStake.Builder>
    • getDefaultInstance

      public static NodeStake getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<NodeStake> parser()