# Google Cloud Network Services V1 Client - Class Delay (0.8.2)

0.8.2 (latest) 0.8.1 0.7.1 0.6.1 0.5.0 0.4.0 0.3.0 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Network Services V1 Client class Delay.

Specification of how client requests are delayed as part of fault
injection before being sent to a destination.

Generated from protobuf message `google.cloud.networkservices.v1.GrpcRoute.FaultInjectionPolicy.Delay`

## Namespace

Google \\ Cloud \\ NetworkServices \\ V1 \\ GrpcRoute \\ FaultInjectionPolicy

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ fixed_delay` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` Specify a fixed delay before forwarding the request. |
| `↳ percentage` | `int` The percentage of traffic on which delay will be injected. The value must be between \[0, 100\] |

### getFixedDelay

Specify a fixed delay before forwarding the request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasFixedDelay

### clearFixedDelay

### setFixedDelay

Specify a fixed delay before forwarding the request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPercentage

The percentage of traffic on which delay will be injected.

The value must be between \[0, 100\]

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasPercentage

### clearPercentage

### setPercentage

The percentage of traffic on which delay will be injected.

The value must be between \[0, 100\]

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |