# Google Cloud Notebooks V1 Client - Class ContainerImage (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V1 Client class ContainerImage.

Definition of a container image for starting a notebook instance with the
environment installed in a container.

Generated from protobuf message `google.cloud.notebooks.v1.ContainerImage`

## Namespace

Google \\ Cloud \\ Notebooks \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ repository` | `string` Required. The path to the container image repository. For example: `gcr.io/{project_id}/{image_name}` |
| `↳ tag` | `string` The tag of the container image. If not specified, this defaults to the latest tag. |

### getRepository

Required. The path to the container image repository. For example:
`gcr.io/{project_id}/{image_name}`

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

### setRepository

Required. The path to the container image repository. For example:
`gcr.io/{project_id}/{image_name}`

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

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

### getTag

The tag of the container image. If not specified, this defaults
to the latest tag.

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

### setTag

The tag of the container image. If not specified, this defaults
to the latest tag.

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

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