google-apis-documentai_v1 0.39.0 → 0.42.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: d1af260fcaeb07534ec1c40a85b1cd1b1cbc06ec39535bf7054dde3d87b6900d
4
- data.tar.gz: 6c7f6d7c237afc4386ea8a4c129c196714aadf52c842e6211124a8734a55e9fc
3
+ metadata.gz: 3533b1f266abb9d5a1ba57b3dbe90637e9a6a12f2199981fb691c694b5509814
4
+ data.tar.gz: ba2c2515716cd5e653953cfce171d95abb659a431441b5606ac298978d502d9f
5
5
  SHA512:
6
- metadata.gz: 92f4199dcaea22eb3ea406ffb8ebff62205c89d84725222ee55d1d6399a61489e7846eb995bbc2574e688bdcecd698586499e49b7438afb5eda8f661f1731da7
7
- data.tar.gz: 88804bb6dc8254f0945105bbde2e9fe025e487ad21272c4cf38ecc06a894c24816018899944953872fc38b3ca468a9199f3dfaf72c75cf848580dfd9a6b9c36c
6
+ metadata.gz: b5539a60eea3f75bd0b9327f411e38776b7aefe5c51862a695eb9a22089375fc6adb9beb799b840600c77ce46c8146046e50c340e487b9c5cf2ba905e05e5c27
7
+ data.tar.gz: a10bf6e4732dd5ef0f5e15295c55eec8e253113e42073a75ec8d8f96deff7acf03496b6d680d017ff3ee4e0cf6b4ad51c0afd7b38786dd2ca2f0f10908c5dcd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
8
+ ### v0.41.0 (2022-07-01)
9
+
10
+ * Regenerated using generator version 0.8.0
11
+
12
+ ### v0.40.0 (2022-06-18)
13
+
14
+ * Regenerated using generator version 0.7.0
15
+ * Regenerated from discovery document revision 20220610
16
+
3
17
  ### v0.39.0 (2022-06-08)
4
18
 
5
19
  * Regenerated from discovery document revision 20220602
@@ -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
@@ -2546,6 +2617,184 @@ module Google
2546
2617
  end
2547
2618
  end
2548
2619
 
2620
+ # The schema defines the output of the processed document by a processor.
2621
+ class GoogleCloudDocumentaiV1DocumentSchema
2622
+ include Google::Apis::Core::Hashable
2623
+
2624
+ # Description of the schema.
2625
+ # Corresponds to the JSON property `description`
2626
+ # @return [String]
2627
+ attr_accessor :description
2628
+
2629
+ # Display name to show to users.
2630
+ # Corresponds to the JSON property `displayName`
2631
+ # @return [String]
2632
+ attr_accessor :display_name
2633
+
2634
+ # Entity types of the schema.
2635
+ # Corresponds to the JSON property `entityTypes`
2636
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType>]
2637
+ attr_accessor :entity_types
2638
+
2639
+ # Metadata for global schema behavior.
2640
+ # Corresponds to the JSON property `metadata`
2641
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaMetadata]
2642
+ attr_accessor :metadata
2643
+
2644
+ def initialize(**args)
2645
+ update!(**args)
2646
+ end
2647
+
2648
+ # Update properties of this object
2649
+ def update!(**args)
2650
+ @description = args[:description] if args.key?(:description)
2651
+ @display_name = args[:display_name] if args.key?(:display_name)
2652
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
2653
+ @metadata = args[:metadata] if args.key?(:metadata)
2654
+ end
2655
+ end
2656
+
2657
+ # EntityType is the wrapper of a label of the corresponding model with detailed
2658
+ # attributes and limitations for entity-based processors. Multiple types can
2659
+ # also compose a dependency tree to represent nested types.
2660
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityType
2661
+ include Google::Apis::Core::Hashable
2662
+
2663
+ # The entity type that this type is derived from. For now, one and only one
2664
+ # should be set.
2665
+ # Corresponds to the JSON property `baseTypes`
2666
+ # @return [Array<String>]
2667
+ attr_accessor :base_types
2668
+
2669
+ # User defined name for the type.
2670
+ # Corresponds to the JSON property `displayName`
2671
+ # @return [String]
2672
+ attr_accessor :display_name
2673
+
2674
+ # Defines the a list of enum values.
2675
+ # Corresponds to the JSON property `enumValues`
2676
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues]
2677
+ attr_accessor :enum_values
2678
+
2679
+ # Name of the type. It must be unique within the schema file and cannot be a '
2680
+ # Common Type'. Besides that we use the following naming conventions: - *use
2681
+ # snake_casing* - name matching is case-insensitive - Maximum 64 characters. -
2682
+ # Must start with a letter. - Allowed characters: ASCII letters [a-z0-9_-]. (For
2683
+ # backward compatibility internal infrastructure and tooling can handle any
2684
+ # ascii character) - The '/' is sometimes used to denote a property of a type.
2685
+ # For example line_item/amount. This convention is deprecated, but will still be
2686
+ # honored for backward compatibility.
2687
+ # Corresponds to the JSON property `name`
2688
+ # @return [String]
2689
+ attr_accessor :name
2690
+
2691
+ # Describing the nested structure, or composition of an entity.
2692
+ # Corresponds to the JSON property `properties`
2693
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty>]
2694
+ attr_accessor :properties
2695
+
2696
+ def initialize(**args)
2697
+ update!(**args)
2698
+ end
2699
+
2700
+ # Update properties of this object
2701
+ def update!(**args)
2702
+ @base_types = args[:base_types] if args.key?(:base_types)
2703
+ @display_name = args[:display_name] if args.key?(:display_name)
2704
+ @enum_values = args[:enum_values] if args.key?(:enum_values)
2705
+ @name = args[:name] if args.key?(:name)
2706
+ @properties = args[:properties] if args.key?(:properties)
2707
+ end
2708
+ end
2709
+
2710
+ # Defines the a list of enum values.
2711
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
2712
+ include Google::Apis::Core::Hashable
2713
+
2714
+ # The individual values that this enum values type can include.
2715
+ # Corresponds to the JSON property `values`
2716
+ # @return [Array<String>]
2717
+ attr_accessor :values
2718
+
2719
+ def initialize(**args)
2720
+ update!(**args)
2721
+ end
2722
+
2723
+ # Update properties of this object
2724
+ def update!(**args)
2725
+ @values = args[:values] if args.key?(:values)
2726
+ end
2727
+ end
2728
+
2729
+ # Defines properties that can be part of the entity type.
2730
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty
2731
+ include Google::Apis::Core::Hashable
2732
+
2733
+ # The name of the property. Follows the same guidelines as the EntityType name.
2734
+ # Corresponds to the JSON property `name`
2735
+ # @return [String]
2736
+ attr_accessor :name
2737
+
2738
+ # Occurrence type limits the number of instances an entity type appears in the
2739
+ # document.
2740
+ # Corresponds to the JSON property `occurrenceType`
2741
+ # @return [String]
2742
+ attr_accessor :occurrence_type
2743
+
2744
+ # A reference to the value type of the property. This type is subject to the
2745
+ # same conventions as the `Entity.base_types` field.
2746
+ # Corresponds to the JSON property `valueType`
2747
+ # @return [String]
2748
+ attr_accessor :value_type
2749
+
2750
+ def initialize(**args)
2751
+ update!(**args)
2752
+ end
2753
+
2754
+ # Update properties of this object
2755
+ def update!(**args)
2756
+ @name = args[:name] if args.key?(:name)
2757
+ @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
2758
+ @value_type = args[:value_type] if args.key?(:value_type)
2759
+ end
2760
+ end
2761
+
2762
+ # Metadata for global schema behavior.
2763
+ class GoogleCloudDocumentaiV1DocumentSchemaMetadata
2764
+ include Google::Apis::Core::Hashable
2765
+
2766
+ # If true, on a given page, there can be multiple `document` annotations
2767
+ # covering it.
2768
+ # Corresponds to the JSON property `documentAllowMultipleLabels`
2769
+ # @return [Boolean]
2770
+ attr_accessor :document_allow_multiple_labels
2771
+ alias_method :document_allow_multiple_labels?, :document_allow_multiple_labels
2772
+
2773
+ # If true, a `document` entity type can be applied to subdocument ( splitting).
2774
+ # Otherwise, it can only be applied to the entire document (classification).
2775
+ # Corresponds to the JSON property `documentSplitter`
2776
+ # @return [Boolean]
2777
+ attr_accessor :document_splitter
2778
+ alias_method :document_splitter?, :document_splitter
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
+
2786
+ def initialize(**args)
2787
+ update!(**args)
2788
+ end
2789
+
2790
+ # Update properties of this object
2791
+ def update!(**args)
2792
+ @document_allow_multiple_labels = args[:document_allow_multiple_labels] if args.key?(:document_allow_multiple_labels)
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)
2795
+ end
2796
+ end
2797
+
2549
2798
  # For a large document, sharding may be performed to produce several document
2550
2799
  # shards. Each document shard contains this field to detail which shard it is.
2551
2800
  class GoogleCloudDocumentaiV1DocumentShardInfo
@@ -2997,6 +3246,31 @@ module Google
2997
3246
  end
2998
3247
  end
2999
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
+
3000
3274
  # Response message for list processors.
3001
3275
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
3002
3276
  include Google::Apis::Core::Hashable
@@ -3429,6 +3703,11 @@ module Google
3429
3703
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
3430
3704
  include Google::Apis::Core::Hashable
3431
3705
 
3706
+ # The schema defines the output of the processed document by a processor.
3707
+ # Corresponds to the JSON property `documentSchema`
3708
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema]
3709
+ attr_accessor :document_schema
3710
+
3432
3711
  # Whether the validation should be performed on the ad-hoc review request.
3433
3712
  # Corresponds to the JSON property `enableSchemaValidation`
3434
3713
  # @return [Boolean]
@@ -3454,6 +3733,7 @@ module Google
3454
3733
 
3455
3734
  # Update properties of this object
3456
3735
  def update!(**args)
3736
+ @document_schema = args[:document_schema] if args.key?(:document_schema)
3457
3737
  @enable_schema_validation = args[:enable_schema_validation] if args.key?(:enable_schema_validation)
3458
3738
  @inline_document = args[:inline_document] if args.key?(:inline_document)
3459
3739
  @priority = args[:priority] if args.key?(:priority)
@@ -3464,11 +3744,22 @@ module Google
3464
3744
  class GoogleCloudDocumentaiV1ReviewDocumentResponse
3465
3745
  include Google::Apis::Core::Hashable
3466
3746
 
3467
- # The Cloud Storage uri for the human reviewed document.
3747
+ # The Cloud Storage uri for the human reviewed document if the review is
3748
+ # succeeded.
3468
3749
  # Corresponds to the JSON property `gcsDestination`
3469
3750
  # @return [String]
3470
3751
  attr_accessor :gcs_destination
3471
3752
 
3753
+ # The reason why the review is rejected by reviewer.
3754
+ # Corresponds to the JSON property `rejectionReason`
3755
+ # @return [String]
3756
+ attr_accessor :rejection_reason
3757
+
3758
+ # The state of the review operation.
3759
+ # Corresponds to the JSON property `state`
3760
+ # @return [String]
3761
+ attr_accessor :state
3762
+
3472
3763
  def initialize(**args)
3473
3764
  update!(**args)
3474
3765
  end
@@ -3476,6 +3767,8 @@ module Google
3476
3767
  # Update properties of this object
3477
3768
  def update!(**args)
3478
3769
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
3770
+ @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
3771
+ @state = args[:state] if args.key?(:state)
3479
3772
  end
3480
3773
  end
3481
3774
 
@@ -3665,6 +3958,46 @@ module Google
3665
3958
  end
3666
3959
  end
3667
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
+
3668
4001
  # Response to an batch document processing request. This is returned in the LRO
3669
4002
  # Operation after the operation is complete.
3670
4003
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
@@ -3922,11 +4255,11 @@ module Google
3922
4255
  # Box or similar. It is not intended to model geographical locations (roads,
3923
4256
  # towns, mountains). In typical usage an address would be created via user input
3924
4257
  # or from importing existing data, depending on the type of process. Advice on
3925
- # address input / editing: - Use an i18n-ready address widget such as https://
3926
- # github.com/google/libaddressinput) - Users should not be presented with UI
3927
- # elements for input or editing of fields outside countries where that field is
3928
- # used. For more guidance on how to use this schema, please see: https://support.
3929
- # 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
3930
4263
  # Corresponds to the JSON property `addressValue`
3931
4264
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
3932
4265
  attr_accessor :address_value
@@ -4053,6 +4386,11 @@ module Google
4053
4386
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock>]
4054
4387
  attr_accessor :blocks
4055
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
+
4056
4394
  # A list of detected languages together with confidence.
4057
4395
  # Corresponds to the JSON property `detectedLanguages`
4058
4396
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
@@ -4136,6 +4474,7 @@ module Google
4136
4474
  # Update properties of this object
4137
4475
  def update!(**args)
4138
4476
  @blocks = args[:blocks] if args.key?(:blocks)
4477
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
4139
4478
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4140
4479
  @dimension = args[:dimension] if args.key?(:dimension)
4141
4480
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -4253,6 +4592,31 @@ module Google
4253
4592
  end
4254
4593
  end
4255
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
+
4256
4620
  # Detected language for a structural component.
4257
4621
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
4258
4622
  include Google::Apis::Core::Hashable
@@ -5427,6 +5791,46 @@ module Google
5427
5791
  end
5428
5792
  end
5429
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
+
5430
5834
  # Response to an batch document processing request. This is returned in the LRO
5431
5835
  # Operation after the operation is complete.
5432
5836
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
@@ -5690,11 +6094,11 @@ module Google
5690
6094
  # Box or similar. It is not intended to model geographical locations (roads,
5691
6095
  # towns, mountains). In typical usage an address would be created via user input
5692
6096
  # or from importing existing data, depending on the type of process. Advice on
5693
- # address input / editing: - Use an i18n-ready address widget such as https://
5694
- # github.com/google/libaddressinput) - Users should not be presented with UI
5695
- # elements for input or editing of fields outside countries where that field is
5696
- # used. For more guidance on how to use this schema, please see: https://support.
5697
- # 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
5698
6102
  # Corresponds to the JSON property `addressValue`
5699
6103
  # @return [Google::Apis::DocumentaiV1::GoogleTypePostalAddress]
5700
6104
  attr_accessor :address_value
@@ -5858,6 +6262,11 @@ module Google
5858
6262
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock>]
5859
6263
  attr_accessor :blocks
5860
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
+
5861
6270
  # A list of detected languages together with confidence.
5862
6271
  # Corresponds to the JSON property `detectedLanguages`
5863
6272
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
@@ -5941,6 +6350,7 @@ module Google
5941
6350
  # Update properties of this object
5942
6351
  def update!(**args)
5943
6352
  @blocks = args[:blocks] if args.key?(:blocks)
6353
+ @detected_barcodes = args[:detected_barcodes] if args.key?(:detected_barcodes)
5944
6354
  @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
5945
6355
  @dimension = args[:dimension] if args.key?(:dimension)
5946
6356
  @form_fields = args[:form_fields] if args.key?(:form_fields)
@@ -6058,6 +6468,31 @@ module Google
6058
6468
  end
6059
6469
  end
6060
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
+
6061
6496
  # Detected language for a structural component.
6062
6497
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
6063
6498
  include Google::Apis::Core::Hashable
@@ -7621,11 +8056,22 @@ module Google
7621
8056
  class GoogleCloudDocumentaiV1beta3ReviewDocumentResponse
7622
8057
  include Google::Apis::Core::Hashable
7623
8058
 
7624
- # The Cloud Storage uri for the human reviewed document.
8059
+ # The Cloud Storage uri for the human reviewed document if the review is
8060
+ # succeeded.
7625
8061
  # Corresponds to the JSON property `gcsDestination`
7626
8062
  # @return [String]
7627
8063
  attr_accessor :gcs_destination
7628
8064
 
8065
+ # The reason why the review is rejected by reviewer.
8066
+ # Corresponds to the JSON property `rejectionReason`
8067
+ # @return [String]
8068
+ attr_accessor :rejection_reason
8069
+
8070
+ # The state of the review operation.
8071
+ # Corresponds to the JSON property `state`
8072
+ # @return [String]
8073
+ attr_accessor :state
8074
+
7629
8075
  def initialize(**args)
7630
8076
  update!(**args)
7631
8077
  end
@@ -7633,6 +8079,8 @@ module Google
7633
8079
  # Update properties of this object
7634
8080
  def update!(**args)
7635
8081
  @gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
8082
+ @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason)
8083
+ @state = args[:state] if args.key?(:state)
7636
8084
  end
7637
8085
  end
7638
8086
 
@@ -8169,11 +8617,11 @@ module Google
8169
8617
  # Box or similar. It is not intended to model geographical locations (roads,
8170
8618
  # towns, mountains). In typical usage an address would be created via user input
8171
8619
  # or from importing existing data, depending on the type of process. Advice on
8172
- # address input / editing: - Use an i18n-ready address widget such as https://
8173
- # github.com/google/libaddressinput) - Users should not be presented with UI
8174
- # elements for input or editing of fields outside countries where that field is
8175
- # used. For more guidance on how to use this schema, please see: https://support.
8176
- # 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
8177
8625
  class GoogleTypePostalAddress
8178
8626
  include Google::Apis::Core::Hashable
8179
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.39.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.5.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220602"
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
 
@@ -532,6 +544,36 @@ module Google
532
544
  include Google::Apis::Core::JsonObjectSupport
533
545
  end
534
546
 
547
+ class GoogleCloudDocumentaiV1DocumentSchema
548
+ class Representation < Google::Apis::Core::JsonRepresentation; end
549
+
550
+ include Google::Apis::Core::JsonObjectSupport
551
+ end
552
+
553
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityType
554
+ class Representation < Google::Apis::Core::JsonRepresentation; end
555
+
556
+ include Google::Apis::Core::JsonObjectSupport
557
+ end
558
+
559
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
560
+ class Representation < Google::Apis::Core::JsonRepresentation; end
561
+
562
+ include Google::Apis::Core::JsonObjectSupport
563
+ end
564
+
565
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty
566
+ class Representation < Google::Apis::Core::JsonRepresentation; end
567
+
568
+ include Google::Apis::Core::JsonObjectSupport
569
+ end
570
+
571
+ class GoogleCloudDocumentaiV1DocumentSchemaMetadata
572
+ class Representation < Google::Apis::Core::JsonRepresentation; end
573
+
574
+ include Google::Apis::Core::JsonObjectSupport
575
+ end
576
+
535
577
  class GoogleCloudDocumentaiV1DocumentShardInfo
536
578
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
579
 
@@ -616,6 +658,12 @@ module Google
616
658
  include Google::Apis::Core::JsonObjectSupport
617
659
  end
618
660
 
661
+ class GoogleCloudDocumentaiV1ListProcessorTypesResponse
662
+ class Representation < Google::Apis::Core::JsonRepresentation; end
663
+
664
+ include Google::Apis::Core::JsonObjectSupport
665
+ end
666
+
619
667
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
620
668
  class Representation < Google::Apis::Core::JsonRepresentation; end
621
669
 
@@ -754,6 +802,12 @@ module Google
754
802
  include Google::Apis::Core::JsonObjectSupport
755
803
  end
756
804
 
805
+ class GoogleCloudDocumentaiV1beta1Barcode
806
+ class Representation < Google::Apis::Core::JsonRepresentation; end
807
+
808
+ include Google::Apis::Core::JsonObjectSupport
809
+ end
810
+
757
811
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
758
812
  class Representation < Google::Apis::Core::JsonRepresentation; end
759
813
 
@@ -814,6 +868,12 @@ module Google
814
868
  include Google::Apis::Core::JsonObjectSupport
815
869
  end
816
870
 
871
+ class GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode
872
+ class Representation < Google::Apis::Core::JsonRepresentation; end
873
+
874
+ include Google::Apis::Core::JsonObjectSupport
875
+ end
876
+
817
877
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
818
878
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
879
 
@@ -1012,6 +1072,12 @@ module Google
1012
1072
  include Google::Apis::Core::JsonObjectSupport
1013
1073
  end
1014
1074
 
1075
+ class GoogleCloudDocumentaiV1beta2Barcode
1076
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1077
+
1078
+ include Google::Apis::Core::JsonObjectSupport
1079
+ end
1080
+
1015
1081
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
1016
1082
  class Representation < Google::Apis::Core::JsonRepresentation; end
1017
1083
 
@@ -1078,6 +1144,12 @@ module Google
1078
1144
  include Google::Apis::Core::JsonObjectSupport
1079
1145
  end
1080
1146
 
1147
+ class GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode
1148
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1149
+
1150
+ include Google::Apis::Core::JsonObjectSupport
1151
+ end
1152
+
1081
1153
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
1082
1154
  class Representation < Google::Apis::Core::JsonRepresentation; end
1083
1155
 
@@ -1801,6 +1873,15 @@ module Google
1801
1873
  end
1802
1874
  end
1803
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
+
1804
1885
  class GoogleCloudDocumentaiV1BatchDocumentsInputConfig
1805
1886
  # @private
1806
1887
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2025,6 +2106,8 @@ module Google
2025
2106
  class Representation < Google::Apis::Core::JsonRepresentation
2026
2107
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageBlock::Representation
2027
2108
 
2109
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedBarcode::Representation
2110
+
2028
2111
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
2029
2112
 
2030
2113
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDimension::Representation
@@ -2087,6 +2170,16 @@ module Google
2087
2170
  end
2088
2171
  end
2089
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
+
2090
2183
  class GoogleCloudDocumentaiV1DocumentPageDetectedLanguage
2091
2184
  # @private
2092
2185
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2297,6 +2390,56 @@ module Google
2297
2390
  end
2298
2391
  end
2299
2392
 
2393
+ class GoogleCloudDocumentaiV1DocumentSchema
2394
+ # @private
2395
+ class Representation < Google::Apis::Core::JsonRepresentation
2396
+ property :description, as: 'description'
2397
+ property :display_name, as: 'displayName'
2398
+ collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityType::Representation
2399
+
2400
+ property :metadata, as: 'metadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaMetadata::Representation
2401
+
2402
+ end
2403
+ end
2404
+
2405
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityType
2406
+ # @private
2407
+ class Representation < Google::Apis::Core::JsonRepresentation
2408
+ collection :base_types, as: 'baseTypes'
2409
+ property :display_name, as: 'displayName'
2410
+ property :enum_values, as: 'enumValues', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues::Representation
2411
+
2412
+ property :name, as: 'name'
2413
+ collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty::Representation
2414
+
2415
+ end
2416
+ end
2417
+
2418
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeEnumValues
2419
+ # @private
2420
+ class Representation < Google::Apis::Core::JsonRepresentation
2421
+ collection :values, as: 'values'
2422
+ end
2423
+ end
2424
+
2425
+ class GoogleCloudDocumentaiV1DocumentSchemaEntityTypeProperty
2426
+ # @private
2427
+ class Representation < Google::Apis::Core::JsonRepresentation
2428
+ property :name, as: 'name'
2429
+ property :occurrence_type, as: 'occurrenceType'
2430
+ property :value_type, as: 'valueType'
2431
+ end
2432
+ end
2433
+
2434
+ class GoogleCloudDocumentaiV1DocumentSchemaMetadata
2435
+ # @private
2436
+ class Representation < Google::Apis::Core::JsonRepresentation
2437
+ property :document_allow_multiple_labels, as: 'documentAllowMultipleLabels'
2438
+ property :document_splitter, as: 'documentSplitter'
2439
+ property :prefixed_naming_on_properties, as: 'prefixedNamingOnProperties'
2440
+ end
2441
+ end
2442
+
2300
2443
  class GoogleCloudDocumentaiV1DocumentShardInfo
2301
2444
  # @private
2302
2445
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2419,6 +2562,15 @@ module Google
2419
2562
  end
2420
2563
  end
2421
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
+
2422
2574
  class GoogleCloudDocumentaiV1ListProcessorVersionsResponse
2423
2575
  # @private
2424
2576
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2544,6 +2696,8 @@ module Google
2544
2696
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
2545
2697
  # @private
2546
2698
  class Representation < Google::Apis::Core::JsonRepresentation
2699
+ property :document_schema, as: 'documentSchema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentSchema::Representation
2700
+
2547
2701
  property :enable_schema_validation, as: 'enableSchemaValidation'
2548
2702
  property :inline_document, as: 'inlineDocument', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Document::Representation
2549
2703
 
@@ -2555,6 +2709,8 @@ module Google
2555
2709
  # @private
2556
2710
  class Representation < Google::Apis::Core::JsonRepresentation
2557
2711
  property :gcs_destination, as: 'gcsDestination'
2712
+ property :rejection_reason, as: 'rejectionReason'
2713
+ property :state, as: 'state'
2558
2714
  end
2559
2715
  end
2560
2716
 
@@ -2626,6 +2782,15 @@ module Google
2626
2782
  end
2627
2783
  end
2628
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
+
2629
2794
  class GoogleCloudDocumentaiV1beta1BatchProcessDocumentsResponse
2630
2795
  # @private
2631
2796
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2725,6 +2890,8 @@ module Google
2725
2890
  class Representation < Google::Apis::Core::JsonRepresentation
2726
2891
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageBlock::Representation
2727
2892
 
2893
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedBarcode::Representation
2894
+
2728
2895
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
2729
2896
 
2730
2897
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDimension::Representation
@@ -2787,6 +2954,16 @@ module Google
2787
2954
  end
2788
2955
  end
2789
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
+
2790
2967
  class GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage
2791
2968
  # @private
2792
2969
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3127,6 +3304,15 @@ module Google
3127
3304
  end
3128
3305
  end
3129
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
+
3130
3316
  class GoogleCloudDocumentaiV1beta2BatchProcessDocumentsResponse
3131
3317
  # @private
3132
3318
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3237,6 +3423,8 @@ module Google
3237
3423
  class Representation < Google::Apis::Core::JsonRepresentation
3238
3424
  collection :blocks, as: 'blocks', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageBlock::Representation
3239
3425
 
3426
+ collection :detected_barcodes, as: 'detectedBarcodes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedBarcode::Representation
3427
+
3240
3428
  collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
3241
3429
 
3242
3430
  property :dimension, as: 'dimension', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDimension::Representation
@@ -3299,6 +3487,16 @@ module Google
3299
3487
  end
3300
3488
  end
3301
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
+
3302
3500
  class GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage
3303
3501
  # @private
3304
3502
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3766,6 +3964,8 @@ module Google
3766
3964
  # @private
3767
3965
  class Representation < Google::Apis::Core::JsonRepresentation
3768
3966
  property :gcs_destination, as: 'gcsDestination'
3967
+ property :rejection_reason, as: 'rejectionReason'
3968
+ property :state, as: 'state'
3769
3969
  end
3770
3970
  end
3771
3971
 
@@ -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.39.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-06-13 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
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.39.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: []