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 Classes
    Modifier and Type
    Class
    Description
    static 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

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageLite

    unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    protected final Object
    dynamicMethod(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.
     
    newBuilder(FixedFee prototype)
     
    static FixedFee
     
    static FixedFee
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FixedFee
    parseFrom(byte[] data)
     
    static FixedFee
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FixedFee
    parseFrom(com.google.protobuf.ByteString data)
     
    static FixedFee
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FixedFee
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static FixedFee
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FixedFee
     
    static FixedFee
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static FixedFee
     
    static FixedFee
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FixedFee>
     

    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, writeTo

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods 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:
      getAmount in interface FixedFeeOrBuilder
      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:
      hasDenominatingTokenId in interface FixedFeeOrBuilder
      Returns:
      Whether the denominatingTokenId field is set.
    • getDenominatingTokenId

      public TokenID 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:
      getDenominatingTokenId in interface FixedFeeOrBuilder
      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

      public static FixedFee parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedFee parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FixedFee parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static FixedFee parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedFee parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static FixedFee parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilder

      public static FixedFee.Builder newBuilder()
    • newBuilder

      public static FixedFee.Builder newBuilder(FixedFee prototype)
    • dynamicMethod

      protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
      Specified by:
      dynamicMethod in class com.google.protobuf.GeneratedMessageLite<FixedFee,FixedFee.Builder>
    • getDefaultInstance

      public static FixedFee getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<FixedFee> parser()