Class ExchangeRateSet.Builder

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

public static final class ExchangeRateSet.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<ExchangeRateSet,ExchangeRateSet.Builder> implements ExchangeRateSetOrBuilder
 *
 A set of two exchange rates.<br/>
 The exchange rate for the network is stored and reported as a set of
 two rates; current and next. This structure supports the network cleanly
 switching between exchange rates when necessary. This also provides clear
 notice to clients when the exchange rate will change and the exchange
 rate that will be applied for the next time period.

 The difference in rate between `currentRate` and `nextRate` MUST NOT exceed
 the configured maximum percentage change. This limit SHALL be a
 network configuration value.
 
Protobuf type proto.ExchangeRateSet
  • Method Details

    • hasCurrentRate

      public boolean hasCurrentRate()
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
      Specified by:
      hasCurrentRate in interface ExchangeRateSetOrBuilder
      Returns:
      Whether the currentRate field is set.
    • getCurrentRate

      public ExchangeRate getCurrentRate()
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
      Specified by:
      getCurrentRate in interface ExchangeRateSetOrBuilder
      Returns:
      The currentRate.
    • setCurrentRate

      public ExchangeRateSet.Builder setCurrentRate(ExchangeRate value)
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
    • setCurrentRate

      public ExchangeRateSet.Builder setCurrentRate(ExchangeRate.Builder builderForValue)
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
    • mergeCurrentRate

      public ExchangeRateSet.Builder mergeCurrentRate(ExchangeRate value)
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
    • clearCurrentRate

      public ExchangeRateSet.Builder clearCurrentRate()
       *
       A current exchange rate.
       <p>
       When present in a receipt, this SHALL be the exchange rate used to
       compute the fees for that transaction.
       
      .proto.ExchangeRate currentRate = 1;
    • hasNextRate

      public boolean hasNextRate()
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;
      Specified by:
      hasNextRate in interface ExchangeRateSetOrBuilder
      Returns:
      Whether the nextRate field is set.
    • getNextRate

      public ExchangeRate getNextRate()
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;
      Specified by:
      getNextRate in interface ExchangeRateSetOrBuilder
      Returns:
      The nextRate.
    • setNextRate

      public ExchangeRateSet.Builder setNextRate(ExchangeRate value)
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;
    • setNextRate

      public ExchangeRateSet.Builder setNextRate(ExchangeRate.Builder builderForValue)
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;
    • mergeNextRate

      public ExchangeRateSet.Builder mergeNextRate(ExchangeRate value)
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;
    • clearNextRate

      public ExchangeRateSet.Builder clearNextRate()
       *
       A future exchange rate.
       <p>
       This exchange rate SHALL be applied after the current exchange
       rate expires.
       
      .proto.ExchangeRate nextRate = 2;