# Interface ContainerImageOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.notebooks.v1.ContainerImageOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.notebooks.v1.ContainerImageOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.notebooks.v1.ContainerImageOrBuilder)

    public interface ContainerImageOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getRepository()

    public abstract String getRepository()

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

`string repository = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The repository. |

### getRepositoryBytes()

    public abstract ByteString getRepositoryBytes()

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

`string repository = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for repository. |

### getTag()

    public abstract String getTag()

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

`string tag = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The tag. |

### getTagBytes()

    public abstract ByteString getTagBytes()

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

`string tag = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for tag. |