Class: Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor::TextSegment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/documentai/v1beta3/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

Instance Attribute Details

#end_index::Integer

Returns TextSegment half open end UTF-8 char index in the Document.text.

Returns:



609
610
611
612
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 609

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.

Returns:



609
610
611
612
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 609

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