DocumentChunk

‫DocumentChunk מייצג חלק מהתוכן מתוך Document במאגר המידע DeveloperKnowledge. כדי לאחזר את כל תוכן המסמך, מעבירים את parent אל DeveloperKnowledge.GetDocument או אל DeveloperKnowledge.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

פלט בלבד. מציין את המזהה של החלק הזה במסמך. מזהה החלק ייחודי במסמך, אבל לא ייחודי באופן גלובלי בין מסמכים. מזהה המקטע לא יציב ועשוי להשתנות עם הזמן.

content

string

פלט בלבד. מכיל את התוכן של נתח המסמך.

document

object (Document)

פלט בלבד. מייצג מטא-נתונים לגבי Document שממנו נוצר הצ'אנק הזה. הDocumentView של ההודעה הזו בDocument יוגדר כDOCUMENT_VIEW_BASIC. הוא כלול כאן לנוחותכם, כדי שלקוחות לא יצטרכו להתקשר אל DeveloperKnowledge.GetDocument או אל DeveloperKnowledge.BatchGetDocuments אם הם צריכים רק את שדות המטא-נתונים. אחרת, אפליקציות הלקוח צריכות להשתמש ב-DeveloperKnowledge.GetDocument או ב-DeveloperKnowledge.BatchGetDocuments כדי לאחזר את התוכן המלא של המסמך.