public sealed class ShardInfo : IMessage<Document.Types.ShardInfo>, IEquatable<Document.Types.ShardInfo>, IDeepCloneable<Document.Types.ShardInfo>, IBufferMessage, IMessage
For a large document, sharding may be performed to produce several
document shards. Each document shard contains this field to detail which
shard it is.
[[["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-19 UTC."],[[["\u003cp\u003eThis page documents the \u003ccode\u003eShardInfo\u003c/code\u003e class, part of the \u003ccode\u003eGoogle.Cloud.DocumentAI.V1\u003c/code\u003e namespace, which provides details about document sharding for large documents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShardInfo\u003c/code\u003e 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 \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eShardInfo\u003c/code\u003e contains three properties: \u003ccode\u003eShardCount\u003c/code\u003e (total number of shards), \u003ccode\u003eShardIndex\u003c/code\u003e (the index of the current shard), and \u003ccode\u003eTextOffset\u003c/code\u003e (the starting index of the shard's text within the overall document text).\u003c/p\u003e\n"],["\u003cp\u003eThe page lists the availability of \u003ccode\u003eShardInfo\u003c/code\u003e across various versions, ranging from 1.0.0 to the latest 3.19.0, with links to their respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShardInfo\u003c/code\u003e class provides two constructors, one default constructor, and another constructor that takes in a \u003ccode\u003eDocument.Types.ShardInfo\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]