google-apis-documentai_v1 0.20.0 → 0.24.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: c7deb42cd72695227553f4987c50dcaab58160e876afc30a747cb6080b5bda24
4
- data.tar.gz: fb39b23b237290cf3d5991d3e9a750cbd78da4c255405f34a96a5abf4caa8355
3
+ metadata.gz: 54149c542d83e60a891c3e49ddfd6c4acd49cd932301318386833d2b87d123c2
4
+ data.tar.gz: c961840647138985e29d4481e0c7fe42b7eba84862f21074c9b6f2c3c1e5578a
5
5
  SHA512:
6
- metadata.gz: 559d4ec8e1d1ee8eb14d56e3afdd625f4fc0a20503326a19e79b14f56bfd56c486a8f8c0727474e2aecb5144776fc777ce1d5e67fbdb2fb3e579c2cbed406eca
7
- data.tar.gz: aa0b0cea441c11e6f7b95e1bfa4937c18aacf5102917154fa2410a0192a5e5eedcdba77793b0b50853d6f75fea7753c9898161e5cb884cec51b6bfcfe693b701
6
+ metadata.gz: 03f86d657b4218931debe891ffd85c674a99fd747aa5c375cff6e508455514c54e8488fc5e602ecec8bc908a16f3c7aa9a696af12952c698505a72cc62d38a5b
7
+ data.tar.gz: 76d71de9094dc0cac088258fd726417e2271ff81c6884447c63a6ec2c448eeabb01ea8e87cafce6943dd38e46c3d055426785e3aaab9bee6cea3277cc8c53713
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Release history for google-apis-documentai_v1
2
2
 
3
+ ### v0.24.0 (2022-01-20)
4
+
5
+ * Regenerated from discovery document revision 20220114
6
+ * Regenerated using generator version 0.4.1
7
+
8
+ ### v0.23.0 (2022-01-06)
9
+
10
+ * Regenerated from discovery document revision 20211230
11
+ * Unspecified changes
12
+
13
+ ### v0.22.0 (2021-12-07)
14
+
15
+ * Regenerated from discovery document revision 20211203
16
+
17
+ ### v0.21.0 (2021-11-09)
18
+
19
+ * Regenerated from discovery document revision 20211105
20
+
3
21
  ### v0.20.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_v1"
51
51
  client = Google::Apis::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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::DocumentaiV1::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
@@ -712,7 +881,7 @@ module Google
712
881
  # @return [String]
713
882
  attr_accessor :input_gcs_source
714
883
 
715
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
884
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
716
885
  # processed document if it was successful, otherwise empty.
717
886
  # Corresponds to the JSON property `outputGcsDestination`
718
887
  # @return [String]
@@ -1090,7 +1259,7 @@ module Google
1090
1259
  end
1091
1260
  end
1092
1261
 
1093
- # An entity that could be a phrase in the text or a property belongs to the
1262
+ # An entity that could be a phrase in the text or a property that belongs to the
1094
1263
  # document. It is a known entity type, such as a person, an organization, or
1095
1264
  # location.
1096
1265
  class GoogleCloudDocumentaiV1DocumentEntity
@@ -1248,8 +1417,8 @@ module Google
1248
1417
  attr_accessor :money_value
1249
1418
 
1250
1419
  # Optional. An optional field to store a normalized string. For some entity
1251
- # types, one of respective 'structured_value' fields may also be populated. Also
1252
- # not all the types of 'structured_value' will be normalized. For example, some
1420
+ # types, one of respective `structured_value` fields may also be populated. Also
1421
+ # not all the types of `structured_value` will be normalized. For example, some
1253
1422
  # processors may not generate float or int normalized text by default. Below are
1254
1423
  # sample formats mapped to structured values. - Money/Currency type (`
1255
1424
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -2079,8 +2248,8 @@ module Google
2079
2248
  end
2080
2249
  end
2081
2250
 
2082
- # Structure for referencing parent provenances. When an element replaces one of
2083
- # more other elements parent references identify the elements that are replaced.
2251
+ # The parent element the current element is based on. Used for referencing/
2252
+ # aligning, removal and replacement operations.
2084
2253
  class GoogleCloudDocumentaiV1DocumentProvenanceParent
2085
2254
  include Google::Apis::Core::Hashable
2086
2255
 
@@ -2090,12 +2259,12 @@ module Google
2090
2259
  attr_accessor :id
2091
2260
 
2092
2261
  # The index of the parent item in the corresponding item list (eg. list of
2093
- # entities, properties within entities, etc.) on parent revision.
2262
+ # entities, properties within entities, etc.) in the parent revision.
2094
2263
  # Corresponds to the JSON property `index`
2095
2264
  # @return [Fixnum]
2096
2265
  attr_accessor :index
2097
2266
 
2098
- # The index of the [Document.revisions] identifying the parent revision.
2267
+ # The index of the index into current revision's parent_ids list.
2099
2268
  # Corresponds to the JSON property `revision`
2100
2269
  # @return [Fixnum]
2101
2270
  attr_accessor :revision
@@ -2143,6 +2312,13 @@ module Google
2143
2312
  # @return [Array<Fixnum>]
2144
2313
  attr_accessor :parent
2145
2314
 
2315
+ # The revisions that this revision is based on. Must include all the ids that
2316
+ # have anything to do with this revision - eg. there are `provenance.parent.
2317
+ # revision` fields that index into this field.
2318
+ # Corresponds to the JSON property `parentIds`
2319
+ # @return [Array<String>]
2320
+ attr_accessor :parent_ids
2321
+
2146
2322
  # If the annotation was made by processor identify the processor by its resource
2147
2323
  # name.
2148
2324
  # Corresponds to the JSON property `processor`
@@ -2160,6 +2336,7 @@ module Google
2160
2336
  @human_review = args[:human_review] if args.key?(:human_review)
2161
2337
  @id = args[:id] if args.key?(:id)
2162
2338
  @parent = args[:parent] if args.key?(:parent)
2339
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
2163
2340
  @processor = args[:processor] if args.key?(:processor)
2164
2341
  end
2165
2342
  end
@@ -2525,104 +2702,6 @@ module Google
2525
2702
  end
2526
2703
  end
2527
2704
 
2528
- # Evaluation metrics, either in aggregate or about a specific entity.
2529
- class GoogleCloudDocumentaiV1EvaluationMetrics
2530
- include Google::Apis::Core::Hashable
2531
-
2532
- # The calculated f1 score.
2533
- # Corresponds to the JSON property `f1Score`
2534
- # @return [Float]
2535
- attr_accessor :f1_score
2536
-
2537
- # The amount of false negatives.
2538
- # Corresponds to the JSON property `falseNegativesCount`
2539
- # @return [Fixnum]
2540
- attr_accessor :false_negatives_count
2541
-
2542
- # The amount of false positives.
2543
- # Corresponds to the JSON property `falsePositivesCount`
2544
- # @return [Fixnum]
2545
- attr_accessor :false_positives_count
2546
-
2547
- # The amount of occurrences in ground truth documents.
2548
- # Corresponds to the JSON property `groundTruthOccurrencesCount`
2549
- # @return [Fixnum]
2550
- attr_accessor :ground_truth_occurrences_count
2551
-
2552
- # The calculated precision.
2553
- # Corresponds to the JSON property `precision`
2554
- # @return [Float]
2555
- attr_accessor :precision
2556
-
2557
- # The amount of occurrences in predicted documents.
2558
- # Corresponds to the JSON property `predictedOccurrencesCount`
2559
- # @return [Fixnum]
2560
- attr_accessor :predicted_occurrences_count
2561
-
2562
- # The calculated recall.
2563
- # Corresponds to the JSON property `recall`
2564
- # @return [Float]
2565
- attr_accessor :recall
2566
-
2567
- # The amount of documents that had an occurrence of this label.
2568
- # Corresponds to the JSON property `totalDocumentsCount`
2569
- # @return [Fixnum]
2570
- attr_accessor :total_documents_count
2571
-
2572
- # The amount of true positives.
2573
- # Corresponds to the JSON property `truePositivesCount`
2574
- # @return [Fixnum]
2575
- attr_accessor :true_positives_count
2576
-
2577
- def initialize(**args)
2578
- update!(**args)
2579
- end
2580
-
2581
- # Update properties of this object
2582
- def update!(**args)
2583
- @f1_score = args[:f1_score] if args.key?(:f1_score)
2584
- @false_negatives_count = args[:false_negatives_count] if args.key?(:false_negatives_count)
2585
- @false_positives_count = args[:false_positives_count] if args.key?(:false_positives_count)
2586
- @ground_truth_occurrences_count = args[:ground_truth_occurrences_count] if args.key?(:ground_truth_occurrences_count)
2587
- @precision = args[:precision] if args.key?(:precision)
2588
- @predicted_occurrences_count = args[:predicted_occurrences_count] if args.key?(:predicted_occurrences_count)
2589
- @recall = args[:recall] if args.key?(:recall)
2590
- @total_documents_count = args[:total_documents_count] if args.key?(:total_documents_count)
2591
- @true_positives_count = args[:true_positives_count] if args.key?(:true_positives_count)
2592
- end
2593
- end
2594
-
2595
- # Gives a short summary of an evaluation, and links to the evaluation itself.
2596
- class GoogleCloudDocumentaiV1EvaluationReference
2597
- include Google::Apis::Core::Hashable
2598
-
2599
- # Evaluation metrics, either in aggregate or about a specific entity.
2600
- # Corresponds to the JSON property `aggregateMetrics`
2601
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics]
2602
- attr_accessor :aggregate_metrics
2603
-
2604
- # The resource name of the evaluation.
2605
- # Corresponds to the JSON property `evaluation`
2606
- # @return [String]
2607
- attr_accessor :evaluation
2608
-
2609
- # The resource name of the Long Running Operation for the evaluation.
2610
- # Corresponds to the JSON property `operation`
2611
- # @return [String]
2612
- attr_accessor :operation
2613
-
2614
- def initialize(**args)
2615
- update!(**args)
2616
- end
2617
-
2618
- # Update properties of this object
2619
- def update!(**args)
2620
- @aggregate_metrics = args[:aggregate_metrics] if args.key?(:aggregate_metrics)
2621
- @evaluation = args[:evaluation] if args.key?(:evaluation)
2622
- @operation = args[:operation] if args.key?(:operation)
2623
- end
2624
- end
2625
-
2626
2705
  # Response message for fetch processor types.
2627
2706
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2628
2707
  include Google::Apis::Core::Hashable
@@ -2879,7 +2958,7 @@ module Google
2879
2958
  end
2880
2959
  end
2881
2960
 
2882
- # The first-class citizen for DAI. Each processor defines how to extract
2961
+ # The first-class citizen for Document AI. Each processor defines how to extract
2883
2962
  # structural information from a document.
2884
2963
  class GoogleCloudDocumentaiV1Processor
2885
2964
  include Google::Apis::Core::Hashable
@@ -2905,8 +2984,8 @@ module Google
2905
2984
  # @return [String]
2906
2985
  attr_accessor :kms_key_name
2907
2986
 
2908
- # Output only. Immutable. The resource name of the processor. Format: projects/`
2909
- # project`/locations/`location`/processors/`processor`
2987
+ # Output only. Immutable. The resource name of the processor. Format: `projects/`
2988
+ # project`/locations/`location`/processors/`processor``
2910
2989
  # Corresponds to the JSON property `name`
2911
2990
  # @return [String]
2912
2991
  attr_accessor :name
@@ -2945,26 +3024,12 @@ module Google
2945
3024
  end
2946
3025
 
2947
3026
  # A processor type is responsible for performing a certain document
2948
- # understanding task on a certain type of document. All processor types are
2949
- # created by the documentai service internally. User will only list all
2950
- # available processor types via UI. For different users (projects), the
2951
- # available processor types may be different since we'll expose the access of
2952
- # some types via EAP whitelisting. We make the ProcessorType a resource under
2953
- # location so we have a unified API and keep the possibility that UI will load
2954
- # different available processor types from different regions. But for alpha the
2955
- # behavior is that the user will always get the union of all available processor
2956
- # types among all regions no matter which regionalized endpoint is called, and
2957
- # then we use the 'available_locations' field to show under which regions a
2958
- # processor type is available. For example, users can call either the 'US' or '
2959
- # EU' endpoint to feach processor types. In the return, we will have an 'invoice
2960
- # parsing' processor with 'available_locations' field only containing 'US'. So
2961
- # the user can try to create an 'invoice parsing' processor under the location '
2962
- # US'. Such attempt of creating under the location 'EU' will fail. Next ID: 9.
3027
+ # understanding task on a certain type of document.
2963
3028
  class GoogleCloudDocumentaiV1ProcessorType
2964
3029
  include Google::Apis::Core::Hashable
2965
3030
 
2966
- # Whether the processor type allows creation. If yes, user can create a
2967
- # processor of this processor type. Otherwise, user needs to request access.
3031
+ # Whether the processor type allows creation. If true, users can create a
3032
+ # processor of this processor type. Otherwise, users need to request access.
2968
3033
  # Corresponds to the JSON property `allowCreation`
2969
3034
  # @return [Boolean]
2970
3035
  attr_accessor :allow_creation
@@ -3048,23 +3113,13 @@ module Google
3048
3113
  # @return [String]
3049
3114
  attr_accessor :display_name
3050
3115
 
3051
- # Gives a short summary of an evaluation, and links to the evaluation itself.
3052
- # Corresponds to the JSON property `latestEvaluation`
3053
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference]
3054
- attr_accessor :latest_evaluation
3055
-
3056
- # The resource name of the processor version. Format: projects/`project`/
3116
+ # The resource name of the processor version. Format: `projects/`project`/
3057
3117
  # locations/`location`/processors/`processor`/processorVersions/`
3058
- # processor_version`
3118
+ # processor_version``
3059
3119
  # Corresponds to the JSON property `name`
3060
3120
  # @return [String]
3061
3121
  attr_accessor :name
3062
3122
 
3063
- # The schema defines the output of the processed document by a processor.
3064
- # Corresponds to the JSON property `schema`
3065
- # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema]
3066
- attr_accessor :schema
3067
-
3068
3123
  # The state of the processor version.
3069
3124
  # Corresponds to the JSON property `state`
3070
3125
  # @return [String]
@@ -3078,9 +3133,7 @@ module Google
3078
3133
  def update!(**args)
3079
3134
  @create_time = args[:create_time] if args.key?(:create_time)
3080
3135
  @display_name = args[:display_name] if args.key?(:display_name)
3081
- @latest_evaluation = args[:latest_evaluation] if args.key?(:latest_evaluation)
3082
3136
  @name = args[:name] if args.key?(:name)
3083
- @schema = args[:schema] if args.key?(:schema)
3084
3137
  @state = args[:state] if args.key?(:state)
3085
3138
  end
3086
3139
  end
@@ -3120,6 +3173,11 @@ module Google
3120
3173
  # @return [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata]
3121
3174
  attr_accessor :common_metadata
3122
3175
 
3176
+ # The Crowd Compute question ID.
3177
+ # Corresponds to the JSON property `questionId`
3178
+ # @return [String]
3179
+ attr_accessor :question_id
3180
+
3123
3181
  def initialize(**args)
3124
3182
  update!(**args)
3125
3183
  end
@@ -3127,10 +3185,11 @@ module Google
3127
3185
  # Update properties of this object
3128
3186
  def update!(**args)
3129
3187
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
3188
+ @question_id = args[:question_id] if args.key?(:question_id)
3130
3189
  end
3131
3190
  end
3132
3191
 
3133
- # Request message for review document method. Next Id: 6.
3192
+ # Request message for review document method.
3134
3193
  class GoogleCloudDocumentaiV1ReviewDocumentRequest
3135
3194
  include Google::Apis::Core::Hashable
3136
3195
 
@@ -3184,118 +3243,6 @@ module Google
3184
3243
  end
3185
3244
  end
3186
3245
 
3187
- # The schema defines the output of the processed document by a processor.
3188
- class GoogleCloudDocumentaiV1Schema
3189
- include Google::Apis::Core::Hashable
3190
-
3191
- # Description of the schema.
3192
- # Corresponds to the JSON property `description`
3193
- # @return [String]
3194
- attr_accessor :description
3195
-
3196
- # Display name to show to users.
3197
- # Corresponds to the JSON property `displayName`
3198
- # @return [String]
3199
- attr_accessor :display_name
3200
-
3201
- # Entity types of the schema.
3202
- # Corresponds to the JSON property `entityTypes`
3203
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3204
- attr_accessor :entity_types
3205
-
3206
- def initialize(**args)
3207
- update!(**args)
3208
- end
3209
-
3210
- # Update properties of this object
3211
- def update!(**args)
3212
- @description = args[:description] if args.key?(:description)
3213
- @display_name = args[:display_name] if args.key?(:display_name)
3214
- @entity_types = args[:entity_types] if args.key?(:entity_types)
3215
- end
3216
- end
3217
-
3218
- # EntityType is the wrapper of a label of the corresponding model with detailed
3219
- # attributes and limitations for entity-based processors. Multiple types can
3220
- # also compose a dependency tree to represent nested types.
3221
- class GoogleCloudDocumentaiV1SchemaEntityType
3222
- include Google::Apis::Core::Hashable
3223
-
3224
- # Type of the entity. It must be one of the following: `document` - the entity
3225
- # represents a classification of a logical document. `object` - if the entity
3226
- # has properties it is likely an object (or or a document.) `datetime` - the
3227
- # entity is a date or time value. `money` - the entity represents a money value
3228
- # amount. `number` - the entity is a number - integer or floating point. `string`
3229
- # - the entity is a string value. `boolean` - the entity is a boolean value. `
3230
- # address` - the entity is a location address. `duration` - the entity is a
3231
- # duration.
3232
- # Corresponds to the JSON property `baseType`
3233
- # @return [String]
3234
- attr_accessor :base_type
3235
-
3236
- # Description of the entity type.
3237
- # Corresponds to the JSON property `description`
3238
- # @return [String]
3239
- attr_accessor :description
3240
-
3241
- # If specified, lists all the possible values for this entity.
3242
- # Corresponds to the JSON property `enumValues`
3243
- # @return [Array<String>]
3244
- attr_accessor :enum_values
3245
-
3246
- # Occurrence type limits the number of times an entity type appears in the
3247
- # document.
3248
- # Corresponds to the JSON property `occurrenceType`
3249
- # @return [String]
3250
- attr_accessor :occurrence_type
3251
-
3252
- # Describing the nested structure of an entity. An EntityType may consist of
3253
- # several other EntityTypes. For example, in a document there can be an
3254
- # EntityType 'ID', which consists of EntityType 'name' and 'address', with
3255
- # corresponding attributes, such as TEXT for both types and ONCE for occurrence
3256
- # types.
3257
- # Corresponds to the JSON property `properties`
3258
- # @return [Array<Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType>]
3259
- attr_accessor :properties
3260
-
3261
- # Source of this entity type.
3262
- # Corresponds to the JSON property `source`
3263
- # @return [String]
3264
- attr_accessor :source
3265
-
3266
- # Name of the type. It must satisfy the following constraints: 1. Must be unique
3267
- # within the set of same level types (with case-insensitive match). 2. Maximum
3268
- # 50 characters. 3. Must start with a letter. 4. Allowed characters: ASCII
3269
- # letters [a-zA-Z], ASCII digits [0-9], or one of the following punctuation
3270
- # characters: * underscore '_' (recommended) * hyphen '-' (allowed, not
3271
- # recommended) * colon ':' (allowed, not recommended) NOTE: Whitespace
3272
- # characters are not allowed. 5. Cannot end with a punctuation character. 6.
3273
- # Cannot contain the following restricted strings: "google", "DocumentAI" (case-
3274
- # insensitive match). 7. A slash character '/' is reserved as a separator in
3275
- # flattened representations of nested entity types (e.g., "line_item/amount") in
3276
- # which case each part (e.g., "line_item", "amount") must comply with the rules
3277
- # defined above. We recommend using the snake case ("snake_case") in entity type
3278
- # names.
3279
- # Corresponds to the JSON property `type`
3280
- # @return [String]
3281
- attr_accessor :type
3282
-
3283
- def initialize(**args)
3284
- update!(**args)
3285
- end
3286
-
3287
- # Update properties of this object
3288
- def update!(**args)
3289
- @base_type = args[:base_type] if args.key?(:base_type)
3290
- @description = args[:description] if args.key?(:description)
3291
- @enum_values = args[:enum_values] if args.key?(:enum_values)
3292
- @occurrence_type = args[:occurrence_type] if args.key?(:occurrence_type)
3293
- @properties = args[:properties] if args.key?(:properties)
3294
- @source = args[:source] if args.key?(:source)
3295
- @type = args[:type] if args.key?(:type)
3296
- end
3297
- end
3298
-
3299
3246
  # The long running operation metadata for set default processor version method.
3300
3247
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
3301
3248
  include Google::Apis::Core::Hashable
@@ -3568,7 +3515,7 @@ module Google
3568
3515
  end
3569
3516
  end
3570
3517
 
3571
- # An entity that could be a phrase in the text or a property belongs to the
3518
+ # An entity that could be a phrase in the text or a property that belongs to the
3572
3519
  # document. It is a known entity type, such as a person, an organization, or
3573
3520
  # location.
3574
3521
  class GoogleCloudDocumentaiV1beta1DocumentEntity
@@ -3726,8 +3673,8 @@ module Google
3726
3673
  attr_accessor :money_value
3727
3674
 
3728
3675
  # Optional. An optional field to store a normalized string. For some entity
3729
- # types, one of respective 'structured_value' fields may also be populated. Also
3730
- # not all the types of 'structured_value' will be normalized. For example, some
3676
+ # types, one of respective `structured_value` fields may also be populated. Also
3677
+ # not all the types of `structured_value` will be normalized. For example, some
3731
3678
  # processors may not generate float or int normalized text by default. Below are
3732
3679
  # sample formats mapped to structured values. - Money/Currency type (`
3733
3680
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -4518,8 +4465,8 @@ module Google
4518
4465
  end
4519
4466
  end
4520
4467
 
4521
- # Structure for referencing parent provenances. When an element replaces one of
4522
- # more other elements parent references identify the elements that are replaced.
4468
+ # The parent element the current element is based on. Used for referencing/
4469
+ # aligning, removal and replacement operations.
4523
4470
  class GoogleCloudDocumentaiV1beta1DocumentProvenanceParent
4524
4471
  include Google::Apis::Core::Hashable
4525
4472
 
@@ -4529,12 +4476,12 @@ module Google
4529
4476
  attr_accessor :id
4530
4477
 
4531
4478
  # The index of the parent item in the corresponding item list (eg. list of
4532
- # entities, properties within entities, etc.) on parent revision.
4479
+ # entities, properties within entities, etc.) in the parent revision.
4533
4480
  # Corresponds to the JSON property `index`
4534
4481
  # @return [Fixnum]
4535
4482
  attr_accessor :index
4536
4483
 
4537
- # The index of the [Document.revisions] identifying the parent revision.
4484
+ # The index of the index into current revision's parent_ids list.
4538
4485
  # Corresponds to the JSON property `revision`
4539
4486
  # @return [Fixnum]
4540
4487
  attr_accessor :revision
@@ -4582,6 +4529,13 @@ module Google
4582
4529
  # @return [Array<Fixnum>]
4583
4530
  attr_accessor :parent
4584
4531
 
4532
+ # The revisions that this revision is based on. Must include all the ids that
4533
+ # have anything to do with this revision - eg. there are `provenance.parent.
4534
+ # revision` fields that index into this field.
4535
+ # Corresponds to the JSON property `parentIds`
4536
+ # @return [Array<String>]
4537
+ attr_accessor :parent_ids
4538
+
4585
4539
  # If the annotation was made by processor identify the processor by its resource
4586
4540
  # name.
4587
4541
  # Corresponds to the JSON property `processor`
@@ -4599,6 +4553,7 @@ module Google
4599
4553
  @human_review = args[:human_review] if args.key?(:human_review)
4600
4554
  @id = args[:id] if args.key?(:id)
4601
4555
  @parent = args[:parent] if args.key?(:parent)
4556
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
4602
4557
  @processor = args[:processor] if args.key?(:processor)
4603
4558
  end
4604
4559
  end
@@ -5287,7 +5242,7 @@ module Google
5287
5242
  end
5288
5243
  end
5289
5244
 
5290
- # An entity that could be a phrase in the text or a property belongs to the
5245
+ # An entity that could be a phrase in the text or a property that belongs to the
5291
5246
  # document. It is a known entity type, such as a person, an organization, or
5292
5247
  # location.
5293
5248
  class GoogleCloudDocumentaiV1beta2DocumentEntity
@@ -5445,8 +5400,8 @@ module Google
5445
5400
  attr_accessor :money_value
5446
5401
 
5447
5402
  # Optional. An optional field to store a normalized string. For some entity
5448
- # types, one of respective 'structured_value' fields may also be populated. Also
5449
- # not all the types of 'structured_value' will be normalized. For example, some
5403
+ # types, one of respective `structured_value` fields may also be populated. Also
5404
+ # not all the types of `structured_value` will be normalized. For example, some
5450
5405
  # processors may not generate float or int normalized text by default. Below are
5451
5406
  # sample formats mapped to structured values. - Money/Currency type (`
5452
5407
  # money_value`) is in the ISO 4217 text format. - Date type (`date_value`) is in
@@ -6274,8 +6229,8 @@ module Google
6274
6229
  end
6275
6230
  end
6276
6231
 
6277
- # Structure for referencing parent provenances. When an element replaces one of
6278
- # more other elements parent references identify the elements that are replaced.
6232
+ # The parent element the current element is based on. Used for referencing/
6233
+ # aligning, removal and replacement operations.
6279
6234
  class GoogleCloudDocumentaiV1beta2DocumentProvenanceParent
6280
6235
  include Google::Apis::Core::Hashable
6281
6236
 
@@ -6285,12 +6240,12 @@ module Google
6285
6240
  attr_accessor :id
6286
6241
 
6287
6242
  # The index of the parent item in the corresponding item list (eg. list of
6288
- # entities, properties within entities, etc.) on parent revision.
6243
+ # entities, properties within entities, etc.) in the parent revision.
6289
6244
  # Corresponds to the JSON property `index`
6290
6245
  # @return [Fixnum]
6291
6246
  attr_accessor :index
6292
6247
 
6293
- # The index of the [Document.revisions] identifying the parent revision.
6248
+ # The index of the index into current revision's parent_ids list.
6294
6249
  # Corresponds to the JSON property `revision`
6295
6250
  # @return [Fixnum]
6296
6251
  attr_accessor :revision
@@ -6338,6 +6293,13 @@ module Google
6338
6293
  # @return [Array<Fixnum>]
6339
6294
  attr_accessor :parent
6340
6295
 
6296
+ # The revisions that this revision is based on. Must include all the ids that
6297
+ # have anything to do with this revision - eg. there are `provenance.parent.
6298
+ # revision` fields that index into this field.
6299
+ # Corresponds to the JSON property `parentIds`
6300
+ # @return [Array<String>]
6301
+ attr_accessor :parent_ids
6302
+
6341
6303
  # If the annotation was made by processor identify the processor by its resource
6342
6304
  # name.
6343
6305
  # Corresponds to the JSON property `processor`
@@ -6355,6 +6317,7 @@ module Google
6355
6317
  @human_review = args[:human_review] if args.key?(:human_review)
6356
6318
  @id = args[:id] if args.key?(:id)
6357
6319
  @parent = args[:parent] if args.key?(:parent)
6320
+ @parent_ids = args[:parent_ids] if args.key?(:parent_ids)
6358
6321
  @processor = args[:processor] if args.key?(:processor)
6359
6322
  end
6360
6323
  end
@@ -6966,7 +6929,7 @@ module Google
6966
6929
  # @return [String]
6967
6930
  attr_accessor :input_gcs_source
6968
6931
 
6969
- # The output_gcs_destination (in the request as 'output_gcs_destination') of the
6932
+ # The output_gcs_destination (in the request as `output_gcs_destination`) of the
6970
6933
  # processed document if it was successful, otherwise empty.
6971
6934
  # Corresponds to the JSON property `outputGcsDestination`
6972
6935
  # @return [String]
@@ -7236,6 +7199,11 @@ module Google
7236
7199
  # @return [String]
7237
7200
  attr_accessor :create_time
7238
7201
 
7202
+ # The Crowd Compute question ID.
7203
+ # Corresponds to the JSON property `questionId`
7204
+ # @return [String]
7205
+ attr_accessor :question_id
7206
+
7239
7207
  # Used only when Operation.done is false.
7240
7208
  # Corresponds to the JSON property `state`
7241
7209
  # @return [String]
@@ -7260,6 +7228,7 @@ module Google
7260
7228
  def update!(**args)
7261
7229
  @common_metadata = args[:common_metadata] if args.key?(:common_metadata)
7262
7230
  @create_time = args[:create_time] if args.key?(:create_time)
7231
+ @question_id = args[:question_id] if args.key?(:question_id)
7263
7232
  @state = args[:state] if args.key?(:state)
7264
7233
  @state_message = args[:state_message] if args.key?(:state_message)
7265
7234
  @update_time = args[:update_time] if args.key?(:update_time)
@@ -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.20.0"
19
+ GEM_VERSION = "0.24.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
 
@@ -520,18 +550,6 @@ module Google
520
550
  include Google::Apis::Core::JsonObjectSupport
521
551
  end
522
552
 
523
- class GoogleCloudDocumentaiV1EvaluationMetrics
524
- class Representation < Google::Apis::Core::JsonRepresentation; end
525
-
526
- include Google::Apis::Core::JsonObjectSupport
527
- end
528
-
529
- class GoogleCloudDocumentaiV1EvaluationReference
530
- class Representation < Google::Apis::Core::JsonRepresentation; end
531
-
532
- include Google::Apis::Core::JsonObjectSupport
533
- end
534
-
535
553
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
536
554
  class Representation < Google::Apis::Core::JsonRepresentation; end
537
555
 
@@ -640,18 +658,6 @@ module Google
640
658
  include Google::Apis::Core::JsonObjectSupport
641
659
  end
642
660
 
643
- class GoogleCloudDocumentaiV1Schema
644
- class Representation < Google::Apis::Core::JsonRepresentation; end
645
-
646
- include Google::Apis::Core::JsonObjectSupport
647
- end
648
-
649
- class GoogleCloudDocumentaiV1SchemaEntityType
650
- class Representation < Google::Apis::Core::JsonRepresentation; end
651
-
652
- include Google::Apis::Core::JsonObjectSupport
653
- end
654
-
655
661
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
656
662
  class Representation < Google::Apis::Core::JsonRepresentation; end
657
663
 
@@ -1409,6 +1415,19 @@ module Google
1409
1415
  class Representation < Google::Apis::Core::JsonRepresentation
1410
1416
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1411
1417
 
1418
+ property :dest_dataset_type, as: 'destDatasetType'
1419
+ collection :individual_batch_move_statuses, as: 'individualBatchMoveStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus::Representation
1420
+
1421
+ end
1422
+ end
1423
+
1424
+ class GoogleCloudDocumentaiUiv1beta3BatchMoveDocumentsMetadataIndividualBatchMoveStatus
1425
+ # @private
1426
+ class Representation < Google::Apis::Core::JsonRepresentation
1427
+ property :document_id, as: 'documentId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentId::Representation
1428
+
1429
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1430
+
1412
1431
  end
1413
1432
  end
1414
1433
 
@@ -1489,6 +1508,24 @@ module Google
1489
1508
  end
1490
1509
  end
1491
1510
 
1511
+ class GoogleCloudDocumentaiUiv1beta3DocumentId
1512
+ # @private
1513
+ class Representation < Google::Apis::Core::JsonRepresentation
1514
+ property :gcs_managed_doc_id, as: 'gcsManagedDocId', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId::Representation
1515
+
1516
+ property :revision_reference, as: 'revisionReference', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3RevisionReference, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3RevisionReference::Representation
1517
+
1518
+ end
1519
+ end
1520
+
1521
+ class GoogleCloudDocumentaiUiv1beta3DocumentIdGcsManagedDocumentId
1522
+ # @private
1523
+ class Representation < Google::Apis::Core::JsonRepresentation
1524
+ property :cw_doc_id, as: 'cwDocId'
1525
+ property :gcs_uri, as: 'gcsUri'
1526
+ end
1527
+ end
1528
+
1492
1529
  class GoogleCloudDocumentaiUiv1beta3EnableProcessorMetadata
1493
1530
  # @private
1494
1531
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1538,6 +1575,18 @@ module Google
1538
1575
  class Representation < Google::Apis::Core::JsonRepresentation
1539
1576
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3CommonOperationMetadata::Representation
1540
1577
 
1578
+ collection :individual_import_statuses, as: 'individualImportStatuses', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus::Representation
1579
+
1580
+ end
1581
+ end
1582
+
1583
+ class GoogleCloudDocumentaiUiv1beta3ImportDocumentsMetadataIndividualImportStatus
1584
+ # @private
1585
+ class Representation < Google::Apis::Core::JsonRepresentation
1586
+ property :input_gcs_source, as: 'inputGcsSource'
1587
+ property :output_gcs_destination, as: 'outputGcsDestination'
1588
+ property :status, as: 'status', class: Google::Apis::DocumentaiV1::GoogleRpcStatus, decorator: Google::Apis::DocumentaiV1::GoogleRpcStatus::Representation
1589
+
1541
1590
  end
1542
1591
  end
1543
1592
 
@@ -1547,6 +1596,15 @@ module Google
1547
1596
  end
1548
1597
  end
1549
1598
 
1599
+ class GoogleCloudDocumentaiUiv1beta3RevisionReference
1600
+ # @private
1601
+ class Representation < Google::Apis::Core::JsonRepresentation
1602
+ property :latest_processor_version, as: 'latestProcessorVersion'
1603
+ property :revision_case, as: 'revisionCase'
1604
+ property :revision_id, as: 'revisionId'
1605
+ end
1606
+ end
1607
+
1550
1608
  class GoogleCloudDocumentaiUiv1beta3SetDefaultProcessorVersionMetadata
1551
1609
  # @private
1552
1610
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2100,6 +2158,7 @@ module Google
2100
2158
 
2101
2159
  property :id, as: 'id'
2102
2160
  collection :parent, as: 'parent'
2161
+ collection :parent_ids, as: 'parentIds'
2103
2162
  property :processor, as: 'processor'
2104
2163
  end
2105
2164
  end
@@ -2194,31 +2253,6 @@ module Google
2194
2253
  end
2195
2254
  end
2196
2255
 
2197
- class GoogleCloudDocumentaiV1EvaluationMetrics
2198
- # @private
2199
- class Representation < Google::Apis::Core::JsonRepresentation
2200
- property :f1_score, as: 'f1Score'
2201
- property :false_negatives_count, as: 'falseNegativesCount'
2202
- property :false_positives_count, as: 'falsePositivesCount'
2203
- property :ground_truth_occurrences_count, as: 'groundTruthOccurrencesCount'
2204
- property :precision, as: 'precision'
2205
- property :predicted_occurrences_count, as: 'predictedOccurrencesCount'
2206
- property :recall, as: 'recall'
2207
- property :total_documents_count, as: 'totalDocumentsCount'
2208
- property :true_positives_count, as: 'truePositivesCount'
2209
- end
2210
- end
2211
-
2212
- class GoogleCloudDocumentaiV1EvaluationReference
2213
- # @private
2214
- class Representation < Google::Apis::Core::JsonRepresentation
2215
- property :aggregate_metrics, as: 'aggregateMetrics', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationMetrics::Representation
2216
-
2217
- property :evaluation, as: 'evaluation'
2218
- property :operation, as: 'operation'
2219
- end
2220
- end
2221
-
2222
2256
  class GoogleCloudDocumentaiV1FetchProcessorTypesResponse
2223
2257
  # @private
2224
2258
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2345,11 +2379,7 @@ module Google
2345
2379
  class Representation < Google::Apis::Core::JsonRepresentation
2346
2380
  property :create_time, as: 'createTime'
2347
2381
  property :display_name, as: 'displayName'
2348
- property :latest_evaluation, as: 'latestEvaluation', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1EvaluationReference::Representation
2349
-
2350
2382
  property :name, as: 'name'
2351
- property :schema, as: 'schema', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Schema::Representation
2352
-
2353
2383
  property :state, as: 'state'
2354
2384
  end
2355
2385
  end
@@ -2367,6 +2397,7 @@ module Google
2367
2397
  class Representation < Google::Apis::Core::JsonRepresentation
2368
2398
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1CommonOperationMetadata::Representation
2369
2399
 
2400
+ property :question_id, as: 'questionId'
2370
2401
  end
2371
2402
  end
2372
2403
 
@@ -2387,30 +2418,6 @@ module Google
2387
2418
  end
2388
2419
  end
2389
2420
 
2390
- class GoogleCloudDocumentaiV1Schema
2391
- # @private
2392
- class Representation < Google::Apis::Core::JsonRepresentation
2393
- property :description, as: 'description'
2394
- property :display_name, as: 'displayName'
2395
- collection :entity_types, as: 'entityTypes', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
2396
-
2397
- end
2398
- end
2399
-
2400
- class GoogleCloudDocumentaiV1SchemaEntityType
2401
- # @private
2402
- class Representation < Google::Apis::Core::JsonRepresentation
2403
- property :base_type, as: 'baseType'
2404
- property :description, as: 'description'
2405
- collection :enum_values, as: 'enumValues'
2406
- property :occurrence_type, as: 'occurrenceType'
2407
- collection :properties, as: 'properties', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1SchemaEntityType::Representation
2408
-
2409
- property :source, as: 'source'
2410
- property :type, as: 'type'
2411
- end
2412
- end
2413
-
2414
2421
  class GoogleCloudDocumentaiV1SetDefaultProcessorVersionMetadata
2415
2422
  # @private
2416
2423
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -2805,6 +2812,7 @@ module Google
2805
2812
 
2806
2813
  property :id, as: 'id'
2807
2814
  collection :parent, as: 'parent'
2815
+ collection :parent_ids, as: 'parentIds'
2808
2816
  property :processor, as: 'processor'
2809
2817
  end
2810
2818
  end
@@ -3303,6 +3311,7 @@ module Google
3303
3311
 
3304
3312
  property :id, as: 'id'
3305
3313
  collection :parent, as: 'parent'
3314
+ collection :parent_ids, as: 'parentIds'
3306
3315
  property :processor, as: 'processor'
3307
3316
  end
3308
3317
  end
@@ -3561,6 +3570,7 @@ module Google
3561
3570
  property :common_metadata, as: 'commonMetadata', class: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata, decorator: Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1beta3CommonOperationMetadata::Representation
3562
3571
 
3563
3572
  property :create_time, as: 'createTime'
3573
+ property :question_id, as: 'questionId'
3564
3574
  property :state, as: 'state'
3565
3575
  property :state_message, as: 'stateMessage'
3566
3576
  property :update_time, as: 'updateTime'
@@ -84,11 +84,12 @@ module Google
84
84
  execute_or_queue_command(command, &block)
85
85
  end
86
86
 
87
- # Fetches processor types.
87
+ # Fetches processor types. Note that we do not use ListProcessorTypes here
88
+ # because it is not paginated.
88
89
  # @param [String] parent
89
90
  # Required. The project of processor type to list. The available processor types
90
- # may depend on the whitelisting on projects. Format: projects/`project`/
91
- # locations/`location`
91
+ # may depend on the allow-listing on projects. Format: `projects/`project`/
92
+ # locations/`location``
92
93
  # @param [String] fields
93
94
  # Selector specifying which fields to include in a partial response.
94
95
  # @param [String] quota_user
@@ -306,10 +307,10 @@ module Google
306
307
  # LRO endpoint to batch process many documents. The output is written to Cloud
307
308
  # Storage as JSON in the [Document] format.
308
309
  # @param [String] name
309
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
310
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
311
- # locations/`location`/processors/`processor`/processorVersions/`
312
- # processorVersion`
310
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
311
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
312
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
313
+ # processorVersion``
313
314
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchProcessRequest] google_cloud_documentai_v1_batch_process_request_object
314
315
  # @param [String] fields
315
316
  # Selector specifying which fields to include in a partial response.
@@ -344,7 +345,7 @@ module Google
344
345
  # will be at "ENABLED" state by default after its creation.
345
346
  # @param [String] parent
346
347
  # Required. The parent (project and location) under which to create the
347
- # processor. Format: projects/`project`/locations/`location`
348
+ # processor. Format: `projects/`project`/locations/`location``
348
349
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1Processor] google_cloud_documentai_v1_processor_object
349
350
  # @param [String] fields
350
351
  # Selector specifying which fields to include in a partial response.
@@ -505,7 +506,7 @@ module Google
505
506
  # Lists all processors which belong to this project.
506
507
  # @param [String] parent
507
508
  # Required. The parent (project and location) which owns this collection of
508
- # Processors. Format: projects/`project`/locations/`location`
509
+ # Processors. Format: `projects/`project`/locations/`location``
509
510
  # @param [Fixnum] page_size
510
511
  # The maximum number of processors to return. If unspecified, at most 50
511
512
  # processors will be returned. The maximum value is 100; values above 100 will
@@ -546,9 +547,9 @@ module Google
546
547
  # @param [String] name
547
548
  # Required. The resource name of the Processor or ProcessorVersion to use for
548
549
  # processing. If a Processor is specified, the server will use its default
549
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
550
- # , or projects/`project`/locations/`location`/processors/`processor`/
551
- # processorVersions/`processorVersion`
550
+ # version. Format: `projects/`project`/locations/`location`/processors/`
551
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
552
+ # /processorVersions/`processorVersion``
552
553
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessRequest] google_cloud_documentai_v1_process_request_object
553
554
  # @param [String] fields
554
555
  # Selector specifying which fields to include in a partial response.
@@ -651,10 +652,10 @@ module Google
651
652
  # LRO endpoint to batch process many documents. The output is written to Cloud
652
653
  # Storage as JSON in the [Document] format.
653
654
  # @param [String] name
654
- # Required. The resource name of Processor or ProcessorVersion. Format: projects/
655
- # `project`/locations/`location`/processors/`processor`, or projects/`project`/
656
- # locations/`location`/processors/`processor`/processorVersions/`
657
- # processorVersion`
655
+ # Required. The resource name of Processor or ProcessorVersion. Format: `
656
+ # projects/`project`/locations/`location`/processors/`processor``, or `projects/`
657
+ # project`/locations/`location`/processors/`processor`/processorVersions/`
658
+ # processorVersion``
658
659
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1BatchProcessRequest] google_cloud_documentai_v1_batch_process_request_object
659
660
  # @param [String] fields
660
661
  # Selector specifying which fields to include in a partial response.
@@ -782,7 +783,7 @@ module Google
782
783
  # Lists all versions of a processor.
783
784
  # @param [String] parent
784
785
  # Required. The parent (project, location and processor) to list all versions.
785
- # Format: projects/`project`/locations/`location`/processors/`processor`
786
+ # Format: `projects/`project`/locations/`location`/processors/`processor``
786
787
  # @param [Fixnum] page_size
787
788
  # The maximum number of processor versions to return. If unspecified, at most 10
788
789
  # processor versions will be returned. The maximum value is 20; values above 20
@@ -823,9 +824,9 @@ module Google
823
824
  # @param [String] name
824
825
  # Required. The resource name of the Processor or ProcessorVersion to use for
825
826
  # processing. If a Processor is specified, the server will use its default
826
- # version. Format: projects/`project`/locations/`location`/processors/`processor`
827
- # , or projects/`project`/locations/`location`/processors/`processor`/
828
- # processorVersions/`processorVersion`
827
+ # version. Format: `projects/`project`/locations/`location`/processors/`
828
+ # processor``, or `projects/`project`/locations/`location`/processors/`processor`
829
+ # /processorVersions/`processorVersion``
829
830
  # @param [Google::Apis::DocumentaiV1::GoogleCloudDocumentaiV1ProcessRequest] google_cloud_documentai_v1_process_request_object
830
831
  # @param [String] fields
831
832
  # 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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.24.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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-documentai_v1/v0.24.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: []
@@ -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 V1