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 period
 
Protobuf type com.hedera.hapi.node.state.token.NodePayments
  • 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:
      hasLastNodeFeeDistributionTime in interface NodePaymentsOrBuilder
      Returns:
      Whether the lastNodeFeeDistributionTime field is set.
    • getLastNodeFeeDistributionTime

      public Timestamp getLastNodeFeeDistributionTime()
       *
       The time when the last node fees were distributed
       
      .proto.Timestamp last_node_fee_distribution_time = 1;
      Specified by:
      getLastNodeFeeDistributionTime in interface NodePaymentsOrBuilder
      Returns:
      The lastNodeFeeDistributionTime.
    • setLastNodeFeeDistributionTime

      public NodePayments.Builder setLastNodeFeeDistributionTime(Timestamp value)
       *
       The time when the last node fees were distributed
       
      .proto.Timestamp last_node_fee_distribution_time = 1;
    • setLastNodeFeeDistributionTime

      public NodePayments.Builder setLastNodeFeeDistributionTime(Timestamp.Builder builderForValue)
       *
       The time when the last node fees were distributed
       
      .proto.Timestamp last_node_fee_distribution_time = 1;
    • mergeLastNodeFeeDistributionTime

      public NodePayments.Builder mergeLastNodeFeeDistributionTime(Timestamp value)
       *
       The time when the last node fees were distributed
       
      .proto.Timestamp last_node_fee_distribution_time = 1;
    • clearLastNodeFeeDistributionTime

      public NodePayments.Builder clearLastNodeFeeDistributionTime()
       *
       The time when the last node fees were distributed
       
      .proto.Timestamp last_node_fee_distribution_time = 1;
    • getPaymentsList

      public List<NodePayment> 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:
      getPaymentsList in interface NodePaymentsOrBuilder
    • 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:
      getPaymentsCount in interface NodePaymentsOrBuilder
    • getPayments

      public NodePayment getPayments(int index)
       *
       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:
      getPayments in interface NodePaymentsOrBuilder
    • setPayments

      public NodePayments.Builder setPayments(int index, NodePayment value)
       *
       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

      public NodePayments.Builder setPayments(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 period
       
      repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;
    • addPayments

      public NodePayments.Builder addPayments(NodePayment value)
       *
       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

      public NodePayments.Builder addPayments(int index, NodePayment value)
       *
       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

      public NodePayments.Builder addPayments(NodePayment.Builder builderForValue)
       *
       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

      public NodePayments.Builder addPayments(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 period
       
      repeated .com.hedera.hapi.node.state.token.NodePayment payments = 2;
    • addAllPayments

      public NodePayments.Builder addAllPayments(Iterable<? extends NodePayment> values)
       *
       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

      public NodePayments.Builder 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

      public NodePayments.Builder removePayments(int index)
       *
       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;