CollectionItem

CollectionItem 是集合中的项。每个项都是对集合中原始资源的引用。

JSON 表示法
{
  "collection": string,
  "type": enum (Type),
  "itemResource": string
}
字段
collection

string

必需。此项所属的集合名称。格式:projects/{project_number}/locations/{location}/corpora/{corpus}/collections/{collection}

type

enum (Type)

必需。内容的类型。

itemResource

string

必需。CollectionItem 的名称。其格式取决于上述 type。对于资产:projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}

类型

CollectionItem 类型。

枚举
TYPE_UNSPECIFIED 默认类型的项绝不应出现。
ASSET 素材资源类型项。