REST Resource: documents

リソース: Document

Document は、デベロッパー ナレッジ コーパスのコンテンツを表します。

JSON 表現
{
  "name": string,
  "uri": string,
  "content": string,
  "description": string,
  "dataSource": string,
  "title": string,
  "updateTime": string,
  "view": enum (DocumentView)
}
フィールド
name

string

ID。ドキュメントのリソース名が含まれます。形式: 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

出力専用。ドキュメントの説明を提供します。

dataSource

string

出力専用。ドキュメントのデータソースを指定します。データソースの例: firebase.google.com

title

string

出力専用。ドキュメントのタイトルを提供します。

updateTime

string (Timestamp format)

出力専用。ドキュメントのコンテンツまたはメタデータが最後に更新されたときのタイムスタンプを表します。

RFC 3339 を使用します。生成された出力は常に Z 正規化され、小数点以下は 0、3、6、または 9 桁になります。「Z」以外のオフセットも使用できます。例: "2014-10-02T15:01:23Z""2014-10-02T15:01:23.045123456Z""2014-10-02T15:01:23+05:30"

view

enum (DocumentView)

出力専用。ドキュメントの DocumentView を指定します。

DocumentView

Document のどのフィールドを含めるかを指定します。

列挙型
DOCUMENT_VIEW_UNSPECIFIED デフォルト値 / 未設定の値。DocumentView が指定されていない場合のデフォルト値については、各 API メソッドをご覧ください。
DOCUMENT_VIEW_BASIC

基本的なメタデータ フィールドのみが含まれます。 - name - uri - dataSource - title - description - updateTime - view

これは、DeveloperKnowledge.SearchDocumentChunks のビューのデフォルトです。

DOCUMENT_VIEW_FULL すべての Document フィールドが含まれます。
DOCUMENT_VIEW_CONTENT

DOCUMENT_VIEW_BASIC フィールドと content フィールドが含まれます。

これは、DeveloperKnowledge.GetDocumentDeveloperKnowledge.BatchGetDocuments のビューのデフォルトです。

メソッド

batchGet

複数のドキュメントを、それぞれ完全な Markdown コンテンツとともに取得します。

get

1 つのドキュメントを、完全な Markdown コンテンツとともに取得します。

searchDocumentChunks

Google のデベロッパー向けドキュメント全体でデベロッパー ナレッジを検索します。