java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<StakingInfo,StakingInfo.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<StakingInfo,StakingInfo.Builder>
com.hedera.hashgraph.sdk.proto.StakingInfo.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,StakingInfoOrBuilder,Cloneable
- Enclosing class:
StakingInfo
public static final class StakingInfo.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<StakingInfo,StakingInfo.Builder>
implements StakingInfoOrBuilder
* Staking information for an account or a contract. This is used for responses returned from `CryptoGetInfo` or `ContractGetInfo` queries.Protobuf type
proto.StakingInfo-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A flag indicating that the holder of this account has chosen to decline staking rewards.* An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.* A delegated stake.* A direct stake.* A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.* A `Timestamp` of the start time for the latest active staking period.boolean* A flag indicating that the holder of this account has chosen to decline staking rewards.long* An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.* A delegated stake.long* A direct stake.long* A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.* A `Timestamp` of the start time for the latest active staking period.boolean* A delegated stake.boolean* A direct stake.boolean* A `Timestamp` of the start time for the latest active staking period.mergeStakedAccountId(AccountID value) * A delegated stake.mergeStakePeriodStart(Timestamp value) * A `Timestamp` of the start time for the latest active staking period.setDeclineReward(boolean value) * A flag indicating that the holder of this account has chosen to decline staking rewards.setPendingReward(long value) * An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.setStakedAccountId(AccountID value) * A delegated stake.setStakedAccountId(AccountID.Builder builderForValue) * A delegated stake.setStakedNodeId(long value) * A direct stake.setStakedToMe(long value) * A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.setStakePeriodStart(Timestamp value) * A `Timestamp` of the start time for the latest active staking period.setStakePeriodStart(Timestamp.Builder builderForValue) * A `Timestamp` of the start time for the latest active 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
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceStakingInfoOrBuilder
-
clearStakedId
-
getDeclineReward
public boolean getDeclineReward()* A flag indicating that the holder of this account has chosen to decline staking rewards.
bool decline_reward = 1;- Specified by:
getDeclineRewardin interfaceStakingInfoOrBuilder- Returns:
- The declineReward.
-
setDeclineReward
* A flag indicating that the holder of this account has chosen to decline staking rewards.
bool decline_reward = 1;- Parameters:
value- The declineReward to set.- Returns:
- This builder for chaining.
-
clearDeclineReward
* A flag indicating that the holder of this account has chosen to decline staking rewards.
bool decline_reward = 1;- Returns:
- This builder for chaining.
-
hasStakePeriodStart
public boolean hasStakePeriodStart()* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2;- Specified by:
hasStakePeriodStartin interfaceStakingInfoOrBuilder- Returns:
- Whether the stakePeriodStart field is set.
-
getStakePeriodStart
* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2;- Specified by:
getStakePeriodStartin interfaceStakingInfoOrBuilder- Returns:
- The stakePeriodStart.
-
setStakePeriodStart
* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2; -
setStakePeriodStart
* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2; -
mergeStakePeriodStart
* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2; -
clearStakePeriodStart
* A `Timestamp` of the start time for the latest active staking period. <p> This MUST be a period during which either the staking settings for this account or contract changed or the account or contract received staking rewards, whichever is later. Examples of a change in staking settings include starting staking or changing the staked_node_id.<br/> If this account or contract is not currently staked to a node, then this field SHALL NOT be set.
.proto.Timestamp stake_period_start = 2; -
getPendingReward
public long getPendingReward()* An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.
int64 pending_reward = 3;- Specified by:
getPendingRewardin interfaceStakingInfoOrBuilder- Returns:
- The pendingReward.
-
setPendingReward
* An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.
int64 pending_reward = 3;- Parameters:
value- The pendingReward to set.- Returns:
- This builder for chaining.
-
clearPendingReward
* An amount, in tinybar, to be received in the next reward payout.<br/> Rewards are not paid out immediately; for efficiency reasons rewards are only paid out as part of another transaction involving that account.
int64 pending_reward = 3;- Returns:
- This builder for chaining.
-
getStakedToMe
public long getStakedToMe()* A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.
int64 staked_to_me = 4;- Specified by:
getStakedToMein interfaceStakingInfoOrBuilder- Returns:
- The stakedToMe.
-
setStakedToMe
* A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.
int64 staked_to_me = 4;- Parameters:
value- The stakedToMe to set.- Returns:
- This builder for chaining.
-
clearStakedToMe
* A proxy-staked balance.<br/> The total HBAR balance of all accounts that delegate staking to this account or contract.
int64 staked_to_me = 4;- Returns:
- This builder for chaining.
-
hasStakedAccountId
public boolean hasStakedAccountId()* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5;- Specified by:
hasStakedAccountIdin interfaceStakingInfoOrBuilder- Returns:
- Whether the stakedAccountId field is set.
-
getStakedAccountId
* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5;- Specified by:
getStakedAccountIdin interfaceStakingInfoOrBuilder- Returns:
- The stakedAccountId.
-
setStakedAccountId
* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5; -
setStakedAccountId
* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5; -
mergeStakedAccountId
* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5; -
clearStakedAccountId
* A delegated stake. <p> This account delegates to the indicated account for staking purposes.
.proto.AccountID staked_account_id = 5; -
hasStakedNodeId
public boolean hasStakedNodeId()* A direct stake. <p> This accounts stakes its balance to the designated node.
int64 staked_node_id = 6;- Specified by:
hasStakedNodeIdin interfaceStakingInfoOrBuilder- Returns:
- Whether the stakedNodeId field is set.
-
getStakedNodeId
public long getStakedNodeId()* A direct stake. <p> This accounts stakes its balance to the designated node.
int64 staked_node_id = 6;- Specified by:
getStakedNodeIdin interfaceStakingInfoOrBuilder- Returns:
- The stakedNodeId.
-
setStakedNodeId
* A direct stake. <p> This accounts stakes its balance to the designated node.
int64 staked_node_id = 6;- Parameters:
value- The stakedNodeId to set.- Returns:
- This builder for chaining.
-
clearStakedNodeId
* A direct stake. <p> This accounts stakes its balance to the designated node.
int64 staked_node_id = 6;- Returns:
- This builder for chaining.
-