Module com.hedera.hashgraph.sdk
Class NodePayments.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<NodePayments,NodePayments.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<NodePayments,NodePayments.Builder>
com.hedera.hapi.node.state.token.legacy.NodePayments.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,NodePaymentsOrBuilder,Cloneable
- Enclosing class:
NodePayments
public static final class NodePayments.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<NodePayments,NodePayments.Builder>
implements NodePaymentsOrBuilder
* A singleton state object that accumulates node fees for distribution<br/> This is used to record the total amount of fees due to each node for distribution in current staking periodProtobuf type
com.hedera.hapi.node.state.token.NodePayments-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllPayments(Iterable<? extends NodePayment> values) * A list of node account id to the total amount of fees due to each node in the current staking periodaddPayments(int index, NodePayment value) * A list of node account id to the total amount of fees due to each node in the current staking periodaddPayments(int index, NodePayment.Builder builderForValue) * A list of node account id to the total amount of fees due to each node in the current staking periodaddPayments(NodePayment value) * A list of node account id to the total amount of fees due to each node in the current staking periodaddPayments(NodePayment.Builder builderForValue) * A list of node account id to the total amount of fees due to each node in the current staking period* The time when the last node fees were distributed* A list of node account id to the total amount of fees due to each node in the current staking period* The time when the last node fees were distributedgetPayments(int index) * A list of node account id to the total amount of fees due to each node in the current staking periodint* A list of node account id to the total amount of fees due to each node in the current staking period* A list of node account id to the total amount of fees due to each node in the current staking periodboolean* The time when the last node fees were distributed* The time when the last node fees were distributedremovePayments(int index) * A list of node account id to the total amount of fees due to each node in the current staking period* The time when the last node fees were distributedsetLastNodeFeeDistributionTime(Timestamp.Builder builderForValue) * The time when the last node fees were distributedsetPayments(int index, NodePayment value) * A list of node account id to the total amount of fees due to each node in the current staking periodsetPayments(int index, NodePayment.Builder builderForValue) * A list of node account id to the total amount of fees due to each node in the current staking periodMethods 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
-
hasLastNodeFeeDistributionTime
public boolean hasLastNodeFeeDistributionTime()* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1;- Specified by:
hasLastNodeFeeDistributionTimein interfaceNodePaymentsOrBuilder- Returns:
- Whether the lastNodeFeeDistributionTime field is set.
-
getLastNodeFeeDistributionTime
* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1;- Specified by:
getLastNodeFeeDistributionTimein interfaceNodePaymentsOrBuilder- Returns:
- The lastNodeFeeDistributionTime.
-
setLastNodeFeeDistributionTime
* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1; -
setLastNodeFeeDistributionTime
* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1; -
mergeLastNodeFeeDistributionTime
* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1; -
clearLastNodeFeeDistributionTime
* The time when the last node fees were distributed
.proto.Timestamp last_node_fee_distribution_time = 1; -
getPaymentsList
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;- Specified by:
getPaymentsListin interfaceNodePaymentsOrBuilder
-
getPaymentsCount
public int getPaymentsCount()* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;- Specified by:
getPaymentsCountin interfaceNodePaymentsOrBuilder
-
getPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;- Specified by:
getPaymentsin interfaceNodePaymentsOrBuilder
-
setPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
setPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
addPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
addPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
addPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
addPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
addAllPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
clearPayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2; -
removePayments
* A list of node account id to the total amount of fees due to each node in the current staking period
repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;
-