# Google Cloud Life Sciences V2beta Client - Class ContainerStoppedEvent (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 ContainerStoppedEvent.

An event generated when a container exits.

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

## Namespace

Google \\ Cloud \\ LifeSciences \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ action_id` | `int` The numeric ID of the action that started this container. |
| `↳ exit_status` | `int` The exit status of the container. |
| `↳ stderr` | `string` The tail end of any content written to standard error by the container. If the content emits large amounts of debugging noise or contains sensitive information, you can prevent the content from being printed by setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag. Note that only a small amount of the end of the stream is captured here. The entire stream is stored in the `/google/logs` directory mounted into each action, and can be copied off the machine as described elsewhere. |

### getActionId

The numeric ID of the action that started this container.

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

### setActionId

The numeric ID of the action that started this container.

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

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

### getExitStatus

The exit status of the container.

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

### setExitStatus

The exit status of the container.

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

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

### getStderr

The tail end of any content written to standard error by the container.

If the content emits large amounts of debugging noise or contains
sensitive information, you can prevent the content from being printed by
setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag.
Note that only a small amount of the end of the stream is captured here.
The entire stream is stored in the `/google/logs` directory mounted into
each action, and can be copied off the machine as described elsewhere.

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

### setStderr

The tail end of any content written to standard error by the container.

If the content emits large amounts of debugging noise or contains
sensitive information, you can prevent the content from being printed by
setting the `DISABLE_STANDARD_ERROR_CAPTURE` flag.
Note that only a small amount of the end of the stream is captured here.
The entire stream is stored in the `/google/logs` directory mounted into
each action, and can be copied off the machine as described elsewhere.

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

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