google-apis-documentai_v1 0.49.0 → 0.51.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb9755529d46660227c1466bb3bfe1437b1fa3fa228da7dc5c22bd3c324cdc33
|
4
|
+
data.tar.gz: 3ca076adef088e85b4189028cfcfcab1d2b3e74cee7a1d888f85a1dd292f2285
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd831e078f81b5f8b89f4d2a4cb3b219f67594ee110905a9465b79a3aa5fe64b7a1580f65aeb412b53e2338bafe774544d412d523e795f1766deabd1b24b97ea
|
7
|
+
data.tar.gz: 4820341a24a95e9be1be7d738e7334373ca63d7f2ea8f2ee2b43ace0910b6881594562d387bbbfb9b22c1aa371c46b99108ebbdb4b50755a0827cac3692ca973
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.51.0 (2022-10-27)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20221023
|
6
|
+
* Regenerated using generator version 0.11.0
|
7
|
+
|
8
|
+
### v0.50.0 (2022-09-30)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220921
|
11
|
+
|
3
12
|
### v0.49.0 (2022-09-21)
|
4
13
|
|
5
14
|
* Regenerated from discovery document revision 20220919
|
@@ -1874,7 +1874,9 @@ module Google
|
|
1874
1874
|
class GoogleCloudDocumentaiV1DocumentOutputConfigGcsOutputConfig
|
1875
1875
|
include Google::Apis::Core::Hashable
|
1876
1876
|
|
1877
|
-
# Specifies which fields to include in the output documents.
|
1877
|
+
# Specifies which fields to include in the output documents. Only supports top
|
1878
|
+
# level document and pages field so it must be in the form of ``
|
1879
|
+
# document_field_name`` or `pages.`page_field_name``.
|
1878
1880
|
# Corresponds to the JSON property `fieldMask`
|
1879
1881
|
# @return [String]
|
1880
1882
|
attr_accessor :field_mask
|
@@ -1931,6 +1933,11 @@ module Google
|
|
1931
1933
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImage]
|
1932
1934
|
attr_accessor :image
|
1933
1935
|
|
1936
|
+
# Image Quality Scores for the page image
|
1937
|
+
# Corresponds to the JSON property `imageQualityScores`
|
1938
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScores]
|
1939
|
+
attr_accessor :image_quality_scores
|
1940
|
+
|
1934
1941
|
# Visual element describing a layout unit on a page.
|
1935
1942
|
# Corresponds to the JSON property `layout`
|
1936
1943
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
|
@@ -1999,6 +2006,7 @@ module Google
|
|
1999
2006
|
@dimension = args[:dimension] if args.key?(:dimension)
|
2000
2007
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
2001
2008
|
@image = args[:image] if args.key?(:image)
|
2009
|
+
@image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
|
2002
2010
|
@layout = args[:layout] if args.key?(:layout)
|
2003
2011
|
@lines = args[:lines] if args.key?(:lines)
|
2004
2012
|
@page_number = args[:page_number] if args.key?(:page_number)
|
@@ -2300,6 +2308,60 @@ module Google
|
|
2300
2308
|
end
|
2301
2309
|
end
|
2302
2310
|
|
2311
|
+
# Image Quality Scores for the page image
|
2312
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScores
|
2313
|
+
include Google::Apis::Core::Hashable
|
2314
|
+
|
2315
|
+
# A list of detected defects.
|
2316
|
+
# Corresponds to the JSON property `detectedDefects`
|
2317
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect>]
|
2318
|
+
attr_accessor :detected_defects
|
2319
|
+
|
2320
|
+
# The overall quality score. Range [0, 1] where 1 is perfect quality.
|
2321
|
+
# Corresponds to the JSON property `qualityScore`
|
2322
|
+
# @return [Float]
|
2323
|
+
attr_accessor :quality_score
|
2324
|
+
|
2325
|
+
def initialize(**args)
|
2326
|
+
update!(**args)
|
2327
|
+
end
|
2328
|
+
|
2329
|
+
# Update properties of this object
|
2330
|
+
def update!(**args)
|
2331
|
+
@detected_defects = args[:detected_defects] if args.key?(:detected_defects)
|
2332
|
+
@quality_score = args[:quality_score] if args.key?(:quality_score)
|
2333
|
+
end
|
2334
|
+
end
|
2335
|
+
|
2336
|
+
# Image Quality Defects
|
2337
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect
|
2338
|
+
include Google::Apis::Core::Hashable
|
2339
|
+
|
2340
|
+
# Confidence of detected defect. Range [0, 1] where 1 indicates strong
|
2341
|
+
# confidence of that the defect exists.
|
2342
|
+
# Corresponds to the JSON property `confidence`
|
2343
|
+
# @return [Float]
|
2344
|
+
attr_accessor :confidence
|
2345
|
+
|
2346
|
+
# Name of the defect type. Supported values are "quality/defect_blurry", "
|
2347
|
+
# quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
|
2348
|
+
# defect_text_too_small", "quality/defect_document_cutoff", "quality/
|
2349
|
+
# defect_text_cutoff", "quality/defect_glare"
|
2350
|
+
# Corresponds to the JSON property `type`
|
2351
|
+
# @return [String]
|
2352
|
+
attr_accessor :type
|
2353
|
+
|
2354
|
+
def initialize(**args)
|
2355
|
+
update!(**args)
|
2356
|
+
end
|
2357
|
+
|
2358
|
+
# Update properties of this object
|
2359
|
+
def update!(**args)
|
2360
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
2361
|
+
@type = args[:type] if args.key?(:type)
|
2362
|
+
end
|
2363
|
+
end
|
2364
|
+
|
2303
2365
|
# Visual element describing a layout unit on a page.
|
2304
2366
|
class GoogleCloudDocumentaiV1DocumentPageLayout
|
2305
2367
|
include Google::Apis::Core::Hashable
|
@@ -2495,6 +2557,12 @@ module Google
|
|
2495
2557
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
|
2496
2558
|
attr_accessor :layout
|
2497
2559
|
|
2560
|
+
# Structure to identify provenance relationships between annotations in
|
2561
|
+
# different revisions.
|
2562
|
+
# Corresponds to the JSON property `provenance`
|
2563
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
|
2564
|
+
attr_accessor :provenance
|
2565
|
+
|
2498
2566
|
def initialize(**args)
|
2499
2567
|
update!(**args)
|
2500
2568
|
end
|
@@ -2505,6 +2573,7 @@ module Google
|
|
2505
2573
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
2506
2574
|
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
2507
2575
|
@layout = args[:layout] if args.key?(:layout)
|
2576
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
2508
2577
|
end
|
2509
2578
|
end
|
2510
2579
|
|
@@ -3370,6 +3439,12 @@ module Google
|
|
3370
3439
|
attr_accessor :inactive
|
3371
3440
|
alias_method :inactive?, :inactive
|
3372
3441
|
|
3442
|
+
# Metadata that specifies whether a label is editable and reasons why. These
|
3443
|
+
# fields are read-only. Changing these fields has no impact on the backend.
|
3444
|
+
# Corresponds to the JSON property `schemaMutabilityMetadata`
|
3445
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata]
|
3446
|
+
attr_accessor :schema_mutability_metadata
|
3447
|
+
|
3373
3448
|
def initialize(**args)
|
3374
3449
|
update!(**args)
|
3375
3450
|
end
|
@@ -3379,6 +3454,7 @@ module Google
|
|
3379
3454
|
@human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
|
3380
3455
|
@human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
|
3381
3456
|
@inactive = args[:inactive] if args.key?(:inactive)
|
3457
|
+
@schema_mutability_metadata = args[:schema_mutability_metadata] if args.key?(:schema_mutability_metadata)
|
3382
3458
|
end
|
3383
3459
|
end
|
3384
3460
|
|
@@ -3649,7 +3725,9 @@ module Google
|
|
3649
3725
|
class GoogleCloudDocumentaiV1ProcessRequest
|
3650
3726
|
include Google::Apis::Core::Hashable
|
3651
3727
|
|
3652
|
-
# Specifies which fields to include in ProcessResponse's document.
|
3728
|
+
# Specifies which fields to include in ProcessResponse's document. Only supports
|
3729
|
+
# top level document and pages field so it must be in the form of ``
|
3730
|
+
# document_field_name`` or `pages.`page_field_name``.
|
3653
3731
|
# Corresponds to the JSON property `fieldMask`
|
3654
3732
|
# @return [String]
|
3655
3733
|
attr_accessor :field_mask
|
@@ -3966,6 +4044,12 @@ module Google
|
|
3966
4044
|
attr_accessor :inactive
|
3967
4045
|
alias_method :inactive?, :inactive
|
3968
4046
|
|
4047
|
+
# Metadata that specifies whether a label is editable and reasons why. These
|
4048
|
+
# fields are read-only. Changing these fields has no impact on the backend.
|
4049
|
+
# Corresponds to the JSON property `schemaMutabilityMetadata`
|
4050
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata]
|
4051
|
+
attr_accessor :schema_mutability_metadata
|
4052
|
+
|
3969
4053
|
def initialize(**args)
|
3970
4054
|
update!(**args)
|
3971
4055
|
end
|
@@ -3975,6 +4059,7 @@ module Google
|
|
3975
4059
|
@human_review_labeling_metadata = args[:human_review_labeling_metadata] if args.key?(:human_review_labeling_metadata)
|
3976
4060
|
@human_review_metadata = args[:human_review_metadata] if args.key?(:human_review_metadata)
|
3977
4061
|
@inactive = args[:inactive] if args.key?(:inactive)
|
4062
|
+
@schema_mutability_metadata = args[:schema_mutability_metadata] if args.key?(:schema_mutability_metadata)
|
3978
4063
|
end
|
3979
4064
|
end
|
3980
4065
|
|
@@ -4102,6 +4187,35 @@ module Google
|
|
4102
4187
|
end
|
4103
4188
|
end
|
4104
4189
|
|
4190
|
+
# Metadata that specifies whether a label is editable and reasons why. These
|
4191
|
+
# fields are read-only. Changing these fields has no impact on the backend.
|
4192
|
+
class GoogleCloudDocumentaiV1SchemaMutabilityMetadata
|
4193
|
+
include Google::Apis::Core::Hashable
|
4194
|
+
|
4195
|
+
# Explicit flag that controls whether the label is editable.
|
4196
|
+
# Corresponds to the JSON property `editable`
|
4197
|
+
# @return [Boolean]
|
4198
|
+
attr_accessor :editable
|
4199
|
+
alias_method :editable?, :editable
|
4200
|
+
|
4201
|
+
# Full resource name of processor versions that contain this label. e.g. `
|
4202
|
+
# projects/`project`/locations/`location`/processors/`processor`/
|
4203
|
+
# processorVersions/`processorVersion``
|
4204
|
+
# Corresponds to the JSON property `processorVersions`
|
4205
|
+
# @return [Array<String>]
|
4206
|
+
attr_accessor :processor_versions
|
4207
|
+
|
4208
|
+
def initialize(**args)
|
4209
|
+
update!(**args)
|
4210
|
+
end
|
4211
|
+
|
4212
|
+
# Update properties of this object
|
4213
|
+
def update!(**args)
|
4214
|
+
@editable = args[:editable] if args.key?(:editable)
|
4215
|
+
@processor_versions = args[:processor_versions] if args.key?(:processor_versions)
|
4216
|
+
end
|
4217
|
+
end
|
4218
|
+
|
4105
4219
|
# The long running operation metadata for set default processor version method.
|
4106
4220
|
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
4107
4221
|
include Google::Apis::Core::Hashable
|
@@ -4730,6 +4844,11 @@ module Google
|
|
4730
4844
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImage]
|
4731
4845
|
attr_accessor :image
|
4732
4846
|
|
4847
|
+
# Image Quality Scores for the page image
|
4848
|
+
# Corresponds to the JSON property `imageQualityScores`
|
4849
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores]
|
4850
|
+
attr_accessor :image_quality_scores
|
4851
|
+
|
4733
4852
|
# Visual element describing a layout unit on a page.
|
4734
4853
|
# Corresponds to the JSON property `layout`
|
4735
4854
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
@@ -4798,6 +4917,7 @@ module Google
|
|
4798
4917
|
@dimension = args[:dimension] if args.key?(:dimension)
|
4799
4918
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
4800
4919
|
@image = args[:image] if args.key?(:image)
|
4920
|
+
@image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
|
4801
4921
|
@layout = args[:layout] if args.key?(:layout)
|
4802
4922
|
@lines = args[:lines] if args.key?(:lines)
|
4803
4923
|
@page_number = args[:page_number] if args.key?(:page_number)
|
@@ -5099,6 +5219,60 @@ module Google
|
|
5099
5219
|
end
|
5100
5220
|
end
|
5101
5221
|
|
5222
|
+
# Image Quality Scores for the page image
|
5223
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
|
5224
|
+
include Google::Apis::Core::Hashable
|
5225
|
+
|
5226
|
+
# A list of detected defects.
|
5227
|
+
# Corresponds to the JSON property `detectedDefects`
|
5228
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect>]
|
5229
|
+
attr_accessor :detected_defects
|
5230
|
+
|
5231
|
+
# The overall quality score. Range [0, 1] where 1 is perfect quality.
|
5232
|
+
# Corresponds to the JSON property `qualityScore`
|
5233
|
+
# @return [Float]
|
5234
|
+
attr_accessor :quality_score
|
5235
|
+
|
5236
|
+
def initialize(**args)
|
5237
|
+
update!(**args)
|
5238
|
+
end
|
5239
|
+
|
5240
|
+
# Update properties of this object
|
5241
|
+
def update!(**args)
|
5242
|
+
@detected_defects = args[:detected_defects] if args.key?(:detected_defects)
|
5243
|
+
@quality_score = args[:quality_score] if args.key?(:quality_score)
|
5244
|
+
end
|
5245
|
+
end
|
5246
|
+
|
5247
|
+
# Image Quality Defects
|
5248
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
|
5249
|
+
include Google::Apis::Core::Hashable
|
5250
|
+
|
5251
|
+
# Confidence of detected defect. Range [0, 1] where 1 indicates strong
|
5252
|
+
# confidence of that the defect exists.
|
5253
|
+
# Corresponds to the JSON property `confidence`
|
5254
|
+
# @return [Float]
|
5255
|
+
attr_accessor :confidence
|
5256
|
+
|
5257
|
+
# Name of the defect type. Supported values are "quality/defect_blurry", "
|
5258
|
+
# quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
|
5259
|
+
# defect_text_too_small", "quality/defect_document_cutoff", "quality/
|
5260
|
+
# defect_text_cutoff", "quality/defect_glare"
|
5261
|
+
# Corresponds to the JSON property `type`
|
5262
|
+
# @return [String]
|
5263
|
+
attr_accessor :type
|
5264
|
+
|
5265
|
+
def initialize(**args)
|
5266
|
+
update!(**args)
|
5267
|
+
end
|
5268
|
+
|
5269
|
+
# Update properties of this object
|
5270
|
+
def update!(**args)
|
5271
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
5272
|
+
@type = args[:type] if args.key?(:type)
|
5273
|
+
end
|
5274
|
+
end
|
5275
|
+
|
5102
5276
|
# Visual element describing a layout unit on a page.
|
5103
5277
|
class GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
5104
5278
|
include Google::Apis::Core::Hashable
|
@@ -5294,6 +5468,12 @@ module Google
|
|
5294
5468
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
5295
5469
|
attr_accessor :layout
|
5296
5470
|
|
5471
|
+
# Structure to identify provenance relationships between annotations in
|
5472
|
+
# different revisions.
|
5473
|
+
# Corresponds to the JSON property `provenance`
|
5474
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
5475
|
+
attr_accessor :provenance
|
5476
|
+
|
5297
5477
|
def initialize(**args)
|
5298
5478
|
update!(**args)
|
5299
5479
|
end
|
@@ -5304,6 +5484,7 @@ module Google
|
|
5304
5484
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
5305
5485
|
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
5306
5486
|
@layout = args[:layout] if args.key?(:layout)
|
5487
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
5307
5488
|
end
|
5308
5489
|
end
|
5309
5490
|
|
@@ -6602,6 +6783,11 @@ module Google
|
|
6602
6783
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImage]
|
6603
6784
|
attr_accessor :image
|
6604
6785
|
|
6786
|
+
# Image Quality Scores for the page image
|
6787
|
+
# Corresponds to the JSON property `imageQualityScores`
|
6788
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores]
|
6789
|
+
attr_accessor :image_quality_scores
|
6790
|
+
|
6605
6791
|
# Visual element describing a layout unit on a page.
|
6606
6792
|
# Corresponds to the JSON property `layout`
|
6607
6793
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
@@ -6670,6 +6856,7 @@ module Google
|
|
6670
6856
|
@dimension = args[:dimension] if args.key?(:dimension)
|
6671
6857
|
@form_fields = args[:form_fields] if args.key?(:form_fields)
|
6672
6858
|
@image = args[:image] if args.key?(:image)
|
6859
|
+
@image_quality_scores = args[:image_quality_scores] if args.key?(:image_quality_scores)
|
6673
6860
|
@layout = args[:layout] if args.key?(:layout)
|
6674
6861
|
@lines = args[:lines] if args.key?(:lines)
|
6675
6862
|
@page_number = args[:page_number] if args.key?(:page_number)
|
@@ -6971,6 +7158,60 @@ module Google
|
|
6971
7158
|
end
|
6972
7159
|
end
|
6973
7160
|
|
7161
|
+
# Image Quality Scores for the page image
|
7162
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
|
7163
|
+
include Google::Apis::Core::Hashable
|
7164
|
+
|
7165
|
+
# A list of detected defects.
|
7166
|
+
# Corresponds to the JSON property `detectedDefects`
|
7167
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect>]
|
7168
|
+
attr_accessor :detected_defects
|
7169
|
+
|
7170
|
+
# The overall quality score. Range [0, 1] where 1 is perfect quality.
|
7171
|
+
# Corresponds to the JSON property `qualityScore`
|
7172
|
+
# @return [Float]
|
7173
|
+
attr_accessor :quality_score
|
7174
|
+
|
7175
|
+
def initialize(**args)
|
7176
|
+
update!(**args)
|
7177
|
+
end
|
7178
|
+
|
7179
|
+
# Update properties of this object
|
7180
|
+
def update!(**args)
|
7181
|
+
@detected_defects = args[:detected_defects] if args.key?(:detected_defects)
|
7182
|
+
@quality_score = args[:quality_score] if args.key?(:quality_score)
|
7183
|
+
end
|
7184
|
+
end
|
7185
|
+
|
7186
|
+
# Image Quality Defects
|
7187
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
|
7188
|
+
include Google::Apis::Core::Hashable
|
7189
|
+
|
7190
|
+
# Confidence of detected defect. Range [0, 1] where 1 indicates strong
|
7191
|
+
# confidence of that the defect exists.
|
7192
|
+
# Corresponds to the JSON property `confidence`
|
7193
|
+
# @return [Float]
|
7194
|
+
attr_accessor :confidence
|
7195
|
+
|
7196
|
+
# Name of the defect type. Supported values are "quality/defect_blurry", "
|
7197
|
+
# quality/defect_noisy", "quality/defect_dark", "quality/defect_faint", "quality/
|
7198
|
+
# defect_text_too_small", "quality/defect_document_cutoff", "quality/
|
7199
|
+
# defect_text_cutoff", "quality/defect_glare"
|
7200
|
+
# Corresponds to the JSON property `type`
|
7201
|
+
# @return [String]
|
7202
|
+
attr_accessor :type
|
7203
|
+
|
7204
|
+
def initialize(**args)
|
7205
|
+
update!(**args)
|
7206
|
+
end
|
7207
|
+
|
7208
|
+
# Update properties of this object
|
7209
|
+
def update!(**args)
|
7210
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7211
|
+
@type = args[:type] if args.key?(:type)
|
7212
|
+
end
|
7213
|
+
end
|
7214
|
+
|
6974
7215
|
# Visual element describing a layout unit on a page.
|
6975
7216
|
class GoogleCloudDocumentaiV1beta2DocumentPageLayout
|
6976
7217
|
include Google::Apis::Core::Hashable
|
@@ -7166,6 +7407,12 @@ module Google
|
|
7166
7407
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
7167
7408
|
attr_accessor :layout
|
7168
7409
|
|
7410
|
+
# Structure to identify provenance relationships between annotations in
|
7411
|
+
# different revisions.
|
7412
|
+
# Corresponds to the JSON property `provenance`
|
7413
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
7414
|
+
attr_accessor :provenance
|
7415
|
+
|
7169
7416
|
def initialize(**args)
|
7170
7417
|
update!(**args)
|
7171
7418
|
end
|
@@ -7176,6 +7423,7 @@ module Google
|
|
7176
7423
|
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
7177
7424
|
@header_rows = args[:header_rows] if args.key?(:header_rows)
|
7178
7425
|
@layout = args[:layout] if args.key?(:layout)
|
7426
|
+
@provenance = args[:provenance] if args.key?(:provenance)
|
7179
7427
|
end
|
7180
7428
|
end
|
7181
7429
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.51.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.11.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20221023"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -490,6 +490,18 @@ module Google
|
|
490
490
|
include Google::Apis::Core::JsonObjectSupport
|
491
491
|
end
|
492
492
|
|
493
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScores
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
499
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect
|
500
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
+
|
502
|
+
include Google::Apis::Core::JsonObjectSupport
|
503
|
+
end
|
504
|
+
|
493
505
|
class GoogleCloudDocumentaiV1DocumentPageLayout
|
494
506
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
507
|
|
@@ -808,6 +820,12 @@ module Google
|
|
808
820
|
include Google::Apis::Core::JsonObjectSupport
|
809
821
|
end
|
810
822
|
|
823
|
+
class GoogleCloudDocumentaiV1SchemaMutabilityMetadata
|
824
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
|
+
|
826
|
+
include Google::Apis::Core::JsonObjectSupport
|
827
|
+
end
|
828
|
+
|
811
829
|
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
812
830
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
813
831
|
|
@@ -958,6 +976,18 @@ module Google
|
|
958
976
|
include Google::Apis::Core::JsonObjectSupport
|
959
977
|
end
|
960
978
|
|
979
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
|
980
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
981
|
+
|
982
|
+
include Google::Apis::Core::JsonObjectSupport
|
983
|
+
end
|
984
|
+
|
985
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
|
986
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
987
|
+
|
988
|
+
include Google::Apis::Core::JsonObjectSupport
|
989
|
+
end
|
990
|
+
|
961
991
|
class GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
962
992
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
963
993
|
|
@@ -1234,6 +1264,18 @@ module Google
|
|
1234
1264
|
include Google::Apis::Core::JsonObjectSupport
|
1235
1265
|
end
|
1236
1266
|
|
1267
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
|
1268
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1269
|
+
|
1270
|
+
include Google::Apis::Core::JsonObjectSupport
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
|
1274
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1275
|
+
|
1276
|
+
include Google::Apis::Core::JsonObjectSupport
|
1277
|
+
end
|
1278
|
+
|
1237
1279
|
class GoogleCloudDocumentaiV1beta2DocumentPageLayout
|
1238
1280
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1239
1281
|
|
@@ -2239,6 +2281,8 @@ module Google
|
|
2239
2281
|
|
2240
2282
|
property :image, as: 'image', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImage::Representation
|
2241
2283
|
|
2284
|
+
property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScores::Representation
|
2285
|
+
|
2242
2286
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
|
2243
2287
|
|
2244
2288
|
collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLine, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLine::Representation
|
@@ -2349,6 +2393,23 @@ module Google
|
|
2349
2393
|
end
|
2350
2394
|
end
|
2351
2395
|
|
2396
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScores
|
2397
|
+
# @private
|
2398
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2399
|
+
collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect::Representation
|
2400
|
+
|
2401
|
+
property :quality_score, as: 'qualityScore'
|
2402
|
+
end
|
2403
|
+
end
|
2404
|
+
|
2405
|
+
class GoogleCloudDocumentaiV1DocumentPageImageQualityScoresDetectedDefect
|
2406
|
+
# @private
|
2407
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2408
|
+
property :confidence, as: 'confidence'
|
2409
|
+
property :type, as: 'type'
|
2410
|
+
end
|
2411
|
+
end
|
2412
|
+
|
2352
2413
|
class GoogleCloudDocumentaiV1DocumentPageLayout
|
2353
2414
|
# @private
|
2354
2415
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2416,6 +2477,8 @@ module Google
|
|
2416
2477
|
|
2417
2478
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
|
2418
2479
|
|
2480
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
|
2481
|
+
|
2419
2482
|
end
|
2420
2483
|
end
|
2421
2484
|
|
@@ -2659,6 +2722,8 @@ module Google
|
|
2659
2722
|
property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
|
2660
2723
|
|
2661
2724
|
property :inactive, as: 'inactive'
|
2725
|
+
property :schema_mutability_metadata, as: 'schemaMutabilityMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata::Representation
|
2726
|
+
|
2662
2727
|
end
|
2663
2728
|
end
|
2664
2729
|
|
@@ -2839,6 +2904,8 @@ module Google
|
|
2839
2904
|
property :human_review_metadata, as: 'humanReviewMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1HumanReviewValidationMetadata::Representation
|
2840
2905
|
|
2841
2906
|
property :inactive, as: 'inactive'
|
2907
|
+
property :schema_mutability_metadata, as: 'schemaMutabilityMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaMutabilityMetadata::Representation
|
2908
|
+
|
2842
2909
|
end
|
2843
2910
|
end
|
2844
2911
|
|
@@ -2880,6 +2947,14 @@ module Google
|
|
2880
2947
|
end
|
2881
2948
|
end
|
2882
2949
|
|
2950
|
+
class GoogleCloudDocumentaiV1SchemaMutabilityMetadata
|
2951
|
+
# @private
|
2952
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2953
|
+
property :editable, as: 'editable'
|
2954
|
+
collection :processor_versions, as: 'processorVersions'
|
2955
|
+
end
|
2956
|
+
end
|
2957
|
+
|
2883
2958
|
class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
|
2884
2959
|
# @private
|
2885
2960
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3065,6 +3140,8 @@ module Google
|
|
3065
3140
|
|
3066
3141
|
property :image, as: 'image', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImage::Representation
|
3067
3142
|
|
3143
|
+
property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores::Representation
|
3144
|
+
|
3068
3145
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
|
3069
3146
|
|
3070
3147
|
collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLine, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLine::Representation
|
@@ -3175,6 +3252,23 @@ module Google
|
|
3175
3252
|
end
|
3176
3253
|
end
|
3177
3254
|
|
3255
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScores
|
3256
|
+
# @private
|
3257
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3258
|
+
collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect::Representation
|
3259
|
+
|
3260
|
+
property :quality_score, as: 'qualityScore'
|
3261
|
+
end
|
3262
|
+
end
|
3263
|
+
|
3264
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageImageQualityScoresDetectedDefect
|
3265
|
+
# @private
|
3266
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3267
|
+
property :confidence, as: 'confidence'
|
3268
|
+
property :type, as: 'type'
|
3269
|
+
end
|
3270
|
+
end
|
3271
|
+
|
3178
3272
|
class GoogleCloudDocumentaiV1beta1DocumentPageLayout
|
3179
3273
|
# @private
|
3180
3274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3242,6 +3336,8 @@ module Google
|
|
3242
3336
|
|
3243
3337
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
|
3244
3338
|
|
3339
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
3340
|
+
|
3245
3341
|
end
|
3246
3342
|
end
|
3247
3343
|
|
@@ -3598,6 +3694,8 @@ module Google
|
|
3598
3694
|
|
3599
3695
|
property :image, as: 'image', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImage::Representation
|
3600
3696
|
|
3697
|
+
property :image_quality_scores, as: 'imageQualityScores', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores::Representation
|
3698
|
+
|
3601
3699
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
|
3602
3700
|
|
3603
3701
|
collection :lines, as: 'lines', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLine, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLine::Representation
|
@@ -3708,6 +3806,23 @@ module Google
|
|
3708
3806
|
end
|
3709
3807
|
end
|
3710
3808
|
|
3809
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScores
|
3810
|
+
# @private
|
3811
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3812
|
+
collection :detected_defects, as: 'detectedDefects', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect::Representation
|
3813
|
+
|
3814
|
+
property :quality_score, as: 'qualityScore'
|
3815
|
+
end
|
3816
|
+
end
|
3817
|
+
|
3818
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageImageQualityScoresDetectedDefect
|
3819
|
+
# @private
|
3820
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3821
|
+
property :confidence, as: 'confidence'
|
3822
|
+
property :type, as: 'type'
|
3823
|
+
end
|
3824
|
+
end
|
3825
|
+
|
3711
3826
|
class GoogleCloudDocumentaiV1beta2DocumentPageLayout
|
3712
3827
|
# @private
|
3713
3828
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3775,6 +3890,8 @@ module Google
|
|
3775
3890
|
|
3776
3891
|
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
|
3777
3892
|
|
3893
|
+
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
3894
|
+
|
3778
3895
|
end
|
3779
3896
|
end
|
3780
3897
|
|
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.
|
4
|
+
version: 0.51.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-31 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.9.
|
19
|
+
version: 0.9.1
|
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.9.
|
29
|
+
version: 0.9.1
|
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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.51.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: []
|