Reference documentation and code samples for the Google Cloud Document Ai V1 Client class 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.
Generated from protobuf message google.cloud.documentai.v1.Document.ShardInfo
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ shard_index
int|string
The 0-based index of this shard.
↳ shard_count
int|string
Total number of shards.
↳ text_offset
getShardIndex
The 0-based index of this shard.
int|string
setShardIndex
The 0-based index of this shard.
var
int|string
$this
getShardCount
Total number of shards.
int|string
setShardCount
Total number of shards.
var
int|string
$this
getTextOffset
The index of the first character in Document.text in the overall document global text.
int|string
setTextOffset
The index of the first character in Document.text in the overall document global text.
var
int|string
$this