Interface GrpcRoute.FaultInjectionPolicy.DelayOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcRoute.FaultInjectionPolicy.Delay,GrpcRoute.FaultInjectionPolicy.Delay.Builder
- Enclosing class:
- GrpcRoute.FaultInjectionPolicy
public static interface GrpcRoute.FaultInjectionPolicy.DelayOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.DurationSpecify a fixed delay before forwarding the request.com.google.protobuf.DurationOrBuilderSpecify a fixed delay before forwarding the request.intThe percentage of traffic on which delay will be injected.booleanSpecify a fixed delay before forwarding the request.booleanThe percentage of traffic on which delay will be injected.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
-
hasFixedDelay
boolean hasFixedDelay()Specify a fixed delay before forwarding the request.
optional .google.protobuf.Duration fixed_delay = 1;- Returns:
- Whether the fixedDelay field is set.
-
getFixedDelay
com.google.protobuf.Duration getFixedDelay()Specify a fixed delay before forwarding the request.
optional .google.protobuf.Duration fixed_delay = 1;- Returns:
- The fixedDelay.
-
getFixedDelayOrBuilder
com.google.protobuf.DurationOrBuilder getFixedDelayOrBuilder()Specify a fixed delay before forwarding the request.
optional .google.protobuf.Duration fixed_delay = 1; -
hasPercentage
boolean hasPercentage()The percentage of traffic on which delay will be injected. The value must be between [0, 100]
optional int32 percentage = 2;- Returns:
- Whether the percentage field is set.
-
getPercentage
int getPercentage()The percentage of traffic on which delay will be injected. The value must be between [0, 100]
optional int32 percentage = 2;- Returns:
- The percentage.
-