CollectionItem

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 (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 (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.