Interface RuntimeFractionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RuntimeFraction,RuntimeFraction.Builder
public interface RuntimeFractionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionMatch the input against the given runtime key.Match the input against the given runtime key.longgetSeed()Optional seed passed through the hash function.booleanMatch the input against the given runtime key.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasRuntimeFraction
boolean hasRuntimeFraction()Match the input against the given runtime key. The specified default value is used if key is not present in the runtime configuration.
.envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 1 [(.validate.rules) = { ... }- Returns:
- Whether the runtimeFraction field is set.
-
getRuntimeFraction
RuntimeFractionalPercent getRuntimeFraction()Match the input against the given runtime key. The specified default value is used if key is not present in the runtime configuration.
.envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 1 [(.validate.rules) = { ... }- Returns:
- The runtimeFraction.
-
getRuntimeFractionOrBuilder
RuntimeFractionalPercentOrBuilder getRuntimeFractionOrBuilder()Match the input against the given runtime key. The specified default value is used if key is not present in the runtime configuration.
.envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 1 [(.validate.rules) = { ... } -
getSeed
long getSeed()Optional seed passed through the hash function. This allows using additional information when computing the hash value: by changing the seed value, a potentially different outcome can be achieved for the same input.
uint64 seed = 2;- Returns:
- The seed.
-