# Interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.AbortOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.AbortOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.AbortOrBuilder)

    public static interface GrpcRoute.FaultInjectionPolicy.AbortOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the percentage field is set. |