Package io.envoyproxy.envoy.type.v3
Interface FractionalPercentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FractionalPercent
,FractionalPercent.Builder
public interface FractionalPercentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the denominator.int
Specifies the denominator.int
Specifies the numerator.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getNumerator
int getNumerator()Specifies the numerator. Defaults to 0.
uint32 numerator = 1;
- Returns:
- The numerator.
-
getDenominatorValue
int getDenominatorValue()Specifies the denominator. If the denominator specified is less than the numerator, the final fractional percentage is capped at 1 (100%).
.envoy.type.v3.FractionalPercent.DenominatorType denominator = 2 [(.validate.rules) = { ... }
- Returns:
- The enum numeric value on the wire for denominator.
-
getDenominator
FractionalPercent.DenominatorType getDenominator()Specifies the denominator. If the denominator specified is less than the numerator, the final fractional percentage is capped at 1 (100%).
.envoy.type.v3.FractionalPercent.DenominatorType denominator = 2 [(.validate.rules) = { ... }
- Returns:
- The denominator.
-