java.lang.Object
com.google.protobuf.AbstractMessageLite<StakingInfo,StakingInfo.Builder>
com.google.protobuf.GeneratedMessageLite<StakingInfo,StakingInfo.Builder>
com.hedera.hashgraph.sdk.proto.StakingInfo
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,StakingInfoOrBuilder
@Generated
public final class StakingInfo
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Staking information for an account or a contract.static enumNested 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 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) boolean* A flag indicating that the holder of this account has chosen to decline staking rewards.static StakingInfolong* 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.static StakingInfo.Builderstatic StakingInfo.BuildernewBuilder(StakingInfo prototype) static StakingInfoparseDelimitedFrom(InputStream input) static StakingInfoparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StakingInfoparseFrom(byte[] data) static StakingInfoparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StakingInfoparseFrom(com.google.protobuf.ByteString data) static StakingInfoparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StakingInfoparseFrom(com.google.protobuf.CodedInputStream input) static StakingInfoparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StakingInfoparseFrom(InputStream input) static StakingInfoparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static StakingInfoparseFrom(ByteBuffer data) static StakingInfoparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<StakingInfo> 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
-
DECLINE_REWARD_FIELD_NUMBER
public static final int DECLINE_REWARD_FIELD_NUMBER- See Also:
-
STAKE_PERIOD_START_FIELD_NUMBER
public static final int STAKE_PERIOD_START_FIELD_NUMBER- See Also:
-
PENDING_REWARD_FIELD_NUMBER
public static final int PENDING_REWARD_FIELD_NUMBER- See Also:
-
STAKED_TO_ME_FIELD_NUMBER
public static final int STAKED_TO_ME_FIELD_NUMBER- See Also:
-
STAKED_ACCOUNT_ID_FIELD_NUMBER
public static final int STAKED_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
STAKED_NODE_ID_FIELD_NUMBER
public static final int STAKED_NODE_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getStakedIdCase
- Specified by:
getStakedIdCasein interfaceStakingInfoOrBuilder
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
parseFrom
public static StakingInfo parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StakingInfo parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StakingInfo parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StakingInfo parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StakingInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static StakingInfo parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StakingInfo parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static StakingInfo parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static StakingInfo 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<StakingInfo,StakingInfo.Builder>
-
getDefaultInstance
-
parser
-