java.lang.Object
com.google.protobuf.AbstractMessageLite<AssessedCustomFee,AssessedCustomFee.Builder>
com.google.protobuf.GeneratedMessageLite<AssessedCustomFee,AssessedCustomFee.Builder>
com.hedera.hashgraph.sdk.proto.AssessedCustomFee
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,AssessedCustomFeeOrBuilder
@Generated
public final class AssessedCustomFee
extends com.google.protobuf.GeneratedMessageLite<AssessedCustomFee,AssessedCustomFee.Builder>
implements AssessedCustomFeeOrBuilder
* Description of a transfer added to a `cryptoTransfer` transaction that satisfies custom fee requirements. It is important to note that this is not the actual transfer. The transfer of value SHALL be merged into the original transaction to minimize the number of actual transfers. This descriptor presents the fee assessed separately in the record stream so that the details of the fee assessed are not hidden in this process.Protobuf type
proto.AssessedCustomFee-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* Description of a transfer added to a `cryptoTransfer` transaction that satisfies custom fee requirements.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) long* An amount of tokens assessed for this custom fee.static AssessedCustomFeegetEffectivePayerAccountId(int index) * An account that provided the tokens assessed as a fee.int* An account that provided the tokens assessed as a fee.* An account that provided the tokens assessed as a fee.getEffectivePayerAccountIdOrBuilder(int index) * An account that provided the tokens assessed as a fee.List<? extends AccountIDOrBuilder> * An account that provided the tokens assessed as a fee.* An account that received the fee assessed.* The token transferred to satisfy this fee.boolean* An account that received the fee assessed.boolean* The token transferred to satisfy this fee.static AssessedCustomFee.Builderstatic AssessedCustomFee.BuildernewBuilder(AssessedCustomFee prototype) static AssessedCustomFeeparseDelimitedFrom(InputStream input) static AssessedCustomFeeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessedCustomFeeparseFrom(byte[] data) static AssessedCustomFeeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessedCustomFeeparseFrom(com.google.protobuf.ByteString data) static AssessedCustomFeeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessedCustomFeeparseFrom(com.google.protobuf.CodedInputStream input) static AssessedCustomFeeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessedCustomFeeparseFrom(InputStream input) static AssessedCustomFeeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AssessedCustomFeeparseFrom(ByteBuffer data) static AssessedCustomFeeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AssessedCustomFee> 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
-
AMOUNT_FIELD_NUMBER
public static final int AMOUNT_FIELD_NUMBER- See Also:
-
TOKEN_ID_FIELD_NUMBER
public static final int TOKEN_ID_FIELD_NUMBER- See Also:
-
FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER
public static final int FEE_COLLECTOR_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
EFFECTIVE_PAYER_ACCOUNT_ID_FIELD_NUMBER
public static final int EFFECTIVE_PAYER_ACCOUNT_ID_FIELD_NUMBER- See Also:
-
-
Method Details
-
getAmount
public long getAmount()* An amount of tokens assessed for this custom fee. <p> This shall be expressed in units of 10<sup>-decimals</sup> tokens.
int64 amount = 1;- Specified by:
getAmountin interfaceAssessedCustomFeeOrBuilder- Returns:
- The amount.
-
hasTokenId
public boolean hasTokenId()* The token transferred to satisfy this fee. <p> If the token transferred is HBAR, this field SHALL NOT be set.
.proto.TokenID token_id = 2;- Specified by:
hasTokenIdin interfaceAssessedCustomFeeOrBuilder- Returns:
- Whether the tokenId field is set.
-
getTokenId
* The token transferred to satisfy this fee. <p> If the token transferred is HBAR, this field SHALL NOT be set.
.proto.TokenID token_id = 2;- Specified by:
getTokenIdin interfaceAssessedCustomFeeOrBuilder- Returns:
- The tokenId.
-
hasFeeCollectorAccountId
public boolean hasFeeCollectorAccountId()* An account that received the fee assessed. <p> This SHALL NOT be the sender or receiver of the original cryptoTransfer transaction.
.proto.AccountID fee_collector_account_id = 3;- Specified by:
hasFeeCollectorAccountIdin interfaceAssessedCustomFeeOrBuilder- Returns:
- Whether the feeCollectorAccountId field is set.
-
getFeeCollectorAccountId
* An account that received the fee assessed. <p> This SHALL NOT be the sender or receiver of the original cryptoTransfer transaction.
.proto.AccountID fee_collector_account_id = 3;- Specified by:
getFeeCollectorAccountIdin interfaceAssessedCustomFeeOrBuilder- Returns:
- The feeCollectorAccountId.
-
getEffectivePayerAccountIdList
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4;- Specified by:
getEffectivePayerAccountIdListin interfaceAssessedCustomFeeOrBuilder
-
getEffectivePayerAccountIdOrBuilderList
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4; -
getEffectivePayerAccountIdCount
public int getEffectivePayerAccountIdCount()* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4;- Specified by:
getEffectivePayerAccountIdCountin interfaceAssessedCustomFeeOrBuilder
-
getEffectivePayerAccountId
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4;- Specified by:
getEffectivePayerAccountIdin interfaceAssessedCustomFeeOrBuilder
-
getEffectivePayerAccountIdOrBuilder
* An account that provided the tokens assessed as a fee. <p> This SHALL be the account that _would have_ had a higher balance absent the fee. In most cases this SHALL be the `sender`, but some _fractional_ fees reduce the amount transferred, and in those cases the `receiver` SHALL be the effective payer for the fee.<br/> There are currently no situations where a third party pays a custom fee. This MAY change in a future release.
repeated .proto.AccountID effective_payer_account_id = 4; -
parseFrom
public static AssessedCustomFee parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssessedCustomFee parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssessedCustomFee parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssessedCustomFee parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssessedCustomFee parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AssessedCustomFee parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AssessedCustomFee parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AssessedCustomFee parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AssessedCustomFee parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AssessedCustomFee 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<AssessedCustomFee,AssessedCustomFee.Builder>
-
getDefaultInstance
-
parser
-