google-apis-documentai_v1beta2 0.48.0 → 0.49.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cfd4929c21b32f1245f5958bfd0bf9545f809823b93cbdaf7f98d4b5ba95ee3
|
4
|
+
data.tar.gz: edcb4f2a30f72f7165e46efb7913f6ed198ab38f6bd22ba2f9b8b11ff5733e71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea4f70b58dc2cdb9e57f2ce81ccc0c1516a91d646854ce3c4ed7f0e99de95c6d4cd058036f2d2cc154bb15d591db428d7390583160df12fa89bf8d81098d10ac
|
7
|
+
data.tar.gz: c9b681e1986dc45bae979cb02b70ce3a3bead40711d67bf5a6735452699728907502257383f558d1c51d0a8f169aea780c3a727e336456e208f60efc69e2afb9
|
data/CHANGELOG.md
CHANGED
@@ -2071,6 +2071,11 @@ module Google
|
|
2071
2071
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageImage]
|
2072
2072
|
attr_accessor :image
|
2073
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
|
+
|
2074
2079
|
# Visual element describing a layout unit on a page.
|
2075
2080
|
# Corresponds to the JSON property `layout`
|
2076
2081
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
@@ -2139,6 +2144,7 @@ module Google
|
|
2139
2144
|
@dimension = args[:dimension] if args.key?(:dimension)
|
2140
2145
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
2141
2146
|
@image = args[:image] if args.key?(:image)
|
2147
|
+
@image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
|
2142
2148
|
@layout = args[:layout] if args.key?(:layout)
|
2143
2149
|
@lines = args[:lines] if args.key?(:lines)
|
2144
2150
|
@page_number = args[:page_number] if args.key?(:page_number)
|
@@ -2440,6 +2446,60 @@ module Google
|
|
2440
2446
|
end
|
2441
2447
|
end
|
2442
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
|
+
|
2443
2503
|
# Visual element describing a layout unit on a page.
|
2444
2504
|
class GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
2445
2505
|
include Google::Apis::Core::Hashable
|
@@ -3983,6 +4043,11 @@ module Google
|
|
3983
4043
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageImage]
|
3984
4044
|
attr_accessor :image
|
3985
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
|
+
|
3986
4051
|
# Visual element describing a layout unit on a page.
|
3987
4052
|
# Corresponds to the JSON property `layout`
|
3988
4053
|
# @return [Google::Apis::DocumentaiV1beta2::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
@@ -4051,6 +4116,7 @@ module Google
|
|
4051
4116
|
@dimension = args[:dimension] if args.key?(:dimension)
|
4052
4117
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
4053
4118
|
@image = args[:image] if args.key?(:image)
|
4119
|
+
@image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
|
4054
4120
|
@layout = args[:layout] if args.key?(:layout)
|
4055
4121
|
@lines = args[:lines] if args.key?(:lines)
|
4056
4122
|
@page_number = args[:page_number] if args.key?(:page_number)
|
@@ -4352,6 +4418,60 @@ module Google
|
|
4352
4418
|
end
|
4353
4419
|
end
|
4354
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
|
+
|
4355
4475
|
# Visual element describing a layout unit on a page.
|
4356
4476
|
class GoogleCloudDocumentaiV1beta2DocumentPageLayout
|
4357
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.
|
19
|
+
GEM_VERSION = "0.49.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.10.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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.
|
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-
|
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
|
@@ -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.
|
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: []
|