Resource: Document
A Document represents a piece of content from the Developer Knowledge corpus.
| JSON representation |
|---|
{
"name"
:
string
,
"uri"
:
string
,
"content"
:
string
,
"description"
:
string
,
"dataSource"
:
string
,
"title"
:
string
,
"updateTime"
:
string
,
"view"
:
enum (
|
| Fields | |
|---|---|
name
|
Identifier. Contains the resource name of the document. Format: |
uri
|
Output only. Provides the URI of the content, such as |
content
|
Output only. Contains the full content of the document in Markdown format. |
description
|
Output only. Provides a description of the document. |
dataSource
|
Output only. Specifies the data source of the document. Example data source: |
title
|
Output only. Provides the title of the document. |
updateTime
|
Output only. Represents the timestamp when the content or metadata of 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: |
view
|
Output only. Specifies the |
DocumentView
Specifies which fields of the Document
are included.
| Enums | |
|---|---|
DOCUMENT_VIEW_UNSPECIFIED
|
The default / unset value. See each API method for its default value if DocumentView
is not specified. |
DOCUMENT_VIEW_BASIC
|
Includes only the basic metadata fields: - This is the default of view for |
DOCUMENT_VIEW_FULL
|
Includes all Document
fields. |
DOCUMENT_VIEW_CONTENT
|
Includes the This is the default of view for |
Methods |
|
|---|---|
|
Retrieves multiple documents, each with its full Markdown content. |
|
Retrieves a single document with its full Markdown content. |
|
Searches for developer knowledge across Google's developer documentation. |

