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 ClassesModifier and TypeClassDescriptionstatic 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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic 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) longgetBpr()* Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in byteslonggetBpt()* Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in byteslong* Base: "constant fee".<br/> A baseline constant contribution to total fee.static FeeComponentslonggetGas()* Compute: Ethereum term for a derivative EVM compute resource.<br/> The fee of computation for a smart contract transaction.longgetMax()* Base: "maximum total fee".longgetMin()* Base: "minimum total fee".longgetRbh()* Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hourslonggetSbh()* Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hourslonggetSbpr()* Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in byteslonggetTv()* Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.longgetVpt()* Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transactionstatic FeeComponents.Builderstatic FeeComponents.BuildernewBuilder(FeeComponents prototype) static FeeComponentsparseDelimitedFrom(InputStream input) static FeeComponentsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeeComponentsparseFrom(byte[] data) static FeeComponentsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeeComponentsparseFrom(com.google.protobuf.ByteString data) static FeeComponentsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeeComponentsparseFrom(com.google.protobuf.CodedInputStream input) static FeeComponentsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeeComponentsparseFrom(InputStream input) static FeeComponentsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static FeeComponentsparseFrom(ByteBuffer data) static FeeComponentsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<FeeComponents> 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
-
MIN_FIELD_NUMBER
public static final int MIN_FIELD_NUMBER- See Also:
-
MAX_FIELD_NUMBER
public static final int MAX_FIELD_NUMBER- See Also:
-
CONSTANT_FIELD_NUMBER
public static final int CONSTANT_FIELD_NUMBER- See Also:
-
BPT_FIELD_NUMBER
public static final int BPT_FIELD_NUMBER- See Also:
-
VPT_FIELD_NUMBER
public static final int VPT_FIELD_NUMBER- See Also:
-
RBH_FIELD_NUMBER
public static final int RBH_FIELD_NUMBER- See Also:
-
SBH_FIELD_NUMBER
public static final int SBH_FIELD_NUMBER- See Also:
-
GAS_FIELD_NUMBER
public static final int GAS_FIELD_NUMBER- See Also:
-
TV_FIELD_NUMBER
public static final int TV_FIELD_NUMBER- See Also:
-
BPR_FIELD_NUMBER
public static final int BPR_FIELD_NUMBER- See Also:
-
SBPR_FIELD_NUMBER
public static final int SBPR_FIELD_NUMBER- See Also:
-
-
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:
getMinin interfaceFeeComponentsOrBuilder- 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:
getMaxin interfaceFeeComponentsOrBuilder- Returns:
- The max.
-
getConstant
public long getConstant()* Base: "constant fee".<br/> A baseline constant contribution to total fee.
int64 constant = 3;- Specified by:
getConstantin interfaceFeeComponentsOrBuilder- 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:
getBptin interfaceFeeComponentsOrBuilder- 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:
getVptin interfaceFeeComponentsOrBuilder- 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:
getRbhin interfaceFeeComponentsOrBuilder- 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:
getSbhin interfaceFeeComponentsOrBuilder- 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:
getGasin interfaceFeeComponentsOrBuilder- 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:
getTvin interfaceFeeComponentsOrBuilder- 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:
getBprin interfaceFeeComponentsOrBuilder- 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:
getSbprin interfaceFeeComponentsOrBuilder- 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
- Throws:
IOException
-
parseFrom
public static FeeComponents parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<FeeComponents,FeeComponents.Builder>
-
getDefaultInstance
-
parser
-