java.lang.Object
com.google.protobuf.AbstractMessageLite<TokenTransferList,TokenTransferList.Builder>
com.google.protobuf.GeneratedMessageLite<TokenTransferList,TokenTransferList.Builder>
com.hedera.hashgraph.sdk.proto.TokenTransferList
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,TokenTransferListOrBuilder
@Generated
public final class TokenTransferList
extends com.google.protobuf.GeneratedMessageLite<TokenTransferList,TokenTransferList.Builder>
implements TokenTransferListOrBuilder
* A list of transfers for a particular (non-HBAR) token type. A `TokenTransferList` applies to a single token type, but may contain many individual transfers.<br/> Each transfer of a fungible/common token MUST specify an `accountID` and `amount`. Amount SHALL be positive when the account receives tokens, and SHALL be negative when the account sends tokens. The amount SHOULD NOT be `0`.<br/> In a transfer list containing fungible/common tokens in the `transfers` list, the sum of all such transfers MUST be zero (`0`). Each transfer of a unique token SHALL specify both sender and receiver, as well as the serial number transferred.<br/> A single `TokenTransferList` MUST contain `transfers` or `nftTransfers`, but MUST NOT contain both.Protobuf type
proto.TokenTransferList-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* A list of transfers for a particular (non-HBAR) token type.Nested 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 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) static TokenTransferListcom.google.protobuf.UInt32Value* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have.getNftTransfers(int index) * A list of NftTransfers.int* A list of NftTransfers.* A list of NftTransfers.getNftTransfersOrBuilder(int index) * A list of NftTransfers.List<? extends NftTransferOrBuilder> * A list of NftTransfers.getToken()* A token identifier.<br/> This is the token to be transferred.getTransfers(int index) * A list of account amounts.int* A list of account amounts.* A list of account amounts.getTransfersOrBuilder(int index) * A list of account amounts.List<? extends AccountAmountOrBuilder> * A list of account amounts.boolean* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have.booleanhasToken()* A token identifier.<br/> This is the token to be transferred.static TokenTransferList.Builderstatic TokenTransferList.BuildernewBuilder(TokenTransferList prototype) static TokenTransferListparseDelimitedFrom(InputStream input) static TokenTransferListparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenTransferListparseFrom(byte[] data) static TokenTransferListparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenTransferListparseFrom(com.google.protobuf.ByteString data) static TokenTransferListparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenTransferListparseFrom(com.google.protobuf.CodedInputStream input) static TokenTransferListparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenTransferListparseFrom(InputStream input) static TokenTransferListparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TokenTransferListparseFrom(ByteBuffer data) static TokenTransferListparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TokenTransferList> 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
-
TOKEN_FIELD_NUMBER
public static final int TOKEN_FIELD_NUMBER- See Also:
-
TRANSFERS_FIELD_NUMBER
public static final int TRANSFERS_FIELD_NUMBER- See Also:
-
NFTTRANSFERS_FIELD_NUMBER
public static final int NFTTRANSFERS_FIELD_NUMBER- See Also:
-
EXPECTED_DECIMALS_FIELD_NUMBER
public static final int EXPECTED_DECIMALS_FIELD_NUMBER- See Also:
-
-
Method Details
-
hasToken
public boolean hasToken()* A token identifier.<br/> This is the token to be transferred.
.proto.TokenID token = 1;- Specified by:
hasTokenin interfaceTokenTransferListOrBuilder- Returns:
- Whether the token field is set.
-
getToken
* A token identifier.<br/> This is the token to be transferred.
.proto.TokenID token = 1;- Specified by:
getTokenin interfaceTokenTransferListOrBuilder- Returns:
- The token.
-
getTransfersList
* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2;- Specified by:
getTransfersListin interfaceTokenTransferListOrBuilder
-
getTransfersOrBuilderList
* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2; -
getTransfersCount
public int getTransfersCount()* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2;- Specified by:
getTransfersCountin interfaceTokenTransferListOrBuilder
-
getTransfers
* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2;- Specified by:
getTransfersin interfaceTokenTransferListOrBuilder
-
getTransfersOrBuilder
* A list of account amounts. <p> Each entry SHALL have an account and amount.<br/> These transfers SHALL be "double-entry" style; the credits (positive amount) and debits (negative amount) MUST sum to 0, unless this transfer list is part of a `mint` or `burn` operation.<br/> This SHALL be be set for fungible/common tokens and MUST be empty otherwise.
repeated .proto.AccountAmount transfers = 2; -
getNftTransfersList
* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3;- Specified by:
getNftTransfersListin interfaceTokenTransferListOrBuilder
-
getNftTransfersOrBuilderList
* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3; -
getNftTransfersCount
public int getNftTransfersCount()* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3;- Specified by:
getNftTransfersCountin interfaceTokenTransferListOrBuilder
-
getNftTransfers
* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3;- Specified by:
getNftTransfersin interfaceTokenTransferListOrBuilder
-
getNftTransfersOrBuilder
* A list of NftTransfers. <p> Each entry SHALL have a sender and receiver account, and the serial number of the unique token to transfer.<br/> This SHALL be be set for non-fungible/unique tokens and SHALL be empty otherwise.
repeated .proto.NftTransfer nftTransfers = 3; -
hasExpectedDecimals
public boolean hasExpectedDecimals()* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have. <p> The transfer SHALL fail with response code `UNEXPECTED_TOKEN_DECIMALS` if this is set and the actual decimals specified for the `Token` differ from this value.<br/> If `nftTransfers` is set, then this value SHOULD NOT be set.
.google.protobuf.UInt32Value expected_decimals = 4;- Specified by:
hasExpectedDecimalsin interfaceTokenTransferListOrBuilder- Returns:
- Whether the expectedDecimals field is set.
-
getExpectedDecimals
public com.google.protobuf.UInt32Value getExpectedDecimals()* An expected decimal precision.<br/> This is the number of decimals a fungible/common token type is _expected_ to have. <p> The transfer SHALL fail with response code `UNEXPECTED_TOKEN_DECIMALS` if this is set and the actual decimals specified for the `Token` differ from this value.<br/> If `nftTransfers` is set, then this value SHOULD NOT be set.
.google.protobuf.UInt32Value expected_decimals = 4;- Specified by:
getExpectedDecimalsin interfaceTokenTransferListOrBuilder- Returns:
- The expectedDecimals.
-
parseFrom
public static TokenTransferList parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenTransferList parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenTransferList parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenTransferList parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenTransferList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TokenTransferList parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TokenTransferList parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TokenTransferList parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TokenTransferList parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TokenTransferList 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<TokenTransferList,TokenTransferList.Builder>
-
getDefaultInstance
-
parser
-