Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A current exchange rate.* A future exchange rate.* A current exchange rate.* A future exchange rate.boolean* A current exchange rate.boolean* A future exchange rate.mergeCurrentRate(ExchangeRate value) * A current exchange rate.mergeNextRate(ExchangeRate value) * A future exchange rate.setCurrentRate(ExchangeRate value) * A current exchange rate.setCurrentRate(ExchangeRate.Builder builderForValue) * A current exchange rate.setNextRate(ExchangeRate value) * A future exchange rate.setNextRate(ExchangeRate.Builder builderForValue) * A future exchange rate.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
-
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:
hasCurrentRatein interfaceExchangeRateSetOrBuilder- Returns:
- Whether the currentRate field is set.
-
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:
getCurrentRatein interfaceExchangeRateSetOrBuilder- Returns:
- The currentRate.
-
setCurrentRate
* 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
* 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
* 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
* 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:
hasNextRatein interfaceExchangeRateSetOrBuilder- Returns:
- Whether the nextRate field is set.
-
getNextRate
* A future exchange rate. <p> This exchange rate SHALL be applied after the current exchange rate expires.
.proto.ExchangeRate nextRate = 2;- Specified by:
getNextRatein interfaceExchangeRateSetOrBuilder- Returns:
- The nextRate.
-
setNextRate
* A future exchange rate. <p> This exchange rate SHALL be applied after the current exchange rate expires.
.proto.ExchangeRate nextRate = 2; -
setNextRate
* A future exchange rate. <p> This exchange rate SHALL be applied after the current exchange rate expires.
.proto.ExchangeRate nextRate = 2; -
mergeNextRate
* A future exchange rate. <p> This exchange rate SHALL be applied after the current exchange rate expires.
.proto.ExchangeRate nextRate = 2; -
clearNextRate
* A future exchange rate. <p> This exchange rate SHALL be applied after the current exchange rate expires.
.proto.ExchangeRate nextRate = 2;
-