public static final class RouterOuterClass.BimodalParameters.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder> implements RouterOuterClass.BimodalParametersOrBuilder
routerrpc.BimodalParameters| Modifier and Type | Method and Description |
|---|---|
RouterOuterClass.BimodalParameters |
build() |
RouterOuterClass.BimodalParameters |
buildPartial() |
RouterOuterClass.BimodalParameters.Builder |
clear() |
RouterOuterClass.BimodalParameters.Builder |
clearDecayTime()
DecayTime describes the information decay of knowledge about previous
successes and failures in channels.
|
RouterOuterClass.BimodalParameters.Builder |
clearNodeWeight()
NodeWeight defines how strongly other previous forwardings on channels of a
router should be taken into account when computing a channel's probability
to route.
|
RouterOuterClass.BimodalParameters.Builder |
clearScaleMsat()
ScaleMsat describes the scale over which channels statistically have some
liquidity left.
|
long |
getDecayTime()
DecayTime describes the information decay of knowledge about previous
successes and failures in channels.
|
RouterOuterClass.BimodalParameters |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
double |
getNodeWeight()
NodeWeight defines how strongly other previous forwardings on channels of a
router should be taken into account when computing a channel's probability
to route.
|
long |
getScaleMsat()
ScaleMsat describes the scale over which channels statistically have some
liquidity left.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouterOuterClass.BimodalParameters.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouterOuterClass.BimodalParameters.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouterOuterClass.BimodalParameters.Builder |
mergeFrom(RouterOuterClass.BimodalParameters other) |
RouterOuterClass.BimodalParameters.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouterOuterClass.BimodalParameters.Builder |
setDecayTime(long value)
DecayTime describes the information decay of knowledge about previous
successes and failures in channels.
|
RouterOuterClass.BimodalParameters.Builder |
setNodeWeight(double value)
NodeWeight defines how strongly other previous forwardings on channels of a
router should be taken into account when computing a channel's probability
to route.
|
RouterOuterClass.BimodalParameters.Builder |
setScaleMsat(long value)
ScaleMsat describes the scale over which channels statistically have some
liquidity left.
|
RouterOuterClass.BimodalParameters.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>public RouterOuterClass.BimodalParameters.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>public RouterOuterClass.BimodalParameters getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouterOuterClass.BimodalParameters build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouterOuterClass.BimodalParameters buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouterOuterClass.BimodalParameters.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterOuterClass.BimodalParameters.Builder>public RouterOuterClass.BimodalParameters.Builder mergeFrom(RouterOuterClass.BimodalParameters other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>public RouterOuterClass.BimodalParameters.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouterOuterClass.BimodalParameters.Builder>java.io.IOExceptionpublic double getNodeWeight()
NodeWeight defines how strongly other previous forwardings on channels of a router should be taken into account when computing a channel's probability to route. The allowed values are in the range [0, 1], where a value of 0 means that only direct information about a channel is taken into account.
double node_weight = 1;getNodeWeight in interface RouterOuterClass.BimodalParametersOrBuilderpublic RouterOuterClass.BimodalParameters.Builder setNodeWeight(double value)
NodeWeight defines how strongly other previous forwardings on channels of a router should be taken into account when computing a channel's probability to route. The allowed values are in the range [0, 1], where a value of 0 means that only direct information about a channel is taken into account.
double node_weight = 1;value - The nodeWeight to set.public RouterOuterClass.BimodalParameters.Builder clearNodeWeight()
NodeWeight defines how strongly other previous forwardings on channels of a router should be taken into account when computing a channel's probability to route. The allowed values are in the range [0, 1], where a value of 0 means that only direct information about a channel is taken into account.
double node_weight = 1;public long getScaleMsat()
ScaleMsat describes the scale over which channels statistically have some liquidity left. The value determines how quickly the bimodal distribution drops off from the edges of a channel. A larger value (compared to typical channel capacities) means that the drop off is slow and that channel balances are distributed more uniformly. A small value leads to the assumption of very unbalanced channels.
uint64 scale_msat = 2;getScaleMsat in interface RouterOuterClass.BimodalParametersOrBuilderpublic RouterOuterClass.BimodalParameters.Builder setScaleMsat(long value)
ScaleMsat describes the scale over which channels statistically have some liquidity left. The value determines how quickly the bimodal distribution drops off from the edges of a channel. A larger value (compared to typical channel capacities) means that the drop off is slow and that channel balances are distributed more uniformly. A small value leads to the assumption of very unbalanced channels.
uint64 scale_msat = 2;value - The scaleMsat to set.public RouterOuterClass.BimodalParameters.Builder clearScaleMsat()
ScaleMsat describes the scale over which channels statistically have some liquidity left. The value determines how quickly the bimodal distribution drops off from the edges of a channel. A larger value (compared to typical channel capacities) means that the drop off is slow and that channel balances are distributed more uniformly. A small value leads to the assumption of very unbalanced channels.
uint64 scale_msat = 2;public long getDecayTime()
DecayTime describes the information decay of knowledge about previous successes and failures in channels. The smaller the decay time, the quicker we forget about past forwardings.
uint64 decay_time = 3;getDecayTime in interface RouterOuterClass.BimodalParametersOrBuilderpublic RouterOuterClass.BimodalParameters.Builder setDecayTime(long value)
DecayTime describes the information decay of knowledge about previous successes and failures in channels. The smaller the decay time, the quicker we forget about past forwardings.
uint64 decay_time = 3;value - The decayTime to set.public RouterOuterClass.BimodalParameters.Builder clearDecayTime()
DecayTime describes the information decay of knowledge about previous successes and failures in channels. The smaller the decay time, the quicker we forget about past forwardings.
uint64 decay_time = 3;public final RouterOuterClass.BimodalParameters.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>public final RouterOuterClass.BimodalParameters.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouterOuterClass.BimodalParameters.Builder>