Interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
GrpcRoute.FaultInjectionPolicy.Abort,GrpcRoute.FaultInjectionPolicy.Abort.Builder
- Enclosing class:
- GrpcRoute.FaultInjectionPolicy
public static interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe HTTP status code used to abort the request.intThe percentage of traffic which will be aborted.booleanThe HTTP status code used to abort the request.booleanThe percentage of traffic which will be aborted.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
-
hasHttpStatus
boolean hasHttpStatus()The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
optional int32 http_status = 1;- Returns:
- Whether the httpStatus field is set.
-
getHttpStatus
int getHttpStatus()The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive.
optional int32 http_status = 1;- Returns:
- The httpStatus.
-
hasPercentage
boolean hasPercentage()The percentage of traffic which will be aborted. 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 which will be aborted. The value must be between [0, 100]
optional int32 percentage = 2;- Returns:
- The percentage.
-