REST Resource: projects.locations.corpora.collections

Resource: Collection

A collection is a resource in a corpus. It serves as a container of references to original resources.

JSON representation
{
  "name": string,
  "displayName": string,
  "description": string
}
Fields
name

string

Output only. Resource name of the collection. Format: projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

displayName

string

Optional. The collection name for displaying. The name can be up to 256 characters long.

description

string

Optional. Description of the collection. Can be up to 25000 characters long.

Methods

addCollectionItem

Adds an item into a Collection.

create

Creates a collection.

delete

Deletes a collection.

get

Gets a collection.

list

Lists collections inside a corpus.

patch

Updates a collection.

removeCollectionItem

Removes an item from a collection.

viewCollectionItems

View items inside a collection.