google-apis-documentai_v1 0.23.0 → 0.27.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 358880430803ef26497a94317660017acfd74fc45e1f8be76ff8f80d3c109087
4
- data.tar.gz: 2dba20e265eca1fe053474f2fdc0fd88f65c770e6ac4956c0f0fb822b33e1fba
3
+ metadata.gz: 5c287f6c606c9fc5f5f2c59da268b1a9d2084e42af3f6394c4c018ba1eaae5a2
4
+ data.tar.gz: 03231645672c84d6510119c2a431be608bd3efd714591ca6d6308645427461ea
5
5
  SHA512:
6
- metadata.gz: fbb1519a16624d805c1cc7406f50b3d7d5e3dea8a519cb7ff54f3470fd8dac2ad24dffb4530ea808bd9e48ab140a1285d13e4765a1c2b5e52ab13efadcc81146
7
- data.tar.gz: dbd2850c50b28459d14384ec4194213ee795d1408cd6178333d4e1e7a30462d9dc5d9785d4dd28aa9adeca995375d7458e5e78ff99f73952dd754e246c217a03
6
+ metadata.gz: 0d4d9410f6c507bf6feb32dd8edb32517755aabb34949e0143ecdd2ca50b67ac6f9edb80a0f5ac948b1b4dfb4df5405139f7c0ca79f9845022cbdd061da681bc
7
+ data.tar.gz: f46fe75933268fa758991ad40e5dbd664aac6b3cd7c72974ccf72e00554e77ce2fb261809fc60622c2e5b61b58322b1b99bd6483dee58daefee0d4c67f22a507
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.27.0 (2022-02-15)
4
+
5
+ * Regenerated from discovery document revision 20220212
6
+
7
+ ### v0.26.0 (2022-02-08)
8
+
9
+ * Regenerated from discovery document revision 20220205
10
+
11
+ ### v0.25.0 (2022-02-01)
12
+
13
+ * Regenerated from discovery document revision 20220129
14
+
15
+ ### v0.24.0 (2022-01-20)
16
+
17
+ * Regenerated from discovery document revision 20220114
18
+ * Regenerated using generator version 0.4.1
19
+
3
20
  ### v0.23.0 (2022-01-06)
4
21
 
5
22
  * Regenerated from discovery document revision 20211230
@@ -548,6 +548,83 @@ module Google
548
548
  end
549
549
  end
550
550
 
551
+ # The metadata proto of ResyncDataset method.
552
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # The common metadata for long running operations.
556
+ # Corresponds to the JSON property `commonMetadata`
557
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
558
+ attr_accessor :common_metadata
559
+
560
+ # Returns the newly added document Cloud Storage prefix if the documents are
561
+ # founded in Cloud Storage while not in Document Service storage.
562
+ # Corresponds to the JSON property `newlyAddedDocuments`
563
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument>]
564
+ attr_accessor :newly_added_documents
565
+
566
+ def initialize(**args)
567
+ update!(**args)
568
+ end
569
+
570
+ # Update properties of this object
571
+ def update!(**args)
572
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
573
+ @newly_added_documents = args[:newly_added_documents] if args.key?(:newly_added_documents)
574
+ end
575
+ end
576
+
577
+ # The proto for updated document in resync pipeline.
578
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
579
+ include Google::Apis::Core::Hashable
580
+
581
+ # The prefix of cloud storage, identifies the destination document which should
582
+ # be updated by resync pipeline.
583
+ # Corresponds to the JSON property `destinationPrefix`
584
+ # @return [String]
585
+ attr_accessor :destination_prefix
586
+
587
+ # The prefix of cloud storage, identifies the original document which should be
588
+ # updated by resync pipeline.
589
+ # Corresponds to the JSON property `sourcePrefix`
590
+ # @return [String]
591
+ attr_accessor :source_prefix
592
+
593
+ # The `Status` type defines a logical error model that is suitable for different
594
+ # programming environments, including REST APIs and RPC APIs. It is used by [
595
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
596
+ # data: error code, error message, and error details. You can find out more
597
+ # about this error model and how to work with it in the [API Design Guide](https:
598
+ # //cloud.google.com/apis/design/errors).
599
+ # Corresponds to the JSON property `status`
600
+ # @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
601
+ attr_accessor :status
602
+
603
+ def initialize(**args)
604
+ update!(**args)
605
+ end
606
+
607
+ # Update properties of this object
608
+ def update!(**args)
609
+ @destination_prefix = args[:destination_prefix] if args.key?(:destination_prefix)
610
+ @source_prefix = args[:source_prefix] if args.key?(:source_prefix)
611
+ @status = args[:status] if args.key?(:status)
612
+ end
613
+ end
614
+
615
+ # The response proto of ResyncDataset method.
616
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
617
+ include Google::Apis::Core::Hashable
618
+
619
+ def initialize(**args)
620
+ update!(**args)
621
+ end
622
+
623
+ # Update properties of this object
624
+ def update!(**args)
625
+ end
626
+ end
627
+
551
628
  # The revision reference specifies which revision on the document to read.
552
629
  class GoogleCloudDocumentaiUiv1beta3RevisionReference
553
630
  include Google::Apis::Core::Hashable
@@ -1375,10 +1452,10 @@ module Google
1375
1452
  # day and time zone are either specified elsewhere or are insignificant. The
1376
1453
  # date is relative to the Gregorian Calendar. This can represent one of the
1377
1454
  # following: * A full date, with non-zero year, month, and day values * A month
1378
- # and day value, with a zero year, such as an anniversary * A year on its own,
1379
- # with zero month and day values * A year and month value, with a zero day, such
1380
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
1381
- # google.protobuf.Timestamp`.
1455
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
1456
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
1457
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
1458
+ # DateTime * google.protobuf.Timestamp
1382
1459
  # Corresponds to the JSON property `dateValue`
1383
1460
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
1384
1461
  attr_accessor :date_value
@@ -1575,6 +1652,11 @@ module Google
1575
1652
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
1576
1653
  attr_accessor :provenance
1577
1654
 
1655
+ # A list of visually detected symbols on the page.
1656
+ # Corresponds to the JSON property `symbols`
1657
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol>]
1658
+ attr_accessor :symbols
1659
+
1578
1660
  # A list of visually detected tables on the page.
1579
1661
  # Corresponds to the JSON property `tables`
1580
1662
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable>]
@@ -1613,6 +1695,7 @@ module Google
1613
1695
  @page_number = args[:page_number] if args.key?(:page_number)
1614
1696
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1615
1697
  @provenance = args[:provenance] if args.key?(:provenance)
1698
+ @symbols = args[:symbols] if args.key?(:symbols)
1616
1699
  @tables = args[:tables] if args.key?(:tables)
1617
1700
  @tokens = args[:tokens] if args.key?(:tokens)
1618
1701
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -1730,7 +1813,7 @@ module Google
1730
1813
  attr_accessor :confidence
1731
1814
 
1732
1815
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
1733
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1816
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1734
1817
  # Corresponds to the JSON property `languageCode`
1735
1818
  # @return [String]
1736
1819
  attr_accessor :language_code
@@ -2029,6 +2112,31 @@ module Google
2029
2112
  end
2030
2113
  end
2031
2114
 
2115
+ # A detected symbol.
2116
+ class GoogleCloudDocumentaiV1DocumentPageSymbol
2117
+ include Google::Apis::Core::Hashable
2118
+
2119
+ # A list of detected languages together with confidence.
2120
+ # Corresponds to the JSON property `detectedLanguages`
2121
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
2122
+ attr_accessor :detected_languages
2123
+
2124
+ # Visual element describing a layout unit on a page.
2125
+ # Corresponds to the JSON property `layout`
2126
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
2127
+ attr_accessor :layout
2128
+
2129
+ def initialize(**args)
2130
+ update!(**args)
2131
+ end
2132
+
2133
+ # Update properties of this object
2134
+ def update!(**args)
2135
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2136
+ @layout = args[:layout] if args.key?(:layout)
2137
+ end
2138
+ end
2139
+
2032
2140
  # A table representation similar to HTML table structure.
2033
2141
  class GoogleCloudDocumentaiV1DocumentPageTable
2034
2142
  include Google::Apis::Core::Hashable
@@ -2577,7 +2685,7 @@ module Google
2577
2685
  include Google::Apis::Core::Hashable
2578
2686
 
2579
2687
  # Contains the content of the text span so that users do not have to look it up
2580
- # in the text_segments.
2688
+ # in the text_segments. It is always populated for formFields.
2581
2689
  # Corresponds to the JSON property `content`
2582
2690
  # @return [String]
2583
2691
  attr_accessor :content
@@ -3173,6 +3281,11 @@ module Google
3173
3281
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata]
3174
3282
  attr_accessor :common_metadata
3175
3283
 
3284
+ # The Crowd Compute question ID.
3285
+ # Corresponds to the JSON property `questionId`
3286
+ # @return [String]
3287
+ attr_accessor :question_id
3288
+
3176
3289
  def initialize(**args)
3177
3290
  update!(**args)
3178
3291
  end
@@ -3180,6 +3293,7 @@ module Google
3180
3293
  # Update properties of this object
3181
3294
  def update!(**args)
3182
3295
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
3296
+ @question_id = args[:question_id] if args.key?(:question_id)
3183
3297
  end
3184
3298
  end
3185
3299
 
@@ -3359,6 +3473,68 @@ module Google
3359
3473
  end
3360
3474
  end
3361
3475
 
3476
+ # The long running operation metadata for AnalyzeHitlData.
3477
+ class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
3478
+ include Google::Apis::Core::Hashable
3479
+
3480
+ # The common metadata for long running operations.
3481
+ # Corresponds to the JSON property `commonMetadata`
3482
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata]
3483
+ attr_accessor :common_metadata
3484
+
3485
+ def initialize(**args)
3486
+ update!(**args)
3487
+ end
3488
+
3489
+ # Update properties of this object
3490
+ def update!(**args)
3491
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
3492
+ end
3493
+ end
3494
+
3495
+ # The common metadata for long running operations.
3496
+ class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
3497
+ include Google::Apis::Core::Hashable
3498
+
3499
+ # The creation time of the operation.
3500
+ # Corresponds to the JSON property `createTime`
3501
+ # @return [String]
3502
+ attr_accessor :create_time
3503
+
3504
+ # A related resource to this operation.
3505
+ # Corresponds to the JSON property `resource`
3506
+ # @return [String]
3507
+ attr_accessor :resource
3508
+
3509
+ # The state of the operation.
3510
+ # Corresponds to the JSON property `state`
3511
+ # @return [String]
3512
+ attr_accessor :state
3513
+
3514
+ # A message providing more details about the current state of processing.
3515
+ # Corresponds to the JSON property `stateMessage`
3516
+ # @return [String]
3517
+ attr_accessor :state_message
3518
+
3519
+ # The last update time of the operation.
3520
+ # Corresponds to the JSON property `updateTime`
3521
+ # @return [String]
3522
+ attr_accessor :update_time
3523
+
3524
+ def initialize(**args)
3525
+ update!(**args)
3526
+ end
3527
+
3528
+ # Update properties of this object
3529
+ def update!(**args)
3530
+ @create_time = args[:create_time] if args.key?(:create_time)
3531
+ @resource = args[:resource] if args.key?(:resource)
3532
+ @state = args[:state] if args.key?(:state)
3533
+ @state_message = args[:state_message] if args.key?(:state_message)
3534
+ @update_time = args[:update_time] if args.key?(:update_time)
3535
+ end
3536
+ end
3537
+
3362
3538
  # Response to an batch document processing request. This is returned in the LRO
3363
3539
  # Operation after the operation is complete.
3364
3540
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
@@ -3625,10 +3801,10 @@ module Google
3625
3801
  # day and time zone are either specified elsewhere or are insignificant. The
3626
3802
  # date is relative to the Gregorian Calendar. This can represent one of the
3627
3803
  # following: * A full date, with non-zero year, month, and day values * A month
3628
- # and day value, with a zero year, such as an anniversary * A year on its own,
3629
- # with zero month and day values * A year and month value, with a zero day, such
3630
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
3631
- # google.protobuf.Timestamp`.
3804
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
3805
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
3806
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
3807
+ # DateTime * google.protobuf.Timestamp
3632
3808
  # Corresponds to the JSON property `dateValue`
3633
3809
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
3634
3810
  attr_accessor :date_value
@@ -3786,6 +3962,11 @@ module Google
3786
3962
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
3787
3963
  attr_accessor :provenance
3788
3964
 
3965
+ # A list of visually detected symbols on the page.
3966
+ # Corresponds to the JSON property `symbols`
3967
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol>]
3968
+ attr_accessor :symbols
3969
+
3789
3970
  # A list of visually detected tables on the page.
3790
3971
  # Corresponds to the JSON property `tables`
3791
3972
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
@@ -3824,6 +4005,7 @@ module Google
3824
4005
  @page_number = args[:page_number] if args.key?(:page_number)
3825
4006
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
3826
4007
  @provenance = args[:provenance] if args.key?(:provenance)
4008
+ @symbols = args[:symbols] if args.key?(:symbols)
3827
4009
  @tables = args[:tables] if args.key?(:tables)
3828
4010
  @tokens = args[:tokens] if args.key?(:tokens)
3829
4011
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -3941,7 +4123,7 @@ module Google
3941
4123
  attr_accessor :confidence
3942
4124
 
3943
4125
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
3944
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4126
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
3945
4127
  # Corresponds to the JSON property `languageCode`
3946
4128
  # @return [String]
3947
4129
  attr_accessor :language_code
@@ -4240,6 +4422,31 @@ module Google
4240
4422
  end
4241
4423
  end
4242
4424
 
4425
+ # A detected symbol.
4426
+ class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
4427
+ include Google::Apis::Core::Hashable
4428
+
4429
+ # A list of detected languages together with confidence.
4430
+ # Corresponds to the JSON property `detectedLanguages`
4431
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
4432
+ attr_accessor :detected_languages
4433
+
4434
+ # Visual element describing a layout unit on a page.
4435
+ # Corresponds to the JSON property `layout`
4436
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
4437
+ attr_accessor :layout
4438
+
4439
+ def initialize(**args)
4440
+ update!(**args)
4441
+ end
4442
+
4443
+ # Update properties of this object
4444
+ def update!(**args)
4445
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4446
+ @layout = args[:layout] if args.key?(:layout)
4447
+ end
4448
+ end
4449
+
4243
4450
  # A table representation similar to HTML table structure.
4244
4451
  class GoogleCloudDocumentaiV1beta1DocumentPageTable
4245
4452
  include Google::Apis::Core::Hashable
@@ -4788,7 +4995,7 @@ module Google
4788
4995
  include Google::Apis::Core::Hashable
4789
4996
 
4790
4997
  # Contains the content of the text span so that users do not have to look it up
4791
- # in the text_segments.
4998
+ # in the text_segments. It is always populated for formFields.
4792
4999
  # Corresponds to the JSON property `content`
4793
5000
  # @return [String]
4794
5001
  attr_accessor :content
@@ -5352,10 +5559,10 @@ module Google
5352
5559
  # day and time zone are either specified elsewhere or are insignificant. The
5353
5560
  # date is relative to the Gregorian Calendar. This can represent one of the
5354
5561
  # following: * A full date, with non-zero year, month, and day values * A month
5355
- # and day value, with a zero year, such as an anniversary * A year on its own,
5356
- # with zero month and day values * A year and month value, with a zero day, such
5357
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
5358
- # google.protobuf.Timestamp`.
5562
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
5563
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
5564
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
5565
+ # DateTime * google.protobuf.Timestamp
5359
5566
  # Corresponds to the JSON property `dateValue`
5360
5567
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
5361
5568
  attr_accessor :date_value
@@ -5550,6 +5757,11 @@ module Google
5550
5757
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
5551
5758
  attr_accessor :provenance
5552
5759
 
5760
+ # A list of visually detected symbols on the page.
5761
+ # Corresponds to the JSON property `symbols`
5762
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol>]
5763
+ attr_accessor :symbols
5764
+
5553
5765
  # A list of visually detected tables on the page.
5554
5766
  # Corresponds to the JSON property `tables`
5555
5767
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
@@ -5588,6 +5800,7 @@ module Google
5588
5800
  @page_number = args[:page_number] if args.key?(:page_number)
5589
5801
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
5590
5802
  @provenance = args[:provenance] if args.key?(:provenance)
5803
+ @symbols = args[:symbols] if args.key?(:symbols)
5591
5804
  @tables = args[:tables] if args.key?(:tables)
5592
5805
  @tokens = args[:tokens] if args.key?(:tokens)
5593
5806
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -5705,7 +5918,7 @@ module Google
5705
5918
  attr_accessor :confidence
5706
5919
 
5707
5920
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
5708
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5921
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5709
5922
  # Corresponds to the JSON property `languageCode`
5710
5923
  # @return [String]
5711
5924
  attr_accessor :language_code
@@ -6004,6 +6217,31 @@ module Google
6004
6217
  end
6005
6218
  end
6006
6219
 
6220
+ # A detected symbol.
6221
+ class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
6222
+ include Google::Apis::Core::Hashable
6223
+
6224
+ # A list of detected languages together with confidence.
6225
+ # Corresponds to the JSON property `detectedLanguages`
6226
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
6227
+ attr_accessor :detected_languages
6228
+
6229
+ # Visual element describing a layout unit on a page.
6230
+ # Corresponds to the JSON property `layout`
6231
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
6232
+ attr_accessor :layout
6233
+
6234
+ def initialize(**args)
6235
+ update!(**args)
6236
+ end
6237
+
6238
+ # Update properties of this object
6239
+ def update!(**args)
6240
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6241
+ @layout = args[:layout] if args.key?(:layout)
6242
+ end
6243
+ end
6244
+
6007
6245
  # A table representation similar to HTML table structure.
6008
6246
  class GoogleCloudDocumentaiV1beta2DocumentPageTable
6009
6247
  include Google::Apis::Core::Hashable
@@ -6552,7 +6790,7 @@ module Google
6552
6790
  include Google::Apis::Core::Hashable
6553
6791
 
6554
6792
  # Contains the content of the text span so that users do not have to look it up
6555
- # in the text_segments.
6793
+ # in the text_segments. It is always populated for formFields.
6556
6794
  # Corresponds to the JSON property `content`
6557
6795
  # @return [String]
6558
6796
  attr_accessor :content
@@ -7193,6 +7431,11 @@ module Google
7193
7431
  # @return [String]
7194
7432
  attr_accessor :create_time
7195
7433
 
7434
+ # The Crowd Compute question ID.
7435
+ # Corresponds to the JSON property `questionId`
7436
+ # @return [String]
7437
+ attr_accessor :question_id
7438
+
7196
7439
  # Used only when Operation.done is false.
7197
7440
  # Corresponds to the JSON property `state`
7198
7441
  # @return [String]
@@ -7217,6 +7460,7 @@ module Google
7217
7460
  def update!(**args)
7218
7461
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
7219
7462
  @create_time = args[:create_time] if args.key?(:create_time)
7463
+ @question_id = args[:question_id] if args.key?(:question_id)
7220
7464
  @state = args[:state] if args.key?(:state)
7221
7465
  @state_message = args[:state_message] if args.key?(:state_message)
7222
7466
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -7613,10 +7857,10 @@ module Google
7613
7857
  # day and time zone are either specified elsewhere or are insignificant. The
7614
7858
  # date is relative to the Gregorian Calendar. This can represent one of the
7615
7859
  # following: * A full date, with non-zero year, month, and day values * A month
7616
- # and day value, with a zero year, such as an anniversary * A year on its own,
7617
- # with zero month and day values * A year and month value, with a zero day, such
7618
- # as a credit card expiration date Related types are google.type.TimeOfDay and `
7619
- # google.protobuf.Timestamp`.
7860
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
7861
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
7862
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
7863
+ # DateTime * google.protobuf.Timestamp
7620
7864
  class GoogleTypeDate
7621
7865
  include Google::Apis::Core::Hashable
7622
7866
 
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1
18
18
  # Version of the google-apis-documentai_v1 gem
19
- GEM_VERSION = "0.23.0"
19
+ GEM_VERSION = "0.27.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211230"
25
+ REVISION = "20220212"
26
26
  end
27
27
  end
28
28
  end
@@ -172,6 +172,24 @@ module Google
172
172
  include Google::Apis::Core::JsonObjectSupport
173
173
  end
174
174
 
175
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
181
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
175
193
  class GoogleCloudDocumentaiUiv1beta3RevisionReference
176
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
177
195
 
@@ -436,6 +454,12 @@ module Google
436
454
  include Google::Apis::Core::JsonObjectSupport
437
455
  end
438
456
 
457
+ class GoogleCloudDocumentaiV1DocumentPageSymbol
458
+ class Representation < Google::Apis::Core::JsonRepresentation; end
459
+
460
+ include Google::Apis::Core::JsonObjectSupport
461
+ end
462
+
439
463
  class GoogleCloudDocumentaiV1DocumentPageTable
440
464
  class Representation < Google::Apis::Core::JsonRepresentation; end
441
465
 
@@ -700,6 +724,18 @@ module Google
700
724
  include Google::Apis::Core::JsonObjectSupport
701
725
  end
702
726
 
727
+ class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
728
+ class Representation < Google::Apis::Core::JsonRepresentation; end
729
+
730
+ include Google::Apis::Core::JsonObjectSupport
731
+ end
732
+
733
+ class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
734
+ class Representation < Google::Apis::Core::JsonRepresentation; end
735
+
736
+ include Google::Apis::Core::JsonObjectSupport
737
+ end
738
+
703
739
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
704
740
  class Representation < Google::Apis::Core::JsonRepresentation; end
705
741
 
@@ -808,6 +844,12 @@ module Google
808
844
  include Google::Apis::Core::JsonObjectSupport
809
845
  end
810
846
 
847
+ class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
848
+ class Representation < Google::Apis::Core::JsonRepresentation; end
849
+
850
+ include Google::Apis::Core::JsonObjectSupport
851
+ end
852
+
811
853
  class GoogleCloudDocumentaiV1beta1DocumentPageTable
812
854
  class Representation < Google::Apis::Core::JsonRepresentation; end
813
855
 
@@ -1066,6 +1108,12 @@ module Google
1066
1108
  include Google::Apis::Core::JsonObjectSupport
1067
1109
  end
1068
1110
 
1111
+ class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
1112
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1113
+
1114
+ include Google::Apis::Core::JsonObjectSupport
1115
+ end
1116
+
1069
1117
  class GoogleCloudDocumentaiV1beta2DocumentPageTable
1070
1118
  class Representation < Google::Apis::Core::JsonRepresentation; end
1071
1119
 
@@ -1596,6 +1644,32 @@ module Google
1596
1644
  end
1597
1645
  end
1598
1646
 
1647
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
1648
+ # @private
1649
+ class Representation < Google::Apis::Core::JsonRepresentation
1650
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1651
+
1652
+ collection :newly_added_documents, as: 'newlyAddedDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument::Representation
1653
+
1654
+ end
1655
+ end
1656
+
1657
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
1658
+ # @private
1659
+ class Representation < Google::Apis::Core::JsonRepresentation
1660
+ property :destination_prefix, as: 'destinationPrefix'
1661
+ property :source_prefix, as: 'sourcePrefix'
1662
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1663
+
1664
+ end
1665
+ end
1666
+
1667
+ class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
1668
+ # @private
1669
+ class Representation < Google::Apis::Core::JsonRepresentation
1670
+ end
1671
+ end
1672
+
1599
1673
  class GoogleCloudDocumentaiUiv1beta3RevisionReference
1600
1674
  # @private
1601
1675
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1928,6 +2002,8 @@ module Google
1928
2002
 
1929
2003
  property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
1930
2004
 
2005
+ collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol::Representation
2006
+
1931
2007
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable::Representation
1932
2008
 
1933
2009
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken::Representation
@@ -2063,6 +2139,16 @@ module Google
2063
2139
  end
2064
2140
  end
2065
2141
 
2142
+ class GoogleCloudDocumentaiV1DocumentPageSymbol
2143
+ # @private
2144
+ class Representation < Google::Apis::Core::JsonRepresentation
2145
+ collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
2146
+
2147
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
2148
+
2149
+ end
2150
+ end
2151
+
2066
2152
  class GoogleCloudDocumentaiV1DocumentPageTable
2067
2153
  # @private
2068
2154
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2397,6 +2483,7 @@ module Google
2397
2483
  class Representation < Google::Apis::Core::JsonRepresentation
2398
2484
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
2399
2485
 
2486
+ property :question_id, as: 'questionId'
2400
2487
  end
2401
2488
  end
2402
2489
 
@@ -2466,6 +2553,25 @@ module Google
2466
2553
  end
2467
2554
  end
2468
2555
 
2556
+ class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
2557
+ # @private
2558
+ class Representation < Google::Apis::Core::JsonRepresentation
2559
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata::Representation
2560
+
2561
+ end
2562
+ end
2563
+
2564
+ class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
2565
+ # @private
2566
+ class Representation < Google::Apis::Core::JsonRepresentation
2567
+ property :create_time, as: 'createTime'
2568
+ property :resource, as: 'resource'
2569
+ property :state, as: 'state'
2570
+ property :state_message, as: 'stateMessage'
2571
+ property :update_time, as: 'updateTime'
2572
+ end
2573
+ end
2574
+
2469
2575
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
2470
2576
  # @private
2471
2577
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2581,6 +2687,8 @@ module Google
2581
2687
 
2582
2688
  property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
2583
2689
 
2690
+ collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol::Representation
2691
+
2584
2692
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
2585
2693
 
2586
2694
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
@@ -2716,6 +2824,16 @@ module Google
2716
2824
  end
2717
2825
  end
2718
2826
 
2827
+ class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
2828
+ # @private
2829
+ class Representation < Google::Apis::Core::JsonRepresentation
2830
+ collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2831
+
2832
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
2833
+
2834
+ end
2835
+ end
2836
+
2719
2837
  class GoogleCloudDocumentaiV1beta1DocumentPageTable
2720
2838
  # @private
2721
2839
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3080,6 +3198,8 @@ module Google
3080
3198
 
3081
3199
  property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
3082
3200
 
3201
+ collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol::Representation
3202
+
3083
3203
  collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
3084
3204
 
3085
3205
  collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
@@ -3215,6 +3335,16 @@ module Google
3215
3335
  end
3216
3336
  end
3217
3337
 
3338
+ class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
3339
+ # @private
3340
+ class Representation < Google::Apis::Core::JsonRepresentation
3341
+ collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
3342
+
3343
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
3344
+
3345
+ end
3346
+ end
3347
+
3218
3348
  class GoogleCloudDocumentaiV1beta2DocumentPageTable
3219
3349
  # @private
3220
3350
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3569,6 +3699,7 @@ module Google
3569
3699
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3570
3700
 
3571
3701
  property :create_time, as: 'createTime'
3702
+ property :question_id, as: 'questionId'
3572
3703
  property :state, as: 'state'
3573
3704
  property :state_message, as: 'stateMessage'
3574
3705
  property :update_time, as: 'updateTime'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.27.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-10 00:00:00.000000000 Z
11
+ date: 2022-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.23.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1