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

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#end_index::Integer

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

Returns:



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.

Returns:



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