Class TransactionFeeSchedule.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TransactionFeeSchedule,TransactionFeeSchedule.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TransactionFeeSchedule,TransactionFeeSchedule.Builder>
com.hedera.hashgraph.sdk.proto.TransactionFeeSchedule.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, TransactionFeeScheduleOrBuilder, Cloneable
Enclosing class:
TransactionFeeSchedule

public static final class TransactionFeeSchedule.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<TransactionFeeSchedule,TransactionFeeSchedule.Builder> implements TransactionFeeScheduleOrBuilder
 *
 The fee schedule for a specific transaction or query based on the fee data.
 
Protobuf type proto.TransactionFeeSchedule
  • Method Details

    • getHederaFunctionalityValue

      public int getHederaFunctionalityValue()
       *
       An enumeration for a particular transaction or query.<br/>
       The functionality type determines the base cost parameters.
       
      .proto.HederaFunctionality hederaFunctionality = 1;
      Specified by:
      getHederaFunctionalityValue in interface TransactionFeeScheduleOrBuilder
      Returns:
      The enum numeric value on the wire for hederaFunctionality.
    • setHederaFunctionalityValue

      public TransactionFeeSchedule.Builder setHederaFunctionalityValue(int value)
       *
       An enumeration for a particular transaction or query.<br/>
       The functionality type determines the base cost parameters.
       
      .proto.HederaFunctionality hederaFunctionality = 1;
      Parameters:
      value - The hederaFunctionality to set.
      Returns:
      This builder for chaining.
      Throws:
      IllegalArgumentException - if UNRECOGNIZED is provided.
    • getHederaFunctionality

      public HederaFunctionality getHederaFunctionality()
       *
       An enumeration for a particular transaction or query.<br/>
       The functionality type determines the base cost parameters.
       
      .proto.HederaFunctionality hederaFunctionality = 1;
      Specified by:
      getHederaFunctionality in interface TransactionFeeScheduleOrBuilder
      Returns:
      The hederaFunctionality.
    • setHederaFunctionality

      public TransactionFeeSchedule.Builder setHederaFunctionality(HederaFunctionality value)
       *
       An enumeration for a particular transaction or query.<br/>
       The functionality type determines the base cost parameters.
       
      .proto.HederaFunctionality hederaFunctionality = 1;
      Parameters:
      value - The enum numeric value on the wire for hederaFunctionality to set.
      Returns:
      This builder for chaining.
    • clearHederaFunctionality

      public TransactionFeeSchedule.Builder clearHederaFunctionality()
       *
       An enumeration for a particular transaction or query.<br/>
       The functionality type determines the base cost parameters.
       
      .proto.HederaFunctionality hederaFunctionality = 1;
      Returns:
      This builder for chaining.
    • hasFeeData

      @Deprecated public boolean hasFeeData()
      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
      Specified by:
      hasFeeData in interface TransactionFeeScheduleOrBuilder
      Returns:
      Whether the feeData field is set.
    • getFeeData

      @Deprecated public FeeData getFeeData()
      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
      Specified by:
      getFeeData in interface TransactionFeeScheduleOrBuilder
      Returns:
      The feeData.
    • setFeeData

      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
    • setFeeData

      @Deprecated public TransactionFeeSchedule.Builder setFeeData(FeeData.Builder builderForValue)
      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
    • mergeFeeData

      @Deprecated public TransactionFeeSchedule.Builder mergeFeeData(FeeData value)
      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
    • clearFeeData

      Deprecated.
       *
       Use `fees` instead of this field.<br/>
       Resource price coefficients.
       
      .proto.FeeData feeData = 2 [deprecated = true];
    • getFeesList

      public List<FeeData> getFeesList()
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
      Specified by:
      getFeesList in interface TransactionFeeScheduleOrBuilder
    • getFeesCount

      public int getFeesCount()
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
      Specified by:
      getFeesCount in interface TransactionFeeScheduleOrBuilder
    • getFees

      public FeeData getFees(int index)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
      Specified by:
      getFees in interface TransactionFeeScheduleOrBuilder
    • setFees

      public TransactionFeeSchedule.Builder setFees(int index, FeeData value)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • setFees

      public TransactionFeeSchedule.Builder setFees(int index, FeeData.Builder builderForValue)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • addFees

      public TransactionFeeSchedule.Builder addFees(FeeData value)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • addFees

      public TransactionFeeSchedule.Builder addFees(int index, FeeData value)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • addFees

      public TransactionFeeSchedule.Builder addFees(FeeData.Builder builderForValue)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • addFees

      public TransactionFeeSchedule.Builder addFees(int index, FeeData.Builder builderForValue)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • addAllFees

      public TransactionFeeSchedule.Builder addAllFees(Iterable<? extends FeeData> values)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • clearFees

      public TransactionFeeSchedule.Builder clearFees()
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;
    • removeFees

      public TransactionFeeSchedule.Builder removeFees(int index)
       *
       The resource price coefficients for transaction type and any applicable
       subtypes.<br/>
       The multiple entries enable support for subtype price definitions.
       
      repeated .proto.FeeData fees = 3;