Class: Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock

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

Overview

Represents a text type block.

Instance Attribute Summary collapse

Instance Attribute Details

#blocks::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>

Returns A text block could further have child blocks. Repeated blocks support further hierarchies and nested blocks.

Returns:



1105
1106
1107
1108
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1105

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

#text::String

Returns Text content stored in the block.

Returns:

  • (::String)

    Text content stored in the block.



1105
1106
1107
1108
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1105

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

#type::String

Returns Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.

Returns:

  • (::String)

    Type of the text in the block. Available options are: paragraph, subtitle, heading-1, heading-2, heading-3, heading-4, heading-5, header, footer.



1105
1106
1107
1108
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1105

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