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。針對 ASSET:projects/{project_number}/locations/{location}/corpora/{corpus}/assets/{asset}

類型

CollectionItem 類型。

列舉
TYPE_UNSPECIFIED 預設項目類型不應出現。
ASSET 資產類型項目。