DocumentChunk

DocumentChunk 代表 DeveloperKnowledge 語料庫中的 Document 內容。如要擷取整份文件內容,請將 parent 傳遞至 DeveloperKnowledge.GetDocumentDeveloperKnowledge.BatchGetDocuments

JSON 表示法
{
  "parent": string,
  "id": string,
  "content": string,
  "document": {
    object (Document)
  }
}
欄位
parent

string

僅供輸出。包含這個區塊所屬文件的資源名稱。格式:documents/{uri_without_scheme} 範例:documents/docs.cloud.google.com/storage/docs/creating-buckets

id

string

僅供輸出。指定文件內這個區塊的 ID。區塊 ID 在文件中不得重複,但不同文件可以重複使用。區塊 ID 不穩定,可能會隨著時間而改變。

content

string

僅供輸出。包含文件區塊的內容。

document

object (Document)

僅供輸出。代表這個區塊所屬 Document 的中繼資料。這則 Document 訊息的 DocumentView 會設為 DOCUMENT_VIEW_BASIC。為方便起見,這裡也提供這項資訊,如果用戶端只需要中繼資料欄位,就不必呼叫 DeveloperKnowledge.GetDocumentDeveloperKnowledge.BatchGetDocuments。否則,用戶端應使用 DeveloperKnowledge.GetDocumentDeveloperKnowledge.BatchGetDocuments 擷取完整文件內容。