google-apis-documentai_v1 0.41.0 → 0.42.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: a28c1b0b4dfc1f1ab8f63ea00fecdf5eb07634e8e6be06ec556a421e51561eee
4
- data.tar.gz: adc1004b767819f3248b547d0e673f59001304adc75135cc34b598468cbb392c
3
+ metadata.gz: 3533b1f266abb9d5a1ba57b3dbe90637e9a6a12f2199981fb691c694b5509814
4
+ data.tar.gz: ba2c2515716cd5e653953cfce171d95abb659a431441b5606ac298978d502d9f
5
5
  SHA512:
6
- metadata.gz: 868f99de13ea9443d68854d09ffef8173c9e4f3fb38b9617f1f69a24616bb9f7ab0ec9a6d17cce25438693b29cb3e528cf348b4e20b2b6826a826cf87ed36c97
7
- data.tar.gz: 87a187f60b5193d6481679bbca8045066366967a4bca6b245cdfd2699c3298b031df6b4ec6531fe1bf814dc65bf5470e9b618c901caa6722a49aca76ca98d8a7
6
+ metadata.gz: b5539a60eea3f75bd0b9327f411e38776b7aefe5c51862a695eb9a22089375fc6adb9beb799b840600c77ce46c8146046e50c340e487b9c5cf2ba905e05e5c27
7
+ data.tar.gz: a10bf6e4732dd5ef0f5e15295c55eec8e253113e42073a75ec8d8f96deff7acf03496b6d680d017ff3ee4e0cf6b4ad51c0afd7b38786dd2ca2f0f10908c5dcd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.42.0 (2022-07-12)
4
+
5
+ * Regenerated from discovery document revision 20220711
6
+ * Regenerated using generator version 0.9.0
7
+
3
8
  ### v0.41.0 (2022-07-01)
4
9
 
5
10
  * Regenerated using generator version 0.8.0
@@ -933,6 +933,46 @@ module Google
933
933
  end
934
934
  end
935
935
 
936
+ # Encodes the detailed information of a barcode.
937
+ class GoogleCloudDocumentaiV1Barcode
938
+ include Google::Apis::Core::Hashable
939
+
940
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
941
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
942
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
943
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
944
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
945
+ # Corresponds to the JSON property `format`
946
+ # @return [String]
947
+ attr_accessor :format
948
+
949
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
950
+ # www.google.com;;'.
951
+ # Corresponds to the JSON property `rawValue`
952
+ # @return [String]
953
+ attr_accessor :raw_value
954
+
955
+ # Value format describes the format of the value that a barcode encodes. The
956
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
957
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
958
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
959
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
960
+ # Corresponds to the JSON property `valueFormat`
961
+ # @return [String]
962
+ attr_accessor :value_format
963
+
964
+ def initialize(**args)
965
+ update!(**args)
966
+ end
967
+
968
+ # Update properties of this object
969
+ def update!(**args)
970
+ @format = args[:format] if args.key?(:format)
971
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
972
+ @value_format = args[:value_format] if args.key?(:value_format)
973
+ end
974
+ end
975
+
936
976
  # The common config to specify a set of documents used as input.
937
977
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
938
978
  include Google::Apis::Core::Hashable
@@ -1504,11 +1544,11 @@ module Google
1504
1544
  # Box or similar. It is not intended to model geographical locations (roads,
1505
1545
  # towns, mountains). In typical usage an address would be created via user input
1506
1546
  # or from importing existing data, depending on the type of process. Advice on
1507
- # address input / editing: - Use an i18n-ready address widget such as https://
1508
- # github.com/google/libaddressinput) - Users should not be presented with UI
1509
- # elements for input or editing of fields outside countries where that field is
1510
- # used. For more guidance on how to use this schema, please see: https://support.
1511
- # google.com/business/answer/6397478
1547
+ # address input / editing: - Use an internationalization-ready address widget
1548
+ # such as https://github.com/google/libaddressinput) - Users should not be
1549
+ # presented with UI elements for input or editing of fields outside countries
1550
+ # where that field is used. For more guidance on how to use this schema, please
1551
+ # see: https://support.google.com/business/answer/6397478
1512
1552
  # Corresponds to the JSON property `addressValue`
1513
1553
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
1514
1554
  attr_accessor :address_value
@@ -1674,6 +1714,11 @@ module Google
1674
1714
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock>]
1675
1715
  attr_accessor :blocks
1676
1716
 
1717
+ # A list of detected barcodes.
1718
+ # Corresponds to the JSON property `detectedBarcodes`
1719
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode>]
1720
+ attr_accessor :detected_barcodes
1721
+
1677
1722
  # A list of detected languages together with confidence.
1678
1723
  # Corresponds to the JSON property `detectedLanguages`
1679
1724
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
@@ -1757,6 +1802,7 @@ module Google
1757
1802
  # Update properties of this object
1758
1803
  def update!(**args)
1759
1804
  @blocks = args[:blocks] if args.key?(:blocks)
1805
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
1760
1806
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
1761
1807
  @dimension = args[:dimension] if args.key?(:dimension)
1762
1808
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -1874,6 +1920,31 @@ module Google
1874
1920
  end
1875
1921
  end
1876
1922
 
1923
+ # A detected barcode.
1924
+ class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
1925
+ include Google::Apis::Core::Hashable
1926
+
1927
+ # Encodes the detailed information of a barcode.
1928
+ # Corresponds to the JSON property `barcode`
1929
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode]
1930
+ attr_accessor :barcode
1931
+
1932
+ # Visual element describing a layout unit on a page.
1933
+ # Corresponds to the JSON property `layout`
1934
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
1935
+ attr_accessor :layout
1936
+
1937
+ def initialize(**args)
1938
+ update!(**args)
1939
+ end
1940
+
1941
+ # Update properties of this object
1942
+ def update!(**args)
1943
+ @barcode = args[:barcode] if args.key?(:barcode)
1944
+ @layout = args[:layout] if args.key?(:layout)
1945
+ end
1946
+ end
1947
+
1877
1948
  # Detected language for a structural component.
1878
1949
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
1879
1950
  include Google::Apis::Core::Hashable
@@ -2706,6 +2777,12 @@ module Google
2706
2777
  attr_accessor :document_splitter
2707
2778
  alias_method :document_splitter?, :document_splitter
2708
2779
 
2780
+ # If set, all the nested entities must be prefixed with the parents.
2781
+ # Corresponds to the JSON property `prefixedNamingOnProperties`
2782
+ # @return [Boolean]
2783
+ attr_accessor :prefixed_naming_on_properties
2784
+ alias_method :prefixed_naming_on_properties?, :prefixed_naming_on_properties
2785
+
2709
2786
  def initialize(**args)
2710
2787
  update!(**args)
2711
2788
  end
@@ -2714,6 +2791,7 @@ module Google
2714
2791
  def update!(**args)
2715
2792
  @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
2716
2793
  @document_splitter = args[:document_splitter] if args.key?(:document_splitter)
2794
+ @prefixed_naming_on_properties = args[:prefixed_naming_on_properties] if args.key?(:prefixed_naming_on_properties)
2717
2795
  end
2718
2796
  end
2719
2797
 
@@ -3168,6 +3246,31 @@ module Google
3168
3246
  end
3169
3247
  end
3170
3248
 
3249
+ # Response message for list processor types.
3250
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
3251
+ include Google::Apis::Core::Hashable
3252
+
3253
+ # Points to the next page, otherwise empty.
3254
+ # Corresponds to the JSON property `nextPageToken`
3255
+ # @return [String]
3256
+ attr_accessor :next_page_token
3257
+
3258
+ # The processor types.
3259
+ # Corresponds to the JSON property `processorTypes`
3260
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType>]
3261
+ attr_accessor :processor_types
3262
+
3263
+ def initialize(**args)
3264
+ update!(**args)
3265
+ end
3266
+
3267
+ # Update properties of this object
3268
+ def update!(**args)
3269
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3270
+ @processor_types = args[:processor_types] if args.key?(:processor_types)
3271
+ end
3272
+ end
3273
+
3171
3274
  # Response message for list processors.
3172
3275
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
3173
3276
  include Google::Apis::Core::Hashable
@@ -3855,6 +3958,46 @@ module Google
3855
3958
  end
3856
3959
  end
3857
3960
 
3961
+ # Encodes the detailed information of a barcode.
3962
+ class GoogleCloudDocumentaiV1beta1Barcode
3963
+ include Google::Apis::Core::Hashable
3964
+
3965
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
3966
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
3967
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
3968
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
3969
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
3970
+ # Corresponds to the JSON property `format`
3971
+ # @return [String]
3972
+ attr_accessor :format
3973
+
3974
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
3975
+ # www.google.com;;'.
3976
+ # Corresponds to the JSON property `rawValue`
3977
+ # @return [String]
3978
+ attr_accessor :raw_value
3979
+
3980
+ # Value format describes the format of the value that a barcode encodes. The
3981
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
3982
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
3983
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
3984
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
3985
+ # Corresponds to the JSON property `valueFormat`
3986
+ # @return [String]
3987
+ attr_accessor :value_format
3988
+
3989
+ def initialize(**args)
3990
+ update!(**args)
3991
+ end
3992
+
3993
+ # Update properties of this object
3994
+ def update!(**args)
3995
+ @format = args[:format] if args.key?(:format)
3996
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
3997
+ @value_format = args[:value_format] if args.key?(:value_format)
3998
+ end
3999
+ end
4000
+
3858
4001
  # Response to an batch document processing request. This is returned in the LRO
3859
4002
  # Operation after the operation is complete.
3860
4003
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
@@ -4112,11 +4255,11 @@ module Google
4112
4255
  # Box or similar. It is not intended to model geographical locations (roads,
4113
4256
  # towns, mountains). In typical usage an address would be created via user input
4114
4257
  # or from importing existing data, depending on the type of process. Advice on
4115
- # address input / editing: - Use an i18n-ready address widget such as https://
4116
- # github.com/google/libaddressinput) - Users should not be presented with UI
4117
- # elements for input or editing of fields outside countries where that field is
4118
- # used. For more guidance on how to use this schema, please see: https://support.
4119
- # google.com/business/answer/6397478
4258
+ # address input / editing: - Use an internationalization-ready address widget
4259
+ # such as https://github.com/google/libaddressinput) - Users should not be
4260
+ # presented with UI elements for input or editing of fields outside countries
4261
+ # where that field is used. For more guidance on how to use this schema, please
4262
+ # see: https://support.google.com/business/answer/6397478
4120
4263
  # Corresponds to the JSON property `addressValue`
4121
4264
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
4122
4265
  attr_accessor :address_value
@@ -4243,6 +4386,11 @@ module Google
4243
4386
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
4244
4387
  attr_accessor :blocks
4245
4388
 
4389
+ # A list of detected barcodes.
4390
+ # Corresponds to the JSON property `detectedBarcodes`
4391
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode>]
4392
+ attr_accessor :detected_barcodes
4393
+
4246
4394
  # A list of detected languages together with confidence.
4247
4395
  # Corresponds to the JSON property `detectedLanguages`
4248
4396
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
@@ -4326,6 +4474,7 @@ module Google
4326
4474
  # Update properties of this object
4327
4475
  def update!(**args)
4328
4476
  @blocks = args[:blocks] if args.key?(:blocks)
4477
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
4329
4478
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4330
4479
  @dimension = args[:dimension] if args.key?(:dimension)
4331
4480
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -4443,6 +4592,31 @@ module Google
4443
4592
  end
4444
4593
  end
4445
4594
 
4595
+ # A detected barcode.
4596
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
4597
+ include Google::Apis::Core::Hashable
4598
+
4599
+ # Encodes the detailed information of a barcode.
4600
+ # Corresponds to the JSON property `barcode`
4601
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode]
4602
+ attr_accessor :barcode
4603
+
4604
+ # Visual element describing a layout unit on a page.
4605
+ # Corresponds to the JSON property `layout`
4606
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
4607
+ attr_accessor :layout
4608
+
4609
+ def initialize(**args)
4610
+ update!(**args)
4611
+ end
4612
+
4613
+ # Update properties of this object
4614
+ def update!(**args)
4615
+ @barcode = args[:barcode] if args.key?(:barcode)
4616
+ @layout = args[:layout] if args.key?(:layout)
4617
+ end
4618
+ end
4619
+
4446
4620
  # Detected language for a structural component.
4447
4621
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4448
4622
  include Google::Apis::Core::Hashable
@@ -5617,6 +5791,46 @@ module Google
5617
5791
  end
5618
5792
  end
5619
5793
 
5794
+ # Encodes the detailed information of a barcode.
5795
+ class GoogleCloudDocumentaiV1beta2Barcode
5796
+ include Google::Apis::Core::Hashable
5797
+
5798
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
5799
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
5800
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
5801
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
5802
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
5803
+ # Corresponds to the JSON property `format`
5804
+ # @return [String]
5805
+ attr_accessor :format
5806
+
5807
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
5808
+ # www.google.com;;'.
5809
+ # Corresponds to the JSON property `rawValue`
5810
+ # @return [String]
5811
+ attr_accessor :raw_value
5812
+
5813
+ # Value format describes the format of the value that a barcode encodes. The
5814
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
5815
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
5816
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
5817
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
5818
+ # Corresponds to the JSON property `valueFormat`
5819
+ # @return [String]
5820
+ attr_accessor :value_format
5821
+
5822
+ def initialize(**args)
5823
+ update!(**args)
5824
+ end
5825
+
5826
+ # Update properties of this object
5827
+ def update!(**args)
5828
+ @format = args[:format] if args.key?(:format)
5829
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
5830
+ @value_format = args[:value_format] if args.key?(:value_format)
5831
+ end
5832
+ end
5833
+
5620
5834
  # Response to an batch document processing request. This is returned in the LRO
5621
5835
  # Operation after the operation is complete.
5622
5836
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
@@ -5880,11 +6094,11 @@ module Google
5880
6094
  # Box or similar. It is not intended to model geographical locations (roads,
5881
6095
  # towns, mountains). In typical usage an address would be created via user input
5882
6096
  # or from importing existing data, depending on the type of process. Advice on
5883
- # address input / editing: - Use an i18n-ready address widget such as https://
5884
- # github.com/google/libaddressinput) - Users should not be presented with UI
5885
- # elements for input or editing of fields outside countries where that field is
5886
- # used. For more guidance on how to use this schema, please see: https://support.
5887
- # google.com/business/answer/6397478
6097
+ # address input / editing: - Use an internationalization-ready address widget
6098
+ # such as https://github.com/google/libaddressinput) - Users should not be
6099
+ # presented with UI elements for input or editing of fields outside countries
6100
+ # where that field is used. For more guidance on how to use this schema, please
6101
+ # see: https://support.google.com/business/answer/6397478
5888
6102
  # Corresponds to the JSON property `addressValue`
5889
6103
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
5890
6104
  attr_accessor :address_value
@@ -6048,6 +6262,11 @@ module Google
6048
6262
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock>]
6049
6263
  attr_accessor :blocks
6050
6264
 
6265
+ # A list of detected barcodes.
6266
+ # Corresponds to the JSON property `detectedBarcodes`
6267
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode>]
6268
+ attr_accessor :detected_barcodes
6269
+
6051
6270
  # A list of detected languages together with confidence.
6052
6271
  # Corresponds to the JSON property `detectedLanguages`
6053
6272
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
@@ -6131,6 +6350,7 @@ module Google
6131
6350
  # Update properties of this object
6132
6351
  def update!(**args)
6133
6352
  @blocks = args[:blocks] if args.key?(:blocks)
6353
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
6134
6354
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6135
6355
  @dimension = args[:dimension] if args.key?(:dimension)
6136
6356
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -6248,6 +6468,31 @@ module Google
6248
6468
  end
6249
6469
  end
6250
6470
 
6471
+ # A detected barcode.
6472
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
6473
+ include Google::Apis::Core::Hashable
6474
+
6475
+ # Encodes the detailed information of a barcode.
6476
+ # Corresponds to the JSON property `barcode`
6477
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode]
6478
+ attr_accessor :barcode
6479
+
6480
+ # Visual element describing a layout unit on a page.
6481
+ # Corresponds to the JSON property `layout`
6482
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
6483
+ attr_accessor :layout
6484
+
6485
+ def initialize(**args)
6486
+ update!(**args)
6487
+ end
6488
+
6489
+ # Update properties of this object
6490
+ def update!(**args)
6491
+ @barcode = args[:barcode] if args.key?(:barcode)
6492
+ @layout = args[:layout] if args.key?(:layout)
6493
+ end
6494
+ end
6495
+
6251
6496
  # Detected language for a structural component.
6252
6497
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6253
6498
  include Google::Apis::Core::Hashable
@@ -8372,11 +8617,11 @@ module Google
8372
8617
  # Box or similar. It is not intended to model geographical locations (roads,
8373
8618
  # towns, mountains). In typical usage an address would be created via user input
8374
8619
  # or from importing existing data, depending on the type of process. Advice on
8375
- # address input / editing: - Use an i18n-ready address widget such as https://
8376
- # github.com/google/libaddressinput) - Users should not be presented with UI
8377
- # elements for input or editing of fields outside countries where that field is
8378
- # used. For more guidance on how to use this schema, please see: https://support.
8379
- # google.com/business/answer/6397478
8620
+ # address input / editing: - Use an internationalization-ready address widget
8621
+ # such as https://github.com/google/libaddressinput) - Users should not be
8622
+ # presented with UI elements for input or editing of fields outside countries
8623
+ # where that field is used. For more guidance on how to use this schema, please
8624
+ # see: https://support.google.com/business/answer/6397478
8380
8625
  class GoogleTypePostalAddress
8381
8626
  include Google::Apis::Core::Hashable
8382
8627
 
@@ -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.41.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220610"
25
+ REVISION = "20220711"
26
26
  end
27
27
  end
28
28
  end
@@ -268,6 +268,12 @@ module Google
268
268
  include Google::Apis::Core::JsonObjectSupport
269
269
  end
270
270
 
271
+ class GoogleCloudDocumentaiV1Barcode
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
271
277
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
272
278
  class Representation < Google::Apis::Core::JsonRepresentation; end
273
279
 
@@ -418,6 +424,12 @@ module Google
418
424
  include Google::Apis::Core::JsonObjectSupport
419
425
  end
420
426
 
427
+ class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
428
+ class Representation < Google::Apis::Core::JsonRepresentation; end
429
+
430
+ include Google::Apis::Core::JsonObjectSupport
431
+ end
432
+
421
433
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
422
434
  class Representation < Google::Apis::Core::JsonRepresentation; end
423
435
 
@@ -646,6 +658,12 @@ module Google
646
658
  include Google::Apis::Core::JsonObjectSupport
647
659
  end
648
660
 
661
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
649
667
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
650
668
  class Representation < Google::Apis::Core::JsonRepresentation; end
651
669
 
@@ -784,6 +802,12 @@ module Google
784
802
  include Google::Apis::Core::JsonObjectSupport
785
803
  end
786
804
 
805
+ class GoogleCloudDocumentaiV1beta1Barcode
806
+ class Representation < Google::Apis::Core::JsonRepresentation; end
807
+
808
+ include Google::Apis::Core::JsonObjectSupport
809
+ end
810
+
787
811
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
788
812
  class Representation < Google::Apis::Core::JsonRepresentation; end
789
813
 
@@ -844,6 +868,12 @@ module Google
844
868
  include Google::Apis::Core::JsonObjectSupport
845
869
  end
846
870
 
871
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
847
877
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
848
878
  class Representation < Google::Apis::Core::JsonRepresentation; end
849
879
 
@@ -1042,6 +1072,12 @@ module Google
1042
1072
  include Google::Apis::Core::JsonObjectSupport
1043
1073
  end
1044
1074
 
1075
+ class GoogleCloudDocumentaiV1beta2Barcode
1076
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1077
+
1078
+ include Google::Apis::Core::JsonObjectSupport
1079
+ end
1080
+
1045
1081
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
1046
1082
  class Representation < Google::Apis::Core::JsonRepresentation; end
1047
1083
 
@@ -1108,6 +1144,12 @@ module Google
1108
1144
  include Google::Apis::Core::JsonObjectSupport
1109
1145
  end
1110
1146
 
1147
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
1148
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1149
+
1150
+ include Google::Apis::Core::JsonObjectSupport
1151
+ end
1152
+
1111
1153
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
1112
1154
  class Representation < Google::Apis::Core::JsonRepresentation; end
1113
1155
 
@@ -1831,6 +1873,15 @@ module Google
1831
1873
  end
1832
1874
  end
1833
1875
 
1876
+ class GoogleCloudDocumentaiV1Barcode
1877
+ # @private
1878
+ class Representation < Google::Apis::Core::JsonRepresentation
1879
+ property :format, as: 'format'
1880
+ property :raw_value, as: 'rawValue'
1881
+ property :value_format, as: 'valueFormat'
1882
+ end
1883
+ end
1884
+
1834
1885
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
1835
1886
  # @private
1836
1887
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2055,6 +2106,8 @@ module Google
2055
2106
  class Representation < Google::Apis::Core::JsonRepresentation
2056
2107
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock::Representation
2057
2108
 
2109
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode::Representation
2110
+
2058
2111
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
2059
2112
 
2060
2113
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension::Representation
@@ -2117,6 +2170,16 @@ module Google
2117
2170
  end
2118
2171
  end
2119
2172
 
2173
+ class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
2174
+ # @private
2175
+ class Representation < Google::Apis::Core::JsonRepresentation
2176
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode::Representation
2177
+
2178
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
2179
+
2180
+ end
2181
+ end
2182
+
2120
2183
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2121
2184
  # @private
2122
2185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2373,6 +2436,7 @@ module Google
2373
2436
  class Representation < Google::Apis::Core::JsonRepresentation
2374
2437
  property :document_allow_multiple_labels, as: 'documentAllowMultipleLabels'
2375
2438
  property :document_splitter, as: 'documentSplitter'
2439
+ property :prefixed_naming_on_properties, as: 'prefixedNamingOnProperties'
2376
2440
  end
2377
2441
  end
2378
2442
 
@@ -2498,6 +2562,15 @@ module Google
2498
2562
  end
2499
2563
  end
2500
2564
 
2565
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
2566
+ # @private
2567
+ class Representation < Google::Apis::Core::JsonRepresentation
2568
+ property :next_page_token, as: 'nextPageToken'
2569
+ collection :processor_types, as: 'processorTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType::Representation
2570
+
2571
+ end
2572
+ end
2573
+
2501
2574
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
2502
2575
  # @private
2503
2576
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2709,6 +2782,15 @@ module Google
2709
2782
  end
2710
2783
  end
2711
2784
 
2785
+ class GoogleCloudDocumentaiV1beta1Barcode
2786
+ # @private
2787
+ class Representation < Google::Apis::Core::JsonRepresentation
2788
+ property :format, as: 'format'
2789
+ property :raw_value, as: 'rawValue'
2790
+ property :value_format, as: 'valueFormat'
2791
+ end
2792
+ end
2793
+
2712
2794
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
2713
2795
  # @private
2714
2796
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2808,6 +2890,8 @@ module Google
2808
2890
  class Representation < Google::Apis::Core::JsonRepresentation
2809
2891
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock::Representation
2810
2892
 
2893
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode::Representation
2894
+
2811
2895
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2812
2896
 
2813
2897
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension::Representation
@@ -2870,6 +2954,16 @@ module Google
2870
2954
  end
2871
2955
  end
2872
2956
 
2957
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
2958
+ # @private
2959
+ class Representation < Google::Apis::Core::JsonRepresentation
2960
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode::Representation
2961
+
2962
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
2963
+
2964
+ end
2965
+ end
2966
+
2873
2967
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2874
2968
  # @private
2875
2969
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3210,6 +3304,15 @@ module Google
3210
3304
  end
3211
3305
  end
3212
3306
 
3307
+ class GoogleCloudDocumentaiV1beta2Barcode
3308
+ # @private
3309
+ class Representation < Google::Apis::Core::JsonRepresentation
3310
+ property :format, as: 'format'
3311
+ property :raw_value, as: 'rawValue'
3312
+ property :value_format, as: 'valueFormat'
3313
+ end
3314
+ end
3315
+
3213
3316
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
3214
3317
  # @private
3215
3318
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3320,6 +3423,8 @@ module Google
3320
3423
  class Representation < Google::Apis::Core::JsonRepresentation
3321
3424
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock::Representation
3322
3425
 
3426
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode::Representation
3427
+
3323
3428
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
3324
3429
 
3325
3430
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension::Representation
@@ -3382,6 +3487,16 @@ module Google
3382
3487
  end
3383
3488
  end
3384
3489
 
3490
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
3491
+ # @private
3492
+ class Representation < Google::Apis::Core::JsonRepresentation
3493
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode::Representation
3494
+
3495
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
3496
+
3497
+ end
3498
+ end
3499
+
3385
3500
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
3386
3501
  # @private
3387
3502
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -304,6 +304,46 @@ module Google
304
304
  execute_or_queue_command(command, &block)
305
305
  end
306
306
 
307
+ # Lists the processor types that exist.
308
+ # @param [String] parent
309
+ # Required. The location of processor type to list. The available processor
310
+ # types may depend on the allow-listing on projects. Format: `projects/`project`/
311
+ # locations/`location``
312
+ # @param [Fixnum] page_size
313
+ # The maximum number of processor types to return. If unspecified, at most 100
314
+ # processor types will be returned. The maximum value is 500; values above 500
315
+ # will be coerced to 500.
316
+ # @param [String] page_token
317
+ # Used to retrieve the next page of results, empty if at the end of the list.
318
+ # @param [String] fields
319
+ # Selector specifying which fields to include in a partial response.
320
+ # @param [String] quota_user
321
+ # Available to use for quota purposes for server-side applications. Can be any
322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
+ # @param [Google::Apis::RequestOptions] options
324
+ # Request-specific options
325
+ #
326
+ # @yield [result, err] Result & error if block supplied
327
+ # @yieldparam result [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ListProcessorTypesResponse] parsed result object
328
+ # @yieldparam err [StandardError] error object if request failed
329
+ #
330
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ListProcessorTypesResponse]
331
+ #
332
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
335
+ def list_project_location_processor_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
336
+ command = make_simple_command(:get, 'v1/{+parent}/processorTypes', options)
337
+ command.response_representation = Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ListProcessorTypesResponse::Representation
338
+ command.response_class = Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ListProcessorTypesResponse
339
+ command.params['parent'] = parent unless parent.nil?
340
+ command.query['pageSize'] = page_size unless page_size.nil?
341
+ command.query['pageToken'] = page_token unless page_token.nil?
342
+ command.query['fields'] = fields unless fields.nil?
343
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
344
+ execute_or_queue_command(command, &block)
345
+ end
346
+
307
347
  # LRO endpoint to batch process many documents. The output is written to Cloud
308
348
  # Storage as JSON in the [Document] format.
309
349
  # @param [String] name
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.41.0
4
+ version: 0.42.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-18 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.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.42.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: []