資源:Document
文件是擷取至資料儲存庫的單一內容單位。是 DataStore 的子資源。擷取期間,系統會剖析文件並切成一或多個區塊。
| JSON 表示法 |
|---|
{ "name": string, "createTime": string, "updateTime": string, "content": { object ( |
| 欄位 | |
|---|---|
name |
ID。文件的完整資源名稱。 格式: ImportDocuments 直接匯入檔案 (預設來源格式) 時,服務會從檔案的 Cloud Storage URI 衍生 documentId:重新匯入相同的 URI 會更新相同的文件,而重新命名或移動的檔案會成為新文件。使用 |
createTime |
僅供輸出。文件建立時間的時間戳記。 使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例: |
updateTime |
僅供輸出。文件上次更新的時間戳記。 使用 RFC 3339,產生的輸出內容一律會經過 Z 正規化,並使用 0、3、6 或 9 個小數位數,也接受「Z」以外的偏移量。範例: |
content |
選用。與這份文件連結的非結構化資料:匯入來源 Cloud Storage 檔案。 |
etag |
選用。文件的 etag。 |
metadata |
選用。這份文件的使用者定義中繼資料。中繼資料值必須符合父項 DataStore 定義的 |
內容
連結至這份文件的非結構化資料。
| JSON 表示法 |
|---|
{ // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "gcsUri": string // End of mutually exclusive fields. } |
| 欄位 | |
|---|---|
| 非結構化文件的內容。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位: | |
gcsUri |
內容的 Cloud Storage URI。僅支援 Cloud Storage URI (例如 |
| 互斥欄位結束。 | |
DocumentMetadata
與文件相關聯的使用者定義中繼資料。
| JSON 表示法 |
|---|
{ "value": { object } } |
| 欄位 | |
|---|---|
value |
選用。中繼資料值,以 JSON 物件表示。這個值必須符合父項 DataStore 定義的 |
方法 |
|
|---|---|
|
取得文件。 |
|
列出 DataStore 中的文件。 |
|
搜尋單一 DataStore 的文件。 |