google-apis-documentai_v1beta2 0.49.0 → 0.51.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9cfd4929c21b32f1245f5958bfd0bf9545f809823b93cbdaf7f98d4b5ba95ee3
4
- data.tar.gz: edcb4f2a30f72f7165e46efb7913f6ed198ab38f6bd22ba2f9b8b11ff5733e71
3
+ metadata.gz: 4aad9e9f0eb4b3b772c4b16d94d68203458f0c24eac2183a8daeec1a49d9553d
4
+ data.tar.gz: 7fe5ffd9b3dfa9d23b0cc88638c080311f205f5f566e47bcceb6a01a37de7b52
5
5
  SHA512:
6
- metadata.gz: ea4f70b58dc2cdb9e57f2ce81ccc0c1516a91d646854ce3c4ed7f0e99de95c6d4cd058036f2d2cc154bb15d591db428d7390583160df12fa89bf8d81098d10ac
7
- data.tar.gz: c9b681e1986dc45bae979cb02b70ce3a3bead40711d67bf5a6735452699728907502257383f558d1c51d0a8f169aea780c3a727e336456e208f60efc69e2afb9
6
+ metadata.gz: d2c8540483634b10a92d40023375eb2b52f5e6bfd82d57426fc37238d9c0b782085a2e8d98ef283ac2584b1cd52ab481da05478a2098bc70b520dc0b9023921f
7
+ data.tar.gz: 720d8ea2e19e303309313208c7bfe3c22a19c2044ac7d13acfffc58f3791fce5bbeaae36c0888baf18c73648c693624cb7137773cef1b2778e945f70117cdb32
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.51.0 (2022-12-07)
4
+
5
+ * Regenerated from discovery document revision 20221201
6
+
7
+ ### v0.50.0 (2022-10-27)
8
+
9
+ * Regenerated from discovery document revision 20221017
10
+ * Regenerated using generator version 0.11.0
11
+
3
12
  ### v0.49.0 (2022-10-02)
4
13
 
5
14
  * Regenerated from discovery document revision 20220921
@@ -1633,26 +1633,28 @@ module Google
1633
1633
  class GoogleCloudDocumentaiV1beta1Barcode
1634
1634
  include Google::Apis::Core::Hashable
1635
1635
 
1636
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
1637
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
1638
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
1639
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
1640
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
1636
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
1637
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
1638
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
1639
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
1640
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
1641
+ # type. - `DATABAR`: GS1 DataBar code type.
1641
1642
  # Corresponds to the JSON property `format`
1642
1643
  # @return [String]
1643
1644
  attr_accessor :format
1644
1645
 
1645
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
1646
- # www.google.com;;'.
1646
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
1647
+ # /www.google.com;;'`.
1647
1648
  # Corresponds to the JSON property `rawValue`
1648
1649
  # @return [String]
1649
1650
  attr_accessor :raw_value
1650
1651
 
1651
1652
  # Value format describes the format of the value that a barcode encodes. The
1652
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
1653
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
1654
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
1655
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
1653
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
1654
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
1655
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
1656
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
1657
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
1656
1658
  # Corresponds to the JSON property `valueFormat`
1657
1659
  # @return [String]
1658
1660
  attr_accessor :value_format
@@ -1778,14 +1780,14 @@ module Google
1778
1780
  # @return [String]
1779
1781
  attr_accessor :text
1780
1782
 
1781
- # Placeholder. A list of text corrections made to [Document.text]. This is
1782
- # usually used for annotating corrections to OCR mistakes. Text changes for a
1783
- # given revision may not overlap with each other.
1783
+ # Placeholder. A list of text corrections made to Document.text. This is usually
1784
+ # used for annotating corrections to OCR mistakes. Text changes for a given
1785
+ # revision may not overlap with each other.
1784
1786
  # Corresponds to the JSON property `textChanges`
1785
1787
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
1786
1788
  attr_accessor :text_changes
1787
1789
 
1788
- # Placeholder. Styles for the Document.text.
1790
+ # Styles for the Document.text.
1789
1791
  # Corresponds to the JSON property `textStyles`
1790
1792
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
1791
1793
  attr_accessor :text_styles
@@ -1825,7 +1827,7 @@ module Google
1825
1827
  class GoogleCloudDocumentaiV1beta1DocumentEntity
1826
1828
  include Google::Apis::Core::Hashable
1827
1829
 
1828
- # Optional. Confidence of detected Schema entity. Range [0, 1].
1830
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
1829
1831
  # Corresponds to the JSON property `confidence`
1830
1832
  # @return [Float]
1831
1833
  attr_accessor :confidence
@@ -1978,8 +1980,8 @@ module Google
1978
1980
  # Optional. An optional field to store a normalized string. For some entity
1979
1981
  # types, one of respective `structured_value` fields may also be populated. Also
1980
1982
  # not all the types of `structured_value` will be normalized. For example, some
1981
- # processors may not generate float or int normalized text by default. Below are
1982
- # sample formats mapped to structured values. - Money/Currency type (`
1983
+ # processors may not generate `float` or `integer` normalized text by default.
1984
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
1983
1985
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
1984
1986
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
1985
1987
  # 8601 text format.
@@ -2188,7 +2190,7 @@ module Google
2188
2190
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
2189
2191
  attr_accessor :bounding_poly
2190
2192
 
2191
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
2193
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
2192
2194
  # Corresponds to the JSON property `confidence`
2193
2195
  # @return [Float]
2194
2196
  attr_accessor :confidence
@@ -2203,10 +2205,10 @@ module Google
2203
2205
  # @return [String]
2204
2206
  attr_accessor :layout_type
2205
2207
 
2206
- # Required. Index into the Document.pages element, for example using Document.
2207
- # pages to locate the related page element. This field is skipped when its value
2208
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
2209
- # proto3#json.
2208
+ # Required. Index into the Document.pages element, for example using `Document.
2209
+ # pages` to locate the related page element. This field is skipped when its
2210
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
2211
+ # docs/proto3#json.
2210
2212
  # Corresponds to the JSON property `page`
2211
2213
  # @return [Fixnum]
2212
2214
  attr_accessor :page
@@ -2287,12 +2289,12 @@ module Google
2287
2289
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2288
2290
  include Google::Apis::Core::Hashable
2289
2291
 
2290
- # Confidence of detected language. Range [0, 1].
2292
+ # Confidence of detected language. Range `[0, 1]`.
2291
2293
  # Corresponds to the JSON property `confidence`
2292
2294
  # @return [Float]
2293
2295
  attr_accessor :confidence
2294
2296
 
2295
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2297
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
2296
2298
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2297
2299
  # Corresponds to the JSON property `languageCode`
2298
2300
  # @return [String]
@@ -2385,8 +2387,8 @@ module Google
2385
2387
  attr_accessor :value_detected_languages
2386
2388
 
2387
2389
  # If the value is non-textual, this field represents the type. Current valid
2388
- # values are: - blank (this indicates the field_value is normal text) - "
2389
- # unfilled_checkbox" - "filled_checkbox"
2390
+ # values are: - blank (this indicates the `field_value` is normal text) - `
2391
+ # unfilled_checkbox` - `filled_checkbox`
2390
2392
  # Corresponds to the JSON property `valueType`
2391
2393
  # @return [String]
2392
2394
  attr_accessor :value_type
@@ -2455,7 +2457,7 @@ module Google
2455
2457
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
2456
2458
  attr_accessor :detected_defects
2457
2459
 
2458
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
2460
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
2459
2461
  # Corresponds to the JSON property `qualityScore`
2460
2462
  # @return [Float]
2461
2463
  attr_accessor :quality_score
@@ -2475,16 +2477,16 @@ module Google
2475
2477
  class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2476
2478
  include Google::Apis::Core::Hashable
2477
2479
 
2478
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
2480
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
2479
2481
  # confidence of that the defect exists.
2480
2482
  # Corresponds to the JSON property `confidence`
2481
2483
  # @return [Float]
2482
2484
  attr_accessor :confidence
2483
2485
 
2484
- # Name of the defect type. Supported values are "quality/defect_blurry", "
2485
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
2486
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
2487
- # defect_text_cutoff", "quality/defect_glare"
2486
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
2487
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
2488
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
2489
+ # defect_text_cutoff` - `quality/defect_glare`
2488
2490
  # Corresponds to the JSON property `type`
2489
2491
  # @return [String]
2490
2492
  attr_accessor :type
@@ -2511,7 +2513,7 @@ module Google
2511
2513
 
2512
2514
  # Confidence of the current Layout within context of the object this layout is
2513
2515
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
2514
- # depending on context. Range [0, 1].
2516
+ # depending on context. Range `[0, 1]`.
2515
2517
  # Corresponds to the JSON property `confidence`
2516
2518
  # @return [Float]
2517
2519
  attr_accessor :confidence
@@ -2695,6 +2697,12 @@ module Google
2695
2697
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
2696
2698
  attr_accessor :layout
2697
2699
 
2700
+ # Structure to identify provenance relationships between annotations in
2701
+ # different revisions.
2702
+ # Corresponds to the JSON property `provenance`
2703
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance]
2704
+ attr_accessor :provenance
2705
+
2698
2706
  def initialize(**args)
2699
2707
  update!(**args)
2700
2708
  end
@@ -2705,6 +2713,7 @@ module Google
2705
2713
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
2706
2714
  @header_rows = args[:header_rows] if args.key?(:header_rows)
2707
2715
  @layout = args[:layout] if args.key?(:layout)
2716
+ @provenance = args[:provenance] if args.key?(:provenance)
2708
2717
  end
2709
2718
  end
2710
2719
 
@@ -3145,7 +3154,7 @@ module Google
3145
3154
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3146
3155
  attr_accessor :color
3147
3156
 
3148
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
3157
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
3149
3158
  # cssref/pr_font_font-family.asp
3150
3159
  # Corresponds to the JSON property `fontFamily`
3151
3160
  # @return [String]
@@ -3542,26 +3551,28 @@ module Google
3542
3551
  class GoogleCloudDocumentaiV1beta2Barcode
3543
3552
  include Google::Apis::Core::Hashable
3544
3553
 
3545
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
3546
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
3547
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
3548
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
3549
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
3554
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
3555
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
3556
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
3557
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
3558
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
3559
+ # type. - `DATABAR`: GS1 DataBar code type.
3550
3560
  # Corresponds to the JSON property `format`
3551
3561
  # @return [String]
3552
3562
  attr_accessor :format
3553
3563
 
3554
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
3555
- # www.google.com;;'.
3564
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
3565
+ # /www.google.com;;'`.
3556
3566
  # Corresponds to the JSON property `rawValue`
3557
3567
  # @return [String]
3558
3568
  attr_accessor :raw_value
3559
3569
 
3560
3570
  # Value format describes the format of the value that a barcode encodes. The
3561
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
3562
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
3563
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
3564
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
3571
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
3572
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
3573
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
3574
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
3575
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
3565
3576
  # Corresponds to the JSON property `valueFormat`
3566
3577
  # @return [String]
3567
3578
  attr_accessor :value_format
@@ -3712,14 +3723,14 @@ module Google
3712
3723
  # @return [String]
3713
3724
  attr_accessor :text
3714
3725
 
3715
- # Placeholder. A list of text corrections made to [Document.text]. This is
3716
- # usually used for annotating corrections to OCR mistakes. Text changes for a
3717
- # given revision may not overlap with each other.
3726
+ # Placeholder. A list of text corrections made to Document.text. This is usually
3727
+ # used for annotating corrections to OCR mistakes. Text changes for a given
3728
+ # revision may not overlap with each other.
3718
3729
  # Corresponds to the JSON property `textChanges`
3719
3730
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
3720
3731
  attr_accessor :text_changes
3721
3732
 
3722
- # Placeholder. Styles for the Document.text.
3733
+ # Styles for the Document.text.
3723
3734
  # Corresponds to the JSON property `textStyles`
3724
3735
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
3725
3736
  attr_accessor :text_styles
@@ -3760,7 +3771,7 @@ module Google
3760
3771
  class GoogleCloudDocumentaiV1beta2DocumentEntity
3761
3772
  include Google::Apis::Core::Hashable
3762
3773
 
3763
- # Optional. Confidence of detected Schema entity. Range [0, 1].
3774
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
3764
3775
  # Corresponds to the JSON property `confidence`
3765
3776
  # @return [Float]
3766
3777
  attr_accessor :confidence
@@ -3913,8 +3924,8 @@ module Google
3913
3924
  # Optional. An optional field to store a normalized string. For some entity
3914
3925
  # types, one of respective `structured_value` fields may also be populated. Also
3915
3926
  # not all the types of `structured_value` will be normalized. For example, some
3916
- # processors may not generate float or int normalized text by default. Below are
3917
- # sample formats mapped to structured values. - Money/Currency type (`
3927
+ # processors may not generate `float` or `integer` normalized text by default.
3928
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
3918
3929
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
3919
3930
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
3920
3931
  # 8601 text format.
@@ -4160,7 +4171,7 @@ module Google
4160
4171
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
4161
4172
  attr_accessor :bounding_poly
4162
4173
 
4163
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
4174
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
4164
4175
  # Corresponds to the JSON property `confidence`
4165
4176
  # @return [Float]
4166
4177
  attr_accessor :confidence
@@ -4175,10 +4186,10 @@ module Google
4175
4186
  # @return [String]
4176
4187
  attr_accessor :layout_type
4177
4188
 
4178
- # Required. Index into the Document.pages element, for example using Document.
4179
- # pages to locate the related page element. This field is skipped when its value
4180
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
4181
- # proto3#json.
4189
+ # Required. Index into the Document.pages element, for example using `Document.
4190
+ # pages` to locate the related page element. This field is skipped when its
4191
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
4192
+ # docs/proto3#json.
4182
4193
  # Corresponds to the JSON property `page`
4183
4194
  # @return [Fixnum]
4184
4195
  attr_accessor :page
@@ -4259,12 +4270,12 @@ module Google
4259
4270
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4260
4271
  include Google::Apis::Core::Hashable
4261
4272
 
4262
- # Confidence of detected language. Range [0, 1].
4273
+ # Confidence of detected language. Range `[0, 1]`.
4263
4274
  # Corresponds to the JSON property `confidence`
4264
4275
  # @return [Float]
4265
4276
  attr_accessor :confidence
4266
4277
 
4267
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
4278
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
4268
4279
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4269
4280
  # Corresponds to the JSON property `languageCode`
4270
4281
  # @return [String]
@@ -4357,8 +4368,8 @@ module Google
4357
4368
  attr_accessor :value_detected_languages
4358
4369
 
4359
4370
  # If the value is non-textual, this field represents the type. Current valid
4360
- # values are: - blank (this indicates the field_value is normal text) - "
4361
- # unfilled_checkbox" - "filled_checkbox"
4371
+ # values are: - blank (this indicates the `field_value` is normal text) - `
4372
+ # unfilled_checkbox` - `filled_checkbox`
4362
4373
  # Corresponds to the JSON property `valueType`
4363
4374
  # @return [String]
4364
4375
  attr_accessor :value_type
@@ -4427,7 +4438,7 @@ module Google
4427
4438
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
4428
4439
  attr_accessor :detected_defects
4429
4440
 
4430
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
4441
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
4431
4442
  # Corresponds to the JSON property `qualityScore`
4432
4443
  # @return [Float]
4433
4444
  attr_accessor :quality_score
@@ -4447,16 +4458,16 @@ module Google
4447
4458
  class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4448
4459
  include Google::Apis::Core::Hashable
4449
4460
 
4450
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
4461
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
4451
4462
  # confidence of that the defect exists.
4452
4463
  # Corresponds to the JSON property `confidence`
4453
4464
  # @return [Float]
4454
4465
  attr_accessor :confidence
4455
4466
 
4456
- # Name of the defect type. Supported values are "quality/defect_blurry", "
4457
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
4458
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
4459
- # defect_text_cutoff", "quality/defect_glare"
4467
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
4468
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
4469
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
4470
+ # defect_text_cutoff` - `quality/defect_glare`
4460
4471
  # Corresponds to the JSON property `type`
4461
4472
  # @return [String]
4462
4473
  attr_accessor :type
@@ -4483,7 +4494,7 @@ module Google
4483
4494
 
4484
4495
  # Confidence of the current Layout within context of the object this layout is
4485
4496
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
4486
- # depending on context. Range [0, 1].
4497
+ # depending on context. Range `[0, 1]`.
4487
4498
  # Corresponds to the JSON property `confidence`
4488
4499
  # @return [Float]
4489
4500
  attr_accessor :confidence
@@ -4667,6 +4678,12 @@ module Google
4667
4678
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
4668
4679
  attr_accessor :layout
4669
4680
 
4681
+ # Structure to identify provenance relationships between annotations in
4682
+ # different revisions.
4683
+ # Corresponds to the JSON property `provenance`
4684
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance]
4685
+ attr_accessor :provenance
4686
+
4670
4687
  def initialize(**args)
4671
4688
  update!(**args)
4672
4689
  end
@@ -4677,6 +4694,7 @@ module Google
4677
4694
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4678
4695
  @header_rows = args[:header_rows] if args.key?(:header_rows)
4679
4696
  @layout = args[:layout] if args.key?(:layout)
4697
+ @provenance = args[:provenance] if args.key?(:provenance)
4680
4698
  end
4681
4699
  end
4682
4700
 
@@ -5117,7 +5135,7 @@ module Google
5117
5135
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
5118
5136
  attr_accessor :color
5119
5137
 
5120
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
5138
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
5121
5139
  # cssref/pr_font_font-family.asp
5122
5140
  # Corresponds to the JSON property `fontFamily`
5123
5141
  # @return [String]
@@ -6044,6 +6062,44 @@ module Google
6044
6062
  end
6045
6063
  end
6046
6064
 
6065
+ # Metadata of the EvaluateProcessorVersion method.
6066
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
6067
+ include Google::Apis::Core::Hashable
6068
+
6069
+ # The common metadata for long running operations.
6070
+ # Corresponds to the JSON property `commonMetadata`
6071
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6072
+ attr_accessor :common_metadata
6073
+
6074
+ def initialize(**args)
6075
+ update!(**args)
6076
+ end
6077
+
6078
+ # Update properties of this object
6079
+ def update!(**args)
6080
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6081
+ end
6082
+ end
6083
+
6084
+ # Metadata of the EvaluateProcessorVersion method.
6085
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
6086
+ include Google::Apis::Core::Hashable
6087
+
6088
+ # The resource name of the created evaluation.
6089
+ # Corresponds to the JSON property `evaluation`
6090
+ # @return [String]
6091
+ attr_accessor :evaluation
6092
+
6093
+ def initialize(**args)
6094
+ update!(**args)
6095
+ end
6096
+
6097
+ # Update properties of this object
6098
+ def update!(**args)
6099
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
6100
+ end
6101
+ end
6102
+
6047
6103
  # The status of human review on a processed document.
6048
6104
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
6049
6105
  include Google::Apis::Core::Hashable
@@ -6192,6 +6248,99 @@ module Google
6192
6248
  end
6193
6249
  end
6194
6250
 
6251
+ # The metadata that represents a processor version being created.
6252
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
6253
+ include Google::Apis::Core::Hashable
6254
+
6255
+ # The common metadata for long running operations.
6256
+ # Corresponds to the JSON property `commonMetadata`
6257
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6258
+ attr_accessor :common_metadata
6259
+
6260
+ # The dataset validation information. This includes any and all errors with
6261
+ # documents and the dataset.
6262
+ # Corresponds to the JSON property `testDatasetValidation`
6263
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
6264
+ attr_accessor :test_dataset_validation
6265
+
6266
+ # The dataset validation information. This includes any and all errors with
6267
+ # documents and the dataset.
6268
+ # Corresponds to the JSON property `trainingDatasetValidation`
6269
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
6270
+ attr_accessor :training_dataset_validation
6271
+
6272
+ def initialize(**args)
6273
+ update!(**args)
6274
+ end
6275
+
6276
+ # Update properties of this object
6277
+ def update!(**args)
6278
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6279
+ @test_dataset_validation = args[:test_dataset_validation] if args.key?(:test_dataset_validation)
6280
+ @training_dataset_validation = args[:training_dataset_validation] if args.key?(:training_dataset_validation)
6281
+ end
6282
+ end
6283
+
6284
+ # The dataset validation information. This includes any and all errors with
6285
+ # documents and the dataset.
6286
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
6287
+ include Google::Apis::Core::Hashable
6288
+
6289
+ # The total number of dataset errors.
6290
+ # Corresponds to the JSON property `datasetErrorCount`
6291
+ # @return [Fixnum]
6292
+ attr_accessor :dataset_error_count
6293
+
6294
+ # Error information for the dataset as a whole. A maximum of 10 dataset errors
6295
+ # will be returned. A single dataset error is terminal for training.
6296
+ # Corresponds to the JSON property `datasetErrors`
6297
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
6298
+ attr_accessor :dataset_errors
6299
+
6300
+ # The total number of document errors.
6301
+ # Corresponds to the JSON property `documentErrorCount`
6302
+ # @return [Fixnum]
6303
+ attr_accessor :document_error_count
6304
+
6305
+ # Error information pertaining to specific documents. A maximum of 10 document
6306
+ # errors will be returned. Any document with errors will not be used throughout
6307
+ # training.
6308
+ # Corresponds to the JSON property `documentErrors`
6309
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
6310
+ attr_accessor :document_errors
6311
+
6312
+ def initialize(**args)
6313
+ update!(**args)
6314
+ end
6315
+
6316
+ # Update properties of this object
6317
+ def update!(**args)
6318
+ @dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
6319
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
6320
+ @document_error_count = args[:document_error_count] if args.key?(:document_error_count)
6321
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
6322
+ end
6323
+ end
6324
+
6325
+ # The response for the TrainProcessorVersion method.
6326
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
6327
+ include Google::Apis::Core::Hashable
6328
+
6329
+ # The resource name of the processor version produced by training.
6330
+ # Corresponds to the JSON property `processorVersion`
6331
+ # @return [String]
6332
+ attr_accessor :processor_version
6333
+
6334
+ def initialize(**args)
6335
+ update!(**args)
6336
+ end
6337
+
6338
+ # Update properties of this object
6339
+ def update!(**args)
6340
+ @processor_version = args[:processor_version] if args.key?(:processor_version)
6341
+ end
6342
+ end
6343
+
6195
6344
  # The long running operation metadata for the undeploy processor version method.
6196
6345
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
6197
6346
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.49.0"
19
+ GEM_VERSION = "0.51.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.10.0"
22
+ GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220921"
25
+ REVISION = "20221201"
26
26
  end
27
27
  end
28
28
  end
@@ -1126,6 +1126,18 @@ module Google
1126
1126
  include Google::Apis::Core::JsonObjectSupport
1127
1127
  end
1128
1128
 
1129
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
1130
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1131
+
1132
+ include Google::Apis::Core::JsonObjectSupport
1133
+ end
1134
+
1135
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
1136
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1137
+
1138
+ include Google::Apis::Core::JsonObjectSupport
1139
+ end
1140
+
1129
1141
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1130
1142
  class Representation < Google::Apis::Core::JsonRepresentation; end
1131
1143
 
@@ -1156,6 +1168,24 @@ module Google
1156
1168
  include Google::Apis::Core::JsonObjectSupport
1157
1169
  end
1158
1170
 
1171
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
1172
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1173
+
1174
+ include Google::Apis::Core::JsonObjectSupport
1175
+ end
1176
+
1177
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
1178
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1179
+
1180
+ include Google::Apis::Core::JsonObjectSupport
1181
+ end
1182
+
1183
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
1184
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1185
+
1186
+ include Google::Apis::Core::JsonObjectSupport
1187
+ end
1188
+
1159
1189
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
1160
1190
  class Representation < Google::Apis::Core::JsonRepresentation; end
1161
1191
 
@@ -2110,6 +2140,8 @@ module Google
2110
2140
 
2111
2141
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
2112
2142
 
2143
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
2144
+
2113
2145
  end
2114
2146
  end
2115
2147
 
@@ -2677,6 +2709,8 @@ module Google
2677
2709
 
2678
2710
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
2679
2711
 
2712
+ property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
2713
+
2680
2714
  end
2681
2715
  end
2682
2716
 
@@ -3081,6 +3115,21 @@ module Google
3081
3115
  end
3082
3116
  end
3083
3117
 
3118
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
3119
+ # @private
3120
+ class Representation < Google::Apis::Core::JsonRepresentation
3121
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3122
+
3123
+ end
3124
+ end
3125
+
3126
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
3127
+ # @private
3128
+ class Representation < Google::Apis::Core::JsonRepresentation
3129
+ property :evaluation, as: 'evaluation'
3130
+ end
3131
+ end
3132
+
3084
3133
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
3085
3134
  # @private
3086
3135
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3126,6 +3175,37 @@ module Google
3126
3175
  end
3127
3176
  end
3128
3177
 
3178
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
3179
+ # @private
3180
+ class Representation < Google::Apis::Core::JsonRepresentation
3181
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3182
+
3183
+ property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
3184
+
3185
+ property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
3186
+
3187
+ end
3188
+ end
3189
+
3190
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
3191
+ # @private
3192
+ class Representation < Google::Apis::Core::JsonRepresentation
3193
+ property :dataset_error_count, as: 'datasetErrorCount'
3194
+ collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
3195
+
3196
+ property :document_error_count, as: 'documentErrorCount'
3197
+ collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
3198
+
3199
+ end
3200
+ end
3201
+
3202
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
3203
+ # @private
3204
+ class Representation < Google::Apis::Core::JsonRepresentation
3205
+ property :processor_version, as: 'processorVersion'
3206
+ end
3207
+ end
3208
+
3129
3209
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
3130
3210
  # @private
3131
3211
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.49.0
4
+ version: 0.51.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-10-03 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.0
19
+ version: 0.9.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.0
29
+ version: 0.9.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.49.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.51.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []