Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Class CurrentAndNextFeeSchedule.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<CurrentAndNextFeeSchedule,CurrentAndNextFeeSchedule.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<CurrentAndNextFeeSchedule,CurrentAndNextFeeSchedule.Builder>
com.hedera.hashgraph.sdk.proto.CurrentAndNextFeeSchedule.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,CurrentAndNextFeeScheduleOrBuilder,Cloneable
- Enclosing class:
CurrentAndNextFeeSchedule
public static final class CurrentAndNextFeeSchedule.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<CurrentAndNextFeeSchedule,CurrentAndNextFeeSchedule.Builder>
implements CurrentAndNextFeeScheduleOrBuilder
* The "current" fee schedule and the "next" fee schedule. The current fee schedule is the schedule that SHALL apply to the current transaction.<br/> The next fee schedule is the schedule that SHALL apply after the current schedule expires.<br/> We store both to avoid a condition where transactions are processed very near the time when a fee schedule expires and it might be indeterminate which fees to apply. With both current and next fee schedule the network can deterministically apply the correct fee schedule based on consensus timestamp for each transaction.Protobuf type
proto.CurrentAndNextFeeSchedule-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescription* A current, unexpired, fee schedule.* A future fee schedule to use when the current schedule expires.* A current, unexpired, fee schedule.* A future fee schedule to use when the current schedule expires.boolean* A current, unexpired, fee schedule.boolean* A future fee schedule to use when the current schedule expires.* A current, unexpired, fee schedule.mergeNextFeeSchedule(FeeSchedule value) * A future fee schedule to use when the current schedule expires.setCurrentFeeSchedule(FeeSchedule value) * A current, unexpired, fee schedule.setCurrentFeeSchedule(FeeSchedule.Builder builderForValue) * A current, unexpired, fee schedule.setNextFeeSchedule(FeeSchedule value) * A future fee schedule to use when the current schedule expires.setNextFeeSchedule(FeeSchedule.Builder builderForValue) * A future fee schedule to use when the current schedule expires.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
-
hasCurrentFeeSchedule
public boolean hasCurrentFeeSchedule()* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1;- Specified by:
hasCurrentFeeSchedulein interfaceCurrentAndNextFeeScheduleOrBuilder- Returns:
- Whether the currentFeeSchedule field is set.
-
getCurrentFeeSchedule
* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1;- Specified by:
getCurrentFeeSchedulein interfaceCurrentAndNextFeeScheduleOrBuilder- Returns:
- The currentFeeSchedule.
-
setCurrentFeeSchedule
* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1; -
setCurrentFeeSchedule
* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1; -
mergeCurrentFeeSchedule
* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1; -
clearCurrentFeeSchedule
* A current, unexpired, fee schedule.
.proto.FeeSchedule currentFeeSchedule = 1; -
hasNextFeeSchedule
public boolean hasNextFeeSchedule()* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2;- Specified by:
hasNextFeeSchedulein interfaceCurrentAndNextFeeScheduleOrBuilder- Returns:
- Whether the nextFeeSchedule field is set.
-
getNextFeeSchedule
* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2;- Specified by:
getNextFeeSchedulein interfaceCurrentAndNextFeeScheduleOrBuilder- Returns:
- The nextFeeSchedule.
-
setNextFeeSchedule
* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2; -
setNextFeeSchedule
* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2; -
mergeNextFeeSchedule
* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2; -
clearNextFeeSchedule
* A future fee schedule to use when the current schedule expires.
.proto.FeeSchedule nextFeeSchedule = 2;
-