google-apis-documentai_v1beta2 0.76.0 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2065,6 +2065,11 @@ module Google
2065
2065
  class GoogleCloudDocumentaiV1beta1Document
2066
2066
  include Google::Apis::Core::Hashable
2067
2067
 
2068
+ # Represents the chunks that the document is divided into.
2069
+ # Corresponds to the JSON property `chunkedDocument`
2070
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocument]
2071
+ attr_accessor :chunked_document
2072
+
2068
2073
  # Optional. Inline document content, represented as a stream of bytes. Note: As
2069
2074
  # with all `bytes` fields, protobuffers use a pure binary representation,
2070
2075
  # whereas JSON representations use base64.
@@ -2073,6 +2078,12 @@ module Google
2073
2078
  # @return [String]
2074
2079
  attr_accessor :content
2075
2080
 
2081
+ # Represents the parsed layout of a document as a collection of blocks that the
2082
+ # document is divided into.
2083
+ # Corresponds to the JSON property `documentLayout`
2084
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayout]
2085
+ attr_accessor :document_layout
2086
+
2076
2087
  # A list of entities detected on Document.text. For document shards, entities in
2077
2088
  # this list may cross shard boundaries.
2078
2089
  # Corresponds to the JSON property `entities`
@@ -2147,7 +2158,9 @@ module Google
2147
2158
 
2148
2159
  # Update properties of this object
2149
2160
  def update!(**args)
2161
+ @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
2150
2162
  @content = args[:content] if args.key?(:content)
2163
+ @document_layout = args[:document_layout] if args.key?(:document_layout)
2151
2164
  @entities = args[:entities] if args.key?(:entities)
2152
2165
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
2153
2166
  @error = args[:error] if args.key?(:error)
@@ -2162,6 +2175,400 @@ module Google
2162
2175
  end
2163
2176
  end
2164
2177
 
2178
+ # Represents the chunks that the document is divided into.
2179
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocument
2180
+ include Google::Apis::Core::Hashable
2181
+
2182
+ # List of chunks.
2183
+ # Corresponds to the JSON property `chunks`
2184
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk>]
2185
+ attr_accessor :chunks
2186
+
2187
+ def initialize(**args)
2188
+ update!(**args)
2189
+ end
2190
+
2191
+ # Update properties of this object
2192
+ def update!(**args)
2193
+ @chunks = args[:chunks] if args.key?(:chunks)
2194
+ end
2195
+ end
2196
+
2197
+ # Represents a chunk.
2198
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunk
2199
+ include Google::Apis::Core::Hashable
2200
+
2201
+ # ID of the chunk.
2202
+ # Corresponds to the JSON property `chunkId`
2203
+ # @return [String]
2204
+ attr_accessor :chunk_id
2205
+
2206
+ # Text content of the chunk.
2207
+ # Corresponds to the JSON property `content`
2208
+ # @return [String]
2209
+ attr_accessor :content
2210
+
2211
+ # Page footers associated with the chunk.
2212
+ # Corresponds to the JSON property `pageFooters`
2213
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter>]
2214
+ attr_accessor :page_footers
2215
+
2216
+ # Page headers associated with the chunk.
2217
+ # Corresponds to the JSON property `pageHeaders`
2218
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader>]
2219
+ attr_accessor :page_headers
2220
+
2221
+ # Represents where the chunk starts and ends in the document.
2222
+ # Corresponds to the JSON property `pageSpan`
2223
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
2224
+ attr_accessor :page_span
2225
+
2226
+ # Unused.
2227
+ # Corresponds to the JSON property `sourceBlockIds`
2228
+ # @return [Array<String>]
2229
+ attr_accessor :source_block_ids
2230
+
2231
+ def initialize(**args)
2232
+ update!(**args)
2233
+ end
2234
+
2235
+ # Update properties of this object
2236
+ def update!(**args)
2237
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
2238
+ @content = args[:content] if args.key?(:content)
2239
+ @page_footers = args[:page_footers] if args.key?(:page_footers)
2240
+ @page_headers = args[:page_headers] if args.key?(:page_headers)
2241
+ @page_span = args[:page_span] if args.key?(:page_span)
2242
+ @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
2243
+ end
2244
+ end
2245
+
2246
+ # Represents the page footer associated with the chunk.
2247
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageFooter
2248
+ include Google::Apis::Core::Hashable
2249
+
2250
+ # Represents where the chunk starts and ends in the document.
2251
+ # Corresponds to the JSON property `pageSpan`
2252
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
2253
+ attr_accessor :page_span
2254
+
2255
+ # Footer in text format.
2256
+ # Corresponds to the JSON property `text`
2257
+ # @return [String]
2258
+ attr_accessor :text
2259
+
2260
+ def initialize(**args)
2261
+ update!(**args)
2262
+ end
2263
+
2264
+ # Update properties of this object
2265
+ def update!(**args)
2266
+ @page_span = args[:page_span] if args.key?(:page_span)
2267
+ @text = args[:text] if args.key?(:text)
2268
+ end
2269
+ end
2270
+
2271
+ # Represents the page header associated with the chunk.
2272
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageHeader
2273
+ include Google::Apis::Core::Hashable
2274
+
2275
+ # Represents where the chunk starts and ends in the document.
2276
+ # Corresponds to the JSON property `pageSpan`
2277
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan]
2278
+ attr_accessor :page_span
2279
+
2280
+ # Header in text format.
2281
+ # Corresponds to the JSON property `text`
2282
+ # @return [String]
2283
+ attr_accessor :text
2284
+
2285
+ def initialize(**args)
2286
+ update!(**args)
2287
+ end
2288
+
2289
+ # Update properties of this object
2290
+ def update!(**args)
2291
+ @page_span = args[:page_span] if args.key?(:page_span)
2292
+ @text = args[:text] if args.key?(:text)
2293
+ end
2294
+ end
2295
+
2296
+ # Represents where the chunk starts and ends in the document.
2297
+ class GoogleCloudDocumentaiV1beta1DocumentChunkedDocumentChunkChunkPageSpan
2298
+ include Google::Apis::Core::Hashable
2299
+
2300
+ # Page where chunk ends in the document.
2301
+ # Corresponds to the JSON property `pageEnd`
2302
+ # @return [Fixnum]
2303
+ attr_accessor :page_end
2304
+
2305
+ # Page where chunk starts in the document.
2306
+ # Corresponds to the JSON property `pageStart`
2307
+ # @return [Fixnum]
2308
+ attr_accessor :page_start
2309
+
2310
+ def initialize(**args)
2311
+ update!(**args)
2312
+ end
2313
+
2314
+ # Update properties of this object
2315
+ def update!(**args)
2316
+ @page_end = args[:page_end] if args.key?(:page_end)
2317
+ @page_start = args[:page_start] if args.key?(:page_start)
2318
+ end
2319
+ end
2320
+
2321
+ # Represents the parsed layout of a document as a collection of blocks that the
2322
+ # document is divided into.
2323
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayout
2324
+ include Google::Apis::Core::Hashable
2325
+
2326
+ # List of blocks in the document.
2327
+ # Corresponds to the JSON property `blocks`
2328
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
2329
+ attr_accessor :blocks
2330
+
2331
+ def initialize(**args)
2332
+ update!(**args)
2333
+ end
2334
+
2335
+ # Update properties of this object
2336
+ def update!(**args)
2337
+ @blocks = args[:blocks] if args.key?(:blocks)
2338
+ end
2339
+ end
2340
+
2341
+ # Represents a block. A block could be one of the various types (text, table,
2342
+ # list) supported.
2343
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock
2344
+ include Google::Apis::Core::Hashable
2345
+
2346
+ # ID of the block.
2347
+ # Corresponds to the JSON property `blockId`
2348
+ # @return [String]
2349
+ attr_accessor :block_id
2350
+
2351
+ # Represents a list type block.
2352
+ # Corresponds to the JSON property `listBlock`
2353
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
2354
+ attr_accessor :list_block
2355
+
2356
+ # Represents where the block starts and ends in the document.
2357
+ # Corresponds to the JSON property `pageSpan`
2358
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan]
2359
+ attr_accessor :page_span
2360
+
2361
+ # Represents a table type block.
2362
+ # Corresponds to the JSON property `tableBlock`
2363
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock]
2364
+ attr_accessor :table_block
2365
+
2366
+ # Represents a text type block.
2367
+ # Corresponds to the JSON property `textBlock`
2368
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock]
2369
+ attr_accessor :text_block
2370
+
2371
+ def initialize(**args)
2372
+ update!(**args)
2373
+ end
2374
+
2375
+ # Update properties of this object
2376
+ def update!(**args)
2377
+ @block_id = args[:block_id] if args.key?(:block_id)
2378
+ @list_block = args[:list_block] if args.key?(:list_block)
2379
+ @page_span = args[:page_span] if args.key?(:page_span)
2380
+ @table_block = args[:table_block] if args.key?(:table_block)
2381
+ @text_block = args[:text_block] if args.key?(:text_block)
2382
+ end
2383
+ end
2384
+
2385
+ # Represents a list type block.
2386
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
2387
+ include Google::Apis::Core::Hashable
2388
+
2389
+ # List entries that constitute a list block.
2390
+ # Corresponds to the JSON property `listEntries`
2391
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry>]
2392
+ attr_accessor :list_entries
2393
+
2394
+ # Type of the list_entries (if exist). Available options are `ordered` and `
2395
+ # unordered`.
2396
+ # Corresponds to the JSON property `type`
2397
+ # @return [String]
2398
+ attr_accessor :type
2399
+
2400
+ def initialize(**args)
2401
+ update!(**args)
2402
+ end
2403
+
2404
+ # Update properties of this object
2405
+ def update!(**args)
2406
+ @list_entries = args[:list_entries] if args.key?(:list_entries)
2407
+ @type = args[:type] if args.key?(:type)
2408
+ end
2409
+ end
2410
+
2411
+ # Represents an entry in the list.
2412
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
2413
+ include Google::Apis::Core::Hashable
2414
+
2415
+ # A list entry is a list of blocks. Repeated blocks support further hierarchies
2416
+ # and nested blocks.
2417
+ # Corresponds to the JSON property `blocks`
2418
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
2419
+ attr_accessor :blocks
2420
+
2421
+ def initialize(**args)
2422
+ update!(**args)
2423
+ end
2424
+
2425
+ # Update properties of this object
2426
+ def update!(**args)
2427
+ @blocks = args[:blocks] if args.key?(:blocks)
2428
+ end
2429
+ end
2430
+
2431
+ # Represents where the block starts and ends in the document.
2432
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
2433
+ include Google::Apis::Core::Hashable
2434
+
2435
+ # Page where block ends in the document.
2436
+ # Corresponds to the JSON property `pageEnd`
2437
+ # @return [Fixnum]
2438
+ attr_accessor :page_end
2439
+
2440
+ # Page where block starts in the document.
2441
+ # Corresponds to the JSON property `pageStart`
2442
+ # @return [Fixnum]
2443
+ attr_accessor :page_start
2444
+
2445
+ def initialize(**args)
2446
+ update!(**args)
2447
+ end
2448
+
2449
+ # Update properties of this object
2450
+ def update!(**args)
2451
+ @page_end = args[:page_end] if args.key?(:page_end)
2452
+ @page_start = args[:page_start] if args.key?(:page_start)
2453
+ end
2454
+ end
2455
+
2456
+ # Represents a table type block.
2457
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
2458
+ include Google::Apis::Core::Hashable
2459
+
2460
+ # Body rows containing main table content.
2461
+ # Corresponds to the JSON property `bodyRows`
2462
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
2463
+ attr_accessor :body_rows
2464
+
2465
+ # Table caption/title.
2466
+ # Corresponds to the JSON property `caption`
2467
+ # @return [String]
2468
+ attr_accessor :caption
2469
+
2470
+ # Header rows at the top of the table.
2471
+ # Corresponds to the JSON property `headerRows`
2472
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
2473
+ attr_accessor :header_rows
2474
+
2475
+ def initialize(**args)
2476
+ update!(**args)
2477
+ end
2478
+
2479
+ # Update properties of this object
2480
+ def update!(**args)
2481
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
2482
+ @caption = args[:caption] if args.key?(:caption)
2483
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
2484
+ end
2485
+ end
2486
+
2487
+ # Represents a cell in a table row.
2488
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
2489
+ include Google::Apis::Core::Hashable
2490
+
2491
+ # A table cell is a list of blocks. Repeated blocks support further hierarchies
2492
+ # and nested blocks.
2493
+ # Corresponds to the JSON property `blocks`
2494
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
2495
+ attr_accessor :blocks
2496
+
2497
+ # How many columns this cell spans.
2498
+ # Corresponds to the JSON property `colSpan`
2499
+ # @return [Fixnum]
2500
+ attr_accessor :col_span
2501
+
2502
+ # How many rows this cell spans.
2503
+ # Corresponds to the JSON property `rowSpan`
2504
+ # @return [Fixnum]
2505
+ attr_accessor :row_span
2506
+
2507
+ def initialize(**args)
2508
+ update!(**args)
2509
+ end
2510
+
2511
+ # Update properties of this object
2512
+ def update!(**args)
2513
+ @blocks = args[:blocks] if args.key?(:blocks)
2514
+ @col_span = args[:col_span] if args.key?(:col_span)
2515
+ @row_span = args[:row_span] if args.key?(:row_span)
2516
+ end
2517
+ end
2518
+
2519
+ # Represents a row in a table.
2520
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
2521
+ include Google::Apis::Core::Hashable
2522
+
2523
+ # A table row is a list of table cells.
2524
+ # Corresponds to the JSON property `cells`
2525
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell>]
2526
+ attr_accessor :cells
2527
+
2528
+ def initialize(**args)
2529
+ update!(**args)
2530
+ end
2531
+
2532
+ # Update properties of this object
2533
+ def update!(**args)
2534
+ @cells = args[:cells] if args.key?(:cells)
2535
+ end
2536
+ end
2537
+
2538
+ # Represents a text type block.
2539
+ class GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
2540
+ include Google::Apis::Core::Hashable
2541
+
2542
+ # A text block could further have child blocks. Repeated blocks support further
2543
+ # hierarchies and nested blocks.
2544
+ # Corresponds to the JSON property `blocks`
2545
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentDocumentLayoutDocumentLayoutBlock>]
2546
+ attr_accessor :blocks
2547
+
2548
+ # Text content stored in the block.
2549
+ # Corresponds to the JSON property `text`
2550
+ # @return [String]
2551
+ attr_accessor :text
2552
+
2553
+ # Type of the text in the block. Available options are: `paragraph`, `subtitle`,
2554
+ # `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `
2555
+ # footer`.
2556
+ # Corresponds to the JSON property `type`
2557
+ # @return [String]
2558
+ attr_accessor :type
2559
+
2560
+ def initialize(**args)
2561
+ update!(**args)
2562
+ end
2563
+
2564
+ # Update properties of this object
2565
+ def update!(**args)
2566
+ @blocks = args[:blocks] if args.key?(:blocks)
2567
+ @text = args[:text] if args.key?(:text)
2568
+ @type = args[:type] if args.key?(:type)
2569
+ end
2570
+ end
2571
+
2165
2572
  # An entity that could be a phrase in the text or a property that belongs to the
2166
2573
  # document. It is a known entity type, such as a person, an organization, or
2167
2574
  # location.
@@ -4211,6 +4618,11 @@ module Google
4211
4618
  class GoogleCloudDocumentaiV1beta2Document
4212
4619
  include Google::Apis::Core::Hashable
4213
4620
 
4621
+ # Represents the chunks that the document is divided into.
4622
+ # Corresponds to the JSON property `chunkedDocument`
4623
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocument]
4624
+ attr_accessor :chunked_document
4625
+
4214
4626
  # Optional. Inline document content, represented as a stream of bytes. Note: As
4215
4627
  # with all `bytes` fields, protobuffers use a pure binary representation,
4216
4628
  # whereas JSON representations use base64.
@@ -4219,6 +4631,12 @@ module Google
4219
4631
  # @return [String]
4220
4632
  attr_accessor :content
4221
4633
 
4634
+ # Represents the parsed layout of a document as a collection of blocks that the
4635
+ # document is divided into.
4636
+ # Corresponds to the JSON property `documentLayout`
4637
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayout]
4638
+ attr_accessor :document_layout
4639
+
4222
4640
  # A list of entities detected on Document.text. For document shards, entities in
4223
4641
  # this list may cross shard boundaries.
4224
4642
  # Corresponds to the JSON property `entities`
@@ -4298,7 +4716,9 @@ module Google
4298
4716
 
4299
4717
  # Update properties of this object
4300
4718
  def update!(**args)
4719
+ @chunked_document = args[:chunked_document] if args.key?(:chunked_document)
4301
4720
  @content = args[:content] if args.key?(:content)
4721
+ @document_layout = args[:document_layout] if args.key?(:document_layout)
4302
4722
  @entities = args[:entities] if args.key?(:entities)
4303
4723
  @entity_relations = args[:entity_relations] if args.key?(:entity_relations)
4304
4724
  @error = args[:error] if args.key?(:error)
@@ -4314,6 +4734,400 @@ module Google
4314
4734
  end
4315
4735
  end
4316
4736
 
4737
+ # Represents the chunks that the document is divided into.
4738
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocument
4739
+ include Google::Apis::Core::Hashable
4740
+
4741
+ # List of chunks.
4742
+ # Corresponds to the JSON property `chunks`
4743
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk>]
4744
+ attr_accessor :chunks
4745
+
4746
+ def initialize(**args)
4747
+ update!(**args)
4748
+ end
4749
+
4750
+ # Update properties of this object
4751
+ def update!(**args)
4752
+ @chunks = args[:chunks] if args.key?(:chunks)
4753
+ end
4754
+ end
4755
+
4756
+ # Represents a chunk.
4757
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunk
4758
+ include Google::Apis::Core::Hashable
4759
+
4760
+ # ID of the chunk.
4761
+ # Corresponds to the JSON property `chunkId`
4762
+ # @return [String]
4763
+ attr_accessor :chunk_id
4764
+
4765
+ # Text content of the chunk.
4766
+ # Corresponds to the JSON property `content`
4767
+ # @return [String]
4768
+ attr_accessor :content
4769
+
4770
+ # Page footers associated with the chunk.
4771
+ # Corresponds to the JSON property `pageFooters`
4772
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter>]
4773
+ attr_accessor :page_footers
4774
+
4775
+ # Page headers associated with the chunk.
4776
+ # Corresponds to the JSON property `pageHeaders`
4777
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader>]
4778
+ attr_accessor :page_headers
4779
+
4780
+ # Represents where the chunk starts and ends in the document.
4781
+ # Corresponds to the JSON property `pageSpan`
4782
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
4783
+ attr_accessor :page_span
4784
+
4785
+ # Unused.
4786
+ # Corresponds to the JSON property `sourceBlockIds`
4787
+ # @return [Array<String>]
4788
+ attr_accessor :source_block_ids
4789
+
4790
+ def initialize(**args)
4791
+ update!(**args)
4792
+ end
4793
+
4794
+ # Update properties of this object
4795
+ def update!(**args)
4796
+ @chunk_id = args[:chunk_id] if args.key?(:chunk_id)
4797
+ @content = args[:content] if args.key?(:content)
4798
+ @page_footers = args[:page_footers] if args.key?(:page_footers)
4799
+ @page_headers = args[:page_headers] if args.key?(:page_headers)
4800
+ @page_span = args[:page_span] if args.key?(:page_span)
4801
+ @source_block_ids = args[:source_block_ids] if args.key?(:source_block_ids)
4802
+ end
4803
+ end
4804
+
4805
+ # Represents the page footer associated with the chunk.
4806
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageFooter
4807
+ include Google::Apis::Core::Hashable
4808
+
4809
+ # Represents where the chunk starts and ends in the document.
4810
+ # Corresponds to the JSON property `pageSpan`
4811
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
4812
+ attr_accessor :page_span
4813
+
4814
+ # Footer in text format.
4815
+ # Corresponds to the JSON property `text`
4816
+ # @return [String]
4817
+ attr_accessor :text
4818
+
4819
+ def initialize(**args)
4820
+ update!(**args)
4821
+ end
4822
+
4823
+ # Update properties of this object
4824
+ def update!(**args)
4825
+ @page_span = args[:page_span] if args.key?(:page_span)
4826
+ @text = args[:text] if args.key?(:text)
4827
+ end
4828
+ end
4829
+
4830
+ # Represents the page header associated with the chunk.
4831
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageHeader
4832
+ include Google::Apis::Core::Hashable
4833
+
4834
+ # Represents where the chunk starts and ends in the document.
4835
+ # Corresponds to the JSON property `pageSpan`
4836
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan]
4837
+ attr_accessor :page_span
4838
+
4839
+ # Header in text format.
4840
+ # Corresponds to the JSON property `text`
4841
+ # @return [String]
4842
+ attr_accessor :text
4843
+
4844
+ def initialize(**args)
4845
+ update!(**args)
4846
+ end
4847
+
4848
+ # Update properties of this object
4849
+ def update!(**args)
4850
+ @page_span = args[:page_span] if args.key?(:page_span)
4851
+ @text = args[:text] if args.key?(:text)
4852
+ end
4853
+ end
4854
+
4855
+ # Represents where the chunk starts and ends in the document.
4856
+ class GoogleCloudDocumentaiV1beta2DocumentChunkedDocumentChunkChunkPageSpan
4857
+ include Google::Apis::Core::Hashable
4858
+
4859
+ # Page where chunk ends in the document.
4860
+ # Corresponds to the JSON property `pageEnd`
4861
+ # @return [Fixnum]
4862
+ attr_accessor :page_end
4863
+
4864
+ # Page where chunk starts in the document.
4865
+ # Corresponds to the JSON property `pageStart`
4866
+ # @return [Fixnum]
4867
+ attr_accessor :page_start
4868
+
4869
+ def initialize(**args)
4870
+ update!(**args)
4871
+ end
4872
+
4873
+ # Update properties of this object
4874
+ def update!(**args)
4875
+ @page_end = args[:page_end] if args.key?(:page_end)
4876
+ @page_start = args[:page_start] if args.key?(:page_start)
4877
+ end
4878
+ end
4879
+
4880
+ # Represents the parsed layout of a document as a collection of blocks that the
4881
+ # document is divided into.
4882
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayout
4883
+ include Google::Apis::Core::Hashable
4884
+
4885
+ # List of blocks in the document.
4886
+ # Corresponds to the JSON property `blocks`
4887
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
4888
+ attr_accessor :blocks
4889
+
4890
+ def initialize(**args)
4891
+ update!(**args)
4892
+ end
4893
+
4894
+ # Update properties of this object
4895
+ def update!(**args)
4896
+ @blocks = args[:blocks] if args.key?(:blocks)
4897
+ end
4898
+ end
4899
+
4900
+ # Represents a block. A block could be one of the various types (text, table,
4901
+ # list) supported.
4902
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock
4903
+ include Google::Apis::Core::Hashable
4904
+
4905
+ # ID of the block.
4906
+ # Corresponds to the JSON property `blockId`
4907
+ # @return [String]
4908
+ attr_accessor :block_id
4909
+
4910
+ # Represents a list type block.
4911
+ # Corresponds to the JSON property `listBlock`
4912
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock]
4913
+ attr_accessor :list_block
4914
+
4915
+ # Represents where the block starts and ends in the document.
4916
+ # Corresponds to the JSON property `pageSpan`
4917
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan]
4918
+ attr_accessor :page_span
4919
+
4920
+ # Represents a table type block.
4921
+ # Corresponds to the JSON property `tableBlock`
4922
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock]
4923
+ attr_accessor :table_block
4924
+
4925
+ # Represents a text type block.
4926
+ # Corresponds to the JSON property `textBlock`
4927
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock]
4928
+ attr_accessor :text_block
4929
+
4930
+ def initialize(**args)
4931
+ update!(**args)
4932
+ end
4933
+
4934
+ # Update properties of this object
4935
+ def update!(**args)
4936
+ @block_id = args[:block_id] if args.key?(:block_id)
4937
+ @list_block = args[:list_block] if args.key?(:list_block)
4938
+ @page_span = args[:page_span] if args.key?(:page_span)
4939
+ @table_block = args[:table_block] if args.key?(:table_block)
4940
+ @text_block = args[:text_block] if args.key?(:text_block)
4941
+ end
4942
+ end
4943
+
4944
+ # Represents a list type block.
4945
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListBlock
4946
+ include Google::Apis::Core::Hashable
4947
+
4948
+ # List entries that constitute a list block.
4949
+ # Corresponds to the JSON property `listEntries`
4950
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry>]
4951
+ attr_accessor :list_entries
4952
+
4953
+ # Type of the list_entries (if exist). Available options are `ordered` and `
4954
+ # unordered`.
4955
+ # Corresponds to the JSON property `type`
4956
+ # @return [String]
4957
+ attr_accessor :type
4958
+
4959
+ def initialize(**args)
4960
+ update!(**args)
4961
+ end
4962
+
4963
+ # Update properties of this object
4964
+ def update!(**args)
4965
+ @list_entries = args[:list_entries] if args.key?(:list_entries)
4966
+ @type = args[:type] if args.key?(:type)
4967
+ end
4968
+ end
4969
+
4970
+ # Represents an entry in the list.
4971
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutListEntry
4972
+ include Google::Apis::Core::Hashable
4973
+
4974
+ # A list entry is a list of blocks. Repeated blocks support further hierarchies
4975
+ # and nested blocks.
4976
+ # Corresponds to the JSON property `blocks`
4977
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
4978
+ attr_accessor :blocks
4979
+
4980
+ def initialize(**args)
4981
+ update!(**args)
4982
+ end
4983
+
4984
+ # Update properties of this object
4985
+ def update!(**args)
4986
+ @blocks = args[:blocks] if args.key?(:blocks)
4987
+ end
4988
+ end
4989
+
4990
+ # Represents where the block starts and ends in the document.
4991
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutPageSpan
4992
+ include Google::Apis::Core::Hashable
4993
+
4994
+ # Page where block ends in the document.
4995
+ # Corresponds to the JSON property `pageEnd`
4996
+ # @return [Fixnum]
4997
+ attr_accessor :page_end
4998
+
4999
+ # Page where block starts in the document.
5000
+ # Corresponds to the JSON property `pageStart`
5001
+ # @return [Fixnum]
5002
+ attr_accessor :page_start
5003
+
5004
+ def initialize(**args)
5005
+ update!(**args)
5006
+ end
5007
+
5008
+ # Update properties of this object
5009
+ def update!(**args)
5010
+ @page_end = args[:page_end] if args.key?(:page_end)
5011
+ @page_start = args[:page_start] if args.key?(:page_start)
5012
+ end
5013
+ end
5014
+
5015
+ # Represents a table type block.
5016
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableBlock
5017
+ include Google::Apis::Core::Hashable
5018
+
5019
+ # Body rows containing main table content.
5020
+ # Corresponds to the JSON property `bodyRows`
5021
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
5022
+ attr_accessor :body_rows
5023
+
5024
+ # Table caption/title.
5025
+ # Corresponds to the JSON property `caption`
5026
+ # @return [String]
5027
+ attr_accessor :caption
5028
+
5029
+ # Header rows at the top of the table.
5030
+ # Corresponds to the JSON property `headerRows`
5031
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow>]
5032
+ attr_accessor :header_rows
5033
+
5034
+ def initialize(**args)
5035
+ update!(**args)
5036
+ end
5037
+
5038
+ # Update properties of this object
5039
+ def update!(**args)
5040
+ @body_rows = args[:body_rows] if args.key?(:body_rows)
5041
+ @caption = args[:caption] if args.key?(:caption)
5042
+ @header_rows = args[:header_rows] if args.key?(:header_rows)
5043
+ end
5044
+ end
5045
+
5046
+ # Represents a cell in a table row.
5047
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell
5048
+ include Google::Apis::Core::Hashable
5049
+
5050
+ # A table cell is a list of blocks. Repeated blocks support further hierarchies
5051
+ # and nested blocks.
5052
+ # Corresponds to the JSON property `blocks`
5053
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
5054
+ attr_accessor :blocks
5055
+
5056
+ # How many columns this cell spans.
5057
+ # Corresponds to the JSON property `colSpan`
5058
+ # @return [Fixnum]
5059
+ attr_accessor :col_span
5060
+
5061
+ # How many rows this cell spans.
5062
+ # Corresponds to the JSON property `rowSpan`
5063
+ # @return [Fixnum]
5064
+ attr_accessor :row_span
5065
+
5066
+ def initialize(**args)
5067
+ update!(**args)
5068
+ end
5069
+
5070
+ # Update properties of this object
5071
+ def update!(**args)
5072
+ @blocks = args[:blocks] if args.key?(:blocks)
5073
+ @col_span = args[:col_span] if args.key?(:col_span)
5074
+ @row_span = args[:row_span] if args.key?(:row_span)
5075
+ end
5076
+ end
5077
+
5078
+ # Represents a row in a table.
5079
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableRow
5080
+ include Google::Apis::Core::Hashable
5081
+
5082
+ # A table row is a list of table cells.
5083
+ # Corresponds to the JSON property `cells`
5084
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTableCell>]
5085
+ attr_accessor :cells
5086
+
5087
+ def initialize(**args)
5088
+ update!(**args)
5089
+ end
5090
+
5091
+ # Update properties of this object
5092
+ def update!(**args)
5093
+ @cells = args[:cells] if args.key?(:cells)
5094
+ end
5095
+ end
5096
+
5097
+ # Represents a text type block.
5098
+ class GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlockLayoutTextBlock
5099
+ include Google::Apis::Core::Hashable
5100
+
5101
+ # A text block could further have child blocks. Repeated blocks support further
5102
+ # hierarchies and nested blocks.
5103
+ # Corresponds to the JSON property `blocks`
5104
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentDocumentLayoutDocumentLayoutBlock>]
5105
+ attr_accessor :blocks
5106
+
5107
+ # Text content stored in the block.
5108
+ # Corresponds to the JSON property `text`
5109
+ # @return [String]
5110
+ attr_accessor :text
5111
+
5112
+ # Type of the text in the block. Available options are: `paragraph`, `subtitle`,
5113
+ # `heading-1`, `heading-2`, `heading-3`, `heading-4`, `heading-5`, `header`, `
5114
+ # footer`.
5115
+ # Corresponds to the JSON property `type`
5116
+ # @return [String]
5117
+ attr_accessor :type
5118
+
5119
+ def initialize(**args)
5120
+ update!(**args)
5121
+ end
5122
+
5123
+ # Update properties of this object
5124
+ def update!(**args)
5125
+ @blocks = args[:blocks] if args.key?(:blocks)
5126
+ @text = args[:text] if args.key?(:text)
5127
+ @type = args[:type] if args.key?(:type)
5128
+ end
5129
+ end
5130
+
4317
5131
  # An entity that could be a phrase in the text or a property that belongs to the
4318
5132
  # document. It is a known entity type, such as a person, an organization, or
4319
5133
  # location.
@@ -6784,6 +7598,18 @@ module Google
6784
7598
  # @return [String]
6785
7599
  attr_accessor :name
6786
7600
 
7601
+ # Output only. Reserved for future use.
7602
+ # Corresponds to the JSON property `satisfiesPzi`
7603
+ # @return [Boolean]
7604
+ attr_accessor :satisfies_pzi
7605
+ alias_method :satisfies_pzi?, :satisfies_pzi
7606
+
7607
+ # Output only. Reserved for future use.
7608
+ # Corresponds to the JSON property `satisfiesPzs`
7609
+ # @return [Boolean]
7610
+ attr_accessor :satisfies_pzs
7611
+ alias_method :satisfies_pzs?, :satisfies_pzs
7612
+
6787
7613
  # Configuration specific to spanner-based indexing.
6788
7614
  # Corresponds to the JSON property `spannerIndexingConfig`
6789
7615
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3DatasetSpannerIndexingConfig]
@@ -6808,6 +7634,8 @@ module Google
6808
7634
  @document_warehouse_config = args[:document_warehouse_config] if args.key?(:document_warehouse_config)
6809
7635
  @gcs_managed_config = args[:gcs_managed_config] if args.key?(:gcs_managed_config)
6810
7636
  @name = args[:name] if args.key?(:name)
7637
+ @satisfies_pzi = args[:satisfies_pzi] if args.key?(:satisfies_pzi)
7638
+ @satisfies_pzs = args[:satisfies_pzs] if args.key?(:satisfies_pzs)
6811
7639
  @spanner_indexing_config = args[:spanner_indexing_config] if args.key?(:spanner_indexing_config)
6812
7640
  @state = args[:state] if args.key?(:state)
6813
7641
  @unmanaged_dataset_config = args[:unmanaged_dataset_config] if args.key?(:unmanaged_dataset_config)