google-apis-documentai_v1beta3 0.27.0 → 0.31.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: 7233a4d0021f9d64f35f4154dab6da4046e01824d8188e175212e1451913d265
4
- data.tar.gz: e35d637cc79a2a958d16c5c9951fe5de2ea965382984705d3881ea4eef183985
3
+ metadata.gz: 4ee41e8acfe80eacd1cafd5425c4eb79a41448f30c1f892f45c6ed03ea4258c2
4
+ data.tar.gz: 6a4f35190c4495a4dcdc963e83d4899ad668efc1ced592f5c5e6d6e88bddde8e
5
5
  SHA512:
6
- metadata.gz: 442d13cdae32947d615adc9fe42bba9e3f8f9963f645b381f5d2b085a6f3dfa41657c0394fa6aefebe2052e4a980557bfabab57915d51ea8eff0361b4d78e329
7
- data.tar.gz: 3ac91298dc3f8403db9527b4bdff2a16aa8693ac42f70da1b6bf9d33dbdb58f9d27a973995b669874c6e5de5c26793d59eb2ade0373e4d5f954b3e946f84bdb5
6
+ metadata.gz: 8f260df20b0af5840ab0ef2dc0748163e9011672910c9d8327bf4893f9d89bdacd0f1f90f2bef99d0f8ce1bcf950964434bdcfb9c9c0c00057e53125c8ec010a
7
+ data.tar.gz: 817e7362a344c7e3350364676f02750c56d1c6d3fce175257101b954f7549be1086f01f8ff18ddb2178e3c403d3c35bb042b8ce24f78323a4bc9d5802bad45f8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-documentai_v1beta3
2
2
 
3
+ ### v0.31.0 (2022-01-20)
4
+
5
+ * Regenerated from discovery document revision 20220114
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.30.0 (2022-01-06)
9
+
10
+ * Regenerated from discovery document revision 20211230
11
+ * Unspecified changes
12
+
13
+ ### v0.29.0 (2021-12-07)
14
+
15
+ * Regenerated from discovery document revision 20211203
16
+
17
+ ### v0.28.0 (2021-11-09)
18
+
19
+ * Regenerated from discovery document revision 20211105
20
+
3
21
  ### v0.27.0 (2021-10-26)
4
22
 
5
23
  * Regenerated from discovery document revision 20211022
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/documentai_v1beta3"
51
51
  client = Google::Apis::DocumentaiV1beta3::DocumentService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -63,6 +63,16 @@ module Google
63
63
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
64
64
  attr_accessor :common_metadata
65
65
 
66
+ # The destination dataset split type.
67
+ # Corresponds to the JSON property `destDatasetType`
68
+ # @return [String]
69
+ attr_accessor :dest_dataset_type
70
+
71
+ # The list of response details of each document.
72
+ # Corresponds to the JSON property `individualBatchMoveStatuses`
73
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus>]
74
+ attr_accessor :individual_batch_move_statuses
75
+
66
76
  def initialize(**args)
67
77
  update!(**args)
68
78
  end
@@ -70,6 +80,38 @@ module Google
70
80
  # Update properties of this object
71
81
  def update!(**args)
72
82
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
83
+ @dest_dataset_type = args[:dest_dataset_type] if args.key?(:dest_dataset_type)
84
+ @individual_batch_move_statuses = args[:individual_batch_move_statuses] if args.key?(:individual_batch_move_statuses)
85
+ end
86
+ end
87
+
88
+ # The status of each individual document in the batch move process.
89
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
90
+ include Google::Apis::Core::Hashable
91
+
92
+ # Document Identifier.
93
+ # Corresponds to the JSON property `documentId`
94
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId]
95
+ attr_accessor :document_id
96
+
97
+ # The `Status` type defines a logical error model that is suitable for different
98
+ # programming environments, including REST APIs and RPC APIs. It is used by [
99
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
100
+ # data: error code, error message, and error details. You can find out more
101
+ # about this error model and how to work with it in the [API Design Guide](https:
102
+ # //cloud.google.com/apis/design/errors).
103
+ # Corresponds to the JSON property `status`
104
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus]
105
+ attr_accessor :status
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @document_id = args[:document_id] if args.key?(:document_id)
114
+ @status = args[:status] if args.key?(:status)
73
115
  end
74
116
  end
75
117
 
@@ -270,6 +312,58 @@ module Google
270
312
  end
271
313
  end
272
314
 
315
+ # Document Identifier.
316
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
317
+ include Google::Apis::Core::Hashable
318
+
319
+ # Identifies a document uniquely within the scope of a dataset in the GCS-based
320
+ # option.
321
+ # Corresponds to the JSON property `gcsManagedDocId`
322
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId]
323
+ attr_accessor :gcs_managed_doc_id
324
+
325
+ # The revision reference specifies which revision on the document to read.
326
+ # Corresponds to the JSON property `revisionReference`
327
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference]
328
+ attr_accessor :revision_reference
329
+
330
+ def initialize(**args)
331
+ update!(**args)
332
+ end
333
+
334
+ # Update properties of this object
335
+ def update!(**args)
336
+ @gcs_managed_doc_id = args[:gcs_managed_doc_id] if args.key?(:gcs_managed_doc_id)
337
+ @revision_reference = args[:revision_reference] if args.key?(:revision_reference)
338
+ end
339
+ end
340
+
341
+ # Identifies a document uniquely within the scope of a dataset in the GCS-based
342
+ # option.
343
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
344
+ include Google::Apis::Core::Hashable
345
+
346
+ # Optional. Id of the document (indexed) managed by Content Warehouse.
347
+ # Corresponds to the JSON property `cwDocId`
348
+ # @return [String]
349
+ attr_accessor :cw_doc_id
350
+
351
+ # Required. The Cloud Storage uri where the actual document is stored.
352
+ # Corresponds to the JSON property `gcsUri`
353
+ # @return [String]
354
+ attr_accessor :gcs_uri
355
+
356
+ def initialize(**args)
357
+ update!(**args)
358
+ end
359
+
360
+ # Update properties of this object
361
+ def update!(**args)
362
+ @cw_doc_id = args[:cw_doc_id] if args.key?(:cw_doc_id)
363
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
364
+ end
365
+ end
366
+
273
367
  # The long running operation metadata for enable processor method.
274
368
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
275
369
  include Google::Apis::Core::Hashable
@@ -388,6 +482,11 @@ module Google
388
482
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata]
389
483
  attr_accessor :common_metadata
390
484
 
485
+ # The list of response details of each document.
486
+ # Corresponds to the JSON property `individualImportStatuses`
487
+ # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus>]
488
+ attr_accessor :individual_import_statuses
489
+
391
490
  def initialize(**args)
392
491
  update!(**args)
393
492
  end
@@ -395,6 +494,44 @@ module Google
395
494
  # Update properties of this object
396
495
  def update!(**args)
397
496
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
497
+ @individual_import_statuses = args[:individual_import_statuses] if args.key?(:individual_import_statuses)
498
+ end
499
+ end
500
+
501
+ # The status of each individual document in the import process.
502
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # The source Cloud Storage URI of the document.
506
+ # Corresponds to the JSON property `inputGcsSource`
507
+ # @return [String]
508
+ attr_accessor :input_gcs_source
509
+
510
+ # The output_gcs_destination of the processed document if it was successful,
511
+ # otherwise empty.
512
+ # Corresponds to the JSON property `outputGcsDestination`
513
+ # @return [String]
514
+ attr_accessor :output_gcs_destination
515
+
516
+ # The `Status` type defines a logical error model that is suitable for different
517
+ # programming environments, including REST APIs and RPC APIs. It is used by [
518
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
519
+ # data: error code, error message, and error details. You can find out more
520
+ # about this error model and how to work with it in the [API Design Guide](https:
521
+ # //cloud.google.com/apis/design/errors).
522
+ # Corresponds to the JSON property `status`
523
+ # @return [Google::Apis::DocumentaiV1beta3::GoogleRpcStatus]
524
+ attr_accessor :status
525
+
526
+ def initialize(**args)
527
+ update!(**args)
528
+ end
529
+
530
+ # Update properties of this object
531
+ def update!(**args)
532
+ @input_gcs_source = args[:input_gcs_source] if args.key?(:input_gcs_source)
533
+ @output_gcs_destination = args[:output_gcs_destination] if args.key?(:output_gcs_destination)
534
+ @status = args[:status] if args.key?(:status)
398
535
  end
399
536
  end
400
537
 
@@ -411,6 +548,38 @@ module Google
411
548
  end
412
549
  end
413
550
 
551
+ # The revision reference specifies which revision on the document to read.
552
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # Read the revision generated by the processor version, returns error if it does
556
+ # not exist.
557
+ # Corresponds to the JSON property `latestProcessorVersion`
558
+ # @return [String]
559
+ attr_accessor :latest_processor_version
560
+
561
+ # Read the revision by the predefined case.
562
+ # Corresponds to the JSON property `revisionCase`
563
+ # @return [String]
564
+ attr_accessor :revision_case
565
+
566
+ # Read the revision given by the id, returns error if it does not exist.
567
+ # Corresponds to the JSON property `revisionId`
568
+ # @return [String]
569
+ attr_accessor :revision_id
570
+
571
+ def initialize(**args)
572
+ update!(**args)
573
+ end
574
+
575
+ # Update properties of this object
576
+ def update!(**args)
577
+ @latest_processor_version = args[:latest_processor_version] if args.key?(:latest_processor_version)
578
+ @revision_case = args[:revision_case] if args.key?(:revision_case)
579
+ @revision_id = args[:revision_id] if args.key?(:revision_id)
580
+ end
581
+ end
582
+
414
583
  # The long running operation metadata for set default processor version method.
415
584
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
416
585
  include Google::Apis::Core::Hashable
@@ -687,7 +856,7 @@ module Google
687
856
  # @return [String]
688
857
  attr_accessor :input_gcs_source
689
858
 
690
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
859
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
691
860
  # processed document if it was successful, otherwise empty.
692
861
  # Corresponds to the JSON property `outputGcsDestination`
693
862
  # @return [String]
@@ -951,6 +1120,11 @@ module Google
951
1120
  # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata]
952
1121
  attr_accessor :common_metadata
953
1122
 
1123
+ # The Crowd Compute question ID.
1124
+ # Corresponds to the JSON property `questionId`
1125
+ # @return [String]
1126
+ attr_accessor :question_id
1127
+
954
1128
  def initialize(**args)
955
1129
  update!(**args)
956
1130
  end
@@ -958,6 +1132,7 @@ module Google
958
1132
  # Update properties of this object
959
1133
  def update!(**args)
960
1134
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
1135
+ @question_id = args[:question_id] if args.key?(:question_id)
961
1136
  end
962
1137
  end
963
1138
 
@@ -1194,7 +1369,7 @@ module Google
1194
1369
  end
1195
1370
  end
1196
1371
 
1197
- # An entity that could be a phrase in the text or a property belongs to the
1372
+ # An entity that could be a phrase in the text or a property that belongs to the
1198
1373
  # document. It is a known entity type, such as a person, an organization, or
1199
1374
  # location.
1200
1375
  class GoogleCloudDocumentaiV1beta1DocumentEntity
@@ -1352,8 +1527,8 @@ module Google
1352
1527
  attr_accessor :money_value
1353
1528
 
1354
1529
  # Optional. An optional field to store a normalized string. For some entity
1355
- # types, one of respective 'structured_value' fields may also be populated. Also
1356
- # not all the types of 'structured_value' will be normalized. For example, some
1530
+ # types, one of respective `structured_value` fields may also be populated. Also
1531
+ # not all the types of `structured_value` will be normalized. For example, some
1357
1532
  # processors may not generate float or int normalized text by default. Below are
1358
1533
  # sample formats mapped to structured values. - Money/Currency type (`
1359
1534
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -2144,8 +2319,8 @@ module Google
2144
2319
  end
2145
2320
  end
2146
2321
 
2147
- # Structure for referencing parent provenances. When an element replaces one of
2148
- # more other elements parent references identify the elements that are replaced.
2322
+ # The parent element the current element is based on. Used for referencing/
2323
+ # aligning, removal and replacement operations.
2149
2324
  class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
2150
2325
  include Google::Apis::Core::Hashable
2151
2326
 
@@ -2155,12 +2330,12 @@ module Google
2155
2330
  attr_accessor :id
2156
2331
 
2157
2332
  # The index of the parent item in the corresponding item list (eg. list of
2158
- # entities, properties within entities, etc.) on parent revision.
2333
+ # entities, properties within entities, etc.) in the parent revision.
2159
2334
  # Corresponds to the JSON property `index`
2160
2335
  # @return [Fixnum]
2161
2336
  attr_accessor :index
2162
2337
 
2163
- # The index of the [Document.revisions] identifying the parent revision.
2338
+ # The index of the index into current revision's parent_ids list.
2164
2339
  # Corresponds to the JSON property `revision`
2165
2340
  # @return [Fixnum]
2166
2341
  attr_accessor :revision
@@ -2208,6 +2383,13 @@ module Google
2208
2383
  # @return [Array<Fixnum>]
2209
2384
  attr_accessor :parent
2210
2385
 
2386
+ # The revisions that this revision is based on. Must include all the ids that
2387
+ # have anything to do with this revision - eg. there are `provenance.parent.
2388
+ # revision` fields that index into this field.
2389
+ # Corresponds to the JSON property `parentIds`
2390
+ # @return [Array<String>]
2391
+ attr_accessor :parent_ids
2392
+
2211
2393
  # If the annotation was made by processor identify the processor by its resource
2212
2394
  # name.
2213
2395
  # Corresponds to the JSON property `processor`
@@ -2225,6 +2407,7 @@ module Google
2225
2407
  @human_review = args[:human_review] if args.key?(:human_review)
2226
2408
  @id = args[:id] if args.key?(:id)
2227
2409
  @parent = args[:parent] if args.key?(:parent)
2410
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
2228
2411
  @processor = args[:processor] if args.key?(:processor)
2229
2412
  end
2230
2413
  end
@@ -2913,7 +3096,7 @@ module Google
2913
3096
  end
2914
3097
  end
2915
3098
 
2916
- # An entity that could be a phrase in the text or a property belongs to the
3099
+ # An entity that could be a phrase in the text or a property that belongs to the
2917
3100
  # document. It is a known entity type, such as a person, an organization, or
2918
3101
  # location.
2919
3102
  class GoogleCloudDocumentaiV1beta2DocumentEntity
@@ -3071,8 +3254,8 @@ module Google
3071
3254
  attr_accessor :money_value
3072
3255
 
3073
3256
  # Optional. An optional field to store a normalized string. For some entity
3074
- # types, one of respective 'structured_value' fields may also be populated. Also
3075
- # not all the types of 'structured_value' will be normalized. For example, some
3257
+ # types, one of respective `structured_value` fields may also be populated. Also
3258
+ # not all the types of `structured_value` will be normalized. For example, some
3076
3259
  # processors may not generate float or int normalized text by default. Below are
3077
3260
  # sample formats mapped to structured values. - Money/Currency type (`
3078
3261
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -3900,8 +4083,8 @@ module Google
3900
4083
  end
3901
4084
  end
3902
4085
 
3903
- # Structure for referencing parent provenances. When an element replaces one of
3904
- # more other elements parent references identify the elements that are replaced.
4086
+ # The parent element the current element is based on. Used for referencing/
4087
+ # aligning, removal and replacement operations.
3905
4088
  class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
3906
4089
  include Google::Apis::Core::Hashable
3907
4090
 
@@ -3911,12 +4094,12 @@ module Google
3911
4094
  attr_accessor :id
3912
4095
 
3913
4096
  # The index of the parent item in the corresponding item list (eg. list of
3914
- # entities, properties within entities, etc.) on parent revision.
4097
+ # entities, properties within entities, etc.) in the parent revision.
3915
4098
  # Corresponds to the JSON property `index`
3916
4099
  # @return [Fixnum]
3917
4100
  attr_accessor :index
3918
4101
 
3919
- # The index of the [Document.revisions] identifying the parent revision.
4102
+ # The index of the index into current revision's parent_ids list.
3920
4103
  # Corresponds to the JSON property `revision`
3921
4104
  # @return [Fixnum]
3922
4105
  attr_accessor :revision
@@ -3964,6 +4147,13 @@ module Google
3964
4147
  # @return [Array<Fixnum>]
3965
4148
  attr_accessor :parent
3966
4149
 
4150
+ # The revisions that this revision is based on. Must include all the ids that
4151
+ # have anything to do with this revision - eg. there are `provenance.parent.
4152
+ # revision` fields that index into this field.
4153
+ # Corresponds to the JSON property `parentIds`
4154
+ # @return [Array<String>]
4155
+ attr_accessor :parent_ids
4156
+
3967
4157
  # If the annotation was made by processor identify the processor by its resource
3968
4158
  # name.
3969
4159
  # Corresponds to the JSON property `processor`
@@ -3981,6 +4171,7 @@ module Google
3981
4171
  @human_review = args[:human_review] if args.key?(:human_review)
3982
4172
  @id = args[:id] if args.key?(:id)
3983
4173
  @parent = args[:parent] if args.key?(:parent)
4174
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
3984
4175
  @processor = args[:processor] if args.key?(:processor)
3985
4176
  end
3986
4177
  end
@@ -4617,7 +4808,7 @@ module Google
4617
4808
  # @return [String]
4618
4809
  attr_accessor :input_gcs_source
4619
4810
 
4620
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
4811
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
4621
4812
  # processed document if it was successful, otherwise empty.
4622
4813
  # Corresponds to the JSON property `outputGcsDestination`
4623
4814
  # @return [String]
@@ -5054,7 +5245,7 @@ module Google
5054
5245
  end
5055
5246
  end
5056
5247
 
5057
- # An entity that could be a phrase in the text or a property belongs to the
5248
+ # An entity that could be a phrase in the text or a property that belongs to the
5058
5249
  # document. It is a known entity type, such as a person, an organization, or
5059
5250
  # location.
5060
5251
  class GoogleCloudDocumentaiV1beta3DocumentEntity
@@ -5212,8 +5403,8 @@ module Google
5212
5403
  attr_accessor :money_value
5213
5404
 
5214
5405
  # Optional. An optional field to store a normalized string. For some entity
5215
- # types, one of respective 'structured_value' fields may also be populated. Also
5216
- # not all the types of 'structured_value' will be normalized. For example, some
5406
+ # types, one of respective `structured_value` fields may also be populated. Also
5407
+ # not all the types of `structured_value` will be normalized. For example, some
5217
5408
  # processors may not generate float or int normalized text by default. Below are
5218
5409
  # sample formats mapped to structured values. - Money/Currency type (`
5219
5410
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -6043,8 +6234,8 @@ module Google
6043
6234
  end
6044
6235
  end
6045
6236
 
6046
- # Structure for referencing parent provenances. When an element replaces one of
6047
- # more other elements parent references identify the elements that are replaced.
6237
+ # The parent element the current element is based on. Used for referencing/
6238
+ # aligning, removal and replacement operations.
6048
6239
  class GoogleCloudDocumentaiV1beta3DocumentProvenanceParent
6049
6240
  include Google::Apis::Core::Hashable
6050
6241
 
@@ -6054,12 +6245,12 @@ module Google
6054
6245
  attr_accessor :id
6055
6246
 
6056
6247
  # The index of the parent item in the corresponding item list (eg. list of
6057
- # entities, properties within entities, etc.) on parent revision.
6248
+ # entities, properties within entities, etc.) in the parent revision.
6058
6249
  # Corresponds to the JSON property `index`
6059
6250
  # @return [Fixnum]
6060
6251
  attr_accessor :index
6061
6252
 
6062
- # The index of the [Document.revisions] identifying the parent revision.
6253
+ # The index of the index into current revision's parent_ids list.
6063
6254
  # Corresponds to the JSON property `revision`
6064
6255
  # @return [Fixnum]
6065
6256
  attr_accessor :revision
@@ -6107,6 +6298,13 @@ module Google
6107
6298
  # @return [Array<Fixnum>]
6108
6299
  attr_accessor :parent
6109
6300
 
6301
+ # The revisions that this revision is based on. Must include all the ids that
6302
+ # have anything to do with this revision - eg. there are `provenance.parent.
6303
+ # revision` fields that index into this field.
6304
+ # Corresponds to the JSON property `parentIds`
6305
+ # @return [Array<String>]
6306
+ attr_accessor :parent_ids
6307
+
6110
6308
  # If the annotation was made by processor identify the processor by its resource
6111
6309
  # name.
6112
6310
  # Corresponds to the JSON property `processor`
@@ -6124,6 +6322,7 @@ module Google
6124
6322
  @human_review = args[:human_review] if args.key?(:human_review)
6125
6323
  @id = args[:id] if args.key?(:id)
6126
6324
  @parent = args[:parent] if args.key?(:parent)
6325
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
6127
6326
  @processor = args[:processor] if args.key?(:processor)
6128
6327
  end
6129
6328
  end
@@ -6489,104 +6688,6 @@ module Google
6489
6688
  end
6490
6689
  end
6491
6690
 
6492
- # Evaluation metrics, either in aggregate or about a specific entity.
6493
- class GoogleCloudDocumentaiV1beta3EvaluationMetrics
6494
- include Google::Apis::Core::Hashable
6495
-
6496
- # The calculated f1 score.
6497
- # Corresponds to the JSON property `f1Score`
6498
- # @return [Float]
6499
- attr_accessor :f1_score
6500
-
6501
- # The amount of false negatives.
6502
- # Corresponds to the JSON property `falseNegativesCount`
6503
- # @return [Fixnum]
6504
- attr_accessor :false_negatives_count
6505
-
6506
- # The amount of false positives.
6507
- # Corresponds to the JSON property `falsePositivesCount`
6508
- # @return [Fixnum]
6509
- attr_accessor :false_positives_count
6510
-
6511
- # The amount of occurrences in ground truth documents.
6512
- # Corresponds to the JSON property `groundTruthOccurrencesCount`
6513
- # @return [Fixnum]
6514
- attr_accessor :ground_truth_occurrences_count
6515
-
6516
- # The calculated precision.
6517
- # Corresponds to the JSON property `precision`
6518
- # @return [Float]
6519
- attr_accessor :precision
6520
-
6521
- # The amount of occurrences in predicted documents.
6522
- # Corresponds to the JSON property `predictedOccurrencesCount`
6523
- # @return [Fixnum]
6524
- attr_accessor :predicted_occurrences_count
6525
-
6526
- # The calculated recall.
6527
- # Corresponds to the JSON property `recall`
6528
- # @return [Float]
6529
- attr_accessor :recall
6530
-
6531
- # The amount of documents that had an occurrence of this label.
6532
- # Corresponds to the JSON property `totalDocumentsCount`
6533
- # @return [Fixnum]
6534
- attr_accessor :total_documents_count
6535
-
6536
- # The amount of true positives.
6537
- # Corresponds to the JSON property `truePositivesCount`
6538
- # @return [Fixnum]
6539
- attr_accessor :true_positives_count
6540
-
6541
- def initialize(**args)
6542
- update!(**args)
6543
- end
6544
-
6545
- # Update properties of this object
6546
- def update!(**args)
6547
- @f1_score = args[:f1_score] if args.key?(:f1_score)
6548
- @false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
6549
- @false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
6550
- @ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
6551
- @precision = args[:precision] if args.key?(:precision)
6552
- @predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
6553
- @recall = args[:recall] if args.key?(:recall)
6554
- @total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
6555
- @true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
6556
- end
6557
- end
6558
-
6559
- # Gives a short summary of an evaluation, and links to the evaluation itself.
6560
- class GoogleCloudDocumentaiV1beta3EvaluationReference
6561
- include Google::Apis::Core::Hashable
6562
-
6563
- # Evaluation metrics, either in aggregate or about a specific entity.
6564
- # Corresponds to the JSON property `aggregateMetrics`
6565
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics]
6566
- attr_accessor :aggregate_metrics
6567
-
6568
- # The resource name of the evaluation.
6569
- # Corresponds to the JSON property `evaluation`
6570
- # @return [String]
6571
- attr_accessor :evaluation
6572
-
6573
- # The resource name of the Long Running Operation for the evaluation.
6574
- # Corresponds to the JSON property `operation`
6575
- # @return [String]
6576
- attr_accessor :operation
6577
-
6578
- def initialize(**args)
6579
- update!(**args)
6580
- end
6581
-
6582
- # Update properties of this object
6583
- def update!(**args)
6584
- @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
6585
- @evaluation = args[:evaluation] if args.key?(:evaluation)
6586
- @operation = args[:operation] if args.key?(:operation)
6587
- end
6588
- end
6589
-
6590
6691
  # Response message for fetch processor types.
6591
6692
  class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
6592
6693
  include Google::Apis::Core::Hashable
@@ -6861,7 +6962,7 @@ module Google
6861
6962
  end
6862
6963
  end
6863
6964
 
6864
- # The first-class citizen for DAI. Each processor defines how to extract
6965
+ # The first-class citizen for Document AI. Each processor defines how to extract
6865
6966
  # structural information from a document.
6866
6967
  class GoogleCloudDocumentaiV1beta3Processor
6867
6968
  include Google::Apis::Core::Hashable
@@ -6887,8 +6988,8 @@ module Google
6887
6988
  # @return [String]
6888
6989
  attr_accessor :kms_key_name
6889
6990
 
6890
- # Output only. Immutable. The resource name of the processor. Format: projects/`
6891
- # project`/locations/`location`/processors/`processor`
6991
+ # Output only. Immutable. The resource name of the processor. Format: `projects/`
6992
+ # project`/locations/`location`/processors/`processor``
6892
6993
  # Corresponds to the JSON property `name`
6893
6994
  # @return [String]
6894
6995
  attr_accessor :name
@@ -6927,26 +7028,12 @@ module Google
6927
7028
  end
6928
7029
 
6929
7030
  # A processor type is responsible for performing a certain document
6930
- # understanding task on a certain type of document. All processor types are
6931
- # created by the documentai service internally. User will only list all
6932
- # available processor types via UI. For different users (projects), the
6933
- # available processor types may be different since we'll expose the access of
6934
- # some types via EAP whitelisting. We make the ProcessorType a resource under
6935
- # location so we have a unified API and keep the possibility that UI will load
6936
- # different available processor types from different regions. But for alpha the
6937
- # behavior is that the user will always get the union of all available processor
6938
- # types among all regions no matter which regionalized endpoint is called, and
6939
- # then we use the 'available_locations' field to show under which regions a
6940
- # processor type is available. For example, users can call either the 'US' or '
6941
- # EU' endpoint to feach processor types. In the return, we will have an 'invoice
6942
- # parsing' processor with 'available_locations' field only containing 'US'. So
6943
- # the user can try to create an 'invoice parsing' processor under the location '
6944
- # US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
7031
+ # understanding task on a certain type of document.
6945
7032
  class GoogleCloudDocumentaiV1beta3ProcessorType
6946
7033
  include Google::Apis::Core::Hashable
6947
7034
 
6948
- # Whether the processor type allows creation. If yes, user can create a
6949
- # processor of this processor type. Otherwise, user needs to request access.
7035
+ # Whether the processor type allows creation. If true, users can create a
7036
+ # processor of this processor type. Otherwise, users need to request access.
6950
7037
  # Corresponds to the JSON property `allowCreation`
6951
7038
  # @return [Boolean]
6952
7039
  attr_accessor :allow_creation
@@ -7030,23 +7117,13 @@ module Google
7030
7117
  # @return [String]
7031
7118
  attr_accessor :display_name
7032
7119
 
7033
- # Gives a short summary of an evaluation, and links to the evaluation itself.
7034
- # Corresponds to the JSON property `latestEvaluation`
7035
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference]
7036
- attr_accessor :latest_evaluation
7037
-
7038
- # The resource name of the processor version. Format: projects/`project`/
7120
+ # The resource name of the processor version. Format: `projects/`project`/
7039
7121
  # locations/`location`/processors/`processor`/processorVersions/`
7040
- # processor_version`
7122
+ # processor_version``
7041
7123
  # Corresponds to the JSON property `name`
7042
7124
  # @return [String]
7043
7125
  attr_accessor :name
7044
7126
 
7045
- # The schema defines the output of the processed document by a processor.
7046
- # Corresponds to the JSON property `schema`
7047
- # @return [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema]
7048
- attr_accessor :schema
7049
-
7050
7127
  # The state of the processor version.
7051
7128
  # Corresponds to the JSON property `state`
7052
7129
  # @return [String]
@@ -7060,9 +7137,7 @@ module Google
7060
7137
  def update!(**args)
7061
7138
  @create_time = args[:create_time] if args.key?(:create_time)
7062
7139
  @display_name = args[:display_name] if args.key?(:display_name)
7063
- @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
7064
7140
  @name = args[:name] if args.key?(:name)
7065
- @schema = args[:schema] if args.key?(:schema)
7066
7141
  @state = args[:state] if args.key?(:state)
7067
7142
  end
7068
7143
  end
@@ -7107,6 +7182,11 @@ module Google
7107
7182
  # @return [String]
7108
7183
  attr_accessor :create_time
7109
7184
 
7185
+ # The Crowd Compute question ID.
7186
+ # Corresponds to the JSON property `questionId`
7187
+ # @return [String]
7188
+ attr_accessor :question_id
7189
+
7110
7190
  # Used only when Operation.done is false.
7111
7191
  # Corresponds to the JSON property `state`
7112
7192
  # @return [String]
@@ -7131,13 +7211,14 @@ module Google
7131
7211
  def update!(**args)
7132
7212
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
7133
7213
  @create_time = args[:create_time] if args.key?(:create_time)
7214
+ @question_id = args[:question_id] if args.key?(:question_id)
7134
7215
  @state = args[:state] if args.key?(:state)
7135
7216
  @state_message = args[:state_message] if args.key?(:state_message)
7136
7217
  @update_time = args[:update_time] if args.key?(:update_time)
7137
7218
  end
7138
7219
  end
7139
7220
 
7140
- # Request message for review document method. Next Id: 6.
7221
+ # Request message for review document method.
7141
7222
  class GoogleCloudDocumentaiV1beta3ReviewDocumentRequest
7142
7223
  include Google::Apis::Core::Hashable
7143
7224
 
@@ -7200,118 +7281,6 @@ module Google
7200
7281
  end
7201
7282
  end
7202
7283
 
7203
- # The schema defines the output of the processed document by a processor.
7204
- class GoogleCloudDocumentaiV1beta3Schema
7205
- include Google::Apis::Core::Hashable
7206
-
7207
- # Description of the schema.
7208
- # Corresponds to the JSON property `description`
7209
- # @return [String]
7210
- attr_accessor :description
7211
-
7212
- # Display name to show to users.
7213
- # Corresponds to the JSON property `displayName`
7214
- # @return [String]
7215
- attr_accessor :display_name
7216
-
7217
- # Entity types of the schema.
7218
- # Corresponds to the JSON property `entityTypes`
7219
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
7220
- attr_accessor :entity_types
7221
-
7222
- def initialize(**args)
7223
- update!(**args)
7224
- end
7225
-
7226
- # Update properties of this object
7227
- def update!(**args)
7228
- @description = args[:description] if args.key?(:description)
7229
- @display_name = args[:display_name] if args.key?(:display_name)
7230
- @entity_types = args[:entity_types] if args.key?(:entity_types)
7231
- end
7232
- end
7233
-
7234
- # EntityType is the wrapper of a label of the corresponding model with detailed
7235
- # attributes and limitations for entity-based processors. Multiple types can
7236
- # also compose a dependency tree to represent nested types.
7237
- class GoogleCloudDocumentaiV1beta3SchemaEntityType
7238
- include Google::Apis::Core::Hashable
7239
-
7240
- # Type of the entity. It must be one of the following: `document` - the entity
7241
- # represents a classification of a logical document. `object` - if the entity
7242
- # has properties it is likely an object (or or a document.) `datetime` - the
7243
- # entity is a date or time value. `money` - the entity represents a money value
7244
- # amount. `number` - the entity is a number - integer or floating point. `string`
7245
- # - the entity is a string value. `boolean` - the entity is a boolean value. `
7246
- # address` - the entity is a location address. `duration` - the entity is a
7247
- # duration.
7248
- # Corresponds to the JSON property `baseType`
7249
- # @return [String]
7250
- attr_accessor :base_type
7251
-
7252
- # Description of the entity type.
7253
- # Corresponds to the JSON property `description`
7254
- # @return [String]
7255
- attr_accessor :description
7256
-
7257
- # If specified, lists all the possible values for this entity.
7258
- # Corresponds to the JSON property `enumValues`
7259
- # @return [Array<String>]
7260
- attr_accessor :enum_values
7261
-
7262
- # Occurrence type limits the number of times an entity type appears in the
7263
- # document.
7264
- # Corresponds to the JSON property `occurrenceType`
7265
- # @return [String]
7266
- attr_accessor :occurrence_type
7267
-
7268
- # Describing the nested structure of an entity. An EntityType may consist of
7269
- # several other EntityTypes. For example, in a document there can be an
7270
- # EntityType 'ID', which consists of EntityType 'name' and 'address', with
7271
- # corresponding attributes, such as TEXT for both types and ONCE for occurrence
7272
- # types.
7273
- # Corresponds to the JSON property `properties`
7274
- # @return [Array<Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType>]
7275
- attr_accessor :properties
7276
-
7277
- # Source of this entity type.
7278
- # Corresponds to the JSON property `source`
7279
- # @return [String]
7280
- attr_accessor :source
7281
-
7282
- # Name of the type. It must satisfy the following constraints: 1. Must be unique
7283
- # within the set of same level types (with case-insensitive match). 2. Maximum
7284
- # 50 characters. 3. Must start with a letter. 4. Allowed characters: ASCII
7285
- # letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation
7286
- # characters: * underscore '_' (recommended) * hyphen '-' (allowed, not
7287
- # recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace
7288
- # characters are not allowed. 5. Cannot end with a punctuation character. 6.
7289
- # Cannot contain the following restricted strings: "google", "DocumentAI" (case-
7290
- # insensitive match). 7. A slash character '/' is reserved as a separator in
7291
- # flattened representations of nested entity types (e.g., "line_item/amount") in
7292
- # which case each part (e.g., "line_item", "amount") must comply with the rules
7293
- # defined above. We recommend using the snake case ("snake_case") in entity type
7294
- # names.
7295
- # Corresponds to the JSON property `type`
7296
- # @return [String]
7297
- attr_accessor :type
7298
-
7299
- def initialize(**args)
7300
- update!(**args)
7301
- end
7302
-
7303
- # Update properties of this object
7304
- def update!(**args)
7305
- @base_type = args[:base_type] if args.key?(:base_type)
7306
- @description = args[:description] if args.key?(:description)
7307
- @enum_values = args[:enum_values] if args.key?(:enum_values)
7308
- @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
7309
- @properties = args[:properties] if args.key?(:properties)
7310
- @source = args[:source] if args.key?(:source)
7311
- @type = args[:type] if args.key?(:type)
7312
- end
7313
- end
7314
-
7315
7284
  # The long running operation metadata for set default processor version method.
7316
7285
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
7317
7286
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DocumentaiV1beta3
18
18
  # Version of the google-apis-documentai_v1beta3 gem
19
- GEM_VERSION = "0.27.0"
19
+ GEM_VERSION = "0.31.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211022"
25
+ REVISION = "20220114"
26
26
  end
27
27
  end
28
28
  end
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsResponse
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -100,6 +106,18 @@ module Google
100
106
  include Google::Apis::Core::JsonObjectSupport
101
107
  end
102
108
 
109
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
103
121
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
104
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
123
 
@@ -142,12 +160,24 @@ module Google
142
160
  include Google::Apis::Core::JsonObjectSupport
143
161
  end
144
162
 
163
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
145
169
  class GoogleCloudDocumentaiUiv1beta3ImportDocumentsResponse
146
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
171
 
148
172
  include Google::Apis::Core::JsonObjectSupport
149
173
  end
150
174
 
175
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ include Google::Apis::Core::JsonObjectSupport
179
+ end
180
+
151
181
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
152
182
  class Representation < Google::Apis::Core::JsonRepresentation; end
153
183
 
@@ -1156,18 +1186,6 @@ module Google
1156
1186
  include Google::Apis::Core::JsonObjectSupport
1157
1187
  end
1158
1188
 
1159
- class GoogleCloudDocumentaiV1beta3EvaluationMetrics
1160
- class Representation < Google::Apis::Core::JsonRepresentation; end
1161
-
1162
- include Google::Apis::Core::JsonObjectSupport
1163
- end
1164
-
1165
- class GoogleCloudDocumentaiV1beta3EvaluationReference
1166
- class Representation < Google::Apis::Core::JsonRepresentation; end
1167
-
1168
- include Google::Apis::Core::JsonObjectSupport
1169
- end
1170
-
1171
1189
  class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
1172
1190
  class Representation < Google::Apis::Core::JsonRepresentation; end
1173
1191
 
@@ -1276,18 +1294,6 @@ module Google
1276
1294
  include Google::Apis::Core::JsonObjectSupport
1277
1295
  end
1278
1296
 
1279
- class GoogleCloudDocumentaiV1beta3Schema
1280
- class Representation < Google::Apis::Core::JsonRepresentation; end
1281
-
1282
- include Google::Apis::Core::JsonObjectSupport
1283
- end
1284
-
1285
- class GoogleCloudDocumentaiV1beta3SchemaEntityType
1286
- class Representation < Google::Apis::Core::JsonRepresentation; end
1287
-
1288
- include Google::Apis::Core::JsonObjectSupport
1289
- end
1290
-
1291
1297
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
1292
1298
  class Representation < Google::Apis::Core::JsonRepresentation; end
1293
1299
 
@@ -1421,6 +1427,19 @@ module Google
1421
1427
  class Representation < Google::Apis::Core::JsonRepresentation
1422
1428
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1423
1429
 
1430
+ property :dest_dataset_type, as: 'destDatasetType'
1431
+ collection :individual_batch_move_statuses, as: 'individualBatchMoveStatuses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus::Representation
1432
+
1433
+ end
1434
+ end
1435
+
1436
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
1437
+ # @private
1438
+ class Representation < Google::Apis::Core::JsonRepresentation
1439
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1440
+
1441
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
1442
+
1424
1443
  end
1425
1444
  end
1426
1445
 
@@ -1501,6 +1520,24 @@ module Google
1501
1520
  end
1502
1521
  end
1503
1522
 
1523
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
1524
+ # @private
1525
+ class Representation < Google::Apis::Core::JsonRepresentation
1526
+ property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId::Representation
1527
+
1528
+ property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
1529
+
1530
+ end
1531
+ end
1532
+
1533
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
1534
+ # @private
1535
+ class Representation < Google::Apis::Core::JsonRepresentation
1536
+ property :cw_doc_id, as: 'cwDocId'
1537
+ property :gcs_uri, as: 'gcsUri'
1538
+ end
1539
+ end
1540
+
1504
1541
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
1505
1542
  # @private
1506
1543
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1550,6 +1587,18 @@ module Google
1550
1587
  class Representation < Google::Apis::Core::JsonRepresentation
1551
1588
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1552
1589
 
1590
+ collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1591
+
1592
+ end
1593
+ end
1594
+
1595
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1596
+ # @private
1597
+ class Representation < Google::Apis::Core::JsonRepresentation
1598
+ property :input_gcs_source, as: 'inputGcsSource'
1599
+ property :output_gcs_destination, as: 'outputGcsDestination'
1600
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1beta3::GoogleRpcStatus::Representation
1601
+
1553
1602
  end
1554
1603
  end
1555
1604
 
@@ -1559,6 +1608,15 @@ module Google
1559
1608
  end
1560
1609
  end
1561
1610
 
1611
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
1612
+ # @private
1613
+ class Representation < Google::Apis::Core::JsonRepresentation
1614
+ property :latest_processor_version, as: 'latestProcessorVersion'
1615
+ property :revision_case, as: 'revisionCase'
1616
+ property :revision_id, as: 'revisionId'
1617
+ end
1618
+ end
1619
+
1562
1620
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1563
1621
  # @private
1564
1622
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1755,6 +1813,7 @@ module Google
1755
1813
  class Representation < Google::Apis::Core::JsonRepresentation
1756
1814
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
1757
1815
 
1816
+ property :question_id, as: 'questionId'
1758
1817
  end
1759
1818
  end
1760
1819
 
@@ -2138,6 +2197,7 @@ module Google
2138
2197
 
2139
2198
  property :id, as: 'id'
2140
2199
  collection :parent, as: 'parent'
2200
+ collection :parent_ids, as: 'parentIds'
2141
2201
  property :processor, as: 'processor'
2142
2202
  end
2143
2203
  end
@@ -2636,6 +2696,7 @@ module Google
2636
2696
 
2637
2697
  property :id, as: 'id'
2638
2698
  collection :parent, as: 'parent'
2699
+ collection :parent_ids, as: 'parentIds'
2639
2700
  property :processor, as: 'processor'
2640
2701
  end
2641
2702
  end
@@ -3269,6 +3330,7 @@ module Google
3269
3330
 
3270
3331
  property :id, as: 'id'
3271
3332
  collection :parent, as: 'parent'
3333
+ collection :parent_ids, as: 'parentIds'
3272
3334
  property :processor, as: 'processor'
3273
3335
  end
3274
3336
  end
@@ -3363,31 +3425,6 @@ module Google
3363
3425
  end
3364
3426
  end
3365
3427
 
3366
- class GoogleCloudDocumentaiV1beta3EvaluationMetrics
3367
- # @private
3368
- class Representation < Google::Apis::Core::JsonRepresentation
3369
- property :f1_score, as: 'f1Score'
3370
- property :false_negatives_count, as: 'falseNegativesCount'
3371
- property :false_positives_count, as: 'falsePositivesCount'
3372
- property :ground_truth_occurrences_count, as: 'groundTruthOccurrencesCount'
3373
- property :precision, as: 'precision'
3374
- property :predicted_occurrences_count, as: 'predictedOccurrencesCount'
3375
- property :recall, as: 'recall'
3376
- property :total_documents_count, as: 'totalDocumentsCount'
3377
- property :true_positives_count, as: 'truePositivesCount'
3378
- end
3379
- end
3380
-
3381
- class GoogleCloudDocumentaiV1beta3EvaluationReference
3382
- # @private
3383
- class Representation < Google::Apis::Core::JsonRepresentation
3384
- property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationMetrics::Representation
3385
-
3386
- property :evaluation, as: 'evaluation'
3387
- property :operation, as: 'operation'
3388
- end
3389
- end
3390
-
3391
3428
  class GoogleCloudDocumentaiV1beta3FetchProcessorTypesResponse
3392
3429
  # @private
3393
3430
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3517,11 +3554,7 @@ module Google
3517
3554
  class Representation < Google::Apis::Core::JsonRepresentation
3518
3555
  property :create_time, as: 'createTime'
3519
3556
  property :display_name, as: 'displayName'
3520
- property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3EvaluationReference::Representation
3521
-
3522
3557
  property :name, as: 'name'
3523
- property :schema, as: 'schema', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Schema::Representation
3524
-
3525
3558
  property :state, as: 'state'
3526
3559
  end
3527
3560
  end
@@ -3540,6 +3573,7 @@ module Google
3540
3573
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3541
3574
 
3542
3575
  property :create_time, as: 'createTime'
3576
+ property :question_id, as: 'questionId'
3543
3577
  property :state, as: 'state'
3544
3578
  property :state_message, as: 'stateMessage'
3545
3579
  property :update_time, as: 'updateTime'
@@ -3565,30 +3599,6 @@ module Google
3565
3599
  end
3566
3600
  end
3567
3601
 
3568
- class GoogleCloudDocumentaiV1beta3Schema
3569
- # @private
3570
- class Representation < Google::Apis::Core::JsonRepresentation
3571
- property :description, as: 'description'
3572
- property :display_name, as: 'displayName'
3573
- collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
3574
-
3575
- end
3576
- end
3577
-
3578
- class GoogleCloudDocumentaiV1beta3SchemaEntityType
3579
- # @private
3580
- class Representation < Google::Apis::Core::JsonRepresentation
3581
- property :base_type, as: 'baseType'
3582
- property :description, as: 'description'
3583
- collection :enum_values, as: 'enumValues'
3584
- property :occurrence_type, as: 'occurrenceType'
3585
- collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType, decorator: Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3SchemaEntityType::Representation
3586
-
3587
- property :source, as: 'source'
3588
- property :type, as: 'type'
3589
- end
3590
- end
3591
-
3592
3602
  class GoogleCloudDocumentaiV1beta3SetDefaultProcessorVersionMetadata
3593
3603
  # @private
3594
3604
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,11 +51,12 @@ module Google
51
51
  @batch_path = 'batch'
52
52
  end
53
53
 
54
- # Fetches processor types.
54
+ # Fetches processor types. Note that we do not use ListProcessorTypes here
55
+ # because it is not paginated.
55
56
  # @param [String] parent
56
57
  # Required. The project of processor type to list. The available processor types
57
- # may depend on the whitelisting on projects. Format: projects/`project`/
58
- # locations/`location`
58
+ # may depend on the allow-listing on projects. Format: `projects/`project`/
59
+ # locations/`location``
59
60
  # @param [String] fields
60
61
  # Selector specifying which fields to include in a partial response.
61
62
  # @param [String] quota_user
@@ -273,10 +274,10 @@ module Google
273
274
  # LRO endpoint to batch process many documents. The output is written to Cloud
274
275
  # Storage as JSON in the [Document] format.
275
276
  # @param [String] name
276
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
277
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
278
- # locations/`location`/processors/`processor`/processorVersions/`
279
- # processorVersion`
277
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
278
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
279
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
280
+ # processorVersion``
280
281
  # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object
281
282
  # @param [String] fields
282
283
  # Selector specifying which fields to include in a partial response.
@@ -311,7 +312,7 @@ module Google
311
312
  # will be at "ENABLED" state by default after its creation.
312
313
  # @param [String] parent
313
314
  # Required. The parent (project and location) under which to create the
314
- # processor. Format: projects/`project`/locations/`location`
315
+ # processor. Format: `projects/`project`/locations/`location``
315
316
  # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3Processor] google_cloud_documentai_v1beta3_processor_object
316
317
  # @param [String] fields
317
318
  # Selector specifying which fields to include in a partial response.
@@ -472,7 +473,7 @@ module Google
472
473
  # Lists all processors which belong to this project.
473
474
  # @param [String] parent
474
475
  # Required. The parent (project and location) which owns this collection of
475
- # Processors. Format: projects/`project`/locations/`location`
476
+ # Processors. Format: `projects/`project`/locations/`location``
476
477
  # @param [Fixnum] page_size
477
478
  # The maximum number of processors to return. If unspecified, at most 50
478
479
  # processors will be returned. The maximum value is 100; values above 100 will
@@ -513,9 +514,9 @@ module Google
513
514
  # @param [String] name
514
515
  # Required. The resource name of the Processor or ProcessorVersion to use for
515
516
  # processing. If a Processor is specified, the server will use its default
516
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
517
- # , or projects/`project`/locations/`location`/processors/`processor`/
518
- # processorVersions/`processorVersion`
517
+ # version. Format: `projects/`project`/locations/`location`/processors/`
518
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
519
+ # /processorVersions/`processorVersion``
519
520
  # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object
520
521
  # @param [String] fields
521
522
  # Selector specifying which fields to include in a partial response.
@@ -618,10 +619,10 @@ module Google
618
619
  # LRO endpoint to batch process many documents. The output is written to Cloud
619
620
  # Storage as JSON in the [Document] format.
620
621
  # @param [String] name
621
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
622
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
623
- # locations/`location`/processors/`processor`/processorVersions/`
624
- # processorVersion`
622
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
623
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
624
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
625
+ # processorVersion``
625
626
  # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3BatchProcessRequest] google_cloud_documentai_v1beta3_batch_process_request_object
626
627
  # @param [String] fields
627
628
  # Selector specifying which fields to include in a partial response.
@@ -749,7 +750,7 @@ module Google
749
750
  # Lists all versions of a processor.
750
751
  # @param [String] parent
751
752
  # Required. The parent (project, location and processor) to list all versions.
752
- # Format: projects/`project`/locations/`location`/processors/`processor`
753
+ # Format: `projects/`project`/locations/`location`/processors/`processor``
753
754
  # @param [Fixnum] page_size
754
755
  # The maximum number of processor versions to return. If unspecified, at most 10
755
756
  # processor versions will be returned. The maximum value is 20; values above 20
@@ -790,9 +791,9 @@ module Google
790
791
  # @param [String] name
791
792
  # Required. The resource name of the Processor or ProcessorVersion to use for
792
793
  # processing. If a Processor is specified, the server will use its default
793
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
794
- # , or projects/`project`/locations/`location`/processors/`processor`/
795
- # processorVersions/`processorVersion`
794
+ # version. Format: `projects/`project`/locations/`location`/processors/`
795
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
796
+ # /processorVersions/`processorVersion``
796
797
  # @param [Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta3ProcessRequest] google_cloud_documentai_v1beta3_process_request_object
797
798
  # @param [String] fields
798
799
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-documentai_v1beta3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.0
4
+ version: 0.31.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: 2021-10-27 00:00:00.000000000 Z
11
+ date: 2022-01-24 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_v1beta3/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.27.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1beta3/v0.31.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-documentai_v1beta3
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Document AI API V1beta3