All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hedera.hashgraph.sdk.proto.StakingNodeInfo Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: staking_node_info.proto

// Protobuf Java Version: 3.25.4
package com.hedera.hashgraph.sdk.proto;

/**
 * 
 **
 * Representation of a Hedera Token Service staking info entity in the network Merkle tree.
 *
 * As with all network entities, staking info is per node and has a unique entity number represented as shard.realm.X.
 * 
* * Protobuf type {@code proto.StakingNodeInfo} */ public final class StakingNodeInfo extends com.google.protobuf.GeneratedMessageLite< StakingNodeInfo, StakingNodeInfo.Builder> implements // @@protoc_insertion_point(message_implements:proto.StakingNodeInfo) StakingNodeInfoOrBuilder { private StakingNodeInfo() { rewardSumHistory_ = emptyLongList(); } public static final int NODE_NUMBER_FIELD_NUMBER = 1; private long nodeNumber_; /** *
   **
   * The unique entity number of the node. The shard and realm numbers are implied, based on the network
   * this entity came from.
   * 
* * int64 node_number = 1; * @return The nodeNumber. */ @java.lang.Override public long getNodeNumber() { return nodeNumber_; } /** *
   **
   * The unique entity number of the node. The shard and realm numbers are implied, based on the network
   * this entity came from.
   * 
* * int64 node_number = 1; * @param value The nodeNumber to set. */ private void setNodeNumber(long value) { nodeNumber_ = value; } /** *
   **
   * The unique entity number of the node. The shard and realm numbers are implied, based on the network
   * this entity came from.
   * 
* * int64 node_number = 1; */ private void clearNodeNumber() { nodeNumber_ = 0L; } public static final int MIN_STAKE_FIELD_NUMBER = 2; private long minStake_; /** *
   **
   * The minimum stake on this node that is required for this node to have a non-zero weight to
   * participate in the network consensus.
   * 
* * int64 min_stake = 2; * @return The minStake. */ @java.lang.Override public long getMinStake() { return minStake_; } /** *
   **
   * The minimum stake on this node that is required for this node to have a non-zero weight to
   * participate in the network consensus.
   * 
* * int64 min_stake = 2; * @param value The minStake to set. */ private void setMinStake(long value) { minStake_ = value; } /** *
   **
   * The minimum stake on this node that is required for this node to have a non-zero weight to
   * participate in the network consensus.
   * 
* * int64 min_stake = 2; */ private void clearMinStake() { minStake_ = 0L; } public static final int MAX_STAKE_FIELD_NUMBER = 3; private long maxStake_; /** *
   **
   * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
   * 
* * int64 max_stake = 3; * @return The maxStake. */ @java.lang.Override public long getMaxStake() { return maxStake_; } /** *
   **
   * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
   * 
* * int64 max_stake = 3; * @param value The maxStake to set. */ private void setMaxStake(long value) { maxStake_ = value; } /** *
   **
   * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
   * 
* * int64 max_stake = 3; */ private void clearMaxStake() { maxStake_ = 0L; } public static final int STAKE_TO_REWARD_FIELD_NUMBER = 4; private long stakeToReward_; /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to receive rewards.
   * 
* * int64 stake_to_reward = 4; * @return The stakeToReward. */ @java.lang.Override public long getStakeToReward() { return stakeToReward_; } /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to receive rewards.
   * 
* * int64 stake_to_reward = 4; * @param value The stakeToReward to set. */ private void setStakeToReward(long value) { stakeToReward_ = value; } /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to receive rewards.
   * 
* * int64 stake_to_reward = 4; */ private void clearStakeToReward() { stakeToReward_ = 0L; } public static final int STAKE_TO_NOT_REWARD_FIELD_NUMBER = 5; private long stakeToNotReward_; /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to decline rewards.
   * 
* * int64 stake_to_not_reward = 5; * @return The stakeToNotReward. */ @java.lang.Override public long getStakeToNotReward() { return stakeToNotReward_; } /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to decline rewards.
   * 
* * int64 stake_to_not_reward = 5; * @param value The stakeToNotReward to set. */ private void setStakeToNotReward(long value) { stakeToNotReward_ = value; } /** *
   **
   * The sum of balances of all accounts staked to this node who have opted to decline rewards.
   * 
* * int64 stake_to_not_reward = 5; */ private void clearStakeToNotReward() { stakeToNotReward_ = 0L; } public static final int STAKE_REWARD_START_FIELD_NUMBER = 6; private long stakeRewardStart_; /** *
   **
   * The snapshot of stake_to_reward value at the beginning of the current staking period.
   * This is needed for calculating rewards for current staking period without considering changes to
   * stake_to_reward in the current staking period. It is reset at the beginning of every period.
   * 
* * int64 stake_reward_start = 6; * @return The stakeRewardStart. */ @java.lang.Override public long getStakeRewardStart() { return stakeRewardStart_; } /** *
   **
   * The snapshot of stake_to_reward value at the beginning of the current staking period.
   * This is needed for calculating rewards for current staking period without considering changes to
   * stake_to_reward in the current staking period. It is reset at the beginning of every period.
   * 
* * int64 stake_reward_start = 6; * @param value The stakeRewardStart to set. */ private void setStakeRewardStart(long value) { stakeRewardStart_ = value; } /** *
   **
   * The snapshot of stake_to_reward value at the beginning of the current staking period.
   * This is needed for calculating rewards for current staking period without considering changes to
   * stake_to_reward in the current staking period. It is reset at the beginning of every period.
   * 
* * int64 stake_reward_start = 6; */ private void clearStakeRewardStart() { stakeRewardStart_ = 0L; } public static final int UNCLAIMED_STAKE_REWARD_START_FIELD_NUMBER = 7; private long unclaimedStakeRewardStart_; /** *
   **
   * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
   * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
   * 
* * int64 unclaimed_stake_reward_start = 7; * @return The unclaimedStakeRewardStart. */ @java.lang.Override public long getUnclaimedStakeRewardStart() { return unclaimedStakeRewardStart_; } /** *
   **
   * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
   * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
   * 
* * int64 unclaimed_stake_reward_start = 7; * @param value The unclaimedStakeRewardStart to set. */ private void setUnclaimedStakeRewardStart(long value) { unclaimedStakeRewardStart_ = value; } /** *
   **
   * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
   * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
   * 
* * int64 unclaimed_stake_reward_start = 7; */ private void clearUnclaimedStakeRewardStart() { unclaimedStakeRewardStart_ = 0L; } public static final int STAKE_FIELD_NUMBER = 8; private long stake_; /** *
   **
   * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
   * If the sum is greater than max_stake, then the effective stake is max_stake.
   * If the sum is less than min_stake, then the effective stake is 0.
   * 
* * int64 stake = 8; * @return The stake. */ @java.lang.Override public long getStake() { return stake_; } /** *
   **
   * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
   * If the sum is greater than max_stake, then the effective stake is max_stake.
   * If the sum is less than min_stake, then the effective stake is 0.
   * 
* * int64 stake = 8; * @param value The stake to set. */ private void setStake(long value) { stake_ = value; } /** *
   **
   * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
   * If the sum is greater than max_stake, then the effective stake is max_stake.
   * If the sum is less than min_stake, then the effective stake is 0.
   * 
* * int64 stake = 8; */ private void clearStake() { stake_ = 0L; } public static final int REWARD_SUM_HISTORY_FIELD_NUMBER = 9; private com.google.protobuf.Internal.LongList rewardSumHistory_; /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @return A list containing the rewardSumHistory. */ @java.lang.Override public java.util.List getRewardSumHistoryList() { return rewardSumHistory_; } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @return The count of rewardSumHistory. */ @java.lang.Override public int getRewardSumHistoryCount() { return rewardSumHistory_.size(); } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @param index The index of the element to return. * @return The rewardSumHistory at the given index. */ @java.lang.Override public long getRewardSumHistory(int index) { return rewardSumHistory_.getLong(index); } private int rewardSumHistoryMemoizedSerializedSize = -1; private void ensureRewardSumHistoryIsMutable() { com.google.protobuf.Internal.LongList tmp = rewardSumHistory_; if (!tmp.isModifiable()) { rewardSumHistory_ = com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp); } } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @param index The index to set the value at. * @param value The rewardSumHistory to set. */ private void setRewardSumHistory( int index, long value) { ensureRewardSumHistoryIsMutable(); rewardSumHistory_.setLong(index, value); } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @param value The rewardSumHistory to add. */ private void addRewardSumHistory(long value) { ensureRewardSumHistoryIsMutable(); rewardSumHistory_.addLong(value); } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; * @param values The rewardSumHistory to add. */ private void addAllRewardSumHistory( java.lang.Iterable values) { ensureRewardSumHistoryIsMutable(); com.google.protobuf.AbstractMessageLite.addAll( values, rewardSumHistory_); } /** *
   **
   * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
   * is the reward up to and including the last full period that finished before the present. Second element is
   * the reward up to and including the period before that
   * 
* * repeated int64 reward_sum_history = 9; */ private void clearRewardSumHistory() { rewardSumHistory_ = emptyLongList(); } public static final int WEIGHT_FIELD_NUMBER = 10; private int weight_; /** *
   **
   * The consensus weight of this node in the network. This is computed based on the stake of this node
   * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
   * Sum of all weights of nodes in the network should be less than 500.
   * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
   * (node A stake * 500/ total stake of all nodes)
   * 
* * int32 weight = 10; * @return The weight. */ @java.lang.Override public int getWeight() { return weight_; } /** *
   **
   * The consensus weight of this node in the network. This is computed based on the stake of this node
   * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
   * Sum of all weights of nodes in the network should be less than 500.
   * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
   * (node A stake * 500/ total stake of all nodes)
   * 
* * int32 weight = 10; * @param value The weight to set. */ private void setWeight(int value) { weight_ = value; } /** *
   **
   * The consensus weight of this node in the network. This is computed based on the stake of this node
   * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
   * Sum of all weights of nodes in the network should be less than 500.
   * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
   * (node A stake * 500/ total stake of all nodes)
   * 
* * int32 weight = 10; */ private void clearWeight() { weight_ = 0; } public static final int PENDING_REWARDS_FIELD_NUMBER = 11; private long pendingRewards_; /** *
   **
   * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
   * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
   * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
   * to all nodes in the network in NetworkStakingRewards.
   * 
* * int64 pending_rewards = 11; * @return The pendingRewards. */ @java.lang.Override public long getPendingRewards() { return pendingRewards_; } /** *
   **
   * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
   * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
   * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
   * to all nodes in the network in NetworkStakingRewards.
   * 
* * int64 pending_rewards = 11; * @param value The pendingRewards to set. */ private void setPendingRewards(long value) { pendingRewards_ = value; } /** *
   **
   * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
   * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
   * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
   * to all nodes in the network in NetworkStakingRewards.
   * 
* * int64 pending_rewards = 11; */ private void clearPendingRewards() { pendingRewards_ = 0L; } public static final int DELETED_FIELD_NUMBER = 12; private boolean deleted_; /** *
   **
   * True if this node has been deleted from network.
   * 
* * bool deleted = 12; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return deleted_; } /** *
   **
   * True if this node has been deleted from network.
   * 
* * bool deleted = 12; * @param value The deleted to set. */ private void setDeleted(boolean value) { deleted_ = value; } /** *
   **
   * True if this node has been deleted from network.
   * 
* * bool deleted = 12; */ private void clearDeleted() { deleted_ = false; } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, data, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageLite.parseFrom( DEFAULT_INSTANCE, input, extensionRegistry); } public static Builder newBuilder() { return (Builder) DEFAULT_INSTANCE.createBuilder(); } public static Builder newBuilder(com.hedera.hashgraph.sdk.proto.StakingNodeInfo prototype) { return DEFAULT_INSTANCE.createBuilder(prototype); } /** *
   **
   * Representation of a Hedera Token Service staking info entity in the network Merkle tree.
   *
   * As with all network entities, staking info is per node and has a unique entity number represented as shard.realm.X.
   * 
* * Protobuf type {@code proto.StakingNodeInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageLite.Builder< com.hedera.hashgraph.sdk.proto.StakingNodeInfo, Builder> implements // @@protoc_insertion_point(builder_implements:proto.StakingNodeInfo) com.hedera.hashgraph.sdk.proto.StakingNodeInfoOrBuilder { // Construct using com.hedera.hashgraph.sdk.proto.StakingNodeInfo.newBuilder() private Builder() { super(DEFAULT_INSTANCE); } /** *
     **
     * The unique entity number of the node. The shard and realm numbers are implied, based on the network
     * this entity came from.
     * 
* * int64 node_number = 1; * @return The nodeNumber. */ @java.lang.Override public long getNodeNumber() { return instance.getNodeNumber(); } /** *
     **
     * The unique entity number of the node. The shard and realm numbers are implied, based on the network
     * this entity came from.
     * 
* * int64 node_number = 1; * @param value The nodeNumber to set. * @return This builder for chaining. */ public Builder setNodeNumber(long value) { copyOnWrite(); instance.setNodeNumber(value); return this; } /** *
     **
     * The unique entity number of the node. The shard and realm numbers are implied, based on the network
     * this entity came from.
     * 
* * int64 node_number = 1; * @return This builder for chaining. */ public Builder clearNodeNumber() { copyOnWrite(); instance.clearNodeNumber(); return this; } /** *
     **
     * The minimum stake on this node that is required for this node to have a non-zero weight to
     * participate in the network consensus.
     * 
* * int64 min_stake = 2; * @return The minStake. */ @java.lang.Override public long getMinStake() { return instance.getMinStake(); } /** *
     **
     * The minimum stake on this node that is required for this node to have a non-zero weight to
     * participate in the network consensus.
     * 
* * int64 min_stake = 2; * @param value The minStake to set. * @return This builder for chaining. */ public Builder setMinStake(long value) { copyOnWrite(); instance.setMinStake(value); return this; } /** *
     **
     * The minimum stake on this node that is required for this node to have a non-zero weight to
     * participate in the network consensus.
     * 
* * int64 min_stake = 2; * @return This builder for chaining. */ public Builder clearMinStake() { copyOnWrite(); instance.clearMinStake(); return this; } /** *
     **
     * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
     * 
* * int64 max_stake = 3; * @return The maxStake. */ @java.lang.Override public long getMaxStake() { return instance.getMaxStake(); } /** *
     **
     * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
     * 
* * int64 max_stake = 3; * @param value The maxStake to set. * @return This builder for chaining. */ public Builder setMaxStake(long value) { copyOnWrite(); instance.setMaxStake(value); return this; } /** *
     **
     * The maximum stake on this node that is considered to calculate its weight to participate in the network consensus.
     * 
* * int64 max_stake = 3; * @return This builder for chaining. */ public Builder clearMaxStake() { copyOnWrite(); instance.clearMaxStake(); return this; } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to receive rewards.
     * 
* * int64 stake_to_reward = 4; * @return The stakeToReward. */ @java.lang.Override public long getStakeToReward() { return instance.getStakeToReward(); } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to receive rewards.
     * 
* * int64 stake_to_reward = 4; * @param value The stakeToReward to set. * @return This builder for chaining. */ public Builder setStakeToReward(long value) { copyOnWrite(); instance.setStakeToReward(value); return this; } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to receive rewards.
     * 
* * int64 stake_to_reward = 4; * @return This builder for chaining. */ public Builder clearStakeToReward() { copyOnWrite(); instance.clearStakeToReward(); return this; } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to decline rewards.
     * 
* * int64 stake_to_not_reward = 5; * @return The stakeToNotReward. */ @java.lang.Override public long getStakeToNotReward() { return instance.getStakeToNotReward(); } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to decline rewards.
     * 
* * int64 stake_to_not_reward = 5; * @param value The stakeToNotReward to set. * @return This builder for chaining. */ public Builder setStakeToNotReward(long value) { copyOnWrite(); instance.setStakeToNotReward(value); return this; } /** *
     **
     * The sum of balances of all accounts staked to this node who have opted to decline rewards.
     * 
* * int64 stake_to_not_reward = 5; * @return This builder for chaining. */ public Builder clearStakeToNotReward() { copyOnWrite(); instance.clearStakeToNotReward(); return this; } /** *
     **
     * The snapshot of stake_to_reward value at the beginning of the current staking period.
     * This is needed for calculating rewards for current staking period without considering changes to
     * stake_to_reward in the current staking period. It is reset at the beginning of every period.
     * 
* * int64 stake_reward_start = 6; * @return The stakeRewardStart. */ @java.lang.Override public long getStakeRewardStart() { return instance.getStakeRewardStart(); } /** *
     **
     * The snapshot of stake_to_reward value at the beginning of the current staking period.
     * This is needed for calculating rewards for current staking period without considering changes to
     * stake_to_reward in the current staking period. It is reset at the beginning of every period.
     * 
* * int64 stake_reward_start = 6; * @param value The stakeRewardStart to set. * @return This builder for chaining. */ public Builder setStakeRewardStart(long value) { copyOnWrite(); instance.setStakeRewardStart(value); return this; } /** *
     **
     * The snapshot of stake_to_reward value at the beginning of the current staking period.
     * This is needed for calculating rewards for current staking period without considering changes to
     * stake_to_reward in the current staking period. It is reset at the beginning of every period.
     * 
* * int64 stake_reward_start = 6; * @return This builder for chaining. */ public Builder clearStakeRewardStart() { copyOnWrite(); instance.clearStakeRewardStart(); return this; } /** *
     **
     * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
     * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
     * 
* * int64 unclaimed_stake_reward_start = 7; * @return The unclaimedStakeRewardStart. */ @java.lang.Override public long getUnclaimedStakeRewardStart() { return instance.getUnclaimedStakeRewardStart(); } /** *
     **
     * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
     * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
     * 
* * int64 unclaimed_stake_reward_start = 7; * @param value The unclaimedStakeRewardStart to set. * @return This builder for chaining. */ public Builder setUnclaimedStakeRewardStart(long value) { copyOnWrite(); instance.setUnclaimedStakeRewardStart(value); return this; } /** *
     **
     * Tracks how much stake from stakeRewardStart will have unclaimed rewards due to accounts changing their staking
     * metadata in a way that disqualifies them for the current period; It is reset at the beginning of every period
     * 
* * int64 unclaimed_stake_reward_start = 7; * @return This builder for chaining. */ public Builder clearUnclaimedStakeRewardStart() { copyOnWrite(); instance.clearUnclaimedStakeRewardStart(); return this; } /** *
     **
     * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
     * If the sum is greater than max_stake, then the effective stake is max_stake.
     * If the sum is less than min_stake, then the effective stake is 0.
     * 
* * int64 stake = 8; * @return The stake. */ @java.lang.Override public long getStake() { return instance.getStake(); } /** *
     **
     * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
     * If the sum is greater than max_stake, then the effective stake is max_stake.
     * If the sum is less than min_stake, then the effective stake is 0.
     * 
* * int64 stake = 8; * @param value The stake to set. * @return This builder for chaining. */ public Builder setStake(long value) { copyOnWrite(); instance.setStake(value); return this; } /** *
     **
     * The total amount of effective hbar staked to this node. This is sum of stake_to_reward and stake_to_not_reward.
     * If the sum is greater than max_stake, then the effective stake is max_stake.
     * If the sum is less than min_stake, then the effective stake is 0.
     * 
* * int64 stake = 8; * @return This builder for chaining. */ public Builder clearStake() { copyOnWrite(); instance.clearStake(); return this; } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @return A list containing the rewardSumHistory. */ @java.lang.Override public java.util.List getRewardSumHistoryList() { return java.util.Collections.unmodifiableList( instance.getRewardSumHistoryList()); } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @return The count of rewardSumHistory. */ @java.lang.Override public int getRewardSumHistoryCount() { return instance.getRewardSumHistoryCount(); } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @param index The index of the element to return. * @return The rewardSumHistory at the given index. */ @java.lang.Override public long getRewardSumHistory(int index) { return instance.getRewardSumHistory(index); } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @param value The rewardSumHistory to set. * @return This builder for chaining. */ public Builder setRewardSumHistory( int index, long value) { copyOnWrite(); instance.setRewardSumHistory(index, value); return this; } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @param value The rewardSumHistory to add. * @return This builder for chaining. */ public Builder addRewardSumHistory(long value) { copyOnWrite(); instance.addRewardSumHistory(value); return this; } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @param values The rewardSumHistory to add. * @return This builder for chaining. */ public Builder addAllRewardSumHistory( java.lang.Iterable values) { copyOnWrite(); instance.addAllRewardSumHistory(values); return this; } /** *
     **
     * An running sum of reward rates per hbar for the last 365+1 staking periods. The first element is the
     * is the reward up to and including the last full period that finished before the present. Second element is
     * the reward up to and including the period before that
     * 
* * repeated int64 reward_sum_history = 9; * @return This builder for chaining. */ public Builder clearRewardSumHistory() { copyOnWrite(); instance.clearRewardSumHistory(); return this; } /** *
     **
     * The consensus weight of this node in the network. This is computed based on the stake of this node
     * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
     * Sum of all weights of nodes in the network should be less than 500.
     * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
     * (node A stake * 500/ total stake of all nodes)
     * 
* * int32 weight = 10; * @return The weight. */ @java.lang.Override public int getWeight() { return instance.getWeight(); } /** *
     **
     * The consensus weight of this node in the network. This is computed based on the stake of this node
     * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
     * Sum of all weights of nodes in the network should be less than 500.
     * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
     * (node A stake * 500/ total stake of all nodes)
     * 
* * int32 weight = 10; * @param value The weight to set. * @return This builder for chaining. */ public Builder setWeight(int value) { copyOnWrite(); instance.setWeight(value); return this; } /** *
     **
     * The consensus weight of this node in the network. This is computed based on the stake of this node
     * at midnight UTC of the current day. If the stake of this node is less than minStake, then the weight is 0.
     * Sum of all weights of nodes in the network should be less than 500.
     * If the stake of this node A is greater than minStake, then the weight of this node A is calculated as:
     * (node A stake * 500/ total stake of all nodes)
     * 
* * int32 weight = 10; * @return This builder for chaining. */ public Builder clearWeight() { copyOnWrite(); instance.clearWeight(); return this; } /** *
     **
     * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
     * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
     * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
     * to all nodes in the network in NetworkStakingRewards.
     * 
* * int64 pending_rewards = 11; * @return The pendingRewards. */ @java.lang.Override public long getPendingRewards() { return instance.getPendingRewards(); } /** *
     **
     * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
     * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
     * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
     * to all nodes in the network in NetworkStakingRewards.
     * 
* * int64 pending_rewards = 11; * @param value The pendingRewards to set. * @return This builder for chaining. */ public Builder setPendingRewards(long value) { copyOnWrite(); instance.setPendingRewards(value); return this; } /** *
     **
     * The total staking rewards in tinybars that COULD be collected by all accounts staking to the current node after the end
     * of this staking period; assuming that no account "renounces" its rewards by, for example, setting declineReward=true.
     * When the current node is deleted, this amount will be subtracted from the total pending rewards of all accounts staking
     * to all nodes in the network in NetworkStakingRewards.
     * 
* * int64 pending_rewards = 11; * @return This builder for chaining. */ public Builder clearPendingRewards() { copyOnWrite(); instance.clearPendingRewards(); return this; } /** *
     **
     * True if this node has been deleted from network.
     * 
* * bool deleted = 12; * @return The deleted. */ @java.lang.Override public boolean getDeleted() { return instance.getDeleted(); } /** *
     **
     * True if this node has been deleted from network.
     * 
* * bool deleted = 12; * @param value The deleted to set. * @return This builder for chaining. */ public Builder setDeleted(boolean value) { copyOnWrite(); instance.setDeleted(value); return this; } /** *
     **
     * True if this node has been deleted from network.
     * 
* * bool deleted = 12; * @return This builder for chaining. */ public Builder clearDeleted() { copyOnWrite(); instance.clearDeleted(); return this; } // @@protoc_insertion_point(builder_scope:proto.StakingNodeInfo) } @java.lang.Override @java.lang.SuppressWarnings({"unchecked", "fallthrough"}) protected final java.lang.Object dynamicMethod( com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1) { switch (method) { case NEW_MUTABLE_INSTANCE: { return new com.hedera.hashgraph.sdk.proto.StakingNodeInfo(); } case NEW_BUILDER: { return new Builder(); } case BUILD_MESSAGE_INFO: { java.lang.Object[] objects = new java.lang.Object[] { "nodeNumber_", "minStake_", "maxStake_", "stakeToReward_", "stakeToNotReward_", "stakeRewardStart_", "unclaimedStakeRewardStart_", "stake_", "rewardSumHistory_", "weight_", "pendingRewards_", "deleted_", }; java.lang.String info = "\u0000\f\u0000\u0000\u0001\f\f\u0000\u0001\u0000\u0001\u0002\u0002\u0002\u0003\u0002" + "\u0004\u0002\u0005\u0002\u0006\u0002\u0007\u0002\b\u0002\t%\n\u0004\u000b\u0002\f" + "\u0007"; return newMessageInfo(DEFAULT_INSTANCE, info, objects); } // fall through case GET_DEFAULT_INSTANCE: { return DEFAULT_INSTANCE; } case GET_PARSER: { com.google.protobuf.Parser parser = PARSER; if (parser == null) { synchronized (com.hedera.hashgraph.sdk.proto.StakingNodeInfo.class) { parser = PARSER; if (parser == null) { parser = new DefaultInstanceBasedParser( DEFAULT_INSTANCE); PARSER = parser; } } } return parser; } case GET_MEMOIZED_IS_INITIALIZED: { return (byte) 1; } case SET_MEMOIZED_IS_INITIALIZED: { return null; } } throw new UnsupportedOperationException(); } // @@protoc_insertion_point(class_scope:proto.StakingNodeInfo) private static final com.hedera.hashgraph.sdk.proto.StakingNodeInfo DEFAULT_INSTANCE; static { StakingNodeInfo defaultInstance = new StakingNodeInfo(); // New instances are implicitly immutable so no need to make // immutable. DEFAULT_INSTANCE = defaultInstance; com.google.protobuf.GeneratedMessageLite.registerDefaultInstance( StakingNodeInfo.class, defaultInstance); } public static com.hedera.hashgraph.sdk.proto.StakingNodeInfo getDefaultInstance() { return DEFAULT_INSTANCE; } private static volatile com.google.protobuf.Parser PARSER; public static com.google.protobuf.Parser parser() { return DEFAULT_INSTANCE.getParserForType(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy