REST Resource: documents

资源:Document

Document 表示开发者知识语料库中的一段内容。

JSON 表示法
{
  "name": string,
  "uri": string,
  "content": string,
  "description": string
}
字段
name

string

标识符。相应文档的资源名称。格式:documents/{uri_without_scheme} 示例:documents/docs.cloud.google.com/storage/docs/creating-buckets

uri

string

仅限输出。内容的 URI,例如 docs.cloud.google.com/storage/docs/creating-buckets

content

string

仅限输出。文档的完整内容(采用 Markdown 格式)。

description

string

仅限输出。文档的说明。

方法

batchGet

检索多个文档,每个文档都包含完整的 Markdown 内容。

get

检索包含完整 Markdown 内容的单个文档。

searchDocumentChunks

在 Google 的开发者文档中搜索开发者知识。