Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CryptoApproveAllowanceTransactionBody
java.lang.Object
com.google.protobuf.AbstractMessageLite<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
com.google.protobuf.GeneratedMessageLite<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
com.hedera.hashgraph.sdk.proto.CryptoApproveAllowanceTransactionBody
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,CryptoApproveAllowanceTransactionBodyOrBuilder
@Generated
public final class CryptoApproveAllowanceTransactionBody
extends com.google.protobuf.GeneratedMessageLite<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
implements CryptoApproveAllowanceTransactionBodyOrBuilder
*
Create ("Approve") allowances for one account to transfer tokens owned
by a different account.<br/>
An allowance permits a "spender" account to independently transfer tokens
owned by a separate "owner" account. Each such allowance permits spending
any amount, up to a specified limit, for fungible/common tokens; a single
specified non-fungible/unique token, or all non-fungible/unique tokens
of a particular token type held by the "owner" account.
If the "owner" account is not specified for any allowance in this
transaction (the `owner` field is not set), the `payer` account for this
transaction SHALL be owner for that allowance.<br/>
Each `owner` account specified in any allowance approved in this
transaction MUST sign this transaction.<br/>
If the `amount` field for any fungible/common allowance in this
transaction is `0`, then that allowance SHOULD match an existing,
previously approved, allowance which SHALL be removed.<br/>
There are three lists in this message. Each list MAY be empty, but
_at least one_ list MUST contain _at least one_ entry.
Example for the `payer` rule.<br/>
- Given an account `0.0.X` that pays for this transaction, and owner
is not specified in an allowance of `200` HBAR to spender account
`0.0.Y`. At consensus the spender account `0.0.Y` will have a new
allowance to spend `200` HBAR from the balance of account `0.0.X`.
### Block Stream Effects
None
Protobuf type proto.CryptoApproveAllowanceTransactionBody-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Create ("Approve") allowances for one account to transfer tokens owned by a different account.<br/> An allowance permits a "spender" account to independently transfer tokens owned by a separate "owner" account.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 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) getCryptoAllowances(int index) * List of hbar allowances approved by the account owner.int* List of hbar allowances approved by the account owner.* List of hbar allowances approved by the account owner.getCryptoAllowancesOrBuilder(int index) * List of hbar allowances approved by the account owner.List<? extends CryptoAllowanceOrBuilder> * List of hbar allowances approved by the account owner.getNftAllowances(int index) * List of non-fungible token allowances approved by the account owner.int* List of non-fungible token allowances approved by the account owner.* List of non-fungible token allowances approved by the account owner.getNftAllowancesOrBuilder(int index) * List of non-fungible token allowances approved by the account owner.List<? extends NftAllowanceOrBuilder> * List of non-fungible token allowances approved by the account owner.getTokenAllowances(int index) * List of fungible token allowances approved by the account owner.int* List of fungible token allowances approved by the account owner.* List of fungible token allowances approved by the account owner.getTokenAllowancesOrBuilder(int index) * List of fungible token allowances approved by the account owner.List<? extends TokenAllowanceOrBuilder> * List of fungible token allowances approved by the account owner.newBuilder(CryptoApproveAllowanceTransactionBody prototype) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CryptoApproveAllowanceTransactionBody> 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
-
CRYPTOALLOWANCES_FIELD_NUMBER
public static final int CRYPTOALLOWANCES_FIELD_NUMBER- See Also:
-
NFTALLOWANCES_FIELD_NUMBER
public static final int NFTALLOWANCES_FIELD_NUMBER- See Also:
-
TOKENALLOWANCES_FIELD_NUMBER
public static final int TOKENALLOWANCES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getCryptoAllowancesList
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getCryptoAllowancesOrBuilderList
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
getCryptoAllowancesCount
public int getCryptoAllowancesCount()* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getCryptoAllowances
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1;- Specified by:
getCryptoAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getCryptoAllowancesOrBuilder
* List of hbar allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.CryptoAllowance cryptoAllowances = 1; -
getNftAllowancesList
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getNftAllowancesOrBuilderList
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
getNftAllowancesCount
public int getNftAllowancesCount()* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getNftAllowances
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2;- Specified by:
getNftAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getNftAllowancesOrBuilder
* List of non-fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.NftAllowance nftAllowances = 2; -
getTokenAllowancesList
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesListin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getTokenAllowancesOrBuilderList
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
getTokenAllowancesCount
public int getTokenAllowancesCount()* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesCountin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getTokenAllowances
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3;- Specified by:
getTokenAllowancesin interfaceCryptoApproveAllowanceTransactionBodyOrBuilder
-
getTokenAllowancesOrBuilder
* List of fungible token allowances approved by the account owner. <p> This list MAY be empty, provided at least one other list is not empty.
repeated .proto.TokenAllowance tokenAllowances = 3; -
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CryptoApproveAllowanceTransactionBody parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static CryptoApproveAllowanceTransactionBody parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CryptoApproveAllowanceTransactionBody parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static CryptoApproveAllowanceTransactionBody.Builder newBuilder(CryptoApproveAllowanceTransactionBody prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<CryptoApproveAllowanceTransactionBody,CryptoApproveAllowanceTransactionBody.Builder>
-
getDefaultInstance
-
parser
-