Class FeeComponents

java.lang.Object
com.google.protobuf.AbstractMessageLite<FeeComponents,FeeComponents.Builder>
com.google.protobuf.GeneratedMessageLite<FeeComponents,FeeComponents.Builder>
com.hedera.hashgraph.sdk.proto.FeeComponents
All Implemented Interfaces:
com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, FeeComponentsOrBuilder

@Generated public final class FeeComponents extends com.google.protobuf.GeneratedMessageLite<FeeComponents,FeeComponents.Builder> implements FeeComponentsOrBuilder
 *
 A set of values the nodes use in determining transaction and query fees, and
 constants involved in fee calculations.

 Nodes SHALL multiply the amount of "resources" allocated to a transaction or
 query by the corresponding price to calculate the appropriate fee. Units are
 one-thousandth of a `tinyCent`. The "resource" allocations SHALL be estimated
 based on transaction characteristics and current network state, and MAY be
 further adjusted based on network load and congestion.

 This SHALL be used, in different contexts, for the cost _factors_ used to
 calculate charged amounts, for the resource accumulation, and for actual
 amounts to be charged.<br/>
 Amounts recorded here MUST be converted to tinybar according to the
 current active `ExchangeRate` for the network.
 
Protobuf type proto.FeeComponents
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    * A set of values the nodes use in determining transaction and query fees, and constants involved in fee calculations.

    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
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    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
    * Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in bytes
    long
    * Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in bytes
    long
    * Base: "constant fee".<br/> A baseline constant contribution to total fee.
     
    long
    * Compute: Ethereum term for a derivative EVM compute resource.<br/> The fee of computation for a smart contract transaction.
    long
    * Base: "maximum total fee".
    long
    * Base: "minimum total fee".
    long
    * Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hours
    long
    * Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hours
    long
    * Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in bytes
    long
    * Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.
    long
    * Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transaction
     
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<FeeComponents>
     

    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

  • Method Details

    • getMin

      public long getMin()
       *
       Base: "minimum total fee".
       <p>
       The calculated fee MUST be greater than this value.
       
      int64 min = 1;
      Specified by:
      getMin in interface FeeComponentsOrBuilder
      Returns:
      The min.
    • getMax

      public long getMax()
       *
       Base: "maximum total fee".
       <p>
       The calculated fee MUST be less than this value.
       
      int64 max = 2;
      Specified by:
      getMax in interface FeeComponentsOrBuilder
      Returns:
      The max.
    • getConstant

      public long getConstant()
       *
       Base: "constant fee".<br/>
       A baseline constant contribution to total fee.
       
      int64 constant = 3;
      Specified by:
      getConstant in interface FeeComponentsOrBuilder
      Returns:
      The constant.
    • getBpt

      public long getBpt()
       *
       Bandwidth: "bytes per transaction".<br/>
       The fee for bandwidth consumed by a transaction, measured in bytes
       
      int64 bpt = 4;
      Specified by:
      getBpt in interface FeeComponentsOrBuilder
      Returns:
      The bpt.
    • getVpt

      public long getVpt()
       *
       Signatures: "validations per transaction".<br/>
       The fee for signature verifications required by a transaction
       
      int64 vpt = 5;
      Specified by:
      getVpt in interface FeeComponentsOrBuilder
      Returns:
      The vpt.
    • getRbh

      public long getRbh()
       *
       Memory: "RAM byte-hours".<br/>
       The fee for RAM required to process a transaction,
       measured in byte-hours
       
      int64 rbh = 6;
      Specified by:
      getRbh in interface FeeComponentsOrBuilder
      Returns:
      The rbh.
    • getSbh

      public long getSbh()
       *
       Disk: "storage byte-hours".<br/>
       The fee for storage required by a transaction, measured in byte-hours
       
      int64 sbh = 7;
      Specified by:
      getSbh in interface FeeComponentsOrBuilder
      Returns:
      The sbh.
    • getGas

      public long getGas()
       *
       Compute: Ethereum term for a derivative EVM compute resource.<br/>
       The fee of computation for a smart contract transaction. The value of
       gas is set by a conversion rate, and is regularly updated to reflect
       reasonable and customary costs.
       
      int64 gas = 8;
      Specified by:
      getGas in interface FeeComponentsOrBuilder
      Returns:
      The gas.
    • getTv

      public long getTv()
       *
       Ad valorem: "transferred value".<br/>
       The fee for HBAR transferred by a transaction.
       
      int64 tv = 9;
      Specified by:
      getTv in interface FeeComponentsOrBuilder
      Returns:
      The tv.
    • getBpr

      public long getBpr()
       *
       Response memory: "bytes per response".<br/>
       The fee for data retrieved from memory to deliver a response,
       measured in bytes
       
      int64 bpr = 10;
      Specified by:
      getBpr in interface FeeComponentsOrBuilder
      Returns:
      The bpr.
    • getSbpr

      public long getSbpr()
       *
       Response disk: "storage bytes per response".<br/>
       The fee for data retrieved from disk to deliver a response,
       measured in bytes
       
      int64 sbpr = 11;
      Specified by:
      getSbpr in interface FeeComponentsOrBuilder
      Returns:
      The sbpr.
    • parseFrom

      public static FeeComponents parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeeComponents parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeeComponents parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeeComponents parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeeComponents parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static FeeComponents parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

      public static FeeComponents.Builder newBuilder()
    • newBuilder

      public static FeeComponents.Builder newBuilder(FeeComponents 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<FeeComponents,FeeComponents.Builder>
    • getDefaultInstance

      public static FeeComponents getDefaultInstance()
    • parser

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