google-apis-documentai_v1 0.41.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a28c1b0b4dfc1f1ab8f63ea00fecdf5eb07634e8e6be06ec556a421e51561eee
4
- data.tar.gz: adc1004b767819f3248b547d0e673f59001304adc75135cc34b598468cbb392c
3
+ metadata.gz: d1e039c9ce406332c9c57eb3f3bb03749f3b7f7ed077de4f6f7760898dc68042
4
+ data.tar.gz: fd857f81b25d0e3c738a316b751710801107f388b7928fff60488530650b42a0
5
5
  SHA512:
6
- metadata.gz: 868f99de13ea9443d68854d09ffef8173c9e4f3fb38b9617f1f69a24616bb9f7ab0ec9a6d17cce25438693b29cb3e528cf348b4e20b2b6826a826cf87ed36c97
7
- data.tar.gz: 87a187f60b5193d6481679bbca8045066366967a4bca6b245cdfd2699c3298b031df6b4ec6531fe1bf814dc65bf5470e9b618c901caa6722a49aca76ca98d8a7
6
+ metadata.gz: ce95fcb209f958d1a3e709b6b1c0fd38dfc6ba7150ae002406f3f276be19d5c67294b4e079ad0983eb68f6fa234c4a3f9abb9c42612230b47799a43f62fbad8d
7
+ data.tar.gz: 9b4723dc1ce77205cd8b17dc2000ff1ca0eb5f84562af67906d0b50f683fb75e652ad38432d72854bc4d3ae927cf601c5b1f19a58bb572fb18e935c384ba6378
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.44.0 (2022-08-10)
4
+
5
+ * Regenerated from discovery document revision 20220808
6
+
7
+ ### v0.43.0 (2022-07-26)
8
+
9
+ * Regenerated from discovery document revision 20220720
10
+
11
+ ### v0.42.0 (2022-07-12)
12
+
13
+ * Regenerated from discovery document revision 20220711
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.41.0 (2022-07-01)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -548,6 +548,11 @@ module Google
548
548
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus>]
549
549
  attr_accessor :individual_import_statuses
550
550
 
551
+ # Total number of the documents that are qualified for importing.
552
+ # Corresponds to the JSON property `totalDocumentCount`
553
+ # @return [Fixnum]
554
+ attr_accessor :total_document_count
555
+
551
556
  def initialize(**args)
552
557
  update!(**args)
553
558
  end
@@ -556,6 +561,7 @@ module Google
556
561
  def update!(**args)
557
562
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
558
563
  @individual_import_statuses = args[:individual_import_statuses] if args.key?(:individual_import_statuses)
564
+ @total_document_count = args[:total_document_count] if args.key?(:total_document_count)
559
565
  end
560
566
  end
561
567
 
@@ -933,6 +939,46 @@ module Google
933
939
  end
934
940
  end
935
941
 
942
+ # Encodes the detailed information of a barcode.
943
+ class GoogleCloudDocumentaiV1Barcode
944
+ include Google::Apis::Core::Hashable
945
+
946
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
947
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
948
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
949
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
950
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
951
+ # Corresponds to the JSON property `format`
952
+ # @return [String]
953
+ attr_accessor :format
954
+
955
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
956
+ # www.google.com;;'.
957
+ # Corresponds to the JSON property `rawValue`
958
+ # @return [String]
959
+ attr_accessor :raw_value
960
+
961
+ # Value format describes the format of the value that a barcode encodes. The
962
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
963
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
964
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
965
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
966
+ # Corresponds to the JSON property `valueFormat`
967
+ # @return [String]
968
+ attr_accessor :value_format
969
+
970
+ def initialize(**args)
971
+ update!(**args)
972
+ end
973
+
974
+ # Update properties of this object
975
+ def update!(**args)
976
+ @format = args[:format] if args.key?(:format)
977
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
978
+ @value_format = args[:value_format] if args.key?(:value_format)
979
+ end
980
+ end
981
+
936
982
  # The common config to specify a set of documents used as input.
937
983
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
938
984
  include Google::Apis::Core::Hashable
@@ -1504,11 +1550,11 @@ module Google
1504
1550
  # Box or similar. It is not intended to model geographical locations (roads,
1505
1551
  # towns, mountains). In typical usage an address would be created via user input
1506
1552
  # 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
1553
+ # address input / editing: - Use an internationalization-ready address widget
1554
+ # such as https://github.com/google/libaddressinput) - Users should not be
1555
+ # presented with UI elements for input or editing of fields outside countries
1556
+ # where that field is used. For more guidance on how to use this schema, please
1557
+ # see: https://support.google.com/business/answer/6397478
1512
1558
  # Corresponds to the JSON property `addressValue`
1513
1559
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
1514
1560
  attr_accessor :address_value
@@ -1537,9 +1583,9 @@ module Google
1537
1583
  # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
1538
1584
  # calendar day in a particular time zone. * When neither time_zone nor
1539
1585
  # utc_offset is set: a civil time on a calendar day in local time. The date is
1540
- # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
1541
- # considered not to have a specific year. month and day must have valid, non-
1542
- # zero values. This type may also be used to represent a physical time if all
1586
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
1587
+ # the DateTime is considered not to have a specific year, month, or day
1588
+ # respectively. This type may also be used to represent a physical time if all
1543
1589
  # the date and time fields are set and either case of the `time_offset` oneof is
1544
1590
  # set. Consider using `Timestamp` message for physical time instead. If your use
1545
1591
  # case also would like to store the user's timezone, that can be done in another
@@ -1674,6 +1720,11 @@ module Google
1674
1720
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock>]
1675
1721
  attr_accessor :blocks
1676
1722
 
1723
+ # A list of detected barcodes.
1724
+ # Corresponds to the JSON property `detectedBarcodes`
1725
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode>]
1726
+ attr_accessor :detected_barcodes
1727
+
1677
1728
  # A list of detected languages together with confidence.
1678
1729
  # Corresponds to the JSON property `detectedLanguages`
1679
1730
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
@@ -1757,6 +1808,7 @@ module Google
1757
1808
  # Update properties of this object
1758
1809
  def update!(**args)
1759
1810
  @blocks = args[:blocks] if args.key?(:blocks)
1811
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
1760
1812
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
1761
1813
  @dimension = args[:dimension] if args.key?(:dimension)
1762
1814
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -1874,6 +1926,31 @@ module Google
1874
1926
  end
1875
1927
  end
1876
1928
 
1929
+ # A detected barcode.
1930
+ class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
1931
+ include Google::Apis::Core::Hashable
1932
+
1933
+ # Encodes the detailed information of a barcode.
1934
+ # Corresponds to the JSON property `barcode`
1935
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode]
1936
+ attr_accessor :barcode
1937
+
1938
+ # Visual element describing a layout unit on a page.
1939
+ # Corresponds to the JSON property `layout`
1940
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
1941
+ attr_accessor :layout
1942
+
1943
+ def initialize(**args)
1944
+ update!(**args)
1945
+ end
1946
+
1947
+ # Update properties of this object
1948
+ def update!(**args)
1949
+ @barcode = args[:barcode] if args.key?(:barcode)
1950
+ @layout = args[:layout] if args.key?(:layout)
1951
+ end
1952
+ end
1953
+
1877
1954
  # Detected language for a structural component.
1878
1955
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
1879
1956
  include Google::Apis::Core::Hashable
@@ -2706,6 +2783,20 @@ module Google
2706
2783
  attr_accessor :document_splitter
2707
2784
  alias_method :document_splitter?, :document_splitter
2708
2785
 
2786
+ # If set, all the nested entities must be prefixed with the parents.
2787
+ # Corresponds to the JSON property `prefixedNamingOnProperties`
2788
+ # @return [Boolean]
2789
+ attr_accessor :prefixed_naming_on_properties
2790
+ alias_method :prefixed_naming_on_properties?, :prefixed_naming_on_properties
2791
+
2792
+ # If set, we will skip the naming format validation in the schema. So the string
2793
+ # values in `DocumentSchema.EntityType.name` and `DocumentSchema.EntityType.
2794
+ # Property.name` will not be checked.
2795
+ # Corresponds to the JSON property `skipNamingValidation`
2796
+ # @return [Boolean]
2797
+ attr_accessor :skip_naming_validation
2798
+ alias_method :skip_naming_validation?, :skip_naming_validation
2799
+
2709
2800
  def initialize(**args)
2710
2801
  update!(**args)
2711
2802
  end
@@ -2714,6 +2805,8 @@ module Google
2714
2805
  def update!(**args)
2715
2806
  @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
2716
2807
  @document_splitter = args[:document_splitter] if args.key?(:document_splitter)
2808
+ @prefixed_naming_on_properties = args[:prefixed_naming_on_properties] if args.key?(:prefixed_naming_on_properties)
2809
+ @skip_naming_validation = args[:skip_naming_validation] if args.key?(:skip_naming_validation)
2717
2810
  end
2718
2811
  end
2719
2812
 
@@ -3168,6 +3261,31 @@ module Google
3168
3261
  end
3169
3262
  end
3170
3263
 
3264
+ # Response message for list processor types.
3265
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
3266
+ include Google::Apis::Core::Hashable
3267
+
3268
+ # Points to the next page, otherwise empty.
3269
+ # Corresponds to the JSON property `nextPageToken`
3270
+ # @return [String]
3271
+ attr_accessor :next_page_token
3272
+
3273
+ # The processor types.
3274
+ # Corresponds to the JSON property `processorTypes`
3275
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType>]
3276
+ attr_accessor :processor_types
3277
+
3278
+ def initialize(**args)
3279
+ update!(**args)
3280
+ end
3281
+
3282
+ # Update properties of this object
3283
+ def update!(**args)
3284
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3285
+ @processor_types = args[:processor_types] if args.key?(:processor_types)
3286
+ end
3287
+ end
3288
+
3171
3289
  # Response message for list processors.
3172
3290
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
3173
3291
  include Google::Apis::Core::Hashable
@@ -3855,6 +3973,46 @@ module Google
3855
3973
  end
3856
3974
  end
3857
3975
 
3976
+ # Encodes the detailed information of a barcode.
3977
+ class GoogleCloudDocumentaiV1beta1Barcode
3978
+ include Google::Apis::Core::Hashable
3979
+
3980
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
3981
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
3982
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
3983
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
3984
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
3985
+ # Corresponds to the JSON property `format`
3986
+ # @return [String]
3987
+ attr_accessor :format
3988
+
3989
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
3990
+ # www.google.com;;'.
3991
+ # Corresponds to the JSON property `rawValue`
3992
+ # @return [String]
3993
+ attr_accessor :raw_value
3994
+
3995
+ # Value format describes the format of the value that a barcode encodes. The
3996
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
3997
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
3998
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
3999
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
4000
+ # Corresponds to the JSON property `valueFormat`
4001
+ # @return [String]
4002
+ attr_accessor :value_format
4003
+
4004
+ def initialize(**args)
4005
+ update!(**args)
4006
+ end
4007
+
4008
+ # Update properties of this object
4009
+ def update!(**args)
4010
+ @format = args[:format] if args.key?(:format)
4011
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
4012
+ @value_format = args[:value_format] if args.key?(:value_format)
4013
+ end
4014
+ end
4015
+
3858
4016
  # Response to an batch document processing request. This is returned in the LRO
3859
4017
  # Operation after the operation is complete.
3860
4018
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
@@ -4112,11 +4270,11 @@ module Google
4112
4270
  # Box or similar. It is not intended to model geographical locations (roads,
4113
4271
  # towns, mountains). In typical usage an address would be created via user input
4114
4272
  # 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
4273
+ # address input / editing: - Use an internationalization-ready address widget
4274
+ # such as https://github.com/google/libaddressinput) - Users should not be
4275
+ # presented with UI elements for input or editing of fields outside countries
4276
+ # where that field is used. For more guidance on how to use this schema, please
4277
+ # see: https://support.google.com/business/answer/6397478
4120
4278
  # Corresponds to the JSON property `addressValue`
4121
4279
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
4122
4280
  attr_accessor :address_value
@@ -4145,9 +4303,9 @@ module Google
4145
4303
  # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
4146
4304
  # calendar day in a particular time zone. * When neither time_zone nor
4147
4305
  # utc_offset is set: a civil time on a calendar day in local time. The date is
4148
- # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
4149
- # considered not to have a specific year. month and day must have valid, non-
4150
- # zero values. This type may also be used to represent a physical time if all
4306
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
4307
+ # the DateTime is considered not to have a specific year, month, or day
4308
+ # respectively. This type may also be used to represent a physical time if all
4151
4309
  # the date and time fields are set and either case of the `time_offset` oneof is
4152
4310
  # set. Consider using `Timestamp` message for physical time instead. If your use
4153
4311
  # case also would like to store the user's timezone, that can be done in another
@@ -4243,6 +4401,11 @@ module Google
4243
4401
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
4244
4402
  attr_accessor :blocks
4245
4403
 
4404
+ # A list of detected barcodes.
4405
+ # Corresponds to the JSON property `detectedBarcodes`
4406
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode>]
4407
+ attr_accessor :detected_barcodes
4408
+
4246
4409
  # A list of detected languages together with confidence.
4247
4410
  # Corresponds to the JSON property `detectedLanguages`
4248
4411
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
@@ -4326,6 +4489,7 @@ module Google
4326
4489
  # Update properties of this object
4327
4490
  def update!(**args)
4328
4491
  @blocks = args[:blocks] if args.key?(:blocks)
4492
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
4329
4493
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4330
4494
  @dimension = args[:dimension] if args.key?(:dimension)
4331
4495
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -4443,6 +4607,31 @@ module Google
4443
4607
  end
4444
4608
  end
4445
4609
 
4610
+ # A detected barcode.
4611
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
4612
+ include Google::Apis::Core::Hashable
4613
+
4614
+ # Encodes the detailed information of a barcode.
4615
+ # Corresponds to the JSON property `barcode`
4616
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode]
4617
+ attr_accessor :barcode
4618
+
4619
+ # Visual element describing a layout unit on a page.
4620
+ # Corresponds to the JSON property `layout`
4621
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
4622
+ attr_accessor :layout
4623
+
4624
+ def initialize(**args)
4625
+ update!(**args)
4626
+ end
4627
+
4628
+ # Update properties of this object
4629
+ def update!(**args)
4630
+ @barcode = args[:barcode] if args.key?(:barcode)
4631
+ @layout = args[:layout] if args.key?(:layout)
4632
+ end
4633
+ end
4634
+
4446
4635
  # Detected language for a structural component.
4447
4636
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4448
4637
  include Google::Apis::Core::Hashable
@@ -5617,6 +5806,46 @@ module Google
5617
5806
  end
5618
5807
  end
5619
5808
 
5809
+ # Encodes the detailed information of a barcode.
5810
+ class GoogleCloudDocumentaiV1beta2Barcode
5811
+ include Google::Apis::Core::Hashable
5812
+
5813
+ # Format of a barcode. The supported formats are: CODE_128: Code 128 type.
5814
+ # CODE_39: Code 39 type. CODE_93: Code 93 type. CODABAR: Codabar type.
5815
+ # DATA_MATRIX: 2D Data Matrix type. ITF: ITF type. EAN_13: EAN-13 type. EAN_8:
5816
+ # EAN-8 type. QR_CODE: 2D QR code type. UPC_A: UPC-A type. UPC_E: UPC-E type.
5817
+ # PDF417: PDF417 type. AZTEC: 2D Aztec code type. DATABAR: GS1 DataBar code type.
5818
+ # Corresponds to the JSON property `format`
5819
+ # @return [String]
5820
+ attr_accessor :format
5821
+
5822
+ # Raw value encoded in the barcode. For example, 'MEBKM:TITLE:Google;URL:https://
5823
+ # www.google.com;;'.
5824
+ # Corresponds to the JSON property `rawValue`
5825
+ # @return [String]
5826
+ attr_accessor :raw_value
5827
+
5828
+ # Value format describes the format of the value that a barcode encodes. The
5829
+ # supported formats are: CONTACT_INFO: Contact information. EMAIL: Email address.
5830
+ # ISBN: ISBN identifier. PHONE: Phone number. PRODUCT: Product. SMS: SMS
5831
+ # message. TEXT: Text string. URL: URL address. WIFI: Wifi information. GEO: Geo-
5832
+ # localization. CALENDAR_EVENT: Calendar event. DRIVER_LICENSE: Driver's license.
5833
+ # Corresponds to the JSON property `valueFormat`
5834
+ # @return [String]
5835
+ attr_accessor :value_format
5836
+
5837
+ def initialize(**args)
5838
+ update!(**args)
5839
+ end
5840
+
5841
+ # Update properties of this object
5842
+ def update!(**args)
5843
+ @format = args[:format] if args.key?(:format)
5844
+ @raw_value = args[:raw_value] if args.key?(:raw_value)
5845
+ @value_format = args[:value_format] if args.key?(:value_format)
5846
+ end
5847
+ end
5848
+
5620
5849
  # Response to an batch document processing request. This is returned in the LRO
5621
5850
  # Operation after the operation is complete.
5622
5851
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
@@ -5880,11 +6109,11 @@ module Google
5880
6109
  # Box or similar. It is not intended to model geographical locations (roads,
5881
6110
  # towns, mountains). In typical usage an address would be created via user input
5882
6111
  # 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
6112
+ # address input / editing: - Use an internationalization-ready address widget
6113
+ # such as https://github.com/google/libaddressinput) - Users should not be
6114
+ # presented with UI elements for input or editing of fields outside countries
6115
+ # where that field is used. For more guidance on how to use this schema, please
6116
+ # see: https://support.google.com/business/answer/6397478
5888
6117
  # Corresponds to the JSON property `addressValue`
5889
6118
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
5890
6119
  attr_accessor :address_value
@@ -5913,9 +6142,9 @@ module Google
5913
6142
  # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
5914
6143
  # calendar day in a particular time zone. * When neither time_zone nor
5915
6144
  # utc_offset is set: a civil time on a calendar day in local time. The date is
5916
- # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
5917
- # considered not to have a specific year. month and day must have valid, non-
5918
- # zero values. This type may also be used to represent a physical time if all
6145
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
6146
+ # the DateTime is considered not to have a specific year, month, or day
6147
+ # respectively. This type may also be used to represent a physical time if all
5919
6148
  # the date and time fields are set and either case of the `time_offset` oneof is
5920
6149
  # set. Consider using `Timestamp` message for physical time instead. If your use
5921
6150
  # case also would like to store the user's timezone, that can be done in another
@@ -6048,6 +6277,11 @@ module Google
6048
6277
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock>]
6049
6278
  attr_accessor :blocks
6050
6279
 
6280
+ # A list of detected barcodes.
6281
+ # Corresponds to the JSON property `detectedBarcodes`
6282
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode>]
6283
+ attr_accessor :detected_barcodes
6284
+
6051
6285
  # A list of detected languages together with confidence.
6052
6286
  # Corresponds to the JSON property `detectedLanguages`
6053
6287
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
@@ -6131,6 +6365,7 @@ module Google
6131
6365
  # Update properties of this object
6132
6366
  def update!(**args)
6133
6367
  @blocks = args[:blocks] if args.key?(:blocks)
6368
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
6134
6369
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6135
6370
  @dimension = args[:dimension] if args.key?(:dimension)
6136
6371
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -6248,6 +6483,31 @@ module Google
6248
6483
  end
6249
6484
  end
6250
6485
 
6486
+ # A detected barcode.
6487
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
6488
+ include Google::Apis::Core::Hashable
6489
+
6490
+ # Encodes the detailed information of a barcode.
6491
+ # Corresponds to the JSON property `barcode`
6492
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode]
6493
+ attr_accessor :barcode
6494
+
6495
+ # Visual element describing a layout unit on a page.
6496
+ # Corresponds to the JSON property `layout`
6497
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
6498
+ attr_accessor :layout
6499
+
6500
+ def initialize(**args)
6501
+ update!(**args)
6502
+ end
6503
+
6504
+ # Update properties of this object
6505
+ def update!(**args)
6506
+ @barcode = args[:barcode] if args.key?(:barcode)
6507
+ @layout = args[:layout] if args.key?(:layout)
6508
+ end
6509
+ end
6510
+
6251
6511
  # Detected language for a structural component.
6252
6512
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6253
6513
  include Google::Apis::Core::Hashable
@@ -8252,9 +8512,9 @@ module Google
8252
8512
  # from UTC. * When time_zone is set and utc_offset is unset: a civil time on a
8253
8513
  # calendar day in a particular time zone. * When neither time_zone nor
8254
8514
  # utc_offset is set: a civil time on a calendar day in local time. The date is
8255
- # relative to the Proleptic Gregorian Calendar. If year is 0, the DateTime is
8256
- # considered not to have a specific year. month and day must have valid, non-
8257
- # zero values. This type may also be used to represent a physical time if all
8515
+ # relative to the Proleptic Gregorian Calendar. If year, month, or day are 0,
8516
+ # the DateTime is considered not to have a specific year, month, or day
8517
+ # respectively. This type may also be used to represent a physical time if all
8258
8518
  # the date and time fields are set and either case of the `time_offset` oneof is
8259
8519
  # set. Consider using `Timestamp` message for physical time instead. If your use
8260
8520
  # case also would like to store the user's timezone, that can be done in another
@@ -8263,34 +8523,38 @@ module Google
8263
8523
  class GoogleTypeDateTime
8264
8524
  include Google::Apis::Core::Hashable
8265
8525
 
8266
- # Required. Day of month. Must be from 1 to 31 and valid for the year and month.
8526
+ # Optional. Day of month. Must be from 1 to 31 and valid for the year and month,
8527
+ # or 0 if specifying a datetime without a day.
8267
8528
  # Corresponds to the JSON property `day`
8268
8529
  # @return [Fixnum]
8269
8530
  attr_accessor :day
8270
8531
 
8271
- # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API may
8272
- # choose to allow the value "24:00:00" for scenarios like business closing time.
8532
+ # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults to
8533
+ # 0 (midnight). An API may choose to allow the value "24:00:00" for scenarios
8534
+ # like business closing time.
8273
8535
  # Corresponds to the JSON property `hours`
8274
8536
  # @return [Fixnum]
8275
8537
  attr_accessor :hours
8276
8538
 
8277
- # Required. Minutes of hour of day. Must be from 0 to 59.
8539
+ # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
8278
8540
  # Corresponds to the JSON property `minutes`
8279
8541
  # @return [Fixnum]
8280
8542
  attr_accessor :minutes
8281
8543
 
8282
- # Required. Month of year. Must be from 1 to 12.
8544
+ # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a datetime
8545
+ # without a month.
8283
8546
  # Corresponds to the JSON property `month`
8284
8547
  # @return [Fixnum]
8285
8548
  attr_accessor :month
8286
8549
 
8287
- # Required. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
8550
+ # Optional. Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999,
8551
+ # defaults to 0.
8288
8552
  # Corresponds to the JSON property `nanos`
8289
8553
  # @return [Fixnum]
8290
8554
  attr_accessor :nanos
8291
8555
 
8292
- # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
8293
- # API may allow the value 60 if it allows leap-seconds.
8556
+ # Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
8557
+ # defaults to 0. An API may allow the value 60 if it allows leap-seconds.
8294
8558
  # Corresponds to the JSON property `seconds`
8295
8559
  # @return [Fixnum]
8296
8560
  attr_accessor :seconds
@@ -8372,11 +8636,11 @@ module Google
8372
8636
  # Box or similar. It is not intended to model geographical locations (roads,
8373
8637
  # towns, mountains). In typical usage an address would be created via user input
8374
8638
  # 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
8639
+ # address input / editing: - Use an internationalization-ready address widget
8640
+ # such as https://github.com/google/libaddressinput) - Users should not be
8641
+ # presented with UI elements for input or editing of fields outside countries
8642
+ # where that field is used. For more guidance on how to use this schema, please
8643
+ # see: https://support.google.com/business/answer/6397478
8380
8644
  class GoogleTypePostalAddress
8381
8645
  include Google::Apis::Core::Hashable
8382
8646
 
@@ -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.44.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 = "20220808"
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
 
@@ -1694,6 +1736,7 @@ module Google
1694
1736
 
1695
1737
  collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1696
1738
 
1739
+ property :total_document_count, as: 'totalDocumentCount'
1697
1740
  end
1698
1741
  end
1699
1742
 
@@ -1831,6 +1874,15 @@ module Google
1831
1874
  end
1832
1875
  end
1833
1876
 
1877
+ class GoogleCloudDocumentaiV1Barcode
1878
+ # @private
1879
+ class Representation < Google::Apis::Core::JsonRepresentation
1880
+ property :format, as: 'format'
1881
+ property :raw_value, as: 'rawValue'
1882
+ property :value_format, as: 'valueFormat'
1883
+ end
1884
+ end
1885
+
1834
1886
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
1835
1887
  # @private
1836
1888
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2055,6 +2107,8 @@ module Google
2055
2107
  class Representation < Google::Apis::Core::JsonRepresentation
2056
2108
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock::Representation
2057
2109
 
2110
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode::Representation
2111
+
2058
2112
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
2059
2113
 
2060
2114
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension::Representation
@@ -2117,6 +2171,16 @@ module Google
2117
2171
  end
2118
2172
  end
2119
2173
 
2174
+ class GoogleCloudDocumentaiV1DocumentPageDetectedBarcode
2175
+ # @private
2176
+ class Representation < Google::Apis::Core::JsonRepresentation
2177
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Barcode::Representation
2178
+
2179
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
2180
+
2181
+ end
2182
+ end
2183
+
2120
2184
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2121
2185
  # @private
2122
2186
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2373,6 +2437,8 @@ module Google
2373
2437
  class Representation < Google::Apis::Core::JsonRepresentation
2374
2438
  property :document_allow_multiple_labels, as: 'documentAllowMultipleLabels'
2375
2439
  property :document_splitter, as: 'documentSplitter'
2440
+ property :prefixed_naming_on_properties, as: 'prefixedNamingOnProperties'
2441
+ property :skip_naming_validation, as: 'skipNamingValidation'
2376
2442
  end
2377
2443
  end
2378
2444
 
@@ -2498,6 +2564,15 @@ module Google
2498
2564
  end
2499
2565
  end
2500
2566
 
2567
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
2568
+ # @private
2569
+ class Representation < Google::Apis::Core::JsonRepresentation
2570
+ property :next_page_token, as: 'nextPageToken'
2571
+ collection :processor_types, as: 'processorTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessorType::Representation
2572
+
2573
+ end
2574
+ end
2575
+
2501
2576
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
2502
2577
  # @private
2503
2578
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2709,6 +2784,15 @@ module Google
2709
2784
  end
2710
2785
  end
2711
2786
 
2787
+ class GoogleCloudDocumentaiV1beta1Barcode
2788
+ # @private
2789
+ class Representation < Google::Apis::Core::JsonRepresentation
2790
+ property :format, as: 'format'
2791
+ property :raw_value, as: 'rawValue'
2792
+ property :value_format, as: 'valueFormat'
2793
+ end
2794
+ end
2795
+
2712
2796
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
2713
2797
  # @private
2714
2798
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2808,6 +2892,8 @@ module Google
2808
2892
  class Representation < Google::Apis::Core::JsonRepresentation
2809
2893
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock::Representation
2810
2894
 
2895
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode::Representation
2896
+
2811
2897
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2812
2898
 
2813
2899
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension::Representation
@@ -2870,6 +2956,16 @@ module Google
2870
2956
  end
2871
2957
  end
2872
2958
 
2959
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
2960
+ # @private
2961
+ class Representation < Google::Apis::Core::JsonRepresentation
2962
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1Barcode::Representation
2963
+
2964
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
2965
+
2966
+ end
2967
+ end
2968
+
2873
2969
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2874
2970
  # @private
2875
2971
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3210,6 +3306,15 @@ module Google
3210
3306
  end
3211
3307
  end
3212
3308
 
3309
+ class GoogleCloudDocumentaiV1beta2Barcode
3310
+ # @private
3311
+ class Representation < Google::Apis::Core::JsonRepresentation
3312
+ property :format, as: 'format'
3313
+ property :raw_value, as: 'rawValue'
3314
+ property :value_format, as: 'valueFormat'
3315
+ end
3316
+ end
3317
+
3213
3318
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
3214
3319
  # @private
3215
3320
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3320,6 +3425,8 @@ module Google
3320
3425
  class Representation < Google::Apis::Core::JsonRepresentation
3321
3426
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock::Representation
3322
3427
 
3428
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode::Representation
3429
+
3323
3430
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
3324
3431
 
3325
3432
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension::Representation
@@ -3382,6 +3489,16 @@ module Google
3382
3489
  end
3383
3490
  end
3384
3491
 
3492
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
3493
+ # @private
3494
+ class Representation < Google::Apis::Core::JsonRepresentation
3495
+ property :barcode, as: 'barcode', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2Barcode::Representation
3496
+
3497
+ property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
3498
+
3499
+ end
3500
+ end
3501
+
3385
3502
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
3386
3503
  # @private
3387
3504
  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.44.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-08-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_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.44.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: []