public sealed class Document.Types.ShardInfo : IMessage<Document.Types.ShardInfo>, IEquatable<Document.Types.ShardInfo>, IDeepCloneable<Document.Types.ShardInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Document AI v1 API class Document.Types.ShardInfo.
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\u003eThe page provides documentation for the \u003ccode\u003eDocument.Types.ShardInfo\u003c/code\u003e class within the Google Cloud Document AI v1 API, covering versions 1.0.0 through 3.19.0, with the latest release being 3.19.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocument.Types.ShardInfo\u003c/code\u003e is designed for large documents that are split into multiple shards, and each document shard uses this class to detail its specific shard information.\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, with multiple versions of the class being available in the documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eShardCount\u003c/code\u003e, \u003ccode\u003eShardIndex\u003c/code\u003e, and \u003ccode\u003eTextOffset\u003c/code\u003e to provide information about the total number of shards, the index of the current shard, and the text offset within the document, respectively, each as a \u003ccode\u003elong\u003c/code\u003e type.\u003c/p\u003e\n"],["\u003cp\u003eThe available documentation includes a detailed description of the \u003ccode\u003eShardInfo\u003c/code\u003e class constructor, which has two overloads allowing either an empty constructor, or one that is passed a Document.Types.ShardInfo object.\u003c/p\u003e\n"]]],[],null,[]]