google-apis-documentai_v1beta2 0.50.0 → 0.52.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: fa83bae2c5e23ace6319bb65df438f2e10cdf48d7280cbd759978a70df42a0fb
4
- data.tar.gz: 4f11206c94eeaedf63d2f0393c3aeee352620af54d31e22d31eb7490d77d8c6b
3
+ metadata.gz: 166e069c0b6bde691694248189d9afc50a5b32f5a8d7651aee9eedf62bc8a5cb
4
+ data.tar.gz: c10cd3bb8d4d47f0f8401c0cd86b77f5981c1ee07af6dde42a1bec555a8543cc
5
5
  SHA512:
6
- metadata.gz: 2721fb6c654b037cd26ece1aa5d1072b8bee9635f547aad87259dc04428288e1e19bc0e2485731959bad7d3ddecc9bab8f0760a0009ca617e58ecb41b41d94bc
7
- data.tar.gz: 97036e75abf5624a79f4eb2e19400805448929afa0f90598f5457565075fde0cf1ce3ce87e070238eab88292cdd13362130d7bc7d47b9fa89eccac480007554a
6
+ metadata.gz: 7e4d29f0efe6ac045681581235b95921dda19340d67f327f025c40fcd32ca07ff6489056f9473b26d69a8515948aa2a5647e283289ac418e7592a0d282af90d6
7
+ data.tar.gz: 28735f3bd1a1e6b7e502868caad5f63ad6930218fd40159500f80625293169103f5a21446c36a50edf72d57f823000b5982c646ba590cbd038e1598ff8b4a0d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.52.0 (2023-01-15)
4
+
5
+ * Regenerated from discovery document revision 20230106
6
+ * Regenerated using generator version 0.11.1
7
+
8
+ ### v0.51.0 (2022-12-07)
9
+
10
+ * Regenerated from discovery document revision 20221201
11
+
3
12
  ### v0.50.0 (2022-10-27)
4
13
 
5
14
  * Regenerated from discovery document revision 20221017
@@ -389,8 +389,8 @@ module Google
389
389
  class GoogleCloudDocumentaiUiv1beta3DocumentId
390
390
  include Google::Apis::Core::Hashable
391
391
 
392
- # Identifies a document uniquely within the scope of a dataset in the GCS-based
393
- # option.
392
+ # Identifies a document uniquely within the scope of a dataset in the Cloud
393
+ # Storage option.
394
394
  # Corresponds to the JSON property `gcsManagedDocId`
395
395
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId]
396
396
  attr_accessor :gcs_managed_doc_id
@@ -411,12 +411,12 @@ module Google
411
411
  end
412
412
  end
413
413
 
414
- # Identifies a document uniquely within the scope of a dataset in the GCS-based
415
- # option.
414
+ # Identifies a document uniquely within the scope of a dataset in the Cloud
415
+ # Storage option.
416
416
  class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
417
417
  include Google::Apis::Core::Hashable
418
418
 
419
- # Optional. Id of the document (indexed) managed by Content Warehouse.
419
+ # Id of the document (indexed) managed by Content Warehouse.
420
420
  # Corresponds to the JSON property `cwDocId`
421
421
  # @return [String]
422
422
  attr_accessor :cw_doc_id
@@ -887,18 +887,17 @@ module Google
887
887
  class GoogleCloudDocumentaiUiv1beta3RevisionReference
888
888
  include Google::Apis::Core::Hashable
889
889
 
890
- # Read the revision generated by the processor version, returns error if it does
891
- # not exist.
890
+ # Reads the revision generated by the processor version.
892
891
  # Corresponds to the JSON property `latestProcessorVersion`
893
892
  # @return [String]
894
893
  attr_accessor :latest_processor_version
895
894
 
896
- # Read the revision by the predefined case.
895
+ # Reads the revision by the predefined case.
897
896
  # Corresponds to the JSON property `revisionCase`
898
897
  # @return [String]
899
898
  attr_accessor :revision_case
900
899
 
901
- # Read the revision given by the id, returns error if it does not exist.
900
+ # Reads the revision given by the id.
902
901
  # Corresponds to the JSON property `revisionId`
903
902
  # @return [String]
904
903
  attr_accessor :revision_id
@@ -1567,92 +1566,32 @@ module Google
1567
1566
  end
1568
1567
  end
1569
1568
 
1570
- # The long running operation metadata for AnalyzeHitlData.
1571
- class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
1572
- include Google::Apis::Core::Hashable
1573
-
1574
- # The common metadata for long running operations.
1575
- # Corresponds to the JSON property `commonMetadata`
1576
- # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata]
1577
- attr_accessor :common_metadata
1578
-
1579
- def initialize(**args)
1580
- update!(**args)
1581
- end
1582
-
1583
- # Update properties of this object
1584
- def update!(**args)
1585
- @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
1586
- end
1587
- end
1588
-
1589
- # The common metadata for long running operations.
1590
- class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
1591
- include Google::Apis::Core::Hashable
1592
-
1593
- # The creation time of the operation.
1594
- # Corresponds to the JSON property `createTime`
1595
- # @return [String]
1596
- attr_accessor :create_time
1597
-
1598
- # A related resource to this operation.
1599
- # Corresponds to the JSON property `resource`
1600
- # @return [String]
1601
- attr_accessor :resource
1602
-
1603
- # The state of the operation.
1604
- # Corresponds to the JSON property `state`
1605
- # @return [String]
1606
- attr_accessor :state
1607
-
1608
- # A message providing more details about the current state of processing.
1609
- # Corresponds to the JSON property `stateMessage`
1610
- # @return [String]
1611
- attr_accessor :state_message
1612
-
1613
- # The last update time of the operation.
1614
- # Corresponds to the JSON property `updateTime`
1615
- # @return [String]
1616
- attr_accessor :update_time
1617
-
1618
- def initialize(**args)
1619
- update!(**args)
1620
- end
1621
-
1622
- # Update properties of this object
1623
- def update!(**args)
1624
- @create_time = args[:create_time] if args.key?(:create_time)
1625
- @resource = args[:resource] if args.key?(:resource)
1626
- @state = args[:state] if args.key?(:state)
1627
- @state_message = args[:state_message] if args.key?(:state_message)
1628
- @update_time = args[:update_time] if args.key?(:update_time)
1629
- end
1630
- end
1631
-
1632
1569
  # Encodes the detailed information of a barcode.
1633
1570
  class GoogleCloudDocumentaiV1beta1Barcode
1634
1571
  include Google::Apis::Core::Hashable
1635
1572
 
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.
1573
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
1574
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
1575
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
1576
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
1577
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
1578
+ # type. - `DATABAR`: GS1 DataBar code type.
1641
1579
  # Corresponds to the JSON property `format`
1642
1580
  # @return [String]
1643
1581
  attr_accessor :format
1644
1582
 
1645
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
1646
- # www.google.com;;'.
1583
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
1584
+ # /www.google.com;;'`.
1647
1585
  # Corresponds to the JSON property `rawValue`
1648
1586
  # @return [String]
1649
1587
  attr_accessor :raw_value
1650
1588
 
1651
1589
  # 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.
1590
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
1591
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
1592
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
1593
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
1594
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
1656
1595
  # Corresponds to the JSON property `valueFormat`
1657
1596
  # @return [String]
1658
1597
  attr_accessor :value_format
@@ -1778,14 +1717,14 @@ module Google
1778
1717
  # @return [String]
1779
1718
  attr_accessor :text
1780
1719
 
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.
1720
+ # Placeholder. A list of text corrections made to Document.text. This is usually
1721
+ # used for annotating corrections to OCR mistakes. Text changes for a given
1722
+ # revision may not overlap with each other.
1784
1723
  # Corresponds to the JSON property `textChanges`
1785
1724
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
1786
1725
  attr_accessor :text_changes
1787
1726
 
1788
- # Placeholder. Styles for the Document.text.
1727
+ # Styles for the Document.text.
1789
1728
  # Corresponds to the JSON property `textStyles`
1790
1729
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentStyle>]
1791
1730
  attr_accessor :text_styles
@@ -1825,7 +1764,7 @@ module Google
1825
1764
  class GoogleCloudDocumentaiV1beta1DocumentEntity
1826
1765
  include Google::Apis::Core::Hashable
1827
1766
 
1828
- # Optional. Confidence of detected Schema entity. Range [0, 1].
1767
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
1829
1768
  # Corresponds to the JSON property `confidence`
1830
1769
  # @return [Float]
1831
1770
  attr_accessor :confidence
@@ -1978,8 +1917,8 @@ module Google
1978
1917
  # Optional. An optional field to store a normalized string. For some entity
1979
1918
  # types, one of respective `structured_value` fields may also be populated. Also
1980
1919
  # 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 (`
1920
+ # processors may not generate `float` or `integer` normalized text by default.
1921
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
1983
1922
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
1984
1923
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
1985
1924
  # 8601 text format.
@@ -2188,7 +2127,7 @@ module Google
2188
2127
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1BoundingPoly]
2189
2128
  attr_accessor :bounding_poly
2190
2129
 
2191
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
2130
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
2192
2131
  # Corresponds to the JSON property `confidence`
2193
2132
  # @return [Float]
2194
2133
  attr_accessor :confidence
@@ -2203,10 +2142,10 @@ module Google
2203
2142
  # @return [String]
2204
2143
  attr_accessor :layout_type
2205
2144
 
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.
2145
+ # Required. Index into the Document.pages element, for example using `Document.
2146
+ # pages` to locate the related page element. This field is skipped when its
2147
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
2148
+ # docs/proto3#json.
2210
2149
  # Corresponds to the JSON property `page`
2211
2150
  # @return [Fixnum]
2212
2151
  attr_accessor :page
@@ -2287,12 +2226,12 @@ module Google
2287
2226
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2288
2227
  include Google::Apis::Core::Hashable
2289
2228
 
2290
- # Confidence of detected language. Range [0, 1].
2229
+ # Confidence of detected language. Range `[0, 1]`.
2291
2230
  # Corresponds to the JSON property `confidence`
2292
2231
  # @return [Float]
2293
2232
  attr_accessor :confidence
2294
2233
 
2295
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
2234
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
2296
2235
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
2297
2236
  # Corresponds to the JSON property `languageCode`
2298
2237
  # @return [String]
@@ -2385,8 +2324,8 @@ module Google
2385
2324
  attr_accessor :value_detected_languages
2386
2325
 
2387
2326
  # 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"
2327
+ # values are: - blank (this indicates the `field_value` is normal text) - `
2328
+ # unfilled_checkbox` - `filled_checkbox`
2390
2329
  # Corresponds to the JSON property `valueType`
2391
2330
  # @return [String]
2392
2331
  attr_accessor :value_type
@@ -2455,7 +2394,7 @@ module Google
2455
2394
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
2456
2395
  attr_accessor :detected_defects
2457
2396
 
2458
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
2397
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
2459
2398
  # Corresponds to the JSON property `qualityScore`
2460
2399
  # @return [Float]
2461
2400
  attr_accessor :quality_score
@@ -2475,16 +2414,16 @@ module Google
2475
2414
  class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2476
2415
  include Google::Apis::Core::Hashable
2477
2416
 
2478
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
2417
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
2479
2418
  # confidence of that the defect exists.
2480
2419
  # Corresponds to the JSON property `confidence`
2481
2420
  # @return [Float]
2482
2421
  attr_accessor :confidence
2483
2422
 
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"
2423
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
2424
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
2425
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
2426
+ # defect_text_cutoff` - `quality/defect_glare`
2488
2427
  # Corresponds to the JSON property `type`
2489
2428
  # @return [String]
2490
2429
  attr_accessor :type
@@ -2511,7 +2450,7 @@ module Google
2511
2450
 
2512
2451
  # Confidence of the current Layout within context of the object this layout is
2513
2452
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
2514
- # depending on context. Range [0, 1].
2453
+ # depending on context. Range `[0, 1]`.
2515
2454
  # Corresponds to the JSON property `confidence`
2516
2455
  # @return [Float]
2517
2456
  attr_accessor :confidence
@@ -3152,7 +3091,7 @@ module Google
3152
3091
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
3153
3092
  attr_accessor :color
3154
3093
 
3155
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
3094
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
3156
3095
  # cssref/pr_font_font-family.asp
3157
3096
  # Corresponds to the JSON property `fontFamily`
3158
3097
  # @return [String]
@@ -3549,26 +3488,28 @@ module Google
3549
3488
  class GoogleCloudDocumentaiV1beta2Barcode
3550
3489
  include Google::Apis::Core::Hashable
3551
3490
 
3552
- # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
3553
- # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
3554
- # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
3555
- # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
3556
- # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
3491
+ # Format of a barcode. The supported formats are: - `CODE_128`: Code 128 type. -
3492
+ # `CODE_39`: Code 39 type. - `CODE_93`: Code 93 type. - `CODABAR`: Codabar type.
3493
+ # - `DATA_MATRIX`: 2D Data Matrix type. - `ITF`: ITF type. - `EAN_13`: EAN-13
3494
+ # type. - `EAN_8`: EAN-8 type. - `QR_CODE`: 2D QR code type. - `UPC_A`: UPC-A
3495
+ # type. - `UPC_E`: UPC-E type. - `PDF417`: PDF417 type. - `AZTEC`: 2D Aztec code
3496
+ # type. - `DATABAR`: GS1 DataBar code type.
3557
3497
  # Corresponds to the JSON property `format`
3558
3498
  # @return [String]
3559
3499
  attr_accessor :format
3560
3500
 
3561
- # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
3562
- # www.google.com;;'.
3501
+ # Raw value encoded in the barcode. For example: `'MEBKM:TITLE:Google;URL:https:/
3502
+ # /www.google.com;;'`.
3563
3503
  # Corresponds to the JSON property `rawValue`
3564
3504
  # @return [String]
3565
3505
  attr_accessor :raw_value
3566
3506
 
3567
3507
  # Value format describes the format of the value that a barcode encodes. The
3568
- # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
3569
- # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
3570
- # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
3571
- # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
3508
+ # supported formats are: - `CONTACT_INFO`: Contact information. - `EMAIL`: Email
3509
+ # address. - `ISBN`: ISBN identifier. - `PHONE`: Phone number. - `PRODUCT`:
3510
+ # Product. - `SMS`: SMS message. - `TEXT`: Text string. - `URL`: URL address. - `
3511
+ # WIFI`: Wifi information. - `GEO`: Geo-localization. - `CALENDAR_EVENT`:
3512
+ # Calendar event. - `DRIVER_LICENSE`: Driver's license.
3572
3513
  # Corresponds to the JSON property `valueFormat`
3573
3514
  # @return [String]
3574
3515
  attr_accessor :value_format
@@ -3719,14 +3660,14 @@ module Google
3719
3660
  # @return [String]
3720
3661
  attr_accessor :text
3721
3662
 
3722
- # Placeholder. A list of text corrections made to [Document.text]. This is
3723
- # usually used for annotating corrections to OCR mistakes. Text changes for a
3724
- # given revision may not overlap with each other.
3663
+ # Placeholder. A list of text corrections made to Document.text. This is usually
3664
+ # used for annotating corrections to OCR mistakes. Text changes for a given
3665
+ # revision may not overlap with each other.
3725
3666
  # Corresponds to the JSON property `textChanges`
3726
3667
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
3727
3668
  attr_accessor :text_changes
3728
3669
 
3729
- # Placeholder. Styles for the Document.text.
3670
+ # Styles for the Document.text.
3730
3671
  # Corresponds to the JSON property `textStyles`
3731
3672
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentStyle>]
3732
3673
  attr_accessor :text_styles
@@ -3767,7 +3708,7 @@ module Google
3767
3708
  class GoogleCloudDocumentaiV1beta2DocumentEntity
3768
3709
  include Google::Apis::Core::Hashable
3769
3710
 
3770
- # Optional. Confidence of detected Schema entity. Range [0, 1].
3711
+ # Optional. Confidence of detected Schema entity. Range `[0, 1]`.
3771
3712
  # Corresponds to the JSON property `confidence`
3772
3713
  # @return [Float]
3773
3714
  attr_accessor :confidence
@@ -3920,8 +3861,8 @@ module Google
3920
3861
  # Optional. An optional field to store a normalized string. For some entity
3921
3862
  # types, one of respective `structured_value` fields may also be populated. Also
3922
3863
  # not all the types of `structured_value` will be normalized. For example, some
3923
- # processors may not generate float or int normalized text by default. Below are
3924
- # sample formats mapped to structured values. - Money/Currency type (`
3864
+ # processors may not generate `float` or `integer` normalized text by default.
3865
+ # Below are sample formats mapped to structured values. - Money/Currency type (`
3925
3866
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
3926
3867
  # the ISO 8601 text format. - Datetime type (`datetime_value`) is in the ISO
3927
3868
  # 8601 text format.
@@ -4167,7 +4108,7 @@ module Google
4167
4108
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2BoundingPoly]
4168
4109
  attr_accessor :bounding_poly
4169
4110
 
4170
- # Optional. Confidence of detected page element, if applicable. Range [0, 1].
4111
+ # Optional. Confidence of detected page element, if applicable. Range `[0, 1]`.
4171
4112
  # Corresponds to the JSON property `confidence`
4172
4113
  # @return [Float]
4173
4114
  attr_accessor :confidence
@@ -4182,10 +4123,10 @@ module Google
4182
4123
  # @return [String]
4183
4124
  attr_accessor :layout_type
4184
4125
 
4185
- # Required. Index into the Document.pages element, for example using Document.
4186
- # pages to locate the related page element. This field is skipped when its value
4187
- # is the default 0. See https://developers.google.com/protocol-buffers/docs/
4188
- # proto3#json.
4126
+ # Required. Index into the Document.pages element, for example using `Document.
4127
+ # pages` to locate the related page element. This field is skipped when its
4128
+ # value is the default `0`. See https://developers.google.com/protocol-buffers/
4129
+ # docs/proto3#json.
4189
4130
  # Corresponds to the JSON property `page`
4190
4131
  # @return [Fixnum]
4191
4132
  attr_accessor :page
@@ -4266,12 +4207,12 @@ module Google
4266
4207
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
4267
4208
  include Google::Apis::Core::Hashable
4268
4209
 
4269
- # Confidence of detected language. Range [0, 1].
4210
+ # Confidence of detected language. Range `[0, 1]`.
4270
4211
  # Corresponds to the JSON property `confidence`
4271
4212
  # @return [Float]
4272
4213
  attr_accessor :confidence
4273
4214
 
4274
- # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
4215
+ # The BCP-47 language code, such as `en-US` or `sr-Latn`. For more information,
4275
4216
  # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4276
4217
  # Corresponds to the JSON property `languageCode`
4277
4218
  # @return [String]
@@ -4364,8 +4305,8 @@ module Google
4364
4305
  attr_accessor :value_detected_languages
4365
4306
 
4366
4307
  # If the value is non-textual, this field represents the type. Current valid
4367
- # values are: - blank (this indicates the field_value is normal text) - "
4368
- # unfilled_checkbox" - "filled_checkbox"
4308
+ # values are: - blank (this indicates the `field_value` is normal text) - `
4309
+ # unfilled_checkbox` - `filled_checkbox`
4369
4310
  # Corresponds to the JSON property `valueType`
4370
4311
  # @return [String]
4371
4312
  attr_accessor :value_type
@@ -4434,7 +4375,7 @@ module Google
4434
4375
  # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
4435
4376
  attr_accessor :detected_defects
4436
4377
 
4437
- # The overall quality score. Range [0, 1] where 1 is perfect quality.
4378
+ # The overall quality score. Range `[0, 1]` where 1 is perfect quality.
4438
4379
  # Corresponds to the JSON property `qualityScore`
4439
4380
  # @return [Float]
4440
4381
  attr_accessor :quality_score
@@ -4454,16 +4395,16 @@ module Google
4454
4395
  class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4455
4396
  include Google::Apis::Core::Hashable
4456
4397
 
4457
- # Confidence of detected defect. Range [0, 1] where 1 indicates strong
4398
+ # Confidence of detected defect. Range `[0, 1]` where 1 indicates strong
4458
4399
  # confidence of that the defect exists.
4459
4400
  # Corresponds to the JSON property `confidence`
4460
4401
  # @return [Float]
4461
4402
  attr_accessor :confidence
4462
4403
 
4463
- # Name of the defect type. Supported values are "quality/defect_blurry", "
4464
- # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
4465
- # defect_text_too_small", "quality/defect_document_cutoff", "quality/
4466
- # defect_text_cutoff", "quality/defect_glare"
4404
+ # Name of the defect type. Supported values are: - `quality/defect_blurry` - `
4405
+ # quality/defect_noisy` - `quality/defect_dark` - `quality/defect_faint` - `
4406
+ # quality/defect_text_too_small` - `quality/defect_document_cutoff` - `quality/
4407
+ # defect_text_cutoff` - `quality/defect_glare`
4467
4408
  # Corresponds to the JSON property `type`
4468
4409
  # @return [String]
4469
4410
  attr_accessor :type
@@ -4490,7 +4431,7 @@ module Google
4490
4431
 
4491
4432
  # Confidence of the current Layout within context of the object this layout is
4492
4433
  # for. e.g. confidence can be for a single token, a table, a visual element, etc.
4493
- # depending on context. Range [0, 1].
4434
+ # depending on context. Range `[0, 1]`.
4494
4435
  # Corresponds to the JSON property `confidence`
4495
4436
  # @return [Float]
4496
4437
  attr_accessor :confidence
@@ -5131,7 +5072,7 @@ module Google
5131
5072
  # @return [Google::Apis::DocumentaiV1beta2::GoogleTypeColor]
5132
5073
  attr_accessor :color
5133
5074
 
5134
- # Font family such as "Arial", "Times New Roman". https://www.w3schools.com/
5075
+ # Font family such as `Arial`, `Times New Roman`. https://www.w3schools.com/
5135
5076
  # cssref/pr_font_font-family.asp
5136
5077
  # Corresponds to the JSON property `fontFamily`
5137
5078
  # @return [String]
@@ -6058,6 +5999,44 @@ module Google
6058
5999
  end
6059
6000
  end
6060
6001
 
6002
+ # Metadata of the EvaluateProcessorVersion method.
6003
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
6004
+ include Google::Apis::Core::Hashable
6005
+
6006
+ # The common metadata for long running operations.
6007
+ # Corresponds to the JSON property `commonMetadata`
6008
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6009
+ attr_accessor :common_metadata
6010
+
6011
+ def initialize(**args)
6012
+ update!(**args)
6013
+ end
6014
+
6015
+ # Update properties of this object
6016
+ def update!(**args)
6017
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6018
+ end
6019
+ end
6020
+
6021
+ # Metadata of the EvaluateProcessorVersion method.
6022
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
6023
+ include Google::Apis::Core::Hashable
6024
+
6025
+ # The resource name of the created evaluation.
6026
+ # Corresponds to the JSON property `evaluation`
6027
+ # @return [String]
6028
+ attr_accessor :evaluation
6029
+
6030
+ def initialize(**args)
6031
+ update!(**args)
6032
+ end
6033
+
6034
+ # Update properties of this object
6035
+ def update!(**args)
6036
+ @evaluation = args[:evaluation] if args.key?(:evaluation)
6037
+ end
6038
+ end
6039
+
6061
6040
  # The status of human review on a processed document.
6062
6041
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
6063
6042
  include Google::Apis::Core::Hashable
@@ -6206,6 +6185,99 @@ module Google
6206
6185
  end
6207
6186
  end
6208
6187
 
6188
+ # The metadata that represents a processor version being created.
6189
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
6190
+ include Google::Apis::Core::Hashable
6191
+
6192
+ # The common metadata for long running operations.
6193
+ # Corresponds to the JSON property `commonMetadata`
6194
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata]
6195
+ attr_accessor :common_metadata
6196
+
6197
+ # The dataset validation information. This includes any and all errors with
6198
+ # documents and the dataset.
6199
+ # Corresponds to the JSON property `testDatasetValidation`
6200
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
6201
+ attr_accessor :test_dataset_validation
6202
+
6203
+ # The dataset validation information. This includes any and all errors with
6204
+ # documents and the dataset.
6205
+ # Corresponds to the JSON property `trainingDatasetValidation`
6206
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation]
6207
+ attr_accessor :training_dataset_validation
6208
+
6209
+ def initialize(**args)
6210
+ update!(**args)
6211
+ end
6212
+
6213
+ # Update properties of this object
6214
+ def update!(**args)
6215
+ @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
6216
+ @test_dataset_validation = args[:test_dataset_validation] if args.key?(:test_dataset_validation)
6217
+ @training_dataset_validation = args[:training_dataset_validation] if args.key?(:training_dataset_validation)
6218
+ end
6219
+ end
6220
+
6221
+ # The dataset validation information. This includes any and all errors with
6222
+ # documents and the dataset.
6223
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
6224
+ include Google::Apis::Core::Hashable
6225
+
6226
+ # The total number of dataset errors.
6227
+ # Corresponds to the JSON property `datasetErrorCount`
6228
+ # @return [Fixnum]
6229
+ attr_accessor :dataset_error_count
6230
+
6231
+ # Error information for the dataset as a whole. A maximum of 10 dataset errors
6232
+ # will be returned. A single dataset error is terminal for training.
6233
+ # Corresponds to the JSON property `datasetErrors`
6234
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
6235
+ attr_accessor :dataset_errors
6236
+
6237
+ # The total number of document errors.
6238
+ # Corresponds to the JSON property `documentErrorCount`
6239
+ # @return [Fixnum]
6240
+ attr_accessor :document_error_count
6241
+
6242
+ # Error information pertaining to specific documents. A maximum of 10 document
6243
+ # errors will be returned. Any document with errors will not be used throughout
6244
+ # training.
6245
+ # Corresponds to the JSON property `documentErrors`
6246
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleRpcStatus>]
6247
+ attr_accessor :document_errors
6248
+
6249
+ def initialize(**args)
6250
+ update!(**args)
6251
+ end
6252
+
6253
+ # Update properties of this object
6254
+ def update!(**args)
6255
+ @dataset_error_count = args[:dataset_error_count] if args.key?(:dataset_error_count)
6256
+ @dataset_errors = args[:dataset_errors] if args.key?(:dataset_errors)
6257
+ @document_error_count = args[:document_error_count] if args.key?(:document_error_count)
6258
+ @document_errors = args[:document_errors] if args.key?(:document_errors)
6259
+ end
6260
+ end
6261
+
6262
+ # The response for the TrainProcessorVersion method.
6263
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
6264
+ include Google::Apis::Core::Hashable
6265
+
6266
+ # The resource name of the processor version produced by training.
6267
+ # Corresponds to the JSON property `processorVersion`
6268
+ # @return [String]
6269
+ attr_accessor :processor_version
6270
+
6271
+ def initialize(**args)
6272
+ update!(**args)
6273
+ end
6274
+
6275
+ # Update properties of this object
6276
+ def update!(**args)
6277
+ @processor_version = args[:processor_version] if args.key?(:processor_version)
6278
+ end
6279
+ end
6280
+
6209
6281
  # The long running operation metadata for the undeploy processor version method.
6210
6282
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
6211
6283
  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.50.0"
19
+ GEM_VERSION = "0.52.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.11.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221017"
25
+ REVISION = "20230106"
26
26
  end
27
27
  end
28
28
  end
@@ -418,18 +418,6 @@ module Google
418
418
  include Google::Apis::Core::JsonObjectSupport
419
419
  end
420
420
 
421
- class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
422
- class Representation < Google::Apis::Core::JsonRepresentation; end
423
-
424
- include Google::Apis::Core::JsonObjectSupport
425
- end
426
-
427
- class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
428
- class Representation < Google::Apis::Core::JsonRepresentation; end
429
-
430
- include Google::Apis::Core::JsonObjectSupport
431
- end
432
-
433
421
  class GoogleCloudDocumentaiV1beta1Barcode
434
422
  class Representation < Google::Apis::Core::JsonRepresentation; end
435
423
 
@@ -1126,6 +1114,18 @@ module Google
1126
1114
  include Google::Apis::Core::JsonObjectSupport
1127
1115
  end
1128
1116
 
1117
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
1118
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1119
+
1120
+ include Google::Apis::Core::JsonObjectSupport
1121
+ end
1122
+
1123
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
1124
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1125
+
1126
+ include Google::Apis::Core::JsonObjectSupport
1127
+ end
1128
+
1129
1129
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
1130
1130
  class Representation < Google::Apis::Core::JsonRepresentation; end
1131
1131
 
@@ -1156,6 +1156,24 @@ module Google
1156
1156
  include Google::Apis::Core::JsonObjectSupport
1157
1157
  end
1158
1158
 
1159
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
1160
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1161
+
1162
+ include Google::Apis::Core::JsonObjectSupport
1163
+ end
1164
+
1165
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
1166
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1167
+
1168
+ include Google::Apis::Core::JsonObjectSupport
1169
+ end
1170
+
1171
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
1172
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1173
+
1174
+ include Google::Apis::Core::JsonObjectSupport
1175
+ end
1176
+
1159
1177
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
1160
1178
  class Representation < Google::Apis::Core::JsonRepresentation; end
1161
1179
 
@@ -1778,25 +1796,6 @@ module Google
1778
1796
  end
1779
1797
  end
1780
1798
 
1781
- class GoogleCloudDocumentaiV1alpha1AnalyzeHitlDataMetadata
1782
- # @private
1783
- class Representation < Google::Apis::Core::JsonRepresentation
1784
- property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1alpha1CommonOperationMetadata::Representation
1785
-
1786
- end
1787
- end
1788
-
1789
- class GoogleCloudDocumentaiV1alpha1CommonOperationMetadata
1790
- # @private
1791
- class Representation < Google::Apis::Core::JsonRepresentation
1792
- property :create_time, as: 'createTime'
1793
- property :resource, as: 'resource'
1794
- property :state, as: 'state'
1795
- property :state_message, as: 'stateMessage'
1796
- property :update_time, as: 'updateTime'
1797
- end
1798
- end
1799
-
1800
1799
  class GoogleCloudDocumentaiV1beta1Barcode
1801
1800
  # @private
1802
1801
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3085,6 +3084,21 @@ module Google
3085
3084
  end
3086
3085
  end
3087
3086
 
3087
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionMetadata
3088
+ # @private
3089
+ class Representation < Google::Apis::Core::JsonRepresentation
3090
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3091
+
3092
+ end
3093
+ end
3094
+
3095
+ class GoogleCloudDocumentaiV1beta3EvaluateProcessorVersionResponse
3096
+ # @private
3097
+ class Representation < Google::Apis::Core::JsonRepresentation
3098
+ property :evaluation, as: 'evaluation'
3099
+ end
3100
+ end
3101
+
3088
3102
  class GoogleCloudDocumentaiV1beta3HumanReviewStatus
3089
3103
  # @private
3090
3104
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3130,6 +3144,37 @@ module Google
3130
3144
  end
3131
3145
  end
3132
3146
 
3147
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadata
3148
+ # @private
3149
+ class Representation < Google::Apis::Core::JsonRepresentation
3150
+ property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3151
+
3152
+ property :test_dataset_validation, as: 'testDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
3153
+
3154
+ property :training_dataset_validation, as: 'trainingDatasetValidation', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation::Representation
3155
+
3156
+ end
3157
+ end
3158
+
3159
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionMetadataDatasetValidation
3160
+ # @private
3161
+ class Representation < Google::Apis::Core::JsonRepresentation
3162
+ property :dataset_error_count, as: 'datasetErrorCount'
3163
+ collection :dataset_errors, as: 'datasetErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
3164
+
3165
+ property :document_error_count, as: 'documentErrorCount'
3166
+ collection :document_errors, as: 'documentErrors', class: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta2::GoogleRpcStatus::Representation
3167
+
3168
+ end
3169
+ end
3170
+
3171
+ class GoogleCloudDocumentaiV1beta3TrainProcessorVersionResponse
3172
+ # @private
3173
+ class Representation < Google::Apis::Core::JsonRepresentation
3174
+ property :processor_version, as: 'processorVersion'
3175
+ end
3176
+ end
3177
+
3133
3178
  class GoogleCloudDocumentaiV1beta3UndeployProcessorVersionMetadata
3134
3179
  # @private
3135
3180
  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.50.0
4
+ version: 0.52.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-31 00:00:00.000000000 Z
11
+ date: 2023-01-15 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_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.50.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.52.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: []
@@ -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.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1beta2