java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FeeComponents,FeeComponents.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FeeComponents,FeeComponents.Builder>
com.hedera.hashgraph.sdk.proto.FeeComponents.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FeeComponentsOrBuilder,Cloneable
- Enclosing class:
FeeComponents
public static final class FeeComponents.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionclearBpr()* Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in bytesclearBpt()* Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in bytes* Base: "constant fee".<br/> A baseline constant contribution to total fee.clearGas()* Compute: Ethereum term for a derivative EVM compute resource.<br/> The fee of computation for a smart contract transaction.clearMax()* Base: "maximum total fee".clearMin()* Base: "minimum total fee".clearRbh()* Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hoursclearSbh()* Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hours* Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in bytesclearTv()* Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.clearVpt()* Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transactionlonggetBpr()* 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.longgetGas()* 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 transactionsetBpr(long value) * Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in bytessetBpt(long value) * Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in bytessetConstant(long value) * Base: "constant fee".<br/> A baseline constant contribution to total fee.setGas(long value) * Compute: Ethereum term for a derivative EVM compute resource.<br/> The fee of computation for a smart contract transaction.setMax(long value) * Base: "maximum total fee".setMin(long value) * Base: "minimum total fee".setRbh(long value) * Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hourssetSbh(long value) * Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hourssetSbpr(long value) * Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in bytessetTv(long value) * Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.setVpt(long value) * Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transactionMethods 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
-
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.
-
setMin
* Base: "minimum total fee". <p> The calculated fee MUST be greater than this value.
int64 min = 1;- Parameters:
value- The min to set.- Returns:
- This builder for chaining.
-
clearMin
* Base: "minimum total fee". <p> The calculated fee MUST be greater than this value.
int64 min = 1;- Returns:
- This builder for chaining.
-
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.
-
setMax
* Base: "maximum total fee". <p> The calculated fee MUST be less than this value.
int64 max = 2;- Parameters:
value- The max to set.- Returns:
- This builder for chaining.
-
clearMax
* Base: "maximum total fee". <p> The calculated fee MUST be less than this value.
int64 max = 2;- Returns:
- This builder for chaining.
-
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.
-
setConstant
* Base: "constant fee".<br/> A baseline constant contribution to total fee.
int64 constant = 3;- Parameters:
value- The constant to set.- Returns:
- This builder for chaining.
-
clearConstant
* Base: "constant fee".<br/> A baseline constant contribution to total fee.
int64 constant = 3;- Returns:
- This builder for chaining.
-
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.
-
setBpt
* Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in bytes
int64 bpt = 4;- Parameters:
value- The bpt to set.- Returns:
- This builder for chaining.
-
clearBpt
* Bandwidth: "bytes per transaction".<br/> The fee for bandwidth consumed by a transaction, measured in bytes
int64 bpt = 4;- Returns:
- This builder for chaining.
-
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.
-
setVpt
* Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transaction
int64 vpt = 5;- Parameters:
value- The vpt to set.- Returns:
- This builder for chaining.
-
clearVpt
* Signatures: "validations per transaction".<br/> The fee for signature verifications required by a transaction
int64 vpt = 5;- Returns:
- This builder for chaining.
-
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.
-
setRbh
* Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hours
int64 rbh = 6;- Parameters:
value- The rbh to set.- Returns:
- This builder for chaining.
-
clearRbh
* Memory: "RAM byte-hours".<br/> The fee for RAM required to process a transaction, measured in byte-hours
int64 rbh = 6;- Returns:
- This builder for chaining.
-
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.
-
setSbh
* Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hours
int64 sbh = 7;- Parameters:
value- The sbh to set.- Returns:
- This builder for chaining.
-
clearSbh
* Disk: "storage byte-hours".<br/> The fee for storage required by a transaction, measured in byte-hours
int64 sbh = 7;- Returns:
- This builder for chaining.
-
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.
-
setGas
* 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;- Parameters:
value- The gas to set.- Returns:
- This builder for chaining.
-
clearGas
* 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;- Returns:
- This builder for chaining.
-
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.
-
setTv
* Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.
int64 tv = 9;- Parameters:
value- The tv to set.- Returns:
- This builder for chaining.
-
clearTv
* Ad valorem: "transferred value".<br/> The fee for HBAR transferred by a transaction.
int64 tv = 9;- Returns:
- This builder for chaining.
-
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.
-
setBpr
* Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in bytes
int64 bpr = 10;- Parameters:
value- The bpr to set.- Returns:
- This builder for chaining.
-
clearBpr
* Response memory: "bytes per response".<br/> The fee for data retrieved from memory to deliver a response, measured in bytes
int64 bpr = 10;- Returns:
- This builder for chaining.
-
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.
-
setSbpr
* Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in bytes
int64 sbpr = 11;- Parameters:
value- The sbpr to set.- Returns:
- This builder for chaining.
-
clearSbpr
* Response disk: "storage bytes per response".<br/> The fee for data retrieved from disk to deliver a response, measured in bytes
int64 sbpr = 11;- Returns:
- This builder for chaining.
-