Document AI V1beta3 API - Class Google::Cloud::DocumentAI::V1beta3::Document::ShardInfo (v0.32.0)

Reference documentation and code samples for the Document AI V1beta3 API class Google::Cloud::DocumentAI::V1beta3::Document::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#shard_count

def shard_count() -> ::Integer
Returns
  • (::Integer) — Total number of shards.

#shard_count=

def shard_count=(value) -> ::Integer
Parameter
  • value (::Integer) — Total number of shards.
Returns
  • (::Integer) — Total number of shards.

#shard_index

def shard_index() -> ::Integer
Returns
  • (::Integer) — The 0-based index of this shard.

#shard_index=

def shard_index=(value) -> ::Integer
Parameter
  • value (::Integer) — The 0-based index of this shard.
Returns
  • (::Integer) — The 0-based index of this shard.

#text_offset

def text_offset() -> ::Integer
Returns
  • (::Integer) — The index of the first character in Document.text in the overall document global text.

#text_offset=

def text_offset=(value) -> ::Integer
Parameter
  • value (::Integer) — The index of the first character in Document.text in the overall document global text.
Returns
  • (::Integer) — The index of the first character in Document.text in the overall document global text.