class Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentShardInfo

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.

Attributes

shard_count[RW]

Total number of shards. Corresponds to the JSON property `shardCount` @return [Fixnum]

shard_index[RW]

The 0-based index of this shard. Corresponds to the JSON property `shardIndex` @return [Fixnum]

text_offset[RW]

The index of the first character in Document.text in the overall document global text. Corresponds to the JSON property `textOffset` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1/classes.rb, line 5841
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1/classes.rb, line 5846
def update!(**args)
  @shard_count = args[:shard_count] if args.key?(:shard_count)
  @shard_index = args[:shard_index] if args.key?(:shard_index)
  @text_offset = args[:text_offset] if args.key?(:text_offset)
end