google-apis-documentai_v1 0.25.0 → 0.28.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: aad69fa3be23593c10c35813accd7e9358b5788c3822260f6e33efd291656436
4
- data.tar.gz: c734d70cc684256fc5fa038d8d81f1cf7da0cdb7b11d277018d4ad5246077f38
3
+ metadata.gz: cfefcd0a66b980ef95b0568550121c22c6ad8688af878e7bffc2849ebe2866f3
4
+ data.tar.gz: e72fa731e404096be56452caf9ae29148212058f3cf1985d8deea5d4a4811fc6
5
5
  SHA512:
6
- metadata.gz: 2b68b8b8a0c1242162049d3ae6b191a86c7e2ebeca6fb0f0df0f3be0d50d5506900d81e6272a7728cb5ae7ca1a300a386a10a081c87efbeaea1acff9bcdf984d
7
- data.tar.gz: a986f15006187a092f33ecde972f0673ac503302e3c06bd6243601f2035fe8b0c6208c5c1901f67e3744f9e12e45a1e684ac053f20a06b28a796302124037a67
6
+ metadata.gz: 9347e2bd683de7aec03582412ea1a67d61784dc72a5edb3d6010d2fe904114fa18964d1f579c8ef1d4c66dc3a3f9bf6a033633c36841467377b1bf74ee63f267
7
+ data.tar.gz: 21379bdec6bb6eaf54ad39efe037a19970c97cc4d9b4248c35d49426525a9a9878b846a2dca0ebaf51d2ce07181e999c13d0b4a7a71a01fe4c1f8d5241682eab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.28.0 (2022-02-24)
4
+
5
+ * Regenerated from discovery document revision 20220222
6
+
7
+ ### v0.27.0 (2022-02-15)
8
+
9
+ * Regenerated from discovery document revision 20220212
10
+
11
+ ### v0.26.0 (2022-02-08)
12
+
13
+ * Regenerated from discovery document revision 20220205
14
+
3
15
  ### v0.25.0 (2022-02-01)
4
16
 
5
17
  * Regenerated from discovery document revision 20220129
@@ -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 usually used for
1222
- # annotating corrections to OCR mistakes. Text changes for a given revision may
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
@@ -1371,8 +1448,14 @@ module Google
1371
1448
  attr_accessor :boolean_value
1372
1449
  alias_method :boolean_value?, :boolean_value
1373
1450
 
1374
- # Date value. Includes year, month, day. See also: https://github.com/googleapis/
1375
- # googleapis/blob/master/google/type/date.proto
1451
+ # Represents a whole or partial calendar date, such as a birthday. The time of
1452
+ # day and time zone are either specified elsewhere or are insignificant. The
1453
+ # date is relative to the Gregorian Calendar. This can represent one of the
1454
+ # following: * A full date, with non-zero year, month, and day values * A month
1455
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
1456
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
1457
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
1458
+ # DateTime * google.protobuf.Timestamp
1376
1459
  # Corresponds to the JSON property `dateValue`
1377
1460
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
1378
1461
  attr_accessor :date_value
@@ -1569,6 +1652,11 @@ module Google
1569
1652
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentProvenance]
1570
1653
  attr_accessor :provenance
1571
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
+
1572
1660
  # A list of visually detected tables on the page.
1573
1661
  # Corresponds to the JSON property `tables`
1574
1662
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1DocumentPageTable>]
@@ -1607,6 +1695,7 @@ module Google
1607
1695
  @page_number = args[:page_number] if args.key?(:page_number)
1608
1696
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
1609
1697
  @provenance = args[:provenance] if args.key?(:provenance)
1698
+ @symbols = args[:symbols] if args.key?(:symbols)
1610
1699
  @tables = args[:tables] if args.key?(:tables)
1611
1700
  @tokens = args[:tokens] if args.key?(:tokens)
1612
1701
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -1724,7 +1813,7 @@ module Google
1724
1813
  attr_accessor :confidence
1725
1814
 
1726
1815
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
1727
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1816
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
1728
1817
  # Corresponds to the JSON property `languageCode`
1729
1818
  # @return [String]
1730
1819
  attr_accessor :language_code
@@ -2023,6 +2112,31 @@ module Google
2023
2112
  end
2024
2113
  end
2025
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
+
2026
2140
  # A table representation similar to HTML table structure.
2027
2141
  class GoogleCloudDocumentaiV1DocumentPageTable
2028
2142
  include Google::Apis::Core::Hashable
@@ -2571,7 +2685,7 @@ module Google
2571
2685
  include Google::Apis::Core::Hashable
2572
2686
 
2573
2687
  # Contains the content of the text span so that users do not have to look it up
2574
- # in the text_segments.
2688
+ # in the text_segments. It is always populated for formFields.
2575
2689
  # Corresponds to the JSON property `content`
2576
2690
  # @return [String]
2577
2691
  attr_accessor :content
@@ -3107,6 +3221,16 @@ module Google
3107
3221
  # @return [String]
3108
3222
  attr_accessor :display_name
3109
3223
 
3224
+ # The KMS key name used for encryption.
3225
+ # Corresponds to the JSON property `kmsKeyName`
3226
+ # @return [String]
3227
+ attr_accessor :kms_key_name
3228
+
3229
+ # The KMS key version with which data is encrypted.
3230
+ # Corresponds to the JSON property `kmsKeyVersionName`
3231
+ # @return [String]
3232
+ attr_accessor :kms_key_version_name
3233
+
3110
3234
  # The resource name of the processor version. Format: `projects/`project`/
3111
3235
  # locations/`location`/processors/`processor`/processorVersions/`
3112
3236
  # processor_version``
@@ -3127,6 +3251,8 @@ module Google
3127
3251
  def update!(**args)
3128
3252
  @create_time = args[:create_time] if args.key?(:create_time)
3129
3253
  @display_name = args[:display_name] if args.key?(:display_name)
3254
+ @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
3255
+ @kms_key_version_name = args[:kms_key_version_name] if args.key?(:kms_key_version_name)
3130
3256
  @name = args[:name] if args.key?(:name)
3131
3257
  @state = args[:state] if args.key?(:state)
3132
3258
  end
@@ -3487,7 +3613,7 @@ module Google
3487
3613
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntity>]
3488
3614
  attr_accessor :entities
3489
3615
 
3490
- # Relationship among Document.entities.
3616
+ # Placeholder. Relationship among Document.entities.
3491
3617
  # Corresponds to the JSON property `entityRelations`
3492
3618
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentEntityRelation>]
3493
3619
  attr_accessor :entity_relations
@@ -3514,7 +3640,7 @@ module Google
3514
3640
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPage>]
3515
3641
  attr_accessor :pages
3516
3642
 
3517
- # Revision history of this document.
3643
+ # Placeholder. Revision history of this document.
3518
3644
  # Corresponds to the JSON property `revisions`
3519
3645
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentRevision>]
3520
3646
  attr_accessor :revisions
@@ -3530,14 +3656,14 @@ module Google
3530
3656
  # @return [String]
3531
3657
  attr_accessor :text
3532
3658
 
3533
- # A list of text corrections made to [Document.text]. This is usually used for
3534
- # annotating corrections to OCR mistakes. Text changes for a given revision may
3535
- # not overlap with each other.
3659
+ # Placeholder. A list of text corrections made to [Document.text]. This is
3660
+ # usually used for annotating corrections to OCR mistakes. Text changes for a
3661
+ # given revision may not overlap with each other.
3536
3662
  # Corresponds to the JSON property `textChanges`
3537
3663
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentTextChange>]
3538
3664
  attr_accessor :text_changes
3539
3665
 
3540
- # Styles for the Document.text.
3666
+ # Placeholder. Styles for the Document.text.
3541
3667
  # Corresponds to the JSON property `textStyles`
3542
3668
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentStyle>]
3543
3669
  attr_accessor :text_styles
@@ -3683,8 +3809,14 @@ module Google
3683
3809
  attr_accessor :boolean_value
3684
3810
  alias_method :boolean_value?, :boolean_value
3685
3811
 
3686
- # Date value. Includes year, month, day. See also: https://github.com/googleapis/
3687
- # googleapis/blob/master/google/type/date.proto
3812
+ # Represents a whole or partial calendar date, such as a birthday. The time of
3813
+ # day and time zone are either specified elsewhere or are insignificant. The
3814
+ # date is relative to the Gregorian Calendar. This can represent one of the
3815
+ # following: * A full date, with non-zero year, month, and day values * A month
3816
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
3817
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
3818
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
3819
+ # DateTime * google.protobuf.Timestamp
3688
3820
  # Corresponds to the JSON property `dateValue`
3689
3821
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
3690
3822
  attr_accessor :date_value
@@ -3842,6 +3974,11 @@ module Google
3842
3974
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentProvenance]
3843
3975
  attr_accessor :provenance
3844
3976
 
3977
+ # A list of visually detected symbols on the page.
3978
+ # Corresponds to the JSON property `symbols`
3979
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageSymbol>]
3980
+ attr_accessor :symbols
3981
+
3845
3982
  # A list of visually detected tables on the page.
3846
3983
  # Corresponds to the JSON property `tables`
3847
3984
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageTable>]
@@ -3880,6 +4017,7 @@ module Google
3880
4017
  @page_number = args[:page_number] if args.key?(:page_number)
3881
4018
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
3882
4019
  @provenance = args[:provenance] if args.key?(:provenance)
4020
+ @symbols = args[:symbols] if args.key?(:symbols)
3883
4021
  @tables = args[:tables] if args.key?(:tables)
3884
4022
  @tokens = args[:tokens] if args.key?(:tokens)
3885
4023
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -3997,7 +4135,7 @@ module Google
3997
4135
  attr_accessor :confidence
3998
4136
 
3999
4137
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
4000
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4138
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
4001
4139
  # Corresponds to the JSON property `languageCode`
4002
4140
  # @return [String]
4003
4141
  attr_accessor :language_code
@@ -4296,6 +4434,31 @@ module Google
4296
4434
  end
4297
4435
  end
4298
4436
 
4437
+ # A detected symbol.
4438
+ class GoogleCloudDocumentaiV1beta1DocumentPageSymbol
4439
+ include Google::Apis::Core::Hashable
4440
+
4441
+ # A list of detected languages together with confidence.
4442
+ # Corresponds to the JSON property `detectedLanguages`
4443
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageDetectedLanguage>]
4444
+ attr_accessor :detected_languages
4445
+
4446
+ # Visual element describing a layout unit on a page.
4447
+ # Corresponds to the JSON property `layout`
4448
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta1DocumentPageLayout]
4449
+ attr_accessor :layout
4450
+
4451
+ def initialize(**args)
4452
+ update!(**args)
4453
+ end
4454
+
4455
+ # Update properties of this object
4456
+ def update!(**args)
4457
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
4458
+ @layout = args[:layout] if args.key?(:layout)
4459
+ end
4460
+ end
4461
+
4299
4462
  # A table representation similar to HTML table structure.
4300
4463
  class GoogleCloudDocumentaiV1beta1DocumentPageTable
4301
4464
  include Google::Apis::Core::Hashable
@@ -4844,7 +5007,7 @@ module Google
4844
5007
  include Google::Apis::Core::Hashable
4845
5008
 
4846
5009
  # Contains the content of the text span so that users do not have to look it up
4847
- # in the text_segments.
5010
+ # in the text_segments. It is always populated for formFields.
4848
5011
  # Corresponds to the JSON property `content`
4849
5012
  # @return [String]
4850
5013
  attr_accessor :content
@@ -5202,7 +5365,7 @@ module Google
5202
5365
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntity>]
5203
5366
  attr_accessor :entities
5204
5367
 
5205
- # Relationship among Document.entities.
5368
+ # Placeholder. Relationship among Document.entities.
5206
5369
  # Corresponds to the JSON property `entityRelations`
5207
5370
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentEntityRelation>]
5208
5371
  attr_accessor :entity_relations
@@ -5234,7 +5397,7 @@ module Google
5234
5397
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPage>]
5235
5398
  attr_accessor :pages
5236
5399
 
5237
- # Revision history of this document.
5400
+ # Placeholder. Revision history of this document.
5238
5401
  # Corresponds to the JSON property `revisions`
5239
5402
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentRevision>]
5240
5403
  attr_accessor :revisions
@@ -5250,14 +5413,14 @@ module Google
5250
5413
  # @return [String]
5251
5414
  attr_accessor :text
5252
5415
 
5253
- # A list of text corrections made to [Document.text]. This is usually used for
5254
- # annotating corrections to OCR mistakes. Text changes for a given revision may
5255
- # not overlap with each other.
5416
+ # Placeholder. A list of text corrections made to [Document.text]. This is
5417
+ # usually used for annotating corrections to OCR mistakes. Text changes for a
5418
+ # given revision may not overlap with each other.
5256
5419
  # Corresponds to the JSON property `textChanges`
5257
5420
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentTextChange>]
5258
5421
  attr_accessor :text_changes
5259
5422
 
5260
- # Styles for the Document.text.
5423
+ # Placeholder. Styles for the Document.text.
5261
5424
  # Corresponds to the JSON property `textStyles`
5262
5425
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentStyle>]
5263
5426
  attr_accessor :text_styles
@@ -5404,8 +5567,14 @@ module Google
5404
5567
  attr_accessor :boolean_value
5405
5568
  alias_method :boolean_value?, :boolean_value
5406
5569
 
5407
- # Date value. Includes year, month, day. See also: https://github.com/googleapis/
5408
- # googleapis/blob/master/google/type/date.proto
5570
+ # Represents a whole or partial calendar date, such as a birthday. The time of
5571
+ # day and time zone are either specified elsewhere or are insignificant. The
5572
+ # date is relative to the Gregorian Calendar. This can represent one of the
5573
+ # following: * A full date, with non-zero year, month, and day values * A month
5574
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
5575
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
5576
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
5577
+ # DateTime * google.protobuf.Timestamp
5409
5578
  # Corresponds to the JSON property `dateValue`
5410
5579
  # @return [Google::Apis::DocumentaiV1::GoogleTypeDate]
5411
5580
  attr_accessor :date_value
@@ -5600,6 +5769,11 @@ module Google
5600
5769
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentProvenance]
5601
5770
  attr_accessor :provenance
5602
5771
 
5772
+ # A list of visually detected symbols on the page.
5773
+ # Corresponds to the JSON property `symbols`
5774
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageSymbol>]
5775
+ attr_accessor :symbols
5776
+
5603
5777
  # A list of visually detected tables on the page.
5604
5778
  # Corresponds to the JSON property `tables`
5605
5779
  # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageTable>]
@@ -5638,6 +5812,7 @@ module Google
5638
5812
  @page_number = args[:page_number] if args.key?(:page_number)
5639
5813
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
5640
5814
  @provenance = args[:provenance] if args.key?(:provenance)
5815
+ @symbols = args[:symbols] if args.key?(:symbols)
5641
5816
  @tables = args[:tables] if args.key?(:tables)
5642
5817
  @tokens = args[:tokens] if args.key?(:tokens)
5643
5818
  @transforms = args[:transforms] if args.key?(:transforms)
@@ -5755,7 +5930,7 @@ module Google
5755
5930
  attr_accessor :confidence
5756
5931
 
5757
5932
  # The BCP-47 language code, such as "en-US" or "sr-Latn". For more information,
5758
- # see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5933
+ # see https://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
5759
5934
  # Corresponds to the JSON property `languageCode`
5760
5935
  # @return [String]
5761
5936
  attr_accessor :language_code
@@ -6054,6 +6229,31 @@ module Google
6054
6229
  end
6055
6230
  end
6056
6231
 
6232
+ # A detected symbol.
6233
+ class GoogleCloudDocumentaiV1beta2DocumentPageSymbol
6234
+ include Google::Apis::Core::Hashable
6235
+
6236
+ # A list of detected languages together with confidence.
6237
+ # Corresponds to the JSON property `detectedLanguages`
6238
+ # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageDetectedLanguage>]
6239
+ attr_accessor :detected_languages
6240
+
6241
+ # Visual element describing a layout unit on a page.
6242
+ # Corresponds to the JSON property `layout`
6243
+ # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta2DocumentPageLayout]
6244
+ attr_accessor :layout
6245
+
6246
+ def initialize(**args)
6247
+ update!(**args)
6248
+ end
6249
+
6250
+ # Update properties of this object
6251
+ def update!(**args)
6252
+ @detected_languages = args[:detected_languages] if args.key?(:detected_languages)
6253
+ @layout = args[:layout] if args.key?(:layout)
6254
+ end
6255
+ end
6256
+
6057
6257
  # A table representation similar to HTML table structure.
6058
6258
  class GoogleCloudDocumentaiV1beta2DocumentPageTable
6059
6259
  include Google::Apis::Core::Hashable
@@ -6602,7 +6802,7 @@ module Google
6602
6802
  include Google::Apis::Core::Hashable
6603
6803
 
6604
6804
  # Contains the content of the text span so that users do not have to look it up
6605
- # in the text_segments.
6805
+ # in the text_segments. It is always populated for formFields.
6606
6806
  # Corresponds to the JSON property `content`
6607
6807
  # @return [String]
6608
6808
  attr_accessor :content
@@ -7665,7 +7865,14 @@ module Google
7665
7865
  end
7666
7866
  end
7667
7867
 
7668
- #
7868
+ # Represents a whole or partial calendar date, such as a birthday. The time of
7869
+ # day and time zone are either specified elsewhere or are insignificant. The
7870
+ # date is relative to the Gregorian Calendar. This can represent one of the
7871
+ # following: * A full date, with non-zero year, month, and day values * A month
7872
+ # and day, with a zero year (e.g., an anniversary) * A year on its own, with a
7873
+ # zero month and a zero day * A year and month, with a zero day (e.g., a credit
7874
+ # card expiration date) Related types: * google.type.TimeOfDay * google.type.
7875
+ # DateTime * google.protobuf.Timestamp
7669
7876
  class GoogleTypeDate
7670
7877
  include Google::Apis::Core::Hashable
7671
7878
 
@@ -7904,8 +8111,8 @@ module Google
7904
8111
  attr_accessor :recipients
7905
8112
 
7906
8113
  # Required. CLDR region code of the country/region of the address. This is never
7907
- # inferred and it is up to the user to ensure the value is correct. See http://
7908
- # cldr.unicode.org/ and http://www.unicode.org/cldr/charts/30/supplemental/
8114
+ # inferred and it is up to the user to ensure the value is correct. See https://
8115
+ # cldr.unicode.org/ and https://www.unicode.org/cldr/charts/30/supplemental/
7909
8116
  # territory_information.html for details. Example: "CH" for Switzerland.
7910
8117
  # Corresponds to the JSON property `regionCode`
7911
8118
  # @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.25.0"
19
+ GEM_VERSION = "0.28.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 = "20220129"
25
+ REVISION = "20220222"
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.25.0
4
+ version: 0.28.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-02-07 00:00:00.000000000 Z
11
+ date: 2022-02-28 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.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.28.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: []