# CollectionItem

- [JSON representation](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/CollectionItem#SCHEMA_REPRESENTATION)
- [Type](https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/CollectionItem#Type)

A CollectionItem is an item in a collection. Each item is a reference to the original resource in a collection.

| JSON representation |
|---|
| ``` { "collection": string, "type": enum (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/CollectionItem#Type`), "itemResource": string } ``` |

| Fields ||
|---|---|
| `collection` | `string` Required. The collection name that this item belongs to. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection} |
| `type` | ``enum (`https://docs.cloud.google.com/vision-ai/docs/reference/rest/v1alpha1/CollectionItem#Type`)`` Required. The type of item. |
| `itemResource` | `string` Required. The name of the CollectionItem. Its format depends on the `type` above. For ASSET: projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset} |

## Type

CollectionItem types.

| Enums ||
|---|---|
| `TYPE_UNSPECIFIED` | The default type of item should never happen. |
| `ASSET` | Asset type item. |