The full resource name of the chunk.
Format:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}.
This field must be a UTF-8 encoded string with a length limit of 1024
characters.
Output only. Represents the relevance score based on similarity.
Higher score indicates higher chunk relevance.
The score is in range [-1.0, 1.0].
Only populated on [SearchService.SearchResponse][].
[[["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\u003eThe \u003ccode\u003eChunk\u003c/code\u003e class in the Discovery Engine v1beta API represents a segment of metadata for items intended for recommendation or search in chunk mode.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunk\u003c/code\u003e class provides properties such as \u003ccode\u003eChunkMetadata\u003c/code\u003e, \u003ccode\u003eChunkName\u003c/code\u003e, \u003ccode\u003eContent\u003c/code\u003e, \u003ccode\u003eDerivedStructData\u003c/code\u003e, \u003ccode\u003eDocumentMetadata\u003c/code\u003e, \u003ccode\u003eId\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003ePageSpan\u003c/code\u003e, and \u003ccode\u003eRelevanceScore\u003c/code\u003e to capture and manage various aspects of the chunked data.\u003c/p\u003e\n"],["\u003cp\u003eThis class has a \u003ccode\u003eRelevanceScore\u003c/code\u003e property, which is an output-only value that indicates the relevance of a chunk based on similarity, with a higher score indicating greater relevance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunk\u003c/code\u003e class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements the interfaces \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionality for message handling, equality comparison, deep cloning, and buffer message support.\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions available, \u003ccode\u003e1.0.0-beta18\u003c/code\u003e (latest) and \u003ccode\u003e1.0.0-beta17\u003c/code\u003e, for the class \u003ccode\u003eChunk\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class Chunk (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Chunk)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.Chunk) \n\n public sealed class Chunk : IMessage\u003cChunk\u003e, IEquatable\u003cChunk\u003e, IDeepCloneable\u003cChunk\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class Chunk.\n\nChunk captures all raw metadata information of items to be recommended or\nsearched in the chunk mode. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Chunk \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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Chunk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Chunk), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Chunk), [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.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### Chunk()\n\n public Chunk()\n\n### Chunk(Chunk)\n\n public Chunk(Chunk other)\n\nProperties\n----------\n\n### ChunkMetadata\n\n public Chunk.Types.ChunkMetadata ChunkMetadata { get; set; }\n\nOutput only. Metadata of the current chunk.\n\n### ChunkName\n\n public ChunkName ChunkName { get; set; }\n\n[ChunkName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ChunkName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.Chunk#Google_Cloud_DiscoveryEngine_V1Beta_Chunk_Name) resource name property.\n\n### Content\n\n public string Content { get; set; }\n\nContent is a string from a document (parsed content).\n\n### DerivedStructData\n\n public Struct DerivedStructData { get; set; }\n\nOutput only. This field is OUTPUT_ONLY.\nIt contains derived data that are not in the original input document.\n\n### DocumentMetadata\n\n public Chunk.Types.DocumentMetadata DocumentMetadata { get; set; }\n\nMetadata of the document from the current chunk.\n\n### HasRelevanceScore\n\n public bool HasRelevanceScore { get; }\n\nGets whether the \"relevance_score\" field is set\n\n### Id\n\n public string Id { get; set; }\n\nUnique chunk ID of the current chunk.\n\n### Name\n\n public string Name { get; set; }\n\nThe full resource name of the chunk.\nFormat:\n`projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.\n\nThis field must be a UTF-8 encoded string with a length limit of 1024\ncharacters.\n\n### PageSpan\n\n public Chunk.Types.PageSpan PageSpan { get; set; }\n\nPage span of the chunk.\n\n### RelevanceScore\n\n public double RelevanceScore { get; set; }\n\nOutput only. Represents the relevance score based on similarity.\nHigher score indicates higher chunk relevance.\nThe score is in range \\[-1.0, 1.0\\].\nOnly populated on \\[SearchService.SearchResponse\\]\\[\\]."]]