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

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 block. A block could be one of the various types (text, table, list) supported.

Defined Under Namespace

Classes: LayoutListBlock, LayoutListEntry, LayoutPageSpan, LayoutTableBlock, LayoutTableCell, LayoutTableRow, LayoutTextBlock

Instance Attribute Summary collapse

Instance Attribute Details

#block_id::String

Returns ID of the block.

Returns:

  • (::String)

    ID of the block.



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#bounding_box::Google::Cloud::DocumentAI::V1::BoundingPoly

Returns Identifies the bounding box for the block.

Returns:



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#list_block::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListBlock

Returns Block consisting of list content/structure.

Note: The following fields are mutually exclusive: list_block, text_block, table_block. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#page_span::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutPageSpan

Returns Page span of the block.



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#table_block::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableBlock

Returns Block consisting of table content/structure.

Note: The following fields are mutually exclusive: table_block, text_block, list_block. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text_block::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTextBlock

Returns Block consisting of text content.

Note: The following fields are mutually exclusive: text_block, table_block, list_block. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
# File 'proto_docs/google/cloud/documentai/v1/document.rb', line 1110

class DocumentLayoutBlock
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the block starts and ends in the document.
  # @!attribute [rw] page_start
  #   @return [::Integer]
  #     Page where block starts in the document.
  # @!attribute [rw] page_end
  #   @return [::Integer]
  #     Page where block ends in the document.
  class LayoutPageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a text type block.
  # @!attribute [rw] text
  #   @return [::String]
  #     Text content stored in the block.
  # @!attribute [rw] type
  #   @return [::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`.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A text block could further have child blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutTextBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a table type block.
  # @!attribute [rw] header_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Header rows at the top of the table.
  # @!attribute [rw] body_rows
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableRow>]
  #     Body rows containing main table content.
  # @!attribute [rw] caption
  #   @return [::String]
  #     Table caption/title.
  class LayoutTableBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a row in a table.
  # @!attribute [rw] cells
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutTableCell>]
  #     A table row is a list of table cells.
  class LayoutTableRow
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a cell in a table row.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A table cell is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  # @!attribute [rw] row_span
  #   @return [::Integer]
  #     How many rows this cell spans.
  # @!attribute [rw] col_span
  #   @return [::Integer]
  #     How many columns this cell spans.
  class LayoutTableCell
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents a list type block.
  # @!attribute [rw] list_entries
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock::LayoutListEntry>]
  #     List entries that constitute a list block.
  # @!attribute [rw] type
  #   @return [::String]
  #     Type of the list_entries (if exist). Available options are `ordered`
  #     and `unordered`.
  class LayoutListBlock
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Represents an entry in the list.
  # @!attribute [rw] blocks
  #   @return [::Array<::Google::Cloud::DocumentAI::V1::Document::DocumentLayout::DocumentLayoutBlock>]
  #     A list entry is a list of blocks.
  #     Repeated blocks support further hierarchies and nested blocks.
  class LayoutListEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end