Output only. Image Data URLs if the current chunk contains images.
Data URLs are composed of four parts: a prefix (data:), a MIME type
indicating the type of data, an optional base64 token if non-textual,
and the data itself:
data:[<mediatype>][;base64],<data>
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
[SearchResponse][google.cloud.discoveryengine.v1.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 Google.Cloud.DiscoveryEngine.V1 API represents a segment of content from a document, designed for recommendation or search purposes in chunk mode.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eChunk\u003c/code\u003e class is 1.6.0, with previous versions ranging from 1.5.0 down to 1.0.0-beta06 also being documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChunk\u003c/code\u003e includes properties such as \u003ccode\u003eContent\u003c/code\u003e for the string data, \u003ccode\u003eChunkMetadata\u003c/code\u003e and \u003ccode\u003eDocumentMetadata\u003c/code\u003e for associated information, as well as \u003ccode\u003eId\u003c/code\u003e and \u003ccode\u003eName\u003c/code\u003e for identification.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eChunk\u003c/code\u003e has a \u003ccode\u003eRelevanceScore\u003c/code\u003e property, indicating the chunk's similarity relevance, which is calculated on a scale from -1.0 to 1.0 and is only present in SearchService.SearchResponse.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChunk\u003c/code\u003e class implements multiple interfaces including IMessage, IEquatable, IDeepCloneable, and IBufferMessage, supporting various functionalities and interactions.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class Chunk (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)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.Chunk)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.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 v1 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.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Chunk](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk), [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), [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### Chunk()\n\n public Chunk()\n\n### Chunk(Chunk)\n\n public Chunk(Chunk other)\n\nProperties\n----------\n\n### AnnotationContents\n\n public RepeatedField\u003cstring\u003e AnnotationContents { get; }\n\nOutput only. Annotation contents if the current chunk contains annotations.\n\n### AnnotationMetadata\n\n public RepeatedField\u003cChunk.Types.AnnotationMetadata\u003e AnnotationMetadata { get; }\n\nOutput only. The annotation metadata includes structured content in the\ncurrent chunk.\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.V1/latest/Google.Cloud.DiscoveryEngine.V1.ChunkName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.Chunk#Google_Cloud_DiscoveryEngine_V1_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### DataUrls\n\n public RepeatedField\u003cstring\u003e DataUrls { get; }\n\nOutput only. Image Data URLs if the current chunk contains images.\nData URLs are composed of four parts: a prefix (data:), a MIME type\nindicating the type of data, an optional base64 token if non-textual,\nand the data itself:\ndata:\\[\\\u003cmediatype\\\u003e\\]\\[;base64\\],\\\u003cdata\\\u003e\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\n\\[SearchResponse\\]\\[google.cloud.discoveryengine.v1.SearchResponse\\]."]]