public sealed class 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\u003eThis webpage provides documentation for the \u003ccode\u003eDocument.Types.ShardInfo\u003c/code\u003e class within the Google Cloud Document AI v1 API, detailing its purpose in managing document shards.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists available versions of the API, ranging from the latest 3.19.0 down to 1.0.0, with hyperlinks for accessing each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShardInfo\u003c/code\u003e class is used to describe the details of a specific shard of a large document, including the total number of shards, the index of the current shard, and the starting text offset.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShardInfo\u003c/code\u003e class has two constructors, one parameterless and one that takes in another \u003ccode\u003eShardInfo\u003c/code\u003e object to create a new object based on the provided input.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eShardInfo\u003c/code\u003e class has 3 properties that can be accessed, \u003ccode\u003eShardCount\u003c/code\u003e, \u003ccode\u003eShardIndex\u003c/code\u003e and \u003ccode\u003eTextOffset\u003c/code\u003e, where all three return an \u003ccode\u003eInt64\u003c/code\u003e type.\u003c/p\u003e\n"]]],[],null,[]]