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

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

Overview

Represents a text type block.

Instance Attribute Summary collapse

Instance Attribute Details

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

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

Returns:



1111
1112
1113
1114
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1111

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.



1111
1112
1113
1114
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1111

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.



1111
1112
1113
1114
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 1111

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