# Google Cloud Life Sciences V2beta Client - Class DelayedEvent (0.9.0)

0.9.0 (latest) 0.8.1 0.7.3 0.6.8 0.5.4 0.4.0 0.3.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Life Sciences V2beta Client class DelayedEvent.

An event generated whenever a resource limitation or transient error
delays execution of a pipeline that was otherwise ready to run.

Generated from protobuf message `google.cloud.lifesciences.v2beta.DelayedEvent`

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cause` | `string` A textual description of the cause of the delay. The string can change without notice because it is often generated by another service (such as Compute Engine). |
| `↳ metrics` | `string[]` If the delay was caused by a resource shortage, this field lists the Compute Engine metrics that are preventing this operation from running (for example, `CPUS` or `INSTANCES`). If the particular metric is not known, a single `UNKNOWN` metric will be present. |

### getCause

A textual description of the cause of the delay. The string can change
without notice because it is often generated by another service (such as
Compute Engine).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCause

A textual description of the cause of the delay. The string can change
without notice because it is often generated by another service (such as
Compute Engine).

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

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

### getMetrics

If the delay was caused by a resource shortage, this field lists the
Compute Engine metrics that are preventing this operation from running
(for example, `CPUS` or `INSTANCES`). If the particular metric is not
known, a single `UNKNOWN` metric will be present.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setMetrics

If the delay was caused by a resource shortage, this field lists the
Compute Engine metrics that are preventing this operation from running
(for example, `CPUS` or `INSTANCES`). If the particular metric is not
known, a single `UNKNOWN` metric will be present.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

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