# Google Cloud Security Command Center V1 Client - Class Container (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class Container.

Container associated with the finding.

Generated from protobuf message `google.cloud.securitycenter.v1.Container`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Name of the container. |
| `↳ uri` | `string` Container image URI provided when configuring a pod or container. This string can identify a container image version using mutable tags. |
| `↳ image_id` | `string` Optional container image ID, if provided by the container runtime. Uniquely identifies the container image launched using a container image digest. |
| `↳ labels` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Label>` Container labels, as provided by the container runtime. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The time that the container was created. |

### getName

Name of the container.

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

### setName

Name of the container.

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

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

### getUri

Container image URI provided when configuring a pod or container. This
string can identify a container image version using mutable tags.

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

### setUri

Container image URI provided when configuring a pod or container. This
string can identify a container image version using mutable tags.

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

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

### getImageId

Optional container image ID, if provided by the container runtime. Uniquely
identifies the container image launched using a container image digest.

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

### setImageId

Optional container image ID, if provided by the container runtime. Uniquely
identifies the container image launched using a container image digest.

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

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

### getLabels

Container labels, as provided by the container runtime.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Label>` |   |

### setLabels

Container labels, as provided by the container runtime.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.Label>` |

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

### getCreateTime

The time that the container was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

The time that the container was created.

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

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