java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<FeeData,FeeData.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<FeeData,FeeData.Builder>
com.hedera.hashgraph.sdk.proto.FeeData.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,FeeDataOrBuilder,Cloneable
- Enclosing class:
FeeData
public static final class FeeData.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<FeeData,FeeData.Builder>
implements FeeDataOrBuilder
* A total fee, in component amounts charged for a transaction. Total fees are composed of three sets of components. - Node data, components that compensate the specific node that submitted the transaction. - Network data, components that compensate the Hedera network for gossiping the transaction and determining the consensus timestamp. - Service data, components that compensate the Hedera network for the ongoing maintenance and operation of the network, as well as ongoing development of network services. Fee components are recorded in thousandths of a tiny cent, and the network exchange rate converts these to tinybar amounts, which are what the network charges for transactions and what the network reports in the record stream.Protobuf type
proto.FeeData-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* Fee components to be paid to the network for bringing a transaction to consensus.* Fee components to be paid to the submitting node.* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).* Fee components to be paid to the network for bringing a transaction to consensus.* Fee components to be paid to the submitting node.* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).int* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).boolean* Fee components to be paid to the network for bringing a transaction to consensus.boolean* Fee components to be paid to the submitting node.boolean* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.mergeNetworkdata(FeeComponents value) * Fee components to be paid to the network for bringing a transaction to consensus.mergeNodedata(FeeComponents value) * Fee components to be paid to the submitting node.mergeServicedata(FeeComponents value) * Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.setNetworkdata(FeeComponents value) * Fee components to be paid to the network for bringing a transaction to consensus.setNetworkdata(FeeComponents.Builder builderForValue) * Fee components to be paid to the network for bringing a transaction to consensus.setNodedata(FeeComponents value) * Fee components to be paid to the submitting node.setNodedata(FeeComponents.Builder builderForValue) * Fee components to be paid to the submitting node.setServicedata(FeeComponents value) * Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.setServicedata(FeeComponents.Builder builderForValue) * Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.setSubType(SubType value) * A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).setSubTypeValue(int value) * A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).Methods 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
-
hasNodedata
public boolean hasNodedata()* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1;- Specified by:
hasNodedatain interfaceFeeDataOrBuilder- Returns:
- Whether the nodedata field is set.
-
getNodedata
* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1;- Specified by:
getNodedatain interfaceFeeDataOrBuilder- Returns:
- The nodedata.
-
setNodedata
* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1; -
setNodedata
* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1; -
mergeNodedata
* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1; -
clearNodedata
* Fee components to be paid to the submitting node.
.proto.FeeComponents nodedata = 1; -
hasNetworkdata
public boolean hasNetworkdata()* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2;- Specified by:
hasNetworkdatain interfaceFeeDataOrBuilder- Returns:
- Whether the networkdata field is set.
-
getNetworkdata
* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2;- Specified by:
getNetworkdatain interfaceFeeDataOrBuilder- Returns:
- The networkdata.
-
setNetworkdata
* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2; -
setNetworkdata
* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2; -
mergeNetworkdata
* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2; -
clearNetworkdata
* Fee components to be paid to the network for bringing a transaction to consensus.
.proto.FeeComponents networkdata = 2; -
hasServicedata
public boolean hasServicedata()* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3;- Specified by:
hasServicedatain interfaceFeeDataOrBuilder- Returns:
- Whether the servicedata field is set.
-
getServicedata
* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3;- Specified by:
getServicedatain interfaceFeeDataOrBuilder- Returns:
- The servicedata.
-
setServicedata
* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3; -
setServicedata
* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3; -
mergeServicedata
* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3; -
clearServicedata
* Fee components to be paid to the network for providing the immediate and ongoing services associated with executing the transaction, maintaining the network, and developing the network software.
.proto.FeeComponents servicedata = 3; -
getSubTypeValue
public int getSubTypeValue()* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).
.proto.SubType subType = 4;- Specified by:
getSubTypeValuein interfaceFeeDataOrBuilder- Returns:
- The enum numeric value on the wire for subType.
-
setSubTypeValue
* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).
.proto.SubType subType = 4;- Parameters:
value- The subType to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getSubType
* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).
.proto.SubType subType = 4;- Specified by:
getSubTypein interfaceFeeDataOrBuilder- Returns:
- The subType.
-
setSubType
* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).
.proto.SubType subType = 4;- Parameters:
value- The enum numeric value on the wire for subType to set.- Returns:
- This builder for chaining.
-
clearSubType
* A sub-type distinguishing between different types of `FeeData` that may apply to the same base transaction type (associated with an `HederaFunctionality`).
.proto.SubType subType = 4;- Returns:
- This builder for chaining.
-