Class: Google::Cloud::DocumentAI::V1::Document::ShardInfo
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::DocumentAI::V1::Document::ShardInfo
 
 
- Extended by:
 - Protobuf::MessageExts::ClassMethods
 
- Includes:
 - Protobuf::MessageExts
 
- Defined in:
 - proto_docs/google/cloud/documentai/v1/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
- 
  
    
      #shard_count  ⇒ ::Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Total number of shards.
 - 
  
    
      #shard_index  ⇒ ::Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The 0-based index of this shard.
 - 
  
    
      #text_offset  ⇒ ::Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
The index of the first character in Document.text in the overall document global text.
 
Instance Attribute Details
#shard_count ⇒ ::Integer
Returns Total number of shards.
      102 103 104 105  | 
    
      # File 'proto_docs/google/cloud/documentai/v1/document.rb', line 102 class ShardInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end  | 
  
#shard_index ⇒ ::Integer
Returns The 0-based index of this shard.
      102 103 104 105  | 
    
      # File 'proto_docs/google/cloud/documentai/v1/document.rb', line 102 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.
      102 103 104 105  | 
    
      # File 'proto_docs/google/cloud/documentai/v1/document.rb', line 102 class ShardInfo include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end  |