Class: Google::Cloud::DocumentAI::V1beta3::Document::ShardInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/document.rb

Overview

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.

Instance Attribute Summary collapse

Instance Attribute Details

#shard_count::Integer

Returns Total number of shards.

Returns:

  • (::Integer)

    Total number of shards.



104
105
106
107
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 104

class ShardInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#shard_index::Integer

Returns The 0-based index of this shard.

Returns:

  • (::Integer)

    The 0-based index of this shard.



104
105
106
107
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 104

class ShardInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#text_offset::Integer

Returns 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.



104
105
106
107
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 104

class ShardInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end