java.lang.Object
com.google.protobuf.AbstractMessageLite<FixedFee,FixedFee.Builder>
com.google.protobuf.GeneratedMessageLite<FixedFee,FixedFee.Builder>
com.hedera.hashgraph.sdk.proto.FixedFee
- All Implemented Interfaces:
com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,FixedFeeOrBuilder
@Generated
public final class FixedFee
extends com.google.protobuf.GeneratedMessageLite<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-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class* 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.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 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* The amount to assess for each transfer.static FixedFee* The token type used to pay the assessed fee.boolean* The token type used to pay the assessed fee.static FixedFee.Builderstatic FixedFee.BuildernewBuilder(FixedFee prototype) static FixedFeeparseDelimitedFrom(InputStream input) static FixedFeeparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FixedFeeparseFrom(byte[] data) static FixedFeeparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FixedFeeparseFrom(com.google.protobuf.ByteString data) static FixedFeeparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FixedFeeparseFrom(com.google.protobuf.CodedInputStream input) static FixedFeeparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FixedFeeparseFrom(InputStream input) static FixedFeeparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FixedFeeparseFrom(ByteBuffer data) static FixedFeeparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FixedFee> 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:
-
DENOMINATING_TOKEN_ID_FIELD_NUMBER
public static final int DENOMINATING_TOKEN_ID_FIELD_NUMBER- See Also:
-
-
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.
-
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.
-
parseFrom
public static FixedFee parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FixedFee parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FixedFee parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FixedFee parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FixedFee parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static FixedFee parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FixedFee parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static FixedFee parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static FixedFee 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<FixedFee,FixedFee.Builder>
-
getDefaultInstance
-
parser
-