google-cloud-document_ai-v1 0.11.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +51 -40
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +5 -3
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +51 -40
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +9 -7
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/service_stub.rb +22 -22
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest.rb +1 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service.rb +1 -1
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/barcode_pb.rb +24 -6
- data/lib/google/cloud/documentai/v1/document_io_pb.rb +25 -35
- data/lib/google/cloud/documentai/v1/document_pb.rb +34 -265
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +34 -229
- data/lib/google/cloud/documentai/v1/document_processor_service_services_pb.rb +8 -6
- data/lib/google/cloud/documentai/v1/document_schema_pb.rb +24 -37
- data/lib/google/cloud/documentai/v1/evaluation_pb.rb +25 -52
- data/lib/google/cloud/documentai/v1/geometry_pb.rb +24 -13
- data/lib/google/cloud/documentai/v1/operation_metadata_pb.rb +25 -16
- data/lib/google/cloud/documentai/v1/processor_pb.rb +27 -47
- data/lib/google/cloud/documentai/v1/processor_type_pb.rb +24 -13
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/documentai/v1/document.rb +88 -27
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +188 -98
- data/proto_docs/google/cloud/documentai/v1/document_schema.rb +6 -7
- data/proto_docs/google/cloud/documentai/v1/processor.rb +11 -9
- data/proto_docs/google/cloud/documentai/v1/processor_type.rb +3 -2
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -21,7 +21,9 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DocumentAI
|
23
23
|
module V1
|
24
|
-
# Request message for the
|
24
|
+
# Request message for the
|
25
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#process_document ProcessDocument}
|
26
|
+
# method.
|
25
27
|
# @!attribute [rw] inline_document
|
26
28
|
# @return [::Google::Cloud::DocumentAI::V1::Document]
|
27
29
|
# An inline document proto.
|
@@ -42,13 +44,14 @@ module Google
|
|
42
44
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
43
45
|
# @!attribute [rw] skip_human_review
|
44
46
|
# @return [::Boolean]
|
45
|
-
# Whether
|
46
|
-
# false
|
47
|
+
# Whether human review should be skipped for this request. Default to
|
48
|
+
# `false`.
|
47
49
|
# @!attribute [rw] field_mask
|
48
50
|
# @return [::Google::Protobuf::FieldMask]
|
49
|
-
# Specifies which fields to include in
|
50
|
-
#
|
51
|
-
#
|
51
|
+
# Specifies which fields to include in the
|
52
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
53
|
+
# output. Only supports top-level document and pages field, so it must be in
|
54
|
+
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
52
55
|
class ProcessRequest
|
53
56
|
include ::Google::Protobuf::MessageExts
|
54
57
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -64,9 +67,11 @@ module Google
|
|
64
67
|
# @!attribute [rw] human_review_operation
|
65
68
|
# @return [::String]
|
66
69
|
# The name of the operation triggered by the processed document. This field
|
67
|
-
# is populated only when the
|
68
|
-
#
|
69
|
-
#
|
70
|
+
# is populated only when the
|
71
|
+
# {::Google::Cloud::DocumentAI::V1::HumanReviewStatus#state state} is
|
72
|
+
# `HUMAN_REVIEW_IN_PROGRESS`. It has the same response type and metadata as
|
73
|
+
# the long-running operation returned by
|
74
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#review_document ReviewDocument}.
|
70
75
|
class HumanReviewStatus
|
71
76
|
include ::Google::Protobuf::MessageExts
|
72
77
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -77,7 +82,7 @@ module Google
|
|
77
82
|
STATE_UNSPECIFIED = 0
|
78
83
|
|
79
84
|
# Human review is skipped for the document. This can happen because human
|
80
|
-
# review
|
85
|
+
# review isn't enabled on the processor or the processing request has
|
81
86
|
# been set to skip this document.
|
82
87
|
SKIPPED = 1
|
83
88
|
|
@@ -88,12 +93,15 @@ module Google
|
|
88
93
|
IN_PROGRESS = 3
|
89
94
|
|
90
95
|
# Some error happened during triggering human review, see the
|
91
|
-
#
|
96
|
+
# {::Google::Cloud::DocumentAI::V1::HumanReviewStatus#state_message state_message}
|
97
|
+
# for details.
|
92
98
|
ERROR = 4
|
93
99
|
end
|
94
100
|
end
|
95
101
|
|
96
|
-
# Response message for the
|
102
|
+
# Response message for the
|
103
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#process_document ProcessDocument}
|
104
|
+
# method.
|
97
105
|
# @!attribute [rw] document
|
98
106
|
# @return [::Google::Cloud::DocumentAI::V1::Document]
|
99
107
|
# The document payload, will populate fields based on the processor's
|
@@ -106,7 +114,8 @@ module Google
|
|
106
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
107
115
|
end
|
108
116
|
|
109
|
-
# Request message for
|
117
|
+
# Request message for
|
118
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}.
|
110
119
|
# @!attribute [rw] name
|
111
120
|
# @return [::String]
|
112
121
|
# Required. The resource name of
|
@@ -117,26 +126,32 @@ module Google
|
|
117
126
|
# `projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processorVersion}`
|
118
127
|
# @!attribute [rw] input_documents
|
119
128
|
# @return [::Google::Cloud::DocumentAI::V1::BatchDocumentsInputConfig]
|
120
|
-
# The input documents for
|
129
|
+
# The input documents for the
|
130
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}
|
131
|
+
# method.
|
121
132
|
# @!attribute [rw] document_output_config
|
122
133
|
# @return [::Google::Cloud::DocumentAI::V1::DocumentOutputConfig]
|
123
|
-
# The
|
134
|
+
# The output configuration for the
|
135
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}
|
136
|
+
# method.
|
124
137
|
# @!attribute [rw] skip_human_review
|
125
138
|
# @return [::Boolean]
|
126
|
-
# Whether
|
127
|
-
# false
|
139
|
+
# Whether human review should be skipped for this request. Default to
|
140
|
+
# `false`.
|
128
141
|
class BatchProcessRequest
|
129
142
|
include ::Google::Protobuf::MessageExts
|
130
143
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
144
|
end
|
132
145
|
|
133
|
-
# Response message for
|
146
|
+
# Response message for
|
147
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}.
|
134
148
|
class BatchProcessResponse
|
135
149
|
include ::Google::Protobuf::MessageExts
|
136
150
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
137
151
|
end
|
138
152
|
|
139
|
-
# The long
|
153
|
+
# The long-running operation metadata for
|
154
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#batch_process_documents BatchProcessDocuments}.
|
140
155
|
# @!attribute [rw] state
|
141
156
|
# @return [::Google::Cloud::DocumentAI::V1::BatchProcessMetadata::State]
|
142
157
|
# The state of the current batch processing.
|
@@ -160,16 +175,16 @@ module Google
|
|
160
175
|
# The status of a each individual document in the batch process.
|
161
176
|
# @!attribute [rw] input_gcs_source
|
162
177
|
# @return [::String]
|
163
|
-
# The source of the document, same as the
|
164
|
-
#
|
165
|
-
#
|
166
|
-
# document during the process.
|
178
|
+
# The source of the document, same as the
|
179
|
+
# {::Google::Cloud::DocumentAI::V1::BatchProcessMetadata::IndividualProcessStatus#input_gcs_source input_gcs_source}
|
180
|
+
# field in the request when the batch process started.
|
167
181
|
# @!attribute [rw] status
|
168
182
|
# @return [::Google::Rpc::Status]
|
169
183
|
# The status processing the document.
|
170
184
|
# @!attribute [rw] output_gcs_destination
|
171
185
|
# @return [::String]
|
172
|
-
# The
|
186
|
+
# The Cloud Storage output destination (in the request as
|
187
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentOutputConfig::GcsOutputConfig#gcs_uri DocumentOutputConfig.GcsOutputConfig.gcs_uri})
|
173
188
|
# of the processed document if it was successful, otherwise empty.
|
174
189
|
# @!attribute [rw] human_review_status
|
175
190
|
# @return [::Google::Cloud::DocumentAI::V1::HumanReviewStatus]
|
@@ -204,18 +219,22 @@ module Google
|
|
204
219
|
end
|
205
220
|
end
|
206
221
|
|
207
|
-
# Request message for
|
222
|
+
# Request message for the
|
223
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#fetch_processor_types FetchProcessorTypes}
|
224
|
+
# method. Some processor types may require the project be added to an
|
225
|
+
# allowlist.
|
208
226
|
# @!attribute [rw] parent
|
209
227
|
# @return [::String]
|
210
|
-
# Required. The
|
211
|
-
#
|
212
|
-
# Format: `projects/{project}/locations/{location}`
|
228
|
+
# Required. The location of processor types to list.
|
229
|
+
# Format: `projects/{project}/locations/{location}`.
|
213
230
|
class FetchProcessorTypesRequest
|
214
231
|
include ::Google::Protobuf::MessageExts
|
215
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
216
233
|
end
|
217
234
|
|
218
|
-
# Response message for
|
235
|
+
# Response message for the
|
236
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#fetch_processor_types FetchProcessorTypes}
|
237
|
+
# method.
|
219
238
|
# @!attribute [rw] processor_types
|
220
239
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::ProcessorType>]
|
221
240
|
# The list of processor types.
|
@@ -224,17 +243,19 @@ module Google
|
|
224
243
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
225
244
|
end
|
226
245
|
|
227
|
-
# Request message for
|
246
|
+
# Request message for the
|
247
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processor_types ListProcessorTypes}
|
248
|
+
# method. Some processor types may require the project be added to an
|
249
|
+
# allowlist.
|
228
250
|
# @!attribute [rw] parent
|
229
251
|
# @return [::String]
|
230
|
-
# Required. The location of processor
|
231
|
-
#
|
232
|
-
# Format: `projects/{project}/locations/{location}`
|
252
|
+
# Required. The location of processor types to list.
|
253
|
+
# Format: `projects/{project}/locations/{location}`.
|
233
254
|
# @!attribute [rw] page_size
|
234
255
|
# @return [::Integer]
|
235
256
|
# The maximum number of processor types to return.
|
236
|
-
# If unspecified, at most 100 processor types will be returned.
|
237
|
-
# The maximum value is 500
|
257
|
+
# If unspecified, at most `100` processor types will be returned.
|
258
|
+
# The maximum value is `500`. Values above `500` will be coerced to `500`.
|
238
259
|
# @!attribute [rw] page_token
|
239
260
|
# @return [::String]
|
240
261
|
# Used to retrieve the next page of results, empty if at the end of the list.
|
@@ -243,7 +264,9 @@ module Google
|
|
243
264
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
244
265
|
end
|
245
266
|
|
246
|
-
# Response message for
|
267
|
+
# Response message for the
|
268
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processor_types ListProcessorTypes}
|
269
|
+
# method.
|
247
270
|
# @!attribute [rw] processor_types
|
248
271
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::ProcessorType>]
|
249
272
|
# The processor types.
|
@@ -263,8 +286,8 @@ module Google
|
|
263
286
|
# @!attribute [rw] page_size
|
264
287
|
# @return [::Integer]
|
265
288
|
# The maximum number of processors to return.
|
266
|
-
# If unspecified, at most 50 processors will be returned.
|
267
|
-
# The maximum value is 100
|
289
|
+
# If unspecified, at most `50` processors will be returned.
|
290
|
+
# The maximum value is `100`. Values above `100` will be coerced to `100`.
|
268
291
|
# @!attribute [rw] page_token
|
269
292
|
# @return [::String]
|
270
293
|
# We will return the processors sorted by creation time. The page token
|
@@ -274,7 +297,9 @@ module Google
|
|
274
297
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
275
298
|
end
|
276
299
|
|
277
|
-
# Response message for
|
300
|
+
# Response message for the
|
301
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processors ListProcessors}
|
302
|
+
# method.
|
278
303
|
# @!attribute [rw] processors
|
279
304
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Processor>]
|
280
305
|
# The list of processors.
|
@@ -286,7 +311,9 @@ module Google
|
|
286
311
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
287
312
|
end
|
288
313
|
|
289
|
-
# Request message for
|
314
|
+
# Request message for the
|
315
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#get_processor_type GetProcessorType}
|
316
|
+
# method.
|
290
317
|
# @!attribute [rw] name
|
291
318
|
# @return [::String]
|
292
319
|
# Required. The processor type resource name.
|
@@ -295,7 +322,9 @@ module Google
|
|
295
322
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
296
323
|
end
|
297
324
|
|
298
|
-
# Request message for
|
325
|
+
# Request message for the
|
326
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#get_processor GetProcessor}
|
327
|
+
# method.
|
299
328
|
# @!attribute [rw] name
|
300
329
|
# @return [::String]
|
301
330
|
# Required. The processor resource name.
|
@@ -304,7 +333,9 @@ module Google
|
|
304
333
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
305
334
|
end
|
306
335
|
|
307
|
-
# Request message for
|
336
|
+
# Request message for the
|
337
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#get_processor_version GetProcessorVersion}
|
338
|
+
# method.
|
308
339
|
# @!attribute [rw] name
|
309
340
|
# @return [::String]
|
310
341
|
# Required. The processor resource name.
|
@@ -322,8 +353,8 @@ module Google
|
|
322
353
|
# @!attribute [rw] page_size
|
323
354
|
# @return [::Integer]
|
324
355
|
# The maximum number of processor versions to return.
|
325
|
-
# If unspecified, at most 10 processor versions will be returned.
|
326
|
-
# The maximum value is 20
|
356
|
+
# If unspecified, at most `10` processor versions will be returned.
|
357
|
+
# The maximum value is `20`. Values above `20` will be coerced to `20`.
|
327
358
|
# @!attribute [rw] page_token
|
328
359
|
# @return [::String]
|
329
360
|
# We will return the processor versions sorted by creation time. The page
|
@@ -333,7 +364,9 @@ module Google
|
|
333
364
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
334
365
|
end
|
335
366
|
|
336
|
-
# Response message for
|
367
|
+
# Response message for the
|
368
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#list_processor_versions ListProcessorVersions}
|
369
|
+
# method.
|
337
370
|
# @!attribute [rw] processor_versions
|
338
371
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::ProcessorVersion>]
|
339
372
|
# The list of processors.
|
@@ -345,7 +378,9 @@ module Google
|
|
345
378
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
346
379
|
end
|
347
380
|
|
348
|
-
# Request message for the
|
381
|
+
# Request message for the
|
382
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#delete_processor_version DeleteProcessorVersion}
|
383
|
+
# method.
|
349
384
|
# @!attribute [rw] name
|
350
385
|
# @return [::String]
|
351
386
|
# Required. The processor version resource name to be deleted.
|
@@ -354,16 +389,20 @@ module Google
|
|
354
389
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
355
390
|
end
|
356
391
|
|
357
|
-
# The long
|
392
|
+
# The long-running operation metadata for the
|
393
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#delete_processor_version DeleteProcessorVersion}
|
394
|
+
# method.
|
358
395
|
# @!attribute [rw] common_metadata
|
359
396
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
360
|
-
# The basic metadata of the long
|
397
|
+
# The basic metadata of the long-running operation.
|
361
398
|
class DeleteProcessorVersionMetadata
|
362
399
|
include ::Google::Protobuf::MessageExts
|
363
400
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
364
401
|
end
|
365
402
|
|
366
|
-
# Request message for the
|
403
|
+
# Request message for the
|
404
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#deploy_processor_version DeployProcessorVersion}
|
405
|
+
# method.
|
367
406
|
# @!attribute [rw] name
|
368
407
|
# @return [::String]
|
369
408
|
# Required. The processor version resource name to be deployed.
|
@@ -372,22 +411,28 @@ module Google
|
|
372
411
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
412
|
end
|
374
413
|
|
375
|
-
# Response message for the
|
414
|
+
# Response message for the
|
415
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#deploy_processor_version DeployProcessorVersion}
|
416
|
+
# method.
|
376
417
|
class DeployProcessorVersionResponse
|
377
418
|
include ::Google::Protobuf::MessageExts
|
378
419
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
379
420
|
end
|
380
421
|
|
381
|
-
# The long
|
422
|
+
# The long-running operation metadata for the
|
423
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#deploy_processor_version DeployProcessorVersion}
|
424
|
+
# method.
|
382
425
|
# @!attribute [rw] common_metadata
|
383
426
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
384
|
-
# The basic metadata of the long
|
427
|
+
# The basic metadata of the long-running operation.
|
385
428
|
class DeployProcessorVersionMetadata
|
386
429
|
include ::Google::Protobuf::MessageExts
|
387
430
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
388
431
|
end
|
389
432
|
|
390
|
-
# Request message for the
|
433
|
+
# Request message for the
|
434
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#undeploy_processor_version UndeployProcessorVersion}
|
435
|
+
# method.
|
391
436
|
# @!attribute [rw] name
|
392
437
|
# @return [::String]
|
393
438
|
# Required. The processor version resource name to be undeployed.
|
@@ -396,40 +441,49 @@ module Google
|
|
396
441
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
397
442
|
end
|
398
443
|
|
399
|
-
# Response message for the
|
444
|
+
# Response message for the
|
445
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#undeploy_processor_version UndeployProcessorVersion}
|
446
|
+
# method.
|
400
447
|
class UndeployProcessorVersionResponse
|
401
448
|
include ::Google::Protobuf::MessageExts
|
402
449
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
403
450
|
end
|
404
451
|
|
405
|
-
# The long
|
452
|
+
# The long-running operation metadata for the
|
453
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#undeploy_processor_version UndeployProcessorVersion}
|
406
454
|
# method.
|
407
455
|
# @!attribute [rw] common_metadata
|
408
456
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
409
|
-
# The basic metadata of the long
|
457
|
+
# The basic metadata of the long-running operation.
|
410
458
|
class UndeployProcessorVersionMetadata
|
411
459
|
include ::Google::Protobuf::MessageExts
|
412
460
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
413
461
|
end
|
414
462
|
|
415
|
-
# Request message for
|
416
|
-
#
|
417
|
-
#
|
463
|
+
# Request message for the
|
464
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#create_processor CreateProcessor}
|
465
|
+
# method. Notice this request is sent to a regionalized backend service. If the
|
466
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessorType ProcessorType} isn't available in
|
467
|
+
# that region, the creation fails.
|
418
468
|
# @!attribute [rw] parent
|
419
469
|
# @return [::String]
|
420
470
|
# Required. The parent (project and location) under which to create the
|
421
471
|
# processor. Format: `projects/{project}/locations/{location}`
|
422
472
|
# @!attribute [rw] processor
|
423
473
|
# @return [::Google::Cloud::DocumentAI::V1::Processor]
|
424
|
-
# Required. The processor to be created, requires
|
425
|
-
#
|
426
|
-
#
|
474
|
+
# Required. The processor to be created, requires
|
475
|
+
# {::Google::Cloud::DocumentAI::V1::Processor#type Processor.type} and
|
476
|
+
# [Processor.display_name]][] to be set. Also, the
|
477
|
+
# {::Google::Cloud::DocumentAI::V1::Processor#kms_key_name Processor.kms_key_name}
|
478
|
+
# field must be set if the processor is under CMEK.
|
427
479
|
class CreateProcessorRequest
|
428
480
|
include ::Google::Protobuf::MessageExts
|
429
481
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
430
482
|
end
|
431
483
|
|
432
|
-
# Request message for the
|
484
|
+
# Request message for the
|
485
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#delete_processor DeleteProcessor}
|
486
|
+
# method.
|
433
487
|
# @!attribute [rw] name
|
434
488
|
# @return [::String]
|
435
489
|
# Required. The processor resource name to be deleted.
|
@@ -438,16 +492,20 @@ module Google
|
|
438
492
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
439
493
|
end
|
440
494
|
|
441
|
-
# The long
|
495
|
+
# The long-running operation metadata for the
|
496
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#delete_processor DeleteProcessor}
|
497
|
+
# method.
|
442
498
|
# @!attribute [rw] common_metadata
|
443
499
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
444
|
-
# The basic metadata of the long
|
500
|
+
# The basic metadata of the long-running operation.
|
445
501
|
class DeleteProcessorMetadata
|
446
502
|
include ::Google::Protobuf::MessageExts
|
447
503
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
448
504
|
end
|
449
505
|
|
450
|
-
# Request message for the
|
506
|
+
# Request message for the
|
507
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#enable_processor EnableProcessor}
|
508
|
+
# method.
|
451
509
|
# @!attribute [rw] name
|
452
510
|
# @return [::String]
|
453
511
|
# Required. The processor resource name to be enabled.
|
@@ -456,23 +514,28 @@ module Google
|
|
456
514
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
457
515
|
end
|
458
516
|
|
459
|
-
# Response message for the
|
460
|
-
#
|
517
|
+
# Response message for the
|
518
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#enable_processor EnableProcessor}
|
519
|
+
# method. Intentionally empty proto for adding fields in future.
|
461
520
|
class EnableProcessorResponse
|
462
521
|
include ::Google::Protobuf::MessageExts
|
463
522
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
464
523
|
end
|
465
524
|
|
466
|
-
# The long
|
525
|
+
# The long-running operation metadata for the
|
526
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#enable_processor EnableProcessor}
|
527
|
+
# method.
|
467
528
|
# @!attribute [rw] common_metadata
|
468
529
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
469
|
-
# The basic metadata of the long
|
530
|
+
# The basic metadata of the long-running operation.
|
470
531
|
class EnableProcessorMetadata
|
471
532
|
include ::Google::Protobuf::MessageExts
|
472
533
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
473
534
|
end
|
474
535
|
|
475
|
-
# Request message for the
|
536
|
+
# Request message for the
|
537
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#disable_processor DisableProcessor}
|
538
|
+
# method.
|
476
539
|
# @!attribute [rw] name
|
477
540
|
# @return [::String]
|
478
541
|
# Required. The processor resource name to be disabled.
|
@@ -481,23 +544,28 @@ module Google
|
|
481
544
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
482
545
|
end
|
483
546
|
|
484
|
-
# Response message for the
|
485
|
-
#
|
547
|
+
# Response message for the
|
548
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#disable_processor DisableProcessor}
|
549
|
+
# method. Intentionally empty proto for adding fields in future.
|
486
550
|
class DisableProcessorResponse
|
487
551
|
include ::Google::Protobuf::MessageExts
|
488
552
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
489
553
|
end
|
490
554
|
|
491
|
-
# The long
|
555
|
+
# The long-running operation metadata for the
|
556
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#disable_processor DisableProcessor}
|
557
|
+
# method.
|
492
558
|
# @!attribute [rw] common_metadata
|
493
559
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
494
|
-
# The basic metadata of the long
|
560
|
+
# The basic metadata of the long-running operation.
|
495
561
|
class DisableProcessorMetadata
|
496
562
|
include ::Google::Protobuf::MessageExts
|
497
563
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
498
564
|
end
|
499
565
|
|
500
|
-
# Request message for the
|
566
|
+
# Request message for the
|
567
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#set_default_processor_version SetDefaultProcessorVersion}
|
568
|
+
# method.
|
501
569
|
# @!attribute [rw] processor
|
502
570
|
# @return [::String]
|
503
571
|
# Required. The resource name of the
|
@@ -514,23 +582,28 @@ module Google
|
|
514
582
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
515
583
|
end
|
516
584
|
|
517
|
-
# Response message for
|
585
|
+
# Response message for the
|
586
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#set_default_processor_version SetDefaultProcessorVersion}
|
587
|
+
# method.
|
518
588
|
class SetDefaultProcessorVersionResponse
|
519
589
|
include ::Google::Protobuf::MessageExts
|
520
590
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
521
591
|
end
|
522
592
|
|
523
|
-
# The long
|
593
|
+
# The long-running operation metadata for the
|
594
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#set_default_processor_version SetDefaultProcessorVersion}
|
524
595
|
# method.
|
525
596
|
# @!attribute [rw] common_metadata
|
526
597
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
527
|
-
# The basic metadata of the long
|
598
|
+
# The basic metadata of the long-running operation.
|
528
599
|
class SetDefaultProcessorVersionMetadata
|
529
600
|
include ::Google::Protobuf::MessageExts
|
530
601
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
531
602
|
end
|
532
603
|
|
533
|
-
# Request message for the
|
604
|
+
# Request message for the
|
605
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#train_processor_version TrainProcessorVersion}
|
606
|
+
# method.
|
534
607
|
# @!attribute [rw] parent
|
535
608
|
# @return [::String]
|
536
609
|
# Required. The parent (project, location and processor) to create the new
|
@@ -544,7 +617,8 @@ module Google
|
|
544
617
|
# Optional. The schema the processor version will be trained with.
|
545
618
|
# @!attribute [rw] input_data
|
546
619
|
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::InputData]
|
547
|
-
# Optional. The input data used to train the
|
620
|
+
# Optional. The input data used to train the
|
621
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
548
622
|
# @!attribute [rw] base_processor_version
|
549
623
|
# @return [::String]
|
550
624
|
# Optional. The processor version to use as a base for training. This
|
@@ -554,7 +628,8 @@ module Google
|
|
554
628
|
include ::Google::Protobuf::MessageExts
|
555
629
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
556
630
|
|
557
|
-
# The input data used to train a new
|
631
|
+
# The input data used to train a new
|
632
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
558
633
|
# @!attribute [rw] training_documents
|
559
634
|
# @return [::Google::Cloud::DocumentAI::V1::BatchDocumentsInputConfig]
|
560
635
|
# The documents used for training the new version.
|
@@ -567,7 +642,8 @@ module Google
|
|
567
642
|
end
|
568
643
|
end
|
569
644
|
|
570
|
-
# The response for
|
645
|
+
# The response for
|
646
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#train_processor_version TrainProcessorVersion}.
|
571
647
|
# @!attribute [rw] processor_version
|
572
648
|
# @return [::String]
|
573
649
|
# The resource name of the processor version produced by training.
|
@@ -579,7 +655,7 @@ module Google
|
|
579
655
|
# The metadata that represents a processor version being created.
|
580
656
|
# @!attribute [rw] common_metadata
|
581
657
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
582
|
-
# The basic metadata of the long
|
658
|
+
# The basic metadata of the long-running operation.
|
583
659
|
# @!attribute [rw] training_dataset_validation
|
584
660
|
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionMetadata::DatasetValidation]
|
585
661
|
# The training dataset validation information.
|
@@ -614,14 +690,17 @@ module Google
|
|
614
690
|
end
|
615
691
|
end
|
616
692
|
|
617
|
-
# Request message for
|
693
|
+
# Request message for the
|
694
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#review_document ReviewDocument}
|
695
|
+
# method.
|
618
696
|
# @!attribute [rw] inline_document
|
619
697
|
# @return [::Google::Cloud::DocumentAI::V1::Document]
|
620
698
|
# An inline document proto.
|
621
699
|
# @!attribute [rw] human_review_config
|
622
700
|
# @return [::String]
|
623
|
-
# Required. The resource name of the
|
624
|
-
#
|
701
|
+
# Required. The resource name of the
|
702
|
+
# [HumanReviewConfig][google.cloud.documentai.v1.HumanReviewConfig] that the
|
703
|
+
# document will be reviewed with.
|
625
704
|
# @!attribute [rw] enable_schema_validation
|
626
705
|
# @return [::Boolean]
|
627
706
|
# Whether the validation should be performed on the ad-hoc review request.
|
@@ -646,7 +725,9 @@ module Google
|
|
646
725
|
end
|
647
726
|
end
|
648
727
|
|
649
|
-
# Response message for
|
728
|
+
# Response message for the
|
729
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#review_document ReviewDocument}
|
730
|
+
# method.
|
650
731
|
# @!attribute [rw] gcs_destination
|
651
732
|
# @return [::String]
|
652
733
|
# The Cloud Storage uri for the human reviewed document if the review is
|
@@ -674,10 +755,12 @@ module Google
|
|
674
755
|
end
|
675
756
|
end
|
676
757
|
|
677
|
-
# The long
|
758
|
+
# The long-running operation metadata for the
|
759
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#review_document ReviewDocument}
|
760
|
+
# method.
|
678
761
|
# @!attribute [rw] common_metadata
|
679
762
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
680
|
-
# The basic metadata of the long
|
763
|
+
# The basic metadata of the long-running operation.
|
681
764
|
# @!attribute [rw] question_id
|
682
765
|
# @return [::String]
|
683
766
|
# The Crowd Compute question ID.
|
@@ -686,7 +769,9 @@ module Google
|
|
686
769
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
687
770
|
end
|
688
771
|
|
689
|
-
# Evaluates the given
|
772
|
+
# Evaluates the given
|
773
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion} against the
|
774
|
+
# supplied documents.
|
690
775
|
# @!attribute [rw] processor_version
|
691
776
|
# @return [::String]
|
692
777
|
# Required. The resource name of the
|
@@ -702,16 +787,20 @@ module Google
|
|
702
787
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
703
788
|
end
|
704
789
|
|
705
|
-
# Metadata of the
|
790
|
+
# Metadata of the
|
791
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#evaluate_processor_version EvaluateProcessorVersion}
|
792
|
+
# method.
|
706
793
|
# @!attribute [rw] common_metadata
|
707
794
|
# @return [::Google::Cloud::DocumentAI::V1::CommonOperationMetadata]
|
708
|
-
# The basic metadata of the long
|
795
|
+
# The basic metadata of the long-running operation.
|
709
796
|
class EvaluateProcessorVersionMetadata
|
710
797
|
include ::Google::Protobuf::MessageExts
|
711
798
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
712
799
|
end
|
713
800
|
|
714
|
-
#
|
801
|
+
# Response of the
|
802
|
+
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#evaluate_processor_version EvaluateProcessorVersion}
|
803
|
+
# method.
|
715
804
|
# @!attribute [rw] evaluation
|
716
805
|
# @return [::String]
|
717
806
|
# The resource name of the created evaluation.
|
@@ -731,7 +820,8 @@ module Google
|
|
731
820
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
732
821
|
end
|
733
822
|
|
734
|
-
# Retrieves a list of evaluations for a given
|
823
|
+
# Retrieves a list of evaluations for a given
|
824
|
+
# {::Google::Cloud::DocumentAI::V1::ProcessorVersion ProcessorVersion}.
|
735
825
|
# @!attribute [rw] parent
|
736
826
|
# @return [::String]
|
737
827
|
# Required. The resource name of the
|
@@ -741,8 +831,8 @@ module Google
|
|
741
831
|
# @!attribute [rw] page_size
|
742
832
|
# @return [::Integer]
|
743
833
|
# The standard list page size.
|
744
|
-
# If unspecified, at most 5 evaluations
|
745
|
-
# The maximum value is 100
|
834
|
+
# If unspecified, at most `5` evaluations are returned.
|
835
|
+
# The maximum value is `100`. Values above `100` are coerced to `100`.
|
746
836
|
# @!attribute [rw] page_token
|
747
837
|
# @return [::String]
|
748
838
|
# A page token, received from a previous `ListEvaluations` call.
|
@@ -752,7 +842,7 @@ module Google
|
|
752
842
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
753
843
|
end
|
754
844
|
|
755
|
-
# The response from ListEvaluations
|
845
|
+
# The response from `ListEvaluations`.
|
756
846
|
# @!attribute [rw] evaluations
|
757
847
|
# @return [::Array<::Google::Cloud::DocumentAI::V1::Evaluation>]
|
758
848
|
# The evaluations requested.
|