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, specifically version 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChunk.Types.ChunkMetadata\u003c/code\u003e is a class that 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 represents metadata about a specific chunk of data.\u003c/p\u003e\n"],["\u003cp\u003eThe class's metadata is used within the \u003ccode\u003eSearchService.Search\u003c/code\u003e API, and includes information about previous and next chunks that is specified by \u003ccode\u003enum_previous_chunks\u003c/code\u003e and \u003ccode\u003enum_next_chunks\u003c/code\u003e respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, one that creates an instance of \u003ccode\u003eChunkMetadata\u003c/code\u003e and another that creates an instance of \u003ccode\u003eChunkMetadata\u003c/code\u003e based on an existing \u003ccode\u003eChunk.Types.ChunkMetadata\u003c/code\u003e instance.\u003c/p\u003e\n"],["\u003cp\u003eThe class exposes two properties, \u003ccode\u003eNextChunks\u003c/code\u003e and \u003ccode\u003ePreviousChunks\u003c/code\u003e, both of which are of the type \u003ccode\u003eRepeatedField<Chunk>\u003c/code\u003e and contain information about the chunks that come before and after the current chunk.\u003c/p\u003e\n"]]],[],null,[]]