Resource: Document
A Document is a single unit of content ingested into a DataStore. It is a sub-resource of a DataStore. During ingestion a Document is parsed and chunked into one or more Segments.
| JSON representation |
|---|
{ "name": string, "createTime": string, "updateTime": string, "content": { object ( |
| Fields | |
|---|---|
name |
Identifier. The fully qualified resource name of the Document. Format: When ImportDocuments imports files directly (the default source format), the service derives the documentId from the file's Cloud Storage URI: re-importing the same URI updates the same Document, and a renamed or moved file becomes a new Document. With |
createTime |
Output only. Timestamp the Document was created at. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
updateTime |
Output only. Timestamp the Document was last updated. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: |
content |
Optional. The unstructured data linked to this Document: the Cloud Storage file it was imported from. Required in each line of a |
etag |
Optional. The etag of the Document. |
metadata |
Optional. User-defined metadata for this Document. The metadata values must conform to the |
Content
Unstructured data linked to this Document.
| JSON representation |
|---|
{ // 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. } |
| Fields | |
|---|---|
| The content of the unstructured Document. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
gcsUri |
The Cloud Storage URI of the content. Only Cloud Storage URIs (e.g. |
| End of mutually exclusive fields. | |
DocumentMetadata
User-defined metadata associated with a Document.
| JSON representation |
|---|
{ "value": { object } } |
| Fields | |
|---|---|
value |
Optional. The metadata value, as a JSON object. The value must conform to the |
Methods |
|
|---|---|
|
Gets a Document. |
|
Lists Documents in a DataStore. |
|
Searches the Documents of a single DataStore. |