Class FeeData.Builder

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 Type
    Method
    Description
    * 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.
    * 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.
    * Fee components to be paid to the network for bringing a transaction to consensus.
    * 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 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.
    * 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`).
    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, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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:
      hasNodedata in interface FeeDataOrBuilder
      Returns:
      Whether the nodedata field is set.
    • getNodedata

      public FeeComponents getNodedata()
       *
       Fee components to be paid to the submitting node.
       
      .proto.FeeComponents nodedata = 1;
      Specified by:
      getNodedata in interface FeeDataOrBuilder
      Returns:
      The nodedata.
    • setNodedata

      public FeeData.Builder setNodedata(FeeComponents value)
       *
       Fee components to be paid to the submitting node.
       
      .proto.FeeComponents nodedata = 1;
    • setNodedata

      public FeeData.Builder setNodedata(FeeComponents.Builder builderForValue)
       *
       Fee components to be paid to the submitting node.
       
      .proto.FeeComponents nodedata = 1;
    • mergeNodedata

      public FeeData.Builder mergeNodedata(FeeComponents value)
       *
       Fee components to be paid to the submitting node.
       
      .proto.FeeComponents nodedata = 1;
    • clearNodedata

      public FeeData.Builder 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:
      hasNetworkdata in interface FeeDataOrBuilder
      Returns:
      Whether the networkdata field is set.
    • getNetworkdata

      public FeeComponents getNetworkdata()
       *
       Fee components to be paid to the network for bringing a
       transaction to consensus.
       
      .proto.FeeComponents networkdata = 2;
      Specified by:
      getNetworkdata in interface FeeDataOrBuilder
      Returns:
      The networkdata.
    • setNetworkdata

      public FeeData.Builder setNetworkdata(FeeComponents value)
       *
       Fee components to be paid to the network for bringing a
       transaction to consensus.
       
      .proto.FeeComponents networkdata = 2;
    • setNetworkdata

      public FeeData.Builder setNetworkdata(FeeComponents.Builder builderForValue)
       *
       Fee components to be paid to the network for bringing a
       transaction to consensus.
       
      .proto.FeeComponents networkdata = 2;
    • mergeNetworkdata

      public FeeData.Builder mergeNetworkdata(FeeComponents value)
       *
       Fee components to be paid to the network for bringing a
       transaction to consensus.
       
      .proto.FeeComponents networkdata = 2;
    • clearNetworkdata

      public FeeData.Builder 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:
      hasServicedata in interface FeeDataOrBuilder
      Returns:
      Whether the servicedata field is set.
    • getServicedata

      public FeeComponents 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:
      getServicedata in interface FeeDataOrBuilder
      Returns:
      The servicedata.
    • setServicedata

      public FeeData.Builder 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.
       
      .proto.FeeComponents servicedata = 3;
    • setServicedata

      public FeeData.Builder 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.
       
      .proto.FeeComponents servicedata = 3;
    • mergeServicedata

      public FeeData.Builder 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.
       
      .proto.FeeComponents servicedata = 3;
    • clearServicedata

      public FeeData.Builder 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:
      getSubTypeValue in interface FeeDataOrBuilder
      Returns:
      The enum numeric value on the wire for subType.
    • setSubTypeValue

      public FeeData.Builder 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`).
       
      .proto.SubType subType = 4;
      Parameters:
      value - The subType to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getSubType

      public SubType 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:
      getSubType in interface FeeDataOrBuilder
      Returns:
      The subType.
    • setSubType

      public FeeData.Builder 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`).
       
      .proto.SubType subType = 4;
      Parameters:
      value - The enum numeric value on the wire for subType to set.
      Returns:
      This builder for chaining.
    • clearSubType

      public FeeData.Builder 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.