Show / Hide Table of Contents

Class DocumentChunk

A DocumentChunk represents a piece of content from a [Document][google.developers.knowledge.v1.Document] in the DeveloperKnowledge corpus. To fetch the entire document content, pass the parent to [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] or [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments].

Inheritance
object
DocumentChunk
Implements
IMessage<DocumentChunk>
IEquatable<DocumentChunk>
IDeepCloneable<DocumentChunk>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Developers.DeveloperKnowledge.V1
Assembly: Google.Developers.DeveloperKnowledge.V1.dll
Syntax
public sealed class DocumentChunk : IMessage<DocumentChunk>, IEquatable<DocumentChunk>, IDeepCloneable<DocumentChunk>, IBufferMessage, IMessage

Constructors

DocumentChunk()

Declaration
public DocumentChunk()

DocumentChunk(DocumentChunk)

Declaration
public DocumentChunk(DocumentChunk other)
Parameters
Type Name Description
DocumentChunk other

Properties

Content

Output only. Contains the content of the document chunk.

Declaration
public string Content { get; set; }
Property Value
Type Description
string

Document

Output only. Represents metadata about the [Document][google.developers.knowledge.v1.Document] this chunk is from. The [DocumentView][google.developers.knowledge.v1.DocumentView] of this [Document][google.developers.knowledge.v1.Document] message will be set to DOCUMENT_VIEW_BASIC. It is included here for convenience so that clients do not need to call [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] or [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] if they only need the metadata fields. Otherwise, clients should use [DeveloperKnowledge.GetDocument][google.developers.knowledge.v1.DeveloperKnowledge.GetDocument] or [DeveloperKnowledge.BatchGetDocuments][google.developers.knowledge.v1.DeveloperKnowledge.BatchGetDocuments] to fetch the full document content.

Declaration
public Document Document { get; set; }
Property Value
Type Description
Document

Id

Output only. Specifies the ID of this chunk within the document. The chunk ID is unique within a document, but not globally unique across documents. The chunk ID is not stable and may change over time.

Declaration
public string Id { get; set; }
Property Value
Type Description
string

Parent

Output only. Contains the resource name of the document this chunk is from. Format: documents/{uri_without_scheme} Example: documents/docs.cloud.google.com/storage/docs/creating-buckets

Declaration
public string Parent { get; set; }
Property Value
Type Description
string

ParentAsDocumentName

DocumentName-typed view over the Parent resource name property.

Declaration
public DocumentName ParentAsDocumentName { get; set; }
Property Value
Type Description
DocumentName
In this article
Back to top Generated by DocFX