public sealed class Chunk.Types.ChunkMetadata : IMessage<Chunk.Types.ChunkMetadata>, IEquatable<Chunk.Types.ChunkMetadata>, IDeepCloneable<Chunk.Types.ChunkMetadata>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class Chunk.Types.ChunkMetadata.
Metadata of the current chunk. This field is only populated on
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
API.
The next chunks of the current chunk. The number is controlled by
[SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks].
This field is only populated on
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
API.
public RepeatedField<Chunk> PreviousChunks { get; }
The previous chunks of the current chunk. The number is controlled by
[SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks].
This field is only populated on
[SearchService.Search][google.cloud.discoveryengine.v1.SearchService.Search]
API.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eChunk.Types.ChunkMetadata\u003c/code\u003e class within the Google Cloud Discovery Engine v1 API, with version 1.6.0 being the latest version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunk.Types.ChunkMetadata\u003c/code\u003e class is used to store metadata about a chunk of data, and is only present when utilizing the \u003ccode\u003eSearchService.Search\u003c/code\u003e API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class contains properties \u003ccode\u003eNextChunks\u003c/code\u003e and \u003ccode\u003ePreviousChunks\u003c/code\u003e, which are both \u003ccode\u003eRepeatedField\u003c/code\u003e collections of \u003ccode\u003eChunk\u003c/code\u003e type and describe the next and previous chunks.\u003c/p\u003e\n"],["\u003cp\u003eThe data found here is within the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1\u003c/code\u003e namespace found in the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class Chunk.Types.ChunkMetadata (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata) \n\n public sealed class Chunk.Types.ChunkMetadata : IMessage\u003cChunk.Types.ChunkMetadata\u003e, IEquatable\u003cChunk.Types.ChunkMetadata\u003e, IDeepCloneable\u003cChunk.Types.ChunkMetadata\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class Chunk.Types.ChunkMetadata.\n\nMetadata of the current chunk. This field is only populated on\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nAPI. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Chunk.Types.ChunkMetadata \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types)[ChunkMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types)[ChunkMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types)[ChunkMetadata](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk.Types.ChunkMetadata), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DiscoveryEngine.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### ChunkMetadata()\n\n public ChunkMetadata()\n\n### ChunkMetadata(ChunkMetadata)\n\n public ChunkMetadata(Chunk.Types.ChunkMetadata other)\n\nProperties\n----------\n\n### NextChunks\n\n public RepeatedField\u003cChunk\u003e NextChunks { get; }\n\nThe next chunks of the current chunk. The number is controlled by\n\\[SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks\\]\\[google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks\\].\nThis field is only populated on\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nAPI.\n\n### PreviousChunks\n\n public RepeatedField\u003cChunk\u003e PreviousChunks { get; }\n\nThe previous chunks of the current chunk. The number is controlled by\n\\[SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks\\]\\[google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks\\].\nThis field is only populated on\n\\[SearchService.Search\\]\\[google.cloud.discoveryengine.v1.SearchService.Search\\]\nAPI."]]