java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FixedFee,FixedFee.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FixedFee,FixedFee.Builder>
com.hedera.hashgraph.sdk.proto.FixedFee.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FixedFeeOrBuilder,Cloneable
- Enclosing class:
FixedFee
public static final class FixedFee.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FixedFee,FixedFee.Builder>
implements FixedFeeOrBuilder
* A fixed fee to assess for each token transfer, regardless of the amount transferred.<br/> This fee type describes a fixed fee for each transfer of a token type. The fee SHALL be charged to the `sender` for the token transfer transaction.<br/> This fee MAY be assessed in HBAR, the token type transferred, or any other token type, as determined by the `denominating_token_id` field.Protobuf type
proto.FixedFee-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* The amount to assess for each transfer.* The token type used to pay the assessed fee.long* The amount to assess for each transfer.* The token type used to pay the assessed fee.boolean* The token type used to pay the assessed fee.mergeDenominatingTokenId(TokenID value) * The token type used to pay the assessed fee.setAmount(long value) * The amount to assess for each transfer.setDenominatingTokenId(TokenID value) * The token type used to pay the assessed fee.setDenominatingTokenId(TokenID.Builder builderForValue) * The token type used to pay the assessed 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()* The amount to assess for each transfer. <p> This value MUST be greater than `0`.<br/> This amount is expressed in units of 10<sup>-decimals</sup> tokens.
int64 amount = 1;- Specified by:
getAmountin interfaceFixedFeeOrBuilder- Returns:
- The amount.
-
setAmount
* The amount to assess for each transfer. <p> This value MUST be greater than `0`.<br/> This amount is expressed in units of 10<sup>-decimals</sup> tokens.
int64 amount = 1;- Parameters:
value- The amount to set.- Returns:
- This builder for chaining.
-
clearAmount
* The amount to assess for each transfer. <p> This value MUST be greater than `0`.<br/> This amount is expressed in units of 10<sup>-decimals</sup> tokens.
int64 amount = 1;- Returns:
- This builder for chaining.
-
hasDenominatingTokenId
public boolean hasDenominatingTokenId()* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2;- Specified by:
hasDenominatingTokenIdin interfaceFixedFeeOrBuilder- Returns:
- Whether the denominatingTokenId field is set.
-
getDenominatingTokenId
* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2;- Specified by:
getDenominatingTokenIdin interfaceFixedFeeOrBuilder- Returns:
- The denominatingTokenId.
-
setDenominatingTokenId
* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2; -
setDenominatingTokenId
* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2; -
mergeDenominatingTokenId
* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2; -
clearDenominatingTokenId
* The token type used to pay the assessed fee. <p> If this is unset, the fee SHALL be assessed in HBAR.<br/> If this is set, the fee SHALL be assessed in the token identified. This MAY be any token type. Custom fees assessed in other token types are more likely to fail, however, and it is RECOMMENDED that token creators denominate custom fees in the transferred token, HBAR, or well documented and closely related token types.<br/> If this value is set to `0.0.0` in the `tokenCreate` transaction, it SHALL be replaced with the `TokenID` of the newly created token.
.proto.TokenID denominating_token_id = 2;
-