Skip to main content
  • Python client libraries
/
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어
  • Python client libraries
  • Reference
  • Overview
  • Library reference docs
  • google-developer-knowledge
    • Overview
    • google-developer-knowledge APIs
      • API overview
      • Classes
      • Methods
      • Properties and Attributes
    • Changelog
    • Multiprocessing
    • Services
      • developer_knowledge
        • Overview
        • pagers
          • Overview
          • SearchDocumentChunksAsyncPager
          • SearchDocumentChunksPager
        • DeveloperKnowledgeAsyncClient
        • DeveloperKnowledgeClient
    • Types
      • types
        • Overview
        • Answer
          • Overview
          • AnswerCitation
          • AnswerReference
          • CitationSource
          • DocumentReference
        • AnswerQueryRequest
        • AnswerQueryResponse
        • BatchGetDocumentsRequest
        • BatchGetDocumentsResponse
        • Document
        • DocumentChunk
        • DocumentView
        • GetDocumentRequest
        • SearchDocumentChunksRequest
        • SearchDocumentChunksResponse
  • Google for Developers
  • Products
  • Client libraries

Class DocumentReference (0.1.2) Stay organized with collections Save and categorize content based on your preferences.

DocumentReference(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents a reference to a document.

Attribute

Name Description
document_chunk google.developer_knowledge_v1.types.DocumentChunk
Output only. Contains the document chunk. The document_chunk.id field is not set and will be empty.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-09-21 UTC.

  • Engage

    • Google Developer Program
    • Google Developer Groups
    • Google Developer Experts
    • Accelerators
    • Google Cloud & NVIDIA
  • Connect

    • Blog
    • Bluesky
    • Instagram
    • LinkedIn
    • X (Twitter)
    • YouTube
  • Build

    • Android
    • Chrome
    • Firebase
    • Google AI Studio
    • Google Antigravity
    • Google Cloud
    • Google Play
    • View all
Google Developers
  • Android
  • Chrome
  • Firebase
  • Google Cloud Platform
  • All products
  • Terms
  • Privacy
  • ICP证合字B2-20070004号
  • Manage cookies
  • English
  • Deutsch
  • Español
  • Français
  • Indonesia
  • Português – Brasil
  • Русский
  • 中文 – 简体
  • 日本語
  • 한국어