Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class AssessedCustomFee.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<AssessedCustomFee,AssessedCustomFee.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<AssessedCustomFee,AssessedCustomFee.Builder>
com.hedera.hashgraph.sdk.proto.AssessedCustomFee.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,AssessedCustomFeeOrBuilder,Cloneable
- Enclosing class:
AssessedCustomFee
public static final class AssessedCustomFee.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionaddAllEffectivePayerAccountId(Iterable<? extends AccountID> values) * An account that provided the tokens assessed as a fee.addEffectivePayerAccountId(int index, AccountID value) * An account that provided the tokens assessed as a fee.addEffectivePayerAccountId(int index, AccountID.Builder builderForValue) * An account that provided the tokens assessed as a fee.* An account that provided the tokens assessed as a fee.addEffectivePayerAccountId(AccountID.Builder builderForValue) * An account that provided the tokens assessed as a fee.* An amount of tokens assessed for this custom fee.* An account that provided the tokens assessed as a fee.* An account that received the fee assessed.* The token transferred to satisfy this fee.long* An amount of tokens assessed for this custom fee.getEffectivePayerAccountId(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.* 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.* An account that received the fee assessed.mergeTokenId(TokenID value) * The token transferred to satisfy this fee.removeEffectivePayerAccountId(int index) * An account that provided the tokens assessed as a fee.setAmount(long value) * An amount of tokens assessed for this custom fee.setEffectivePayerAccountId(int index, AccountID value) * An account that provided the tokens assessed as a fee.setEffectivePayerAccountId(int index, AccountID.Builder builderForValue) * An account that provided the tokens assessed as a fee.* An account that received the fee assessed.setFeeCollectorAccountId(AccountID.Builder builderForValue) * An account that received the fee assessed.setTokenId(TokenID value) * The token transferred to satisfy this fee.setTokenId(TokenID.Builder builderForValue) * The token transferred to satisfy this fee.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
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.
-
setAmount
* 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;- Parameters:
value- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
* 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;- Returns:
- This builder for chaining.
-
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.
-
setTokenId
* 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; -
setTokenId
* 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; -
mergeTokenId
* 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; -
clearTokenId
* 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; -
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.
-
setFeeCollectorAccountId
* 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; -
setFeeCollectorAccountId
* 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; -
mergeFeeCollectorAccountId
* 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; -
clearFeeCollectorAccountId
* 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; -
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
-
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
-
setEffectivePayerAccountId
* 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; -
setEffectivePayerAccountId
public AssessedCustomFee.Builder setEffectivePayerAccountId(int index, AccountID.Builder builderForValue) * 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; -
addEffectivePayerAccountId
* 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; -
addEffectivePayerAccountId
* 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; -
addEffectivePayerAccountId
* 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; -
addEffectivePayerAccountId
public AssessedCustomFee.Builder addEffectivePayerAccountId(int index, AccountID.Builder builderForValue) * 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; -
addAllEffectivePayerAccountId
public AssessedCustomFee.Builder addAllEffectivePayerAccountId(Iterable<? extends AccountID> values) * 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; -
clearEffectivePayerAccountId
* 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; -
removeEffectivePayerAccountId
* 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;
-