Interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder (0.1.0)

public static interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHttpStatus()

public abstract 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
Type Description
int

The httpStatus.

getPercentage()

public abstract int getPercentage()

The percentage of traffic which will be aborted.

The value must be between [0, 100]

optional int32 percentage = 2;

Returns
Type Description
int

The percentage.

hasHttpStatus()

public abstract 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
Type Description
boolean

Whether the httpStatus field is set.

hasPercentage()

public abstract boolean hasPercentage()

The percentage of traffic which will be aborted.

The value must be between [0, 100]

optional int32 percentage = 2;

Returns
Type Description
boolean

Whether the percentage field is set.