Interface FaultAbortOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
FaultAbort
,FaultAbort.Builder
public interface FaultAbortOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FaultAbort.ErrorTypeCase
getErrorTypeCase()
int
getGrpcStatus()
gRPC status code to use to abort the gRPC request.FaultAbort.HeaderAbort
getHeaderAbort()
Fault aborts are controlled via an HTTP header (if applicable).FaultAbort.HeaderAbortOrBuilder
getHeaderAbortOrBuilder()
Fault aborts are controlled via an HTTP header (if applicable).int
getHttpStatus()
HTTP status code to use to abort the HTTP request.FractionalPercent
getPercentage()
The percentage of requests/operations/connections that will be aborted with the error code provided.FractionalPercentOrBuilder
getPercentageOrBuilder()
The percentage of requests/operations/connections that will be aborted with the error code provided.boolean
hasGrpcStatus()
gRPC status code to use to abort the gRPC request.boolean
hasHeaderAbort()
Fault aborts are controlled via an HTTP header (if applicable).boolean
hasHttpStatus()
HTTP status code to use to abort the HTTP request.boolean
hasPercentage()
The percentage of requests/operations/connections that will be aborted with the error code provided.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasHttpStatus
boolean hasHttpStatus()
HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Returns:
- Whether the httpStatus field is set.
-
getHttpStatus
int getHttpStatus()
HTTP status code to use to abort the HTTP request.
uint32 http_status = 2 [(.validate.rules) = { ... }
- Returns:
- The httpStatus.
-
hasGrpcStatus
boolean hasGrpcStatus()
gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Returns:
- Whether the grpcStatus field is set.
-
getGrpcStatus
int getGrpcStatus()
gRPC status code to use to abort the gRPC request.
uint32 grpc_status = 5;
- Returns:
- The grpcStatus.
-
hasHeaderAbort
boolean hasHeaderAbort()
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
- Returns:
- Whether the headerAbort field is set.
-
getHeaderAbort
FaultAbort.HeaderAbort getHeaderAbort()
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
- Returns:
- The headerAbort.
-
getHeaderAbortOrBuilder
FaultAbort.HeaderAbortOrBuilder getHeaderAbortOrBuilder()
Fault aborts are controlled via an HTTP header (if applicable).
.envoy.extensions.filters.http.fault.v3.FaultAbort.HeaderAbort header_abort = 4;
-
hasPercentage
boolean hasPercentage()
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
- Returns:
- Whether the percentage field is set.
-
getPercentage
FractionalPercent getPercentage()
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
- Returns:
- The percentage.
-
getPercentageOrBuilder
FractionalPercentOrBuilder getPercentageOrBuilder()
The percentage of requests/operations/connections that will be aborted with the error code provided.
.envoy.type.v3.FractionalPercent percentage = 3;
-
getErrorTypeCase
FaultAbort.ErrorTypeCase getErrorTypeCase()
-
-