Class TransferList.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransferList,TransferList.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransferList,TransferList.Builder>
com.hedera.hashgraph.sdk.proto.TransferList.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TransferListOrBuilder, Cloneable
Enclosing class:
TransferList

public static final class TransferList.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TransferList,TransferList.Builder> implements TransferListOrBuilder
 *
 A list of accounts and amounts to transfer.

 Each `AccountAmount` SHALL specify the account and the amount to
 send(negative) or receive(positive).<br/>
 Each `TransferList` SHALL be contained in another message that contains
 other details required to complete a transfer. This is typically a
 `CryptoTransferTransactionBody` or `TransactionRecord`.<br/>
 The `TransferList` SHALL only be used for HBAR transfers. Other token types
 MUST use the `TokenTransferList` message.
 
Protobuf type proto.TransferList
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    addAccountAmounts(int index, AccountAmount value)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    addAccountAmounts(int index, AccountAmount.Builder builderForValue)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    getAccountAmounts(int index)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    int
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    setAccountAmounts(int index, AccountAmount value)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)
    setAccountAmounts(int index, AccountAmount.Builder builderForValue)
    * A list of AccountAmount pairs.<br/> Each entry in this list is an account and an amount to transfer into it (positive) or out of it (negative)

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getAccountAmountsList

      public List<AccountAmount> getAccountAmountsList()
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
      Specified by:
      getAccountAmountsList in interface TransferListOrBuilder
    • getAccountAmountsCount

      public int getAccountAmountsCount()
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
      Specified by:
      getAccountAmountsCount in interface TransferListOrBuilder
    • getAccountAmounts

      public AccountAmount getAccountAmounts(int index)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
      Specified by:
      getAccountAmounts in interface TransferListOrBuilder
    • setAccountAmounts

      public TransferList.Builder setAccountAmounts(int index, AccountAmount value)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • setAccountAmounts

      public TransferList.Builder setAccountAmounts(int index, AccountAmount.Builder builderForValue)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • addAccountAmounts

      public TransferList.Builder addAccountAmounts(AccountAmount value)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • addAccountAmounts

      public TransferList.Builder addAccountAmounts(int index, AccountAmount value)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • addAccountAmounts

      public TransferList.Builder addAccountAmounts(AccountAmount.Builder builderForValue)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • addAccountAmounts

      public TransferList.Builder addAccountAmounts(int index, AccountAmount.Builder builderForValue)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • addAllAccountAmounts

      public TransferList.Builder addAllAccountAmounts(Iterable<? extends AccountAmount> values)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • clearAccountAmounts

      public TransferList.Builder clearAccountAmounts()
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;
    • removeAccountAmounts

      public TransferList.Builder removeAccountAmounts(int index)
       *
       A list of AccountAmount pairs.<br/>
       Each entry in this list is an account and an amount to transfer
       into it (positive) or out of it (negative)
       
      repeated .proto.AccountAmount accountAmounts = 1;