Class: Google::Cloud::DocumentAI::V1::Document::TextAnchor::TextSegment
- Inherits:
 - 
      Object
      
        
- Object
 - Google::Cloud::DocumentAI::V1::Document::TextAnchor::TextSegment
 
 
- Extended by:
 - Protobuf::MessageExts::ClassMethods
 
- Includes:
 - Protobuf::MessageExts
 
- Defined in:
 - proto_docs/google/cloud/documentai/v1/document.rb
 
Overview
A text segment in the Document.text. The indices may be out of bounds which indicate that the text extends into another document shard for large sharded documents. See ShardInfo.text_offset
Instance Attribute Summary collapse
- 
  
    
      #end_index  ⇒ ::Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
TextSegment half open end UTF-8 char index in the Document.text.
 - 
  
    
      #start_index  ⇒ ::Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
TextSegment start UTF-8 char index in the Document.text.
 
Instance Attribute Details
#end_index ⇒ ::Integer
Returns TextSegment half open end UTF-8 char index in the Document.text.
      816 817 818 819  | 
    
      # File 'proto_docs/google/cloud/documentai/v1/document.rb', line 816 class TextSegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end  | 
  
#start_index ⇒ ::Integer
Returns TextSegment start UTF-8 char index in the Document.text.
      816 817 818 819  | 
    
      # File 'proto_docs/google/cloud/documentai/v1/document.rb', line 816 class TextSegment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end  |