google-apis-documentai_v1 0.26.0 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/apis/documentai_v1/classes.rb +210 -27
- data/lib/google/apis/documentai_v1/gem_version.rb +2 -2
- data/lib/google/apis/documentai_v1/representations.rb +100 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89acd2b04ff36e88c20c9e7118acf413cb9fdcfa1961c92554475259ea82e85e
|
4
|
+
data.tar.gz: 68828fea3a1410497ca27bfa7e7a3d1ce97c1014fac70b043a5b08f330bcc3fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b35037105b1b0eb377257d429e45c26c2911bc1457a9d798af0088976e742fb3ff9b55789b6543be6a9a656632aac5a7f44778476bc74e82c15aa5a6d0d81ae
|
7
|
+
data.tar.gz: d9f482ed42671a3da17457ee7e65940b113718f2b3ca4cbd108b20d4079aea148b2a91a371e7440840f35bd2e3f142d1b591b94f7294cec3ace5738960361173
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Release history for google-apis-documentai_v1
|
2
2
|
|
3
|
+
### v0.29.0 (2022-03-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220226
|
6
|
+
|
7
|
+
### v0.28.0 (2022-02-24)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220222
|
10
|
+
|
11
|
+
### v0.27.0 (2022-02-15)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220212
|
14
|
+
|
3
15
|
### v0.26.0 (2022-02-08)
|
4
16
|
|
5
17
|
* Regenerated from discovery document revision 20220205
|
@@ -548,6 +548,83 @@ module Google
|
|
548
548
|
end
|
549
549
|
end
|
550
550
|
|
551
|
+
# The metadata proto of ResyncDataset method.
|
552
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
|
553
|
+
include Google::Apis::Core::Hashable
|
554
|
+
|
555
|
+
# The common metadata for long running operations.
|
556
|
+
# Corresponds to the JSON property `commonMetadata`
|
557
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
|
558
|
+
attr_accessor :common_metadata
|
559
|
+
|
560
|
+
# Returns the newly added document Cloud Storage prefix if the documents are
|
561
|
+
# founded in Cloud Storage while not in Document Service storage.
|
562
|
+
# Corresponds to the JSON property `newlyAddedDocuments`
|
563
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument>]
|
564
|
+
attr_accessor :newly_added_documents
|
565
|
+
|
566
|
+
def initialize(**args)
|
567
|
+
update!(**args)
|
568
|
+
end
|
569
|
+
|
570
|
+
# Update properties of this object
|
571
|
+
def update!(**args)
|
572
|
+
@common_metadata = args[:common_metadata] if args.key?(:common_metadata)
|
573
|
+
@newly_added_documents = args[:newly_added_documents] if args.key?(:newly_added_documents)
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
# The proto for updated document in resync pipeline.
|
578
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
|
579
|
+
include Google::Apis::Core::Hashable
|
580
|
+
|
581
|
+
# The prefix of cloud storage, identifies the destination document which should
|
582
|
+
# be updated by resync pipeline.
|
583
|
+
# Corresponds to the JSON property `destinationPrefix`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :destination_prefix
|
586
|
+
|
587
|
+
# The prefix of cloud storage, identifies the original document which should be
|
588
|
+
# updated by resync pipeline.
|
589
|
+
# Corresponds to the JSON property `sourcePrefix`
|
590
|
+
# @return [String]
|
591
|
+
attr_accessor :source_prefix
|
592
|
+
|
593
|
+
# The `Status` type defines a logical error model that is suitable for different
|
594
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
595
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
596
|
+
# data: error code, error message, and error details. You can find out more
|
597
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
598
|
+
# //cloud.google.com/apis/design/errors).
|
599
|
+
# Corresponds to the JSON property `status`
|
600
|
+
# @return [Google::Apis::DocumentaiV1::GoogleRpcStatus]
|
601
|
+
attr_accessor :status
|
602
|
+
|
603
|
+
def initialize(**args)
|
604
|
+
update!(**args)
|
605
|
+
end
|
606
|
+
|
607
|
+
# Update properties of this object
|
608
|
+
def update!(**args)
|
609
|
+
@destination_prefix = args[:destination_prefix] if args.key?(:destination_prefix)
|
610
|
+
@source_prefix = args[:source_prefix] if args.key?(:source_prefix)
|
611
|
+
@status = args[:status] if args.key?(:status)
|
612
|
+
end
|
613
|
+
end
|
614
|
+
|
615
|
+
# The response proto of ResyncDataset method.
|
616
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
|
617
|
+
include Google::Apis::Core::Hashable
|
618
|
+
|
619
|
+
def initialize(**args)
|
620
|
+
update!(**args)
|
621
|
+
end
|
622
|
+
|
623
|
+
# Update properties of this object
|
624
|
+
def update!(**args)
|
625
|
+
end
|
626
|
+
end
|
627
|
+
|
551
628
|
# The revision reference specifies which revision on the document to read.
|
552
629
|
class GoogleCloudDocumentaiUiv1beta3RevisionReference
|
553
630
|
include Google::Apis::Core::Hashable
|
@@ -1175,7 +1252,7 @@ module Google
|
|
1175
1252
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntity>]
|
1176
1253
|
attr_accessor :entities
|
1177
1254
|
|
1178
|
-
# Relationship among Document.entities.
|
1255
|
+
# Placeholder. Relationship among Document.entities.
|
1179
1256
|
# Corresponds to the JSON property `entityRelations`
|
1180
1257
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentEntityRelation>]
|
1181
1258
|
attr_accessor :entity_relations
|
@@ -1202,7 +1279,7 @@ module Google
|
|
1202
1279
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPage>]
|
1203
1280
|
attr_accessor :pages
|
1204
1281
|
|
1205
|
-
# Revision history of this document.
|
1282
|
+
# Placeholder. Revision history of this document.
|
1206
1283
|
# Corresponds to the JSON property `revisions`
|
1207
1284
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentRevision>]
|
1208
1285
|
attr_accessor :revisions
|
@@ -1218,14 +1295,14 @@ module Google
|
|
1218
1295
|
# @return [String]
|
1219
1296
|
attr_accessor :text
|
1220
1297
|
|
1221
|
-
# A list of text corrections made to [Document.text]. This is
|
1222
|
-
# annotating corrections to OCR mistakes. Text changes for a
|
1223
|
-
# not overlap with each other.
|
1298
|
+
# Placeholder. A list of text corrections made to [Document.text]. This is
|
1299
|
+
# usually used for annotating corrections to OCR mistakes. Text changes for a
|
1300
|
+
# given revision may not overlap with each other.
|
1224
1301
|
# Corresponds to the JSON property `textChanges`
|
1225
1302
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentTextChange>]
|
1226
1303
|
attr_accessor :text_changes
|
1227
1304
|
|
1228
|
-
# Styles for the Document.text.
|
1305
|
+
# Placeholder. Styles for the Document.text.
|
1229
1306
|
# Corresponds to the JSON property `textStyles`
|
1230
1307
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentStyle>]
|
1231
1308
|
attr_accessor :text_styles
|
@@ -1575,6 +1652,11 @@ module Google
|
|
1575
1652
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
|
1576
1653
|
attr_accessor :provenance
|
1577
1654
|
|
1655
|
+
# A list of visually detected symbols on the page.
|
1656
|
+
# Corresponds to the JSON property `symbols`
|
1657
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol>]
|
1658
|
+
attr_accessor :symbols
|
1659
|
+
|
1578
1660
|
# A list of visually detected tables on the page.
|
1579
1661
|
# Corresponds to the JSON property `tables`
|
1580
1662
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable>]
|
@@ -1613,6 +1695,7 @@ module Google
|
|
1613
1695
|
@page_number = args[:page_number] if args.key?(:page_number)
|
1614
1696
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
1615
1697
|
@provenance = args[:provenance] if args.key?(:provenance)
|
1698
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
1616
1699
|
@tables = args[:tables] if args.key?(:tables)
|
1617
1700
|
@tokens = args[:tokens] if args.key?(:tokens)
|
1618
1701
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -1730,7 +1813,7 @@ module Google
|
|
1730
1813
|
attr_accessor :confidence
|
1731
1814
|
|
1732
1815
|
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
1733
|
-
# see
|
1816
|
+
# see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
1734
1817
|
# Corresponds to the JSON property `languageCode`
|
1735
1818
|
# @return [String]
|
1736
1819
|
attr_accessor :language_code
|
@@ -2029,6 +2112,31 @@ module Google
|
|
2029
2112
|
end
|
2030
2113
|
end
|
2031
2114
|
|
2115
|
+
# A detected symbol.
|
2116
|
+
class GoogleCloudDocumentaiV1DocumentPageSymbol
|
2117
|
+
include Google::Apis::Core::Hashable
|
2118
|
+
|
2119
|
+
# A list of detected languages together with confidence.
|
2120
|
+
# Corresponds to the JSON property `detectedLanguages`
|
2121
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage>]
|
2122
|
+
attr_accessor :detected_languages
|
2123
|
+
|
2124
|
+
# Visual element describing a layout unit on a page.
|
2125
|
+
# Corresponds to the JSON property `layout`
|
2126
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout]
|
2127
|
+
attr_accessor :layout
|
2128
|
+
|
2129
|
+
def initialize(**args)
|
2130
|
+
update!(**args)
|
2131
|
+
end
|
2132
|
+
|
2133
|
+
# Update properties of this object
|
2134
|
+
def update!(**args)
|
2135
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
2136
|
+
@layout = args[:layout] if args.key?(:layout)
|
2137
|
+
end
|
2138
|
+
end
|
2139
|
+
|
2032
2140
|
# A table representation similar to HTML table structure.
|
2033
2141
|
class GoogleCloudDocumentaiV1DocumentPageTable
|
2034
2142
|
include Google::Apis::Core::Hashable
|
@@ -2577,7 +2685,7 @@ module Google
|
|
2577
2685
|
include Google::Apis::Core::Hashable
|
2578
2686
|
|
2579
2687
|
# Contains the content of the text span so that users do not have to look it up
|
2580
|
-
# in the text_segments.
|
2688
|
+
# in the text_segments. It is always populated for formFields.
|
2581
2689
|
# Corresponds to the JSON property `content`
|
2582
2690
|
# @return [String]
|
2583
2691
|
attr_accessor :content
|
@@ -3001,7 +3109,8 @@ module Google
|
|
3001
3109
|
# @return [String]
|
3002
3110
|
attr_accessor :state
|
3003
3111
|
|
3004
|
-
# The processor type, e.g.,
|
3112
|
+
# The processor type, e.g., OCR_PROCESSOR, INVOICE_PROCESSOR, etc. To get a list
|
3113
|
+
# of processors types, see FetchProcessorTypes.
|
3005
3114
|
# Corresponds to the JSON property `type`
|
3006
3115
|
# @return [String]
|
3007
3116
|
attr_accessor :type
|
@@ -3113,6 +3222,16 @@ module Google
|
|
3113
3222
|
# @return [String]
|
3114
3223
|
attr_accessor :display_name
|
3115
3224
|
|
3225
|
+
# The KMS key name used for encryption.
|
3226
|
+
# Corresponds to the JSON property `kmsKeyName`
|
3227
|
+
# @return [String]
|
3228
|
+
attr_accessor :kms_key_name
|
3229
|
+
|
3230
|
+
# The KMS key version with which data is encrypted.
|
3231
|
+
# Corresponds to the JSON property `kmsKeyVersionName`
|
3232
|
+
# @return [String]
|
3233
|
+
attr_accessor :kms_key_version_name
|
3234
|
+
|
3116
3235
|
# The resource name of the processor version. Format: `projects/`project`/
|
3117
3236
|
# locations/`location`/processors/`processor`/processorVersions/`
|
3118
3237
|
# processor_version``
|
@@ -3133,6 +3252,8 @@ module Google
|
|
3133
3252
|
def update!(**args)
|
3134
3253
|
@create_time = args[:create_time] if args.key?(:create_time)
|
3135
3254
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3255
|
+
@kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
|
3256
|
+
@kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
|
3136
3257
|
@name = args[:name] if args.key?(:name)
|
3137
3258
|
@state = args[:state] if args.key?(:state)
|
3138
3259
|
end
|
@@ -3493,7 +3614,7 @@ module Google
|
|
3493
3614
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntity>]
|
3494
3615
|
attr_accessor :entities
|
3495
3616
|
|
3496
|
-
# Relationship among Document.entities.
|
3617
|
+
# Placeholder. Relationship among Document.entities.
|
3497
3618
|
# Corresponds to the JSON property `entityRelations`
|
3498
3619
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityRelation>]
|
3499
3620
|
attr_accessor :entity_relations
|
@@ -3520,7 +3641,7 @@ module Google
|
|
3520
3641
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPage>]
|
3521
3642
|
attr_accessor :pages
|
3522
3643
|
|
3523
|
-
# Revision history of this document.
|
3644
|
+
# Placeholder. Revision history of this document.
|
3524
3645
|
# Corresponds to the JSON property `revisions`
|
3525
3646
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentRevision>]
|
3526
3647
|
attr_accessor :revisions
|
@@ -3536,14 +3657,14 @@ module Google
|
|
3536
3657
|
# @return [String]
|
3537
3658
|
attr_accessor :text
|
3538
3659
|
|
3539
|
-
# A list of text corrections made to [Document.text]. This is
|
3540
|
-
# annotating corrections to OCR mistakes. Text changes for a
|
3541
|
-
# not overlap with each other.
|
3660
|
+
# Placeholder. A list of text corrections made to [Document.text]. This is
|
3661
|
+
# usually used for annotating corrections to OCR mistakes. Text changes for a
|
3662
|
+
# given revision may not overlap with each other.
|
3542
3663
|
# Corresponds to the JSON property `textChanges`
|
3543
3664
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
|
3544
3665
|
attr_accessor :text_changes
|
3545
3666
|
|
3546
|
-
# Styles for the Document.text.
|
3667
|
+
# Placeholder. Styles for the Document.text.
|
3547
3668
|
# Corresponds to the JSON property `textStyles`
|
3548
3669
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentStyle>]
|
3549
3670
|
attr_accessor :text_styles
|
@@ -3854,6 +3975,11 @@ module Google
|
|
3854
3975
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
|
3855
3976
|
attr_accessor :provenance
|
3856
3977
|
|
3978
|
+
# A list of visually detected symbols on the page.
|
3979
|
+
# Corresponds to the JSON property `symbols`
|
3980
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol>]
|
3981
|
+
attr_accessor :symbols
|
3982
|
+
|
3857
3983
|
# A list of visually detected tables on the page.
|
3858
3984
|
# Corresponds to the JSON property `tables`
|
3859
3985
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
|
@@ -3892,6 +4018,7 @@ module Google
|
|
3892
4018
|
@page_number = args[:page_number] if args.key?(:page_number)
|
3893
4019
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
3894
4020
|
@provenance = args[:provenance] if args.key?(:provenance)
|
4021
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
3895
4022
|
@tables = args[:tables] if args.key?(:tables)
|
3896
4023
|
@tokens = args[:tokens] if args.key?(:tokens)
|
3897
4024
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -4009,7 +4136,7 @@ module Google
|
|
4009
4136
|
attr_accessor :confidence
|
4010
4137
|
|
4011
4138
|
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
4012
|
-
# see
|
4139
|
+
# see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
4013
4140
|
# Corresponds to the JSON property `languageCode`
|
4014
4141
|
# @return [String]
|
4015
4142
|
attr_accessor :language_code
|
@@ -4308,6 +4435,31 @@ module Google
|
|
4308
4435
|
end
|
4309
4436
|
end
|
4310
4437
|
|
4438
|
+
# A detected symbol.
|
4439
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
|
4440
|
+
include Google::Apis::Core::Hashable
|
4441
|
+
|
4442
|
+
# A list of detected languages together with confidence.
|
4443
|
+
# Corresponds to the JSON property `detectedLanguages`
|
4444
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
|
4445
|
+
attr_accessor :detected_languages
|
4446
|
+
|
4447
|
+
# Visual element describing a layout unit on a page.
|
4448
|
+
# Corresponds to the JSON property `layout`
|
4449
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
|
4450
|
+
attr_accessor :layout
|
4451
|
+
|
4452
|
+
def initialize(**args)
|
4453
|
+
update!(**args)
|
4454
|
+
end
|
4455
|
+
|
4456
|
+
# Update properties of this object
|
4457
|
+
def update!(**args)
|
4458
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
4459
|
+
@layout = args[:layout] if args.key?(:layout)
|
4460
|
+
end
|
4461
|
+
end
|
4462
|
+
|
4311
4463
|
# A table representation similar to HTML table structure.
|
4312
4464
|
class GoogleCloudDocumentaiV1beta1DocumentPageTable
|
4313
4465
|
include Google::Apis::Core::Hashable
|
@@ -4856,7 +5008,7 @@ module Google
|
|
4856
5008
|
include Google::Apis::Core::Hashable
|
4857
5009
|
|
4858
5010
|
# Contains the content of the text span so that users do not have to look it up
|
4859
|
-
# in the text_segments.
|
5011
|
+
# in the text_segments. It is always populated for formFields.
|
4860
5012
|
# Corresponds to the JSON property `content`
|
4861
5013
|
# @return [String]
|
4862
5014
|
attr_accessor :content
|
@@ -5214,7 +5366,7 @@ module Google
|
|
5214
5366
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntity>]
|
5215
5367
|
attr_accessor :entities
|
5216
5368
|
|
5217
|
-
# Relationship among Document.entities.
|
5369
|
+
# Placeholder. Relationship among Document.entities.
|
5218
5370
|
# Corresponds to the JSON property `entityRelations`
|
5219
5371
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
|
5220
5372
|
attr_accessor :entity_relations
|
@@ -5246,7 +5398,7 @@ module Google
|
|
5246
5398
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPage>]
|
5247
5399
|
attr_accessor :pages
|
5248
5400
|
|
5249
|
-
# Revision history of this document.
|
5401
|
+
# Placeholder. Revision history of this document.
|
5250
5402
|
# Corresponds to the JSON property `revisions`
|
5251
5403
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentRevision>]
|
5252
5404
|
attr_accessor :revisions
|
@@ -5262,14 +5414,14 @@ module Google
|
|
5262
5414
|
# @return [String]
|
5263
5415
|
attr_accessor :text
|
5264
5416
|
|
5265
|
-
# A list of text corrections made to [Document.text]. This is
|
5266
|
-
# annotating corrections to OCR mistakes. Text changes for a
|
5267
|
-
# not overlap with each other.
|
5417
|
+
# Placeholder. A list of text corrections made to [Document.text]. This is
|
5418
|
+
# usually used for annotating corrections to OCR mistakes. Text changes for a
|
5419
|
+
# given revision may not overlap with each other.
|
5268
5420
|
# Corresponds to the JSON property `textChanges`
|
5269
5421
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
|
5270
5422
|
attr_accessor :text_changes
|
5271
5423
|
|
5272
|
-
# Styles for the Document.text.
|
5424
|
+
# Placeholder. Styles for the Document.text.
|
5273
5425
|
# Corresponds to the JSON property `textStyles`
|
5274
5426
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentStyle>]
|
5275
5427
|
attr_accessor :text_styles
|
@@ -5618,6 +5770,11 @@ module Google
|
|
5618
5770
|
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
|
5619
5771
|
attr_accessor :provenance
|
5620
5772
|
|
5773
|
+
# A list of visually detected symbols on the page.
|
5774
|
+
# Corresponds to the JSON property `symbols`
|
5775
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol>]
|
5776
|
+
attr_accessor :symbols
|
5777
|
+
|
5621
5778
|
# A list of visually detected tables on the page.
|
5622
5779
|
# Corresponds to the JSON property `tables`
|
5623
5780
|
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
|
@@ -5656,6 +5813,7 @@ module Google
|
|
5656
5813
|
@page_number = args[:page_number] if args.key?(:page_number)
|
5657
5814
|
@paragraphs = args[:paragraphs] if args.key?(:paragraphs)
|
5658
5815
|
@provenance = args[:provenance] if args.key?(:provenance)
|
5816
|
+
@symbols = args[:symbols] if args.key?(:symbols)
|
5659
5817
|
@tables = args[:tables] if args.key?(:tables)
|
5660
5818
|
@tokens = args[:tokens] if args.key?(:tokens)
|
5661
5819
|
@transforms = args[:transforms] if args.key?(:transforms)
|
@@ -5773,7 +5931,7 @@ module Google
|
|
5773
5931
|
attr_accessor :confidence
|
5774
5932
|
|
5775
5933
|
# The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
|
5776
|
-
# see
|
5934
|
+
# see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
|
5777
5935
|
# Corresponds to the JSON property `languageCode`
|
5778
5936
|
# @return [String]
|
5779
5937
|
attr_accessor :language_code
|
@@ -6072,6 +6230,31 @@ module Google
|
|
6072
6230
|
end
|
6073
6231
|
end
|
6074
6232
|
|
6233
|
+
# A detected symbol.
|
6234
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
|
6235
|
+
include Google::Apis::Core::Hashable
|
6236
|
+
|
6237
|
+
# A list of detected languages together with confidence.
|
6238
|
+
# Corresponds to the JSON property `detectedLanguages`
|
6239
|
+
# @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
|
6240
|
+
attr_accessor :detected_languages
|
6241
|
+
|
6242
|
+
# Visual element describing a layout unit on a page.
|
6243
|
+
# Corresponds to the JSON property `layout`
|
6244
|
+
# @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
|
6245
|
+
attr_accessor :layout
|
6246
|
+
|
6247
|
+
def initialize(**args)
|
6248
|
+
update!(**args)
|
6249
|
+
end
|
6250
|
+
|
6251
|
+
# Update properties of this object
|
6252
|
+
def update!(**args)
|
6253
|
+
@detected_languages = args[:detected_languages] if args.key?(:detected_languages)
|
6254
|
+
@layout = args[:layout] if args.key?(:layout)
|
6255
|
+
end
|
6256
|
+
end
|
6257
|
+
|
6075
6258
|
# A table representation similar to HTML table structure.
|
6076
6259
|
class GoogleCloudDocumentaiV1beta2DocumentPageTable
|
6077
6260
|
include Google::Apis::Core::Hashable
|
@@ -6620,7 +6803,7 @@ module Google
|
|
6620
6803
|
include Google::Apis::Core::Hashable
|
6621
6804
|
|
6622
6805
|
# Contains the content of the text span so that users do not have to look it up
|
6623
|
-
# in the text_segments.
|
6806
|
+
# in the text_segments. It is always populated for formFields.
|
6624
6807
|
# Corresponds to the JSON property `content`
|
6625
6808
|
# @return [String]
|
6626
6809
|
attr_accessor :content
|
@@ -7929,8 +8112,8 @@ module Google
|
|
7929
8112
|
attr_accessor :recipients
|
7930
8113
|
|
7931
8114
|
# Required. CLDR region code of the country/region of the address. This is never
|
7932
|
-
# inferred and it is up to the user to ensure the value is correct. See
|
7933
|
-
# cldr.unicode.org/ and
|
8115
|
+
# inferred and it is up to the user to ensure the value is correct. See https://
|
8116
|
+
# cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/
|
7934
8117
|
# territory_information.html for details. Example: "CH" for Switzerland.
|
7935
8118
|
# Corresponds to the JSON property `regionCode`
|
7936
8119
|
# @return [String]
|
@@ -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.29.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220226"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -172,6 +172,24 @@ module Google
|
|
172
172
|
include Google::Apis::Core::JsonObjectSupport
|
173
173
|
end
|
174
174
|
|
175
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
181
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
|
182
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
|
+
|
184
|
+
include Google::Apis::Core::JsonObjectSupport
|
185
|
+
end
|
186
|
+
|
187
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
175
193
|
class GoogleCloudDocumentaiUiv1beta3RevisionReference
|
176
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
195
|
|
@@ -436,6 +454,12 @@ module Google
|
|
436
454
|
include Google::Apis::Core::JsonObjectSupport
|
437
455
|
end
|
438
456
|
|
457
|
+
class GoogleCloudDocumentaiV1DocumentPageSymbol
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
439
463
|
class GoogleCloudDocumentaiV1DocumentPageTable
|
440
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
465
|
|
@@ -820,6 +844,12 @@ module Google
|
|
820
844
|
include Google::Apis::Core::JsonObjectSupport
|
821
845
|
end
|
822
846
|
|
847
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
|
848
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
849
|
+
|
850
|
+
include Google::Apis::Core::JsonObjectSupport
|
851
|
+
end
|
852
|
+
|
823
853
|
class GoogleCloudDocumentaiV1beta1DocumentPageTable
|
824
854
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
825
855
|
|
@@ -1078,6 +1108,12 @@ module Google
|
|
1078
1108
|
include Google::Apis::Core::JsonObjectSupport
|
1079
1109
|
end
|
1080
1110
|
|
1111
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
|
1112
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1113
|
+
|
1114
|
+
include Google::Apis::Core::JsonObjectSupport
|
1115
|
+
end
|
1116
|
+
|
1081
1117
|
class GoogleCloudDocumentaiV1beta2DocumentPageTable
|
1082
1118
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1083
1119
|
|
@@ -1608,6 +1644,32 @@ module Google
|
|
1608
1644
|
end
|
1609
1645
|
end
|
1610
1646
|
|
1647
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadata
|
1648
|
+
# @private
|
1649
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1650
|
+
property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
|
1651
|
+
|
1652
|
+
collection :newly_added_documents, as: 'newlyAddedDocuments', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument::Representation
|
1653
|
+
|
1654
|
+
end
|
1655
|
+
end
|
1656
|
+
|
1657
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetMetadataUpdatedDocument
|
1658
|
+
# @private
|
1659
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1660
|
+
property :destination_prefix, as: 'destinationPrefix'
|
1661
|
+
property :source_prefix, as: 'sourcePrefix'
|
1662
|
+
property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
|
1663
|
+
|
1664
|
+
end
|
1665
|
+
end
|
1666
|
+
|
1667
|
+
class GoogleCloudDocumentaiUiv1beta3ResyncDatasetResponse
|
1668
|
+
# @private
|
1669
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1670
|
+
end
|
1671
|
+
end
|
1672
|
+
|
1611
1673
|
class GoogleCloudDocumentaiUiv1beta3RevisionReference
|
1612
1674
|
# @private
|
1613
1675
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1940,6 +2002,8 @@ module Google
|
|
1940
2002
|
|
1941
2003
|
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance::Representation
|
1942
2004
|
|
2005
|
+
collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageSymbol::Representation
|
2006
|
+
|
1943
2007
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable::Representation
|
1944
2008
|
|
1945
2009
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageToken::Representation
|
@@ -2075,6 +2139,16 @@ module Google
|
|
2075
2139
|
end
|
2076
2140
|
end
|
2077
2141
|
|
2142
|
+
class GoogleCloudDocumentaiV1DocumentPageSymbol
|
2143
|
+
# @private
|
2144
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2145
|
+
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageDetectedLanguage::Representation
|
2146
|
+
|
2147
|
+
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageLayout::Representation
|
2148
|
+
|
2149
|
+
end
|
2150
|
+
end
|
2151
|
+
|
2078
2152
|
class GoogleCloudDocumentaiV1DocumentPageTable
|
2079
2153
|
# @private
|
2080
2154
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2391,6 +2465,8 @@ module Google
|
|
2391
2465
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2392
2466
|
property :create_time, as: 'createTime'
|
2393
2467
|
property :display_name, as: 'displayName'
|
2468
|
+
property :kms_key_name, as: 'kmsKeyName'
|
2469
|
+
property :kms_key_version_name, as: 'kmsKeyVersionName'
|
2394
2470
|
property :name, as: 'name'
|
2395
2471
|
property :state, as: 'state'
|
2396
2472
|
end
|
@@ -2613,6 +2689,8 @@ module Google
|
|
2613
2689
|
|
2614
2690
|
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance::Representation
|
2615
2691
|
|
2692
|
+
collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol::Representation
|
2693
|
+
|
2616
2694
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable::Representation
|
2617
2695
|
|
2618
2696
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageToken::Representation
|
@@ -2748,6 +2826,16 @@ module Google
|
|
2748
2826
|
end
|
2749
2827
|
end
|
2750
2828
|
|
2829
|
+
class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
|
2830
|
+
# @private
|
2831
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2832
|
+
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage::Representation
|
2833
|
+
|
2834
|
+
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout::Representation
|
2835
|
+
|
2836
|
+
end
|
2837
|
+
end
|
2838
|
+
|
2751
2839
|
class GoogleCloudDocumentaiV1beta1DocumentPageTable
|
2752
2840
|
# @private
|
2753
2841
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3112,6 +3200,8 @@ module Google
|
|
3112
3200
|
|
3113
3201
|
property :provenance, as: 'provenance', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance::Representation
|
3114
3202
|
|
3203
|
+
collection :symbols, as: 'symbols', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol::Representation
|
3204
|
+
|
3115
3205
|
collection :tables, as: 'tables', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable::Representation
|
3116
3206
|
|
3117
3207
|
collection :tokens, as: 'tokens', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageToken::Representation
|
@@ -3247,6 +3337,16 @@ module Google
|
|
3247
3337
|
end
|
3248
3338
|
end
|
3249
3339
|
|
3340
|
+
class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
|
3341
|
+
# @private
|
3342
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3343
|
+
collection :detected_languages, as: 'detectedLanguages', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage::Representation
|
3344
|
+
|
3345
|
+
property :layout, as: 'layout', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout::Representation
|
3346
|
+
|
3347
|
+
end
|
3348
|
+
end
|
3349
|
+
|
3250
3350
|
class GoogleCloudDocumentaiV1beta2DocumentPageTable
|
3251
3351
|
# @private
|
3252
3352
|
class Representation < Google::Apis::Core::JsonRepresentation
|
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.29.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-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.29.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: []
|