google-apis-documentai_v1beta2 0.47.0 → 0.49.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: be88410ebe8aa05434c25073fdf06514a78e232baca966d3d275062b8b98b428
4
- data.tar.gz: 6e9be52cda1118eb451926b2ad09d284d6e0408ec8ea9ad8d3d52e4b47778a90
3
+ metadata.gz: 9cfd4929c21b32f1245f5958bfd0bf9545f809823b93cbdaf7f98d4b5ba95ee3
4
+ data.tar.gz: edcb4f2a30f72f7165e46efb7913f6ed198ab38f6bd22ba2f9b8b11ff5733e71
5
5
  SHA512:
6
- metadata.gz: 820e6c72d3d70c8fac019a9913c69f28a3c3edb7aeb86873da0bc53a2634d2b2271783f201ede2d13862fa7b94d5389b396e939244dc9d4cd3a6ef60d54c50b1
7
- data.tar.gz: 9a8f2f11b25e3bdf808fc384acebff6a9ae45cdc1421f54167b9dde50e32c0164d58edf7adf30fc1e93d29830e91dc965a362c65d65db8bea15ce5f0fdc99a0a
6
+ metadata.gz: ea4f70b58dc2cdb9e57f2ce81ccc0c1516a91d646854ce3c4ed7f0e99de95c6d4cd058036f2d2cc154bb15d591db428d7390583160df12fa89bf8d81098d10ac
7
+ data.tar.gz: c9b681e1986dc45bae979cb02b70ce3a3bead40711d67bf5a6735452699728907502257383f558d1c51d0a8f169aea780c3a727e336456e208f60efc69e2afb9
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-documentai_v1beta2
2
2
 
3
+ ### v0.49.0 (2022-10-02)
4
+
5
+ * Regenerated from discovery document revision 20220921
6
+
7
+ ### v0.48.0 (2022-09-20)
8
+
9
+ * Regenerated from discovery document revision 20220919
10
+ * Regenerated using generator version 0.10.0
11
+
3
12
  ### v0.47.0 (2022-09-18)
4
13
 
5
14
  * Regenerated from discovery document revision 20220912
@@ -1841,8 +1841,7 @@ module Google
1841
1841
  # @return [String]
1842
1842
  attr_accessor :mention_id
1843
1843
 
1844
- # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the
1845
- # entity is not present in the document, this field will be empty.
1844
+ # Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
1846
1845
  # Corresponds to the JSON property `mentionText`
1847
1846
  # @return [String]
1848
1847
  attr_accessor :mention_text
@@ -2072,6 +2071,11 @@ module Google
2072
2071
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage]
2073
2072
  attr_accessor :image
2074
2073
 
2074
+ # Image Quality Scores for the page image
2075
+ # Corresponds to the JSON property `imageQualityScores`
2076
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores]
2077
+ attr_accessor :image_quality_scores
2078
+
2075
2079
  # Visual element describing a layout unit on a page.
2076
2080
  # Corresponds to the JSON property `layout`
2077
2081
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
@@ -2140,6 +2144,7 @@ module Google
2140
2144
  @dimension = args[:dimension] if args.key?(:dimension)
2141
2145
  @form_fields = args[:form_fields] if args.key?(:form_fields)
2142
2146
  @image = args[:image] if args.key?(:image)
2147
+ @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
2143
2148
  @layout = args[:layout] if args.key?(:layout)
2144
2149
  @lines = args[:lines] if args.key?(:lines)
2145
2150
  @page_number = args[:page_number] if args.key?(:page_number)
@@ -2441,6 +2446,60 @@ module Google
2441
2446
  end
2442
2447
  end
2443
2448
 
2449
+ # Image Quality Scores for the page image
2450
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2451
+ include Google::Apis::Core::Hashable
2452
+
2453
+ # A list of detected defects.
2454
+ # Corresponds to the JSON property `detectedDefects`
2455
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
2456
+ attr_accessor :detected_defects
2457
+
2458
+ # The overall quality score. Range [0, 1] where 1 is perfect quality.
2459
+ # Corresponds to the JSON property `qualityScore`
2460
+ # @return [Float]
2461
+ attr_accessor :quality_score
2462
+
2463
+ def initialize(**args)
2464
+ update!(**args)
2465
+ end
2466
+
2467
+ # Update properties of this object
2468
+ def update!(**args)
2469
+ @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
2470
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
2471
+ end
2472
+ end
2473
+
2474
+ # Image Quality Defects
2475
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2476
+ include Google::Apis::Core::Hashable
2477
+
2478
+ # Confidence of detected defect. Range [0, 1] where 1 indicates strong
2479
+ # confidence of that the defect exists.
2480
+ # Corresponds to the JSON property `confidence`
2481
+ # @return [Float]
2482
+ attr_accessor :confidence
2483
+
2484
+ # Name of the defect type. Supported values are "quality/defect_blurry", "
2485
+ # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
2486
+ # defect_text_too_small", "quality/defect_document_cutoff", "quality/
2487
+ # defect_text_cutoff", "quality/defect_glare"
2488
+ # Corresponds to the JSON property `type`
2489
+ # @return [String]
2490
+ attr_accessor :type
2491
+
2492
+ def initialize(**args)
2493
+ update!(**args)
2494
+ end
2495
+
2496
+ # Update properties of this object
2497
+ def update!(**args)
2498
+ @confidence = args[:confidence] if args.key?(:confidence)
2499
+ @type = args[:type] if args.key?(:type)
2500
+ end
2501
+ end
2502
+
2444
2503
  # Visual element describing a layout unit on a page.
2445
2504
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
2446
2505
  include Google::Apis::Core::Hashable
@@ -3717,8 +3776,7 @@ module Google
3717
3776
  # @return [String]
3718
3777
  attr_accessor :mention_id
3719
3778
 
3720
- # Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`. If the
3721
- # entity is not present in the document, this field will be empty.
3779
+ # Optional. Text value of the entity e.g. `1600 Amphitheatre Pkwy`.
3722
3780
  # Corresponds to the JSON property `mentionText`
3723
3781
  # @return [String]
3724
3782
  attr_accessor :mention_text
@@ -3985,6 +4043,11 @@ module Google
3985
4043
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage]
3986
4044
  attr_accessor :image
3987
4045
 
4046
+ # Image Quality Scores for the page image
4047
+ # Corresponds to the JSON property `imageQualityScores`
4048
+ # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores]
4049
+ attr_accessor :image_quality_scores
4050
+
3988
4051
  # Visual element describing a layout unit on a page.
3989
4052
  # Corresponds to the JSON property `layout`
3990
4053
  # @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
@@ -4053,6 +4116,7 @@ module Google
4053
4116
  @dimension = args[:dimension] if args.key?(:dimension)
4054
4117
  @form_fields = args[:form_fields] if args.key?(:form_fields)
4055
4118
  @image = args[:image] if args.key?(:image)
4119
+ @image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
4056
4120
  @layout = args[:layout] if args.key?(:layout)
4057
4121
  @lines = args[:lines] if args.key?(:lines)
4058
4122
  @page_number = args[:page_number] if args.key?(:page_number)
@@ -4354,6 +4418,60 @@ module Google
4354
4418
  end
4355
4419
  end
4356
4420
 
4421
+ # Image Quality Scores for the page image
4422
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
4423
+ include Google::Apis::Core::Hashable
4424
+
4425
+ # A list of detected defects.
4426
+ # Corresponds to the JSON property `detectedDefects`
4427
+ # @return [Array<Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
4428
+ attr_accessor :detected_defects
4429
+
4430
+ # The overall quality score. Range [0, 1] where 1 is perfect quality.
4431
+ # Corresponds to the JSON property `qualityScore`
4432
+ # @return [Float]
4433
+ attr_accessor :quality_score
4434
+
4435
+ def initialize(**args)
4436
+ update!(**args)
4437
+ end
4438
+
4439
+ # Update properties of this object
4440
+ def update!(**args)
4441
+ @detected_defects = args[:detected_defects] if args.key?(:detected_defects)
4442
+ @quality_score = args[:quality_score] if args.key?(:quality_score)
4443
+ end
4444
+ end
4445
+
4446
+ # Image Quality Defects
4447
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
4448
+ include Google::Apis::Core::Hashable
4449
+
4450
+ # Confidence of detected defect. Range [0, 1] where 1 indicates strong
4451
+ # confidence of that the defect exists.
4452
+ # Corresponds to the JSON property `confidence`
4453
+ # @return [Float]
4454
+ attr_accessor :confidence
4455
+
4456
+ # Name of the defect type. Supported values are "quality/defect_blurry", "
4457
+ # quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
4458
+ # defect_text_too_small", "quality/defect_document_cutoff", "quality/
4459
+ # defect_text_cutoff", "quality/defect_glare"
4460
+ # Corresponds to the JSON property `type`
4461
+ # @return [String]
4462
+ attr_accessor :type
4463
+
4464
+ def initialize(**args)
4465
+ update!(**args)
4466
+ end
4467
+
4468
+ # Update properties of this object
4469
+ def update!(**args)
4470
+ @confidence = args[:confidence] if args.key?(:confidence)
4471
+ @type = args[:type] if args.key?(:type)
4472
+ end
4473
+ end
4474
+
4357
4475
  # Visual element describing a layout unit on a page.
4358
4476
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
4359
4477
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta2
18
18
  # Version of the google-apis-documentai_v1beta2 gem
19
- GEM_VERSION = "0.47.0"
19
+ GEM_VERSION = "0.49.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.9.0"
22
+ GENERATOR_VERSION = "0.10.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220912"
25
+ REVISION = "20220921"
26
26
  end
27
27
  end
28
28
  end
@@ -526,6 +526,18 @@ module Google
526
526
  include Google::Apis::Core::JsonObjectSupport
527
527
  end
528
528
 
529
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
530
+ class Representation < Google::Apis::Core::JsonRepresentation; end
531
+
532
+ include Google::Apis::Core::JsonObjectSupport
533
+ end
534
+
535
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
536
+ class Representation < Google::Apis::Core::JsonRepresentation; end
537
+
538
+ include Google::Apis::Core::JsonObjectSupport
539
+ end
540
+
529
541
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
530
542
  class Representation < Google::Apis::Core::JsonRepresentation; end
531
543
 
@@ -814,6 +826,18 @@ module Google
814
826
  include Google::Apis::Core::JsonObjectSupport
815
827
  end
816
828
 
829
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
830
+ class Representation < Google::Apis::Core::JsonRepresentation; end
831
+
832
+ include Google::Apis::Core::JsonObjectSupport
833
+ end
834
+
835
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
836
+ class Representation < Google::Apis::Core::JsonRepresentation; end
837
+
838
+ include Google::Apis::Core::JsonObjectSupport
839
+ end
840
+
817
841
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
818
842
  class Representation < Google::Apis::Core::JsonRepresentation; end
819
843
 
@@ -1890,6 +1914,8 @@ module Google
1890
1914
 
1891
1915
  property :image, as: 'image', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage::Representation
1892
1916
 
1917
+ property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores::Representation
1918
+
1893
1919
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
1894
1920
 
1895
1921
  collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLine::Representation
@@ -2000,6 +2026,23 @@ module Google
2000
2026
  end
2001
2027
  end
2002
2028
 
2029
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
2030
+ # @private
2031
+ class Representation < Google::Apis::Core::JsonRepresentation
2032
+ collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect::Representation
2033
+
2034
+ property :quality_score, as: 'qualityScore'
2035
+ end
2036
+ end
2037
+
2038
+ class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
2039
+ # @private
2040
+ class Representation < Google::Apis::Core::JsonRepresentation
2041
+ property :confidence, as: 'confidence'
2042
+ property :type, as: 'type'
2043
+ end
2044
+ end
2045
+
2003
2046
  class GoogleCloudDocumentaiV1beta1DocumentPageLayout
2004
2047
  # @private
2005
2048
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2438,6 +2481,8 @@ module Google
2438
2481
 
2439
2482
  property :image, as: 'image', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage::Representation
2440
2483
 
2484
+ property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores::Representation
2485
+
2441
2486
  property :layout, as: 'layout', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
2442
2487
 
2443
2488
  collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLine::Representation
@@ -2548,6 +2593,23 @@ module Google
2548
2593
  end
2549
2594
  end
2550
2595
 
2596
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
2597
+ # @private
2598
+ class Representation < Google::Apis::Core::JsonRepresentation
2599
+ collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect::Representation
2600
+
2601
+ property :quality_score, as: 'qualityScore'
2602
+ end
2603
+ end
2604
+
2605
+ class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
2606
+ # @private
2607
+ class Representation < Google::Apis::Core::JsonRepresentation
2608
+ property :confidence, as: 'confidence'
2609
+ property :type, as: 'type'
2610
+ end
2611
+ end
2612
+
2551
2613
  class GoogleCloudDocumentaiV1beta2DocumentPageLayout
2552
2614
  # @private
2553
2615
  class Representation < Google::Apis::Core::JsonRepresentation
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.47.0
4
+ version: 0.49.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-09-19 00:00:00.000000000 Z
11
+ date: 2022-10-03 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.7.2
19
+ version: 0.9.0
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.7.2
29
+ version: 0.9.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.47.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta2/v0.49.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta2
63
63
  post_install_message:
64
64
  rdoc_options: []