Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: crypto_transfer.proto
package com.hedera.hashgraph.sdk.proto;
/**
*
**
* Transfers cryptocurrency among two or more accounts by making the desired adjustments to their
* balances. Each transfer list can specify up to 10 adjustments. Each negative amount is withdrawn
* from the corresponding account (a sender), and each positive one is added to the corresponding
* account (a receiver). The amounts list must sum to zero. Each amount is a number of tinybars
* (there are 100,000,000 tinybars in one hbar). If any sender account fails to have sufficient
* hbars, then the entire transaction fails, and none of those transfers occur, though the
* transaction fee is still charged. This transaction must be signed by the keys for all the sending
* accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures
* are in the same order as the accounts, skipping those accounts that don't need a signature.
*
*
* Protobuf type {@code proto.CryptoTransferTransactionBody}
*/
public final class CryptoTransferTransactionBody extends
com.google.protobuf.GeneratedMessageLite<
CryptoTransferTransactionBody, CryptoTransferTransactionBody.Builder> implements
// @@protoc_insertion_point(message_implements:proto.CryptoTransferTransactionBody)
CryptoTransferTransactionBodyOrBuilder {
private CryptoTransferTransactionBody() {
tokenTransfers_ = emptyProtobufList();
}
private int bitField0_;
public static final int TRANSFERS_FIELD_NUMBER = 1;
private com.hedera.hashgraph.sdk.proto.TransferList transfers_;
/**
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
*
* repeated .proto.TokenTransferList tokenTransfers = 2;
*/
@java.lang.Override
public int getTokenTransfersCount() {
return tokenTransfers_.size();
}
/**
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* Transfers cryptocurrency among two or more accounts by making the desired adjustments to their
* balances. Each transfer list can specify up to 10 adjustments. Each negative amount is withdrawn
* from the corresponding account (a sender), and each positive one is added to the corresponding
* account (a receiver). The amounts list must sum to zero. Each amount is a number of tinybars
* (there are 100,000,000 tinybars in one hbar). If any sender account fails to have sufficient
* hbars, then the entire transaction fails, and none of those transfers occur, though the
* transaction fee is still charged. This transaction must be signed by the keys for all the sending
* accounts, and for any receiving accounts that have receiverSigRequired == true. The signatures
* are in the same order as the accounts, skipping those accounts that don't need a signature.
*
*
* Protobuf type {@code proto.CryptoTransferTransactionBody}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody, Builder> implements
// @@protoc_insertion_point(builder_implements:proto.CryptoTransferTransactionBody)
com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBodyOrBuilder {
// Construct using com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
/**
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
*
* repeated .proto.TokenTransferList tokenTransfers = 2;
*/
@java.lang.Override
public int getTokenTransfersCount() {
return instance.getTokenTransfersCount();
}/**
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
**
* The desired token unit balance adjustments; if any custom fees are assessed, the ledger will
* try to deduct them from the payer of this CryptoTransfer, resolving the transaction to
* INSUFFICIENT_PAYER_BALANCE_FOR_CUSTOM_FEE if this is not possible
*
*
* repeated .proto.TokenTransferList tokenTransfers = 2;
*/
public Builder removeTokenTransfers(int index) {
copyOnWrite();
instance.removeTokenTransfers(index);
return this;
}
// @@protoc_insertion_point(builder_scope:proto.CryptoTransferTransactionBody)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"bitField0_",
"transfers_",
"tokenTransfers_",
com.hedera.hashgraph.sdk.proto.TokenTransferList.class,
};
java.lang.String info =
"\u0000\u0002\u0000\u0001\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u1009\u0000\u0002" +
"\u001b";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:proto.CryptoTransferTransactionBody)
private static final com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody DEFAULT_INSTANCE;
static {
CryptoTransferTransactionBody defaultInstance = new CryptoTransferTransactionBody();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
CryptoTransferTransactionBody.class, defaultInstance);
}
public static com.hedera.hashgraph.sdk.proto.CryptoTransferTransactionBody getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}