google-cloud-document_ai-v1 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1/document_processor_service/client.rb +21 -4
- data/lib/google/cloud/document_ai/v1/document_processor_service/operations.rb +10 -1
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/client.rb +456 -3
- data/lib/google/cloud/document_ai/v1/document_processor_service/rest/operations.rb +75 -0
- data/lib/google/cloud/document_ai/v1/version.rb +1 -1
- data/lib/google/cloud/documentai/v1/document_io_pb.rb +3 -1
- data/lib/google/cloud/documentai/v1/document_processor_service_pb.rb +5 -2
- data/lib/google/cloud/documentai/v1/processor_pb.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/documentai/v1/document_io.rb +47 -0
- data/proto_docs/google/cloud/documentai/v1/document_processor_service.rb +42 -0
- data/proto_docs/google/cloud/documentai/v1/processor.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 568828243ade46dc62adee351810bd529e24d24354d2017c5feda6a94bfbedde
|
4
|
+
data.tar.gz: 12ab881d48c3149f5381fb80db6bbd22209feadf74a73745b49432944ccafff9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 633c11b7fd264391bf2c0e5cc0f1e0a22f3c5aa6906600431ece6f45147c622db25960592813807d11c03e6edfd049eac0f742fd90900b04beccf87b8814f234
|
7
|
+
data.tar.gz: 46ce93d1e2f69c3dda3a052e0c515f8dcdc168086f94c2415093dbfefa9f0653df0fb90d7c5fa13527f029ce682bef51840cb3beed5252cd2316e24094c3477b
|
@@ -169,7 +169,8 @@ module Google
|
|
169
169
|
credentials: credentials,
|
170
170
|
endpoint: @config.endpoint,
|
171
171
|
channel_args: @config.channel_args,
|
172
|
-
interceptors: @config.interceptors
|
172
|
+
interceptors: @config.interceptors,
|
173
|
+
channel_pool_config: @config.channel_pool
|
173
174
|
)
|
174
175
|
end
|
175
176
|
|
@@ -202,7 +203,7 @@ module Google
|
|
202
203
|
# @param options [::Gapic::CallOptions, ::Hash]
|
203
204
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
204
205
|
#
|
205
|
-
# @overload process_document(inline_document: nil, raw_document: nil, name: nil, skip_human_review: nil, field_mask: nil)
|
206
|
+
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
|
206
207
|
# Pass arguments to `process_document` via keyword arguments. Note that at
|
207
208
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
208
209
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -211,6 +212,8 @@ module Google
|
|
211
212
|
# An inline document proto.
|
212
213
|
# @param raw_document [::Google::Cloud::DocumentAI::V1::RawDocument, ::Hash]
|
213
214
|
# A raw document content (bytes).
|
215
|
+
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
216
|
+
# A raw document on Google Cloud Storage.
|
214
217
|
# @param name [::String]
|
215
218
|
# Required. The resource name of the
|
216
219
|
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
@@ -230,6 +233,8 @@ module Google
|
|
230
233
|
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
231
234
|
# output. Only supports top-level document and pages field, so it must be in
|
232
235
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
236
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
237
|
+
# Inference-time options for the process API
|
233
238
|
#
|
234
239
|
# @yield [response, operation] Access the result along with the RPC operation
|
235
240
|
# @yieldparam response [::Google::Cloud::DocumentAI::V1::ProcessResponse]
|
@@ -309,7 +314,7 @@ module Google
|
|
309
314
|
# @param options [::Gapic::CallOptions, ::Hash]
|
310
315
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
311
316
|
#
|
312
|
-
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil)
|
317
|
+
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
|
313
318
|
# Pass arguments to `batch_process_documents` via keyword arguments. Note that at
|
314
319
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
315
320
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -332,6 +337,8 @@ module Google
|
|
332
337
|
# @param skip_human_review [::Boolean]
|
333
338
|
# Whether human review should be skipped for this request. Default to
|
334
339
|
# `false`.
|
340
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
341
|
+
# Inference-time options for the process API
|
335
342
|
#
|
336
343
|
# @yield [response, operation] Access the result along with the RPC operation
|
337
344
|
# @yieldparam response [::Gapic::Operation]
|
@@ -873,11 +880,13 @@ module Google
|
|
873
880
|
# @param options [::Gapic::CallOptions, ::Hash]
|
874
881
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
875
882
|
#
|
876
|
-
# @overload train_processor_version(parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
883
|
+
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
877
884
|
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
|
878
885
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
879
886
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
880
887
|
#
|
888
|
+
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
889
|
+
# Options to control Custom Document Extraction (CDE) Processor.
|
881
890
|
# @param parent [::String]
|
882
891
|
# Required. The parent (project, location and processor) to create the new
|
883
892
|
# version for. Format:
|
@@ -2418,6 +2427,14 @@ module Google
|
|
2418
2427
|
end
|
2419
2428
|
end
|
2420
2429
|
|
2430
|
+
##
|
2431
|
+
# Configuration for the channel pool
|
2432
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2433
|
+
#
|
2434
|
+
def channel_pool
|
2435
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2436
|
+
end
|
2437
|
+
|
2421
2438
|
##
|
2422
2439
|
# Configuration RPC class for the DocumentProcessorService API.
|
2423
2440
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -701,6 +702,14 @@ module Google
|
|
701
702
|
end
|
702
703
|
end
|
703
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
704
713
|
##
|
705
714
|
# Configuration RPC class for the Operations API.
|
706
715
|
#
|
@@ -194,7 +194,7 @@ module Google
|
|
194
194
|
# @param options [::Gapic::CallOptions, ::Hash]
|
195
195
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
196
196
|
#
|
197
|
-
# @overload process_document(inline_document: nil, raw_document: nil, name: nil, skip_human_review: nil, field_mask: nil)
|
197
|
+
# @overload process_document(inline_document: nil, raw_document: nil, gcs_document: nil, name: nil, skip_human_review: nil, field_mask: nil, process_options: nil)
|
198
198
|
# Pass arguments to `process_document` via keyword arguments. Note that at
|
199
199
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
200
200
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -203,6 +203,8 @@ module Google
|
|
203
203
|
# An inline document proto.
|
204
204
|
# @param raw_document [::Google::Cloud::DocumentAI::V1::RawDocument, ::Hash]
|
205
205
|
# A raw document content (bytes).
|
206
|
+
# @param gcs_document [::Google::Cloud::DocumentAI::V1::GcsDocument, ::Hash]
|
207
|
+
# A raw document on Google Cloud Storage.
|
206
208
|
# @param name [::String]
|
207
209
|
# Required. The resource name of the
|
208
210
|
# {::Google::Cloud::DocumentAI::V1::Processor Processor} or
|
@@ -222,6 +224,8 @@ module Google
|
|
222
224
|
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
223
225
|
# output. Only supports top-level document and pages field, so it must be in
|
224
226
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
227
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
228
|
+
# Inference-time options for the process API
|
225
229
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
226
230
|
# @yieldparam result [::Google::Cloud::DocumentAI::V1::ProcessResponse]
|
227
231
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -229,6 +233,22 @@ module Google
|
|
229
233
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessResponse]
|
230
234
|
#
|
231
235
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
236
|
+
#
|
237
|
+
# @example Basic example
|
238
|
+
# require "google/cloud/document_ai/v1"
|
239
|
+
#
|
240
|
+
# # Create a client object. The client can be reused for multiple calls.
|
241
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
242
|
+
#
|
243
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
244
|
+
# request = Google::Cloud::DocumentAI::V1::ProcessRequest.new
|
245
|
+
#
|
246
|
+
# # Call the process_document method.
|
247
|
+
# result = client.process_document request
|
248
|
+
#
|
249
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::ProcessResponse.
|
250
|
+
# p result
|
251
|
+
#
|
232
252
|
def process_document request, options = nil
|
233
253
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
234
254
|
|
@@ -278,7 +298,7 @@ module Google
|
|
278
298
|
# @param options [::Gapic::CallOptions, ::Hash]
|
279
299
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
280
300
|
#
|
281
|
-
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil)
|
301
|
+
# @overload batch_process_documents(name: nil, input_documents: nil, document_output_config: nil, skip_human_review: nil, process_options: nil)
|
282
302
|
# Pass arguments to `batch_process_documents` via keyword arguments. Note that at
|
283
303
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
284
304
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -301,6 +321,8 @@ module Google
|
|
301
321
|
# @param skip_human_review [::Boolean]
|
302
322
|
# Whether human review should be skipped for this request. Default to
|
303
323
|
# `false`.
|
324
|
+
# @param process_options [::Google::Cloud::DocumentAI::V1::ProcessOptions, ::Hash]
|
325
|
+
# Inference-time options for the process API
|
304
326
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
305
327
|
# @yieldparam result [::Gapic::Operation]
|
306
328
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -308,6 +330,29 @@ module Google
|
|
308
330
|
# @return [::Gapic::Operation]
|
309
331
|
#
|
310
332
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
333
|
+
#
|
334
|
+
# @example Basic example
|
335
|
+
# require "google/cloud/document_ai/v1"
|
336
|
+
#
|
337
|
+
# # Create a client object. The client can be reused for multiple calls.
|
338
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
339
|
+
#
|
340
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
341
|
+
# request = Google::Cloud::DocumentAI::V1::BatchProcessRequest.new
|
342
|
+
#
|
343
|
+
# # Call the batch_process_documents method.
|
344
|
+
# result = client.batch_process_documents request
|
345
|
+
#
|
346
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
347
|
+
# # check the status of an operation, cancel it, or wait for results.
|
348
|
+
# # Here is how to wait for a response.
|
349
|
+
# result.wait_until_done! timeout: 60
|
350
|
+
# if result.response?
|
351
|
+
# p result.response
|
352
|
+
# else
|
353
|
+
# puts "No response received."
|
354
|
+
# end
|
355
|
+
#
|
311
356
|
def batch_process_documents request, options = nil
|
312
357
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
313
358
|
|
@@ -374,6 +419,22 @@ module Google
|
|
374
419
|
# @return [::Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse]
|
375
420
|
#
|
376
421
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
422
|
+
#
|
423
|
+
# @example Basic example
|
424
|
+
# require "google/cloud/document_ai/v1"
|
425
|
+
#
|
426
|
+
# # Create a client object. The client can be reused for multiple calls.
|
427
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
428
|
+
#
|
429
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
430
|
+
# request = Google::Cloud::DocumentAI::V1::FetchProcessorTypesRequest.new
|
431
|
+
#
|
432
|
+
# # Call the fetch_processor_types method.
|
433
|
+
# result = client.fetch_processor_types request
|
434
|
+
#
|
435
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::FetchProcessorTypesResponse.
|
436
|
+
# p result
|
437
|
+
#
|
377
438
|
def fetch_processor_types request, options = nil
|
378
439
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
379
440
|
|
@@ -443,6 +504,26 @@ module Google
|
|
443
504
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1::ProcessorType>]
|
444
505
|
#
|
445
506
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
507
|
+
#
|
508
|
+
# @example Basic example
|
509
|
+
# require "google/cloud/document_ai/v1"
|
510
|
+
#
|
511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
512
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
513
|
+
#
|
514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
515
|
+
# request = Google::Cloud::DocumentAI::V1::ListProcessorTypesRequest.new
|
516
|
+
#
|
517
|
+
# # Call the list_processor_types method.
|
518
|
+
# result = client.list_processor_types request
|
519
|
+
#
|
520
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
521
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
522
|
+
# result.each do |item|
|
523
|
+
# # Each element is of type ::Google::Cloud::DocumentAI::V1::ProcessorType.
|
524
|
+
# p item
|
525
|
+
# end
|
526
|
+
#
|
446
527
|
def list_processor_types request, options = nil
|
447
528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
448
529
|
|
@@ -506,6 +587,22 @@ module Google
|
|
506
587
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorType]
|
507
588
|
#
|
508
589
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
590
|
+
#
|
591
|
+
# @example Basic example
|
592
|
+
# require "google/cloud/document_ai/v1"
|
593
|
+
#
|
594
|
+
# # Create a client object. The client can be reused for multiple calls.
|
595
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
596
|
+
#
|
597
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
598
|
+
# request = Google::Cloud::DocumentAI::V1::GetProcessorTypeRequest.new
|
599
|
+
#
|
600
|
+
# # Call the get_processor_type method.
|
601
|
+
# result = client.get_processor_type request
|
602
|
+
#
|
603
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::ProcessorType.
|
604
|
+
# p result
|
605
|
+
#
|
509
606
|
def get_processor_type request, options = nil
|
510
607
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
608
|
|
@@ -576,6 +673,26 @@ module Google
|
|
576
673
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1::Processor>]
|
577
674
|
#
|
578
675
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
676
|
+
#
|
677
|
+
# @example Basic example
|
678
|
+
# require "google/cloud/document_ai/v1"
|
679
|
+
#
|
680
|
+
# # Create a client object. The client can be reused for multiple calls.
|
681
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
682
|
+
#
|
683
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
684
|
+
# request = Google::Cloud::DocumentAI::V1::ListProcessorsRequest.new
|
685
|
+
#
|
686
|
+
# # Call the list_processors method.
|
687
|
+
# result = client.list_processors request
|
688
|
+
#
|
689
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
690
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
691
|
+
# result.each do |item|
|
692
|
+
# # Each element is of type ::Google::Cloud::DocumentAI::V1::Processor.
|
693
|
+
# p item
|
694
|
+
# end
|
695
|
+
#
|
579
696
|
def list_processors request, options = nil
|
580
697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
581
698
|
|
@@ -639,6 +756,22 @@ module Google
|
|
639
756
|
# @return [::Google::Cloud::DocumentAI::V1::Processor]
|
640
757
|
#
|
641
758
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
759
|
+
#
|
760
|
+
# @example Basic example
|
761
|
+
# require "google/cloud/document_ai/v1"
|
762
|
+
#
|
763
|
+
# # Create a client object. The client can be reused for multiple calls.
|
764
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
765
|
+
#
|
766
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
767
|
+
# request = Google::Cloud::DocumentAI::V1::GetProcessorRequest.new
|
768
|
+
#
|
769
|
+
# # Call the get_processor method.
|
770
|
+
# result = client.get_processor request
|
771
|
+
#
|
772
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::Processor.
|
773
|
+
# p result
|
774
|
+
#
|
642
775
|
def get_processor request, options = nil
|
643
776
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
644
777
|
|
@@ -689,11 +822,13 @@ module Google
|
|
689
822
|
# @param options [::Gapic::CallOptions, ::Hash]
|
690
823
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
691
824
|
#
|
692
|
-
# @overload train_processor_version(parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
825
|
+
# @overload train_processor_version(custom_document_extraction_options: nil, parent: nil, processor_version: nil, document_schema: nil, input_data: nil, base_processor_version: nil)
|
693
826
|
# Pass arguments to `train_processor_version` via keyword arguments. Note that at
|
694
827
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
695
828
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
696
829
|
#
|
830
|
+
# @param custom_document_extraction_options [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions, ::Hash]
|
831
|
+
# Options to control Custom Document Extraction (CDE) Processor.
|
697
832
|
# @param parent [::String]
|
698
833
|
# Required. The parent (project, location and processor) to create the new
|
699
834
|
# version for. Format:
|
@@ -716,6 +851,29 @@ module Google
|
|
716
851
|
# @return [::Gapic::Operation]
|
717
852
|
#
|
718
853
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
854
|
+
#
|
855
|
+
# @example Basic example
|
856
|
+
# require "google/cloud/document_ai/v1"
|
857
|
+
#
|
858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
859
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
860
|
+
#
|
861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
862
|
+
# request = Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest.new
|
863
|
+
#
|
864
|
+
# # Call the train_processor_version method.
|
865
|
+
# result = client.train_processor_version request
|
866
|
+
#
|
867
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
868
|
+
# # check the status of an operation, cancel it, or wait for results.
|
869
|
+
# # Here is how to wait for a response.
|
870
|
+
# result.wait_until_done! timeout: 60
|
871
|
+
# if result.response?
|
872
|
+
# p result.response
|
873
|
+
# else
|
874
|
+
# puts "No response received."
|
875
|
+
# end
|
876
|
+
#
|
719
877
|
def train_processor_version request, options = nil
|
720
878
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
721
879
|
|
@@ -779,6 +937,22 @@ module Google
|
|
779
937
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion]
|
780
938
|
#
|
781
939
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
940
|
+
#
|
941
|
+
# @example Basic example
|
942
|
+
# require "google/cloud/document_ai/v1"
|
943
|
+
#
|
944
|
+
# # Create a client object. The client can be reused for multiple calls.
|
945
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
946
|
+
#
|
947
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
948
|
+
# request = Google::Cloud::DocumentAI::V1::GetProcessorVersionRequest.new
|
949
|
+
#
|
950
|
+
# # Call the get_processor_version method.
|
951
|
+
# result = client.get_processor_version request
|
952
|
+
#
|
953
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::ProcessorVersion.
|
954
|
+
# p result
|
955
|
+
#
|
782
956
|
def get_processor_version request, options = nil
|
783
957
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
784
958
|
|
@@ -850,6 +1024,26 @@ module Google
|
|
850
1024
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1::ProcessorVersion>]
|
851
1025
|
#
|
852
1026
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1027
|
+
#
|
1028
|
+
# @example Basic example
|
1029
|
+
# require "google/cloud/document_ai/v1"
|
1030
|
+
#
|
1031
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1032
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1033
|
+
#
|
1034
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1035
|
+
# request = Google::Cloud::DocumentAI::V1::ListProcessorVersionsRequest.new
|
1036
|
+
#
|
1037
|
+
# # Call the list_processor_versions method.
|
1038
|
+
# result = client.list_processor_versions request
|
1039
|
+
#
|
1040
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1041
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1042
|
+
# result.each do |item|
|
1043
|
+
# # Each element is of type ::Google::Cloud::DocumentAI::V1::ProcessorVersion.
|
1044
|
+
# p item
|
1045
|
+
# end
|
1046
|
+
#
|
853
1047
|
def list_processor_versions request, options = nil
|
854
1048
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
855
1049
|
|
@@ -914,6 +1108,29 @@ module Google
|
|
914
1108
|
# @return [::Gapic::Operation]
|
915
1109
|
#
|
916
1110
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1111
|
+
#
|
1112
|
+
# @example Basic example
|
1113
|
+
# require "google/cloud/document_ai/v1"
|
1114
|
+
#
|
1115
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1116
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1117
|
+
#
|
1118
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1119
|
+
# request = Google::Cloud::DocumentAI::V1::DeleteProcessorVersionRequest.new
|
1120
|
+
#
|
1121
|
+
# # Call the delete_processor_version method.
|
1122
|
+
# result = client.delete_processor_version request
|
1123
|
+
#
|
1124
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1125
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1126
|
+
# # Here is how to wait for a response.
|
1127
|
+
# result.wait_until_done! timeout: 60
|
1128
|
+
# if result.response?
|
1129
|
+
# p result.response
|
1130
|
+
# else
|
1131
|
+
# puts "No response received."
|
1132
|
+
# end
|
1133
|
+
#
|
917
1134
|
def delete_processor_version request, options = nil
|
918
1135
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
919
1136
|
|
@@ -977,6 +1194,29 @@ module Google
|
|
977
1194
|
# @return [::Gapic::Operation]
|
978
1195
|
#
|
979
1196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1197
|
+
#
|
1198
|
+
# @example Basic example
|
1199
|
+
# require "google/cloud/document_ai/v1"
|
1200
|
+
#
|
1201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1202
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1203
|
+
#
|
1204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1205
|
+
# request = Google::Cloud::DocumentAI::V1::DeployProcessorVersionRequest.new
|
1206
|
+
#
|
1207
|
+
# # Call the deploy_processor_version method.
|
1208
|
+
# result = client.deploy_processor_version request
|
1209
|
+
#
|
1210
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1211
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1212
|
+
# # Here is how to wait for a response.
|
1213
|
+
# result.wait_until_done! timeout: 60
|
1214
|
+
# if result.response?
|
1215
|
+
# p result.response
|
1216
|
+
# else
|
1217
|
+
# puts "No response received."
|
1218
|
+
# end
|
1219
|
+
#
|
980
1220
|
def deploy_processor_version request, options = nil
|
981
1221
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
982
1222
|
|
@@ -1040,6 +1280,29 @@ module Google
|
|
1040
1280
|
# @return [::Gapic::Operation]
|
1041
1281
|
#
|
1042
1282
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1283
|
+
#
|
1284
|
+
# @example Basic example
|
1285
|
+
# require "google/cloud/document_ai/v1"
|
1286
|
+
#
|
1287
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1288
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1289
|
+
#
|
1290
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1291
|
+
# request = Google::Cloud::DocumentAI::V1::UndeployProcessorVersionRequest.new
|
1292
|
+
#
|
1293
|
+
# # Call the undeploy_processor_version method.
|
1294
|
+
# result = client.undeploy_processor_version request
|
1295
|
+
#
|
1296
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1297
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1298
|
+
# # Here is how to wait for a response.
|
1299
|
+
# result.wait_until_done! timeout: 60
|
1300
|
+
# if result.response?
|
1301
|
+
# p result.response
|
1302
|
+
# else
|
1303
|
+
# puts "No response received."
|
1304
|
+
# end
|
1305
|
+
#
|
1043
1306
|
def undeploy_processor_version request, options = nil
|
1044
1307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1045
1308
|
|
@@ -1112,6 +1375,22 @@ module Google
|
|
1112
1375
|
# @return [::Google::Cloud::DocumentAI::V1::Processor]
|
1113
1376
|
#
|
1114
1377
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1378
|
+
#
|
1379
|
+
# @example Basic example
|
1380
|
+
# require "google/cloud/document_ai/v1"
|
1381
|
+
#
|
1382
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1383
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1384
|
+
#
|
1385
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1386
|
+
# request = Google::Cloud::DocumentAI::V1::CreateProcessorRequest.new
|
1387
|
+
#
|
1388
|
+
# # Call the create_processor method.
|
1389
|
+
# result = client.create_processor request
|
1390
|
+
#
|
1391
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::Processor.
|
1392
|
+
# p result
|
1393
|
+
#
|
1115
1394
|
def create_processor request, options = nil
|
1116
1395
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1117
1396
|
|
@@ -1175,6 +1454,29 @@ module Google
|
|
1175
1454
|
# @return [::Gapic::Operation]
|
1176
1455
|
#
|
1177
1456
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1457
|
+
#
|
1458
|
+
# @example Basic example
|
1459
|
+
# require "google/cloud/document_ai/v1"
|
1460
|
+
#
|
1461
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1462
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1463
|
+
#
|
1464
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1465
|
+
# request = Google::Cloud::DocumentAI::V1::DeleteProcessorRequest.new
|
1466
|
+
#
|
1467
|
+
# # Call the delete_processor method.
|
1468
|
+
# result = client.delete_processor request
|
1469
|
+
#
|
1470
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1471
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1472
|
+
# # Here is how to wait for a response.
|
1473
|
+
# result.wait_until_done! timeout: 60
|
1474
|
+
# if result.response?
|
1475
|
+
# p result.response
|
1476
|
+
# else
|
1477
|
+
# puts "No response received."
|
1478
|
+
# end
|
1479
|
+
#
|
1178
1480
|
def delete_processor request, options = nil
|
1179
1481
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1180
1482
|
|
@@ -1238,6 +1540,29 @@ module Google
|
|
1238
1540
|
# @return [::Gapic::Operation]
|
1239
1541
|
#
|
1240
1542
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1543
|
+
#
|
1544
|
+
# @example Basic example
|
1545
|
+
# require "google/cloud/document_ai/v1"
|
1546
|
+
#
|
1547
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1548
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1549
|
+
#
|
1550
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1551
|
+
# request = Google::Cloud::DocumentAI::V1::EnableProcessorRequest.new
|
1552
|
+
#
|
1553
|
+
# # Call the enable_processor method.
|
1554
|
+
# result = client.enable_processor request
|
1555
|
+
#
|
1556
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1557
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1558
|
+
# # Here is how to wait for a response.
|
1559
|
+
# result.wait_until_done! timeout: 60
|
1560
|
+
# if result.response?
|
1561
|
+
# p result.response
|
1562
|
+
# else
|
1563
|
+
# puts "No response received."
|
1564
|
+
# end
|
1565
|
+
#
|
1241
1566
|
def enable_processor request, options = nil
|
1242
1567
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1243
1568
|
|
@@ -1301,6 +1626,29 @@ module Google
|
|
1301
1626
|
# @return [::Gapic::Operation]
|
1302
1627
|
#
|
1303
1628
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1629
|
+
#
|
1630
|
+
# @example Basic example
|
1631
|
+
# require "google/cloud/document_ai/v1"
|
1632
|
+
#
|
1633
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1634
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1635
|
+
#
|
1636
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1637
|
+
# request = Google::Cloud::DocumentAI::V1::DisableProcessorRequest.new
|
1638
|
+
#
|
1639
|
+
# # Call the disable_processor method.
|
1640
|
+
# result = client.disable_processor request
|
1641
|
+
#
|
1642
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1643
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1644
|
+
# # Here is how to wait for a response.
|
1645
|
+
# result.wait_until_done! timeout: 60
|
1646
|
+
# if result.response?
|
1647
|
+
# p result.response
|
1648
|
+
# else
|
1649
|
+
# puts "No response received."
|
1650
|
+
# end
|
1651
|
+
#
|
1304
1652
|
def disable_processor request, options = nil
|
1305
1653
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1306
1654
|
|
@@ -1375,6 +1723,29 @@ module Google
|
|
1375
1723
|
# @return [::Gapic::Operation]
|
1376
1724
|
#
|
1377
1725
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1726
|
+
#
|
1727
|
+
# @example Basic example
|
1728
|
+
# require "google/cloud/document_ai/v1"
|
1729
|
+
#
|
1730
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1731
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1732
|
+
#
|
1733
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1734
|
+
# request = Google::Cloud::DocumentAI::V1::SetDefaultProcessorVersionRequest.new
|
1735
|
+
#
|
1736
|
+
# # Call the set_default_processor_version method.
|
1737
|
+
# result = client.set_default_processor_version request
|
1738
|
+
#
|
1739
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1740
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1741
|
+
# # Here is how to wait for a response.
|
1742
|
+
# result.wait_until_done! timeout: 60
|
1743
|
+
# if result.response?
|
1744
|
+
# p result.response
|
1745
|
+
# else
|
1746
|
+
# puts "No response received."
|
1747
|
+
# end
|
1748
|
+
#
|
1378
1749
|
def set_default_processor_version request, options = nil
|
1379
1750
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1380
1751
|
|
@@ -1449,6 +1820,29 @@ module Google
|
|
1449
1820
|
# @return [::Gapic::Operation]
|
1450
1821
|
#
|
1451
1822
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1823
|
+
#
|
1824
|
+
# @example Basic example
|
1825
|
+
# require "google/cloud/document_ai/v1"
|
1826
|
+
#
|
1827
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1828
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1829
|
+
#
|
1830
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1831
|
+
# request = Google::Cloud::DocumentAI::V1::ReviewDocumentRequest.new
|
1832
|
+
#
|
1833
|
+
# # Call the review_document method.
|
1834
|
+
# result = client.review_document request
|
1835
|
+
#
|
1836
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1837
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1838
|
+
# # Here is how to wait for a response.
|
1839
|
+
# result.wait_until_done! timeout: 60
|
1840
|
+
# if result.response?
|
1841
|
+
# p result.response
|
1842
|
+
# else
|
1843
|
+
# puts "No response received."
|
1844
|
+
# end
|
1845
|
+
#
|
1452
1846
|
def review_document request, options = nil
|
1453
1847
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1454
1848
|
|
@@ -1519,6 +1913,29 @@ module Google
|
|
1519
1913
|
# @return [::Gapic::Operation]
|
1520
1914
|
#
|
1521
1915
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1916
|
+
#
|
1917
|
+
# @example Basic example
|
1918
|
+
# require "google/cloud/document_ai/v1"
|
1919
|
+
#
|
1920
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1921
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
1922
|
+
#
|
1923
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1924
|
+
# request = Google::Cloud::DocumentAI::V1::EvaluateProcessorVersionRequest.new
|
1925
|
+
#
|
1926
|
+
# # Call the evaluate_processor_version method.
|
1927
|
+
# result = client.evaluate_processor_version request
|
1928
|
+
#
|
1929
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1930
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1931
|
+
# # Here is how to wait for a response.
|
1932
|
+
# result.wait_until_done! timeout: 60
|
1933
|
+
# if result.response?
|
1934
|
+
# p result.response
|
1935
|
+
# else
|
1936
|
+
# puts "No response received."
|
1937
|
+
# end
|
1938
|
+
#
|
1522
1939
|
def evaluate_processor_version request, options = nil
|
1523
1940
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1524
1941
|
|
@@ -1584,6 +2001,22 @@ module Google
|
|
1584
2001
|
# @return [::Google::Cloud::DocumentAI::V1::Evaluation]
|
1585
2002
|
#
|
1586
2003
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2004
|
+
#
|
2005
|
+
# @example Basic example
|
2006
|
+
# require "google/cloud/document_ai/v1"
|
2007
|
+
#
|
2008
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2009
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
2010
|
+
#
|
2011
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2012
|
+
# request = Google::Cloud::DocumentAI::V1::GetEvaluationRequest.new
|
2013
|
+
#
|
2014
|
+
# # Call the get_evaluation method.
|
2015
|
+
# result = client.get_evaluation request
|
2016
|
+
#
|
2017
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1::Evaluation.
|
2018
|
+
# p result
|
2019
|
+
#
|
1587
2020
|
def get_evaluation request, options = nil
|
1588
2021
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1589
2022
|
|
@@ -1656,6 +2089,26 @@ module Google
|
|
1656
2089
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1::Evaluation>]
|
1657
2090
|
#
|
1658
2091
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2092
|
+
#
|
2093
|
+
# @example Basic example
|
2094
|
+
# require "google/cloud/document_ai/v1"
|
2095
|
+
#
|
2096
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2097
|
+
# client = Google::Cloud::DocumentAI::V1::DocumentProcessorService::Rest::Client.new
|
2098
|
+
#
|
2099
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2100
|
+
# request = Google::Cloud::DocumentAI::V1::ListEvaluationsRequest.new
|
2101
|
+
#
|
2102
|
+
# # Call the list_evaluations method.
|
2103
|
+
# result = client.list_evaluations request
|
2104
|
+
#
|
2105
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2106
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2107
|
+
# result.each do |item|
|
2108
|
+
# # Each element is of type ::Google::Cloud::DocumentAI::V1::Evaluation.
|
2109
|
+
# p item
|
2110
|
+
# end
|
2111
|
+
#
|
1659
2112
|
def list_evaluations request, options = nil
|
1660
2113
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1661
2114
|
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -7,7 +7,7 @@ require 'google/protobuf'
|
|
7
7
|
require 'google/protobuf/field_mask_pb'
|
8
8
|
|
9
9
|
|
10
|
-
descriptor_data = "\n,google/cloud/documentai/v1/document_io.proto\x12\x1agoogle.cloud.documentai.v1\x1a google/protobuf/field_mask.proto\"1\n\x0bRawDocument\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"1\n\x0bGcsDocument\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"J\n\x0cGcsDocuments\x12:\n\tdocuments\x18\x01 \x03(\x0b\x32\'.google.cloud.documentai.v1.GcsDocument\"#\n\tGcsPrefix\x12\x16\n\x0egcs_uri_prefix\x18\x01 \x01(\t\"\xa5\x01\n\x19\x42\x61tchDocumentsInputConfig\x12;\n\ngcs_prefix\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.GcsPrefixH\x00\x12\x41\n\rgcs_documents\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1.GcsDocumentsH\x00\x42\x08\n\x06source\"\x85\x03\n\x14\x44ocumentOutputConfig\x12]\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfigH\x00\x1a\xfe\x01\n\x0fGcsOutputConfig\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12h\n\x0fsharding_config\x18\x03 \x01(\x0b\x32O.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig\x1a@\n\x0eShardingConfig\x12\x17\n\x0fpages_per_shard\x18\x01 \x01(\x05\x12\x15\n\rpages_overlap\x18\x02 \x01(\x05\x42\r\n\x0b\x64\
|
10
|
+
descriptor_data = "\n,google/cloud/documentai/v1/document_io.proto\x12\x1agoogle.cloud.documentai.v1\x1a google/protobuf/field_mask.proto\"1\n\x0bRawDocument\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"1\n\x0bGcsDocument\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12\x11\n\tmime_type\x18\x02 \x01(\t\"J\n\x0cGcsDocuments\x12:\n\tdocuments\x18\x01 \x03(\x0b\x32\'.google.cloud.documentai.v1.GcsDocument\"#\n\tGcsPrefix\x12\x16\n\x0egcs_uri_prefix\x18\x01 \x01(\t\"\xa5\x01\n\x19\x42\x61tchDocumentsInputConfig\x12;\n\ngcs_prefix\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.GcsPrefixH\x00\x12\x41\n\rgcs_documents\x18\x02 \x01(\x0b\x32(.google.cloud.documentai.v1.GcsDocumentsH\x00\x42\x08\n\x06source\"\x85\x03\n\x14\x44ocumentOutputConfig\x12]\n\x11gcs_output_config\x18\x01 \x01(\x0b\x32@.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfigH\x00\x1a\xfe\x01\n\x0fGcsOutputConfig\x12\x0f\n\x07gcs_uri\x18\x01 \x01(\t\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12h\n\x0fsharding_config\x18\x03 \x01(\x0b\x32O.google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig\x1a@\n\x0eShardingConfig\x12\x17\n\x0fpages_per_shard\x18\x01 \x01(\x05\x12\x15\n\rpages_overlap\x18\x02 \x01(\x05\x42\r\n\x0b\x64\x65stination\"\x81\x02\n\tOcrConfig\x12:\n\x05hints\x18\x02 \x01(\x0b\x32+.google.cloud.documentai.v1.OcrConfig.Hints\x12!\n\x19\x65nable_native_pdf_parsing\x18\x03 \x01(\x08\x12#\n\x1b\x65nable_image_quality_scores\x18\x04 \x01(\x08\x12\x1c\n\x14\x61\x64vanced_ocr_options\x18\x05 \x03(\t\x12\x15\n\renable_symbol\x18\x06 \x01(\x08\x12\x1a\n\x12\x63ompute_style_info\x18\x08 \x01(\x08\x1a\x1f\n\x05Hints\x12\x16\n\x0elanguage_hints\x18\x01 \x03(\tB\xcd\x01\n\x1e\x63om.google.cloud.documentai.v1B\x0f\x44ocumentIoProtoP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
|
11
11
|
|
12
12
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
13
|
|
@@ -46,6 +46,8 @@ module Google
|
|
46
46
|
DocumentOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.DocumentOutputConfig").msgclass
|
47
47
|
DocumentOutputConfig::GcsOutputConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig").msgclass
|
48
48
|
DocumentOutputConfig::GcsOutputConfig::ShardingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.DocumentOutputConfig.GcsOutputConfig.ShardingConfig").msgclass
|
49
|
+
OcrConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.OcrConfig").msgclass
|
50
|
+
OcrConfig::Hints = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.OcrConfig.Hints").msgclass
|
49
51
|
end
|
50
52
|
end
|
51
53
|
end
|
@@ -22,7 +22,7 @@ require 'google/protobuf/timestamp_pb'
|
|
22
22
|
require 'google/rpc/status_pb'
|
23
23
|
|
24
24
|
|
25
|
-
descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\x80\x02\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xeb\x01\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xa5\x04\n\x1cTrainProcessorVersionRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\xda\x41\x04name\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\xda\x41\x04name\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\xda\x41\x06parent\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\xda\x41\x06parent\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\xda\x41\x04name\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\xda\x41\x06parent\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\xda\x41\x18parent,processor_version\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\xda\x41\x06parent\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\xda\x41\x04name\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\xda\x41\x04name\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\xda\x41\x10parent,processor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\xda\x41\x13human_review_config\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\xda\x41\x11processor_version\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\xda\x41\x06parent\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
25
|
+
descriptor_data = "\n;google/cloud/documentai/v1/document_processor_service.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/documentai/v1/document.proto\x1a,google/cloud/documentai/v1/document_io.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x33google/cloud/documentai/v1/operation_metadata.proto\x1a*google/cloud/documentai/v1/processor.proto\x1a/google/cloud/documentai/v1/processor_type.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"K\n\x0eProcessOptions\x12\x39\n\nocr_config\x18\x01 \x01(\x0b\x32%.google.cloud.documentai.v1.OcrConfig\"\x86\x03\n\x0eProcessRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12?\n\x0craw_document\x18\x05 \x01(\x0b\x32\'.google.cloud.documentai.v1.RawDocumentH\x00\x12?\n\x0cgcs_document\x18\x08 \x01(\x0b\x32\'.google.cloud.documentai.v1.GcsDocumentH\x00\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12\x19\n\x11skip_human_review\x18\x03 \x01(\x08\x12.\n\nfield_mask\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptionsB\x08\n\x06source\"\xee\x01\n\x11HumanReviewStatus\x12\x42\n\x05state\x18\x01 \x01(\x0e\x32\x33.google.cloud.documentai.v1.HumanReviewStatus.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12\x1e\n\x16human_review_operation\x18\x03 \x01(\t\"^\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07SKIPPED\x10\x01\x12\x15\n\x11VALIDATION_PASSED\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\t\n\x05\x45RROR\x10\x04\"\x95\x01\n\x0fProcessResponse\x12\x36\n\x08\x64ocument\x18\x01 \x01(\x0b\x32$.google.cloud.documentai.v1.Document\x12J\n\x13human_review_status\x18\x03 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"\xb0\x02\n\x13\x42\x61tchProcessRequest\x12\x17\n\x04name\x18\x01 \x01(\tB\t\xe0\x41\x02\xfa\x41\x03\n\x01*\x12N\n\x0finput_documents\x18\x05 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12P\n\x16\x64ocument_output_config\x18\x06 \x01(\x0b\x32\x30.google.cloud.documentai.v1.DocumentOutputConfig\x12\x19\n\x11skip_human_review\x18\x04 \x01(\x08\x12\x43\n\x0fprocess_options\x18\x07 \x01(\x0b\x32*.google.cloud.documentai.v1.ProcessOptions\"\x16\n\x14\x42\x61tchProcessResponse\"\xff\x04\n\x14\x42\x61tchProcessMetadata\x12\x45\n\x05state\x18\x01 \x01(\x0e\x32\x36.google.cloud.documentai.v1.BatchProcessMetadata.State\x12\x15\n\rstate_message\x18\x02 \x01(\t\x12/\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12m\n\x1bindividual_process_statuses\x18\x05 \x03(\x0b\x32H.google.cloud.documentai.v1.BatchProcessMetadata.IndividualProcessStatus\x1a\xc3\x01\n\x17IndividualProcessStatus\x12\x18\n\x10input_gcs_source\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0b\x32\x12.google.rpc.Status\x12\x1e\n\x16output_gcs_destination\x18\x03 \x01(\t\x12J\n\x13human_review_status\x18\x05 \x01(\x0b\x32-.google.cloud.documentai.v1.HumanReviewStatus\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07WAITING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\r\n\tSUCCEEDED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\r\n\tCANCELLED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\"]\n\x1a\x46\x65tchProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\"a\n\x1b\x46\x65tchProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\"\x83\x01\n\x19ListProcessorTypesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'documentai.googleapis.com/ProcessorType\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"y\n\x1aListProcessorTypesResponse\x12\x42\n\x0fprocessor_types\x18\x01 \x03(\x0b\x32).google.cloud.documentai.v1.ProcessorType\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"{\n\x15ListProcessorsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x16ListProcessorsResponse\x12\x39\n\nprocessors\x18\x01 \x03(\x0b\x32%.google.cloud.documentai.v1.Processor\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"X\n\x17GetProcessorTypeRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'documentai.googleapis.com/ProcessorType\"P\n\x13GetProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"^\n\x1aGetProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x89\x01\n\x1cListProcessorVersionsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x82\x01\n\x1dListProcessorVersionsResponse\x12H\n\x12processor_versions\x18\x01 \x03(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersion\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"a\n\x1d\x44\x65leteProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"n\n\x1e\x44\x65leteProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"a\n\x1d\x44\x65ployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\" \n\x1e\x44\x65ployProcessorVersionResponse\"n\n\x1e\x44\x65ployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"c\n\x1fUndeployProcessorVersionRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\"\n UndeployProcessorVersionResponse\"p\n UndeployProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\x94\x01\n\x16\x43reateProcessorRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#documentai.googleapis.com/Processor\x12=\n\tprocessor\x18\x02 \x01(\x0b\x32%.google.cloud.documentai.v1.ProcessorB\x03\xe0\x41\x02\"S\n\x16\x44\x65leteProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"g\n\x17\x44\x65leteProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"S\n\x16\x45nableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x19\n\x17\x45nableProcessorResponse\"g\n\x17\x45nableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"T\n\x17\x44isableProcessorRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\"\x1a\n\x18\x44isableProcessorResponse\"h\n\x18\x44isableProcessorMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xba\x01\n!SetDefaultProcessorVersionRequest\x12>\n\tprocessor\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12U\n\x19\x64\x65\x66\x61ult_processor_version\x18\x02 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"$\n\"SetDefaultProcessorVersionResponse\"r\n\"SetDefaultProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"\xc0\x07\n\x1cTrainProcessorVersionRequest\x12\x86\x01\n\"custom_document_extraction_options\x18\x05 \x01(\x0b\x32X.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptionsH\x00\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#documentai.googleapis.com/Processor\x12L\n\x11processor_version\x18\x02 \x01(\x0b\x32,.google.cloud.documentai.v1.ProcessorVersionB\x03\xe0\x41\x02\x12H\n\x0f\x64ocument_schema\x18\n \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchemaB\x03\xe0\x41\x01\x12[\n\ninput_data\x18\x04 \x01(\x0b\x32\x42.google.cloud.documentai.v1.TrainProcessorVersionRequest.InputDataB\x03\xe0\x41\x01\x12#\n\x16\x62\x61se_processor_version\x18\x08 \x01(\tB\x03\xe0\x41\x01\x1a\xad\x01\n\tInputData\x12Q\n\x12training_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x12M\n\x0etest_documents\x18\x04 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfig\x1a\xfc\x01\n\x1f\x43ustomDocumentExtractionOptions\x12\x80\x01\n\x0ftraining_method\x18\x03 \x01(\x0e\x32g.google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod\"V\n\x0eTrainingMethod\x12\x1f\n\x1bTRAINING_METHOD_UNSPECIFIED\x10\x00\x12\x0f\n\x0bMODEL_BASED\x10\x01\x12\x12\n\x0eTEMPLATE_BASED\x10\x02\x42\x11\n\x0fprocessor_flags\":\n\x1dTrainProcessorVersionResponse\x12\x19\n\x11processor_version\x18\x01 \x01(\t\"\xf7\x03\n\x1dTrainProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12p\n\x1btraining_dataset_validation\x18\x02 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x12l\n\x17test_dataset_validation\x18\x03 \x01(\x0b\x32K.google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation\x1a\xa7\x01\n\x11\x44\x61tasetValidation\x12\x1c\n\x14\x64ocument_error_count\x18\x03 \x01(\x05\x12\x1b\n\x13\x64\x61taset_error_count\x18\x04 \x01(\x05\x12+\n\x0f\x64ocument_errors\x18\x01 \x03(\x0b\x32\x12.google.rpc.Status\x12*\n\x0e\x64\x61taset_errors\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x8e\x03\n\x15ReviewDocumentRequest\x12?\n\x0finline_document\x18\x04 \x01(\x0b\x32$.google.cloud.documentai.v1.DocumentH\x00\x12P\n\x13human_review_config\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+documentai.googleapis.com/HumanReviewConfig\x12 \n\x18\x65nable_schema_validation\x18\x03 \x01(\x08\x12L\n\x08priority\x18\x05 \x01(\x0e\x32:.google.cloud.documentai.v1.ReviewDocumentRequest.Priority\x12\x43\n\x0f\x64ocument_schema\x18\x06 \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\"#\n\x08Priority\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x00\x12\n\n\x06URGENT\x10\x01\x42\x08\n\x06source\"\xd1\x01\n\x16ReviewDocumentResponse\x12\x17\n\x0fgcs_destination\x18\x01 \x01(\t\x12G\n\x05state\x18\x02 \x01(\x0e\x32\x38.google.cloud.documentai.v1.ReviewDocumentResponse.State\x12\x18\n\x10rejection_reason\x18\x03 \x01(\t\";\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REJECTED\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\"\x84\x01\n\x1fReviewDocumentOperationMetadata\x12L\n\x0f\x63ommon_metadata\x18\x05 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\x12\x13\n\x0bquestion_id\x18\x06 \x01(\t\"\xca\x01\n\x1f\x45valuateProcessorVersionRequest\x12M\n\x11processor_version\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12X\n\x14\x65valuation_documents\x18\x03 \x01(\x0b\x32\x35.google.cloud.documentai.v1.BatchDocumentsInputConfigB\x03\xe0\x41\x01\"p\n EvaluateProcessorVersionMetadata\x12L\n\x0f\x63ommon_metadata\x18\x01 \x01(\x0b\x32\x33.google.cloud.documentai.v1.CommonOperationMetadata\"6\n EvaluateProcessorVersionResponse\x12\x12\n\nevaluation\x18\x02 \x01(\t\"R\n\x14GetEvaluationRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$documentai.googleapis.com/Evaluation\"\x83\x01\n\x16ListEvaluationsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"o\n\x17ListEvaluationsResponse\x12;\n\x0b\x65valuations\x18\x01 \x03(\x0b\x32&.google.cloud.documentai.v1.Evaluation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t2\x9c*\n\x18\x44ocumentProcessorService\x12\x87\x02\n\x0fProcessDocument\x12*.google.cloud.documentai.v1.ProcessRequest\x1a+.google.cloud.documentai.v1.ProcessResponse\"\x9a\x01\x82\xd3\xe4\x93\x02\x8c\x01\"6/v1/{name=projects/*/locations/*/processors/*}:process:\x01*ZO\"J/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:process:\x01*\xda\x41\x04name\x12\xbd\x02\n\x15\x42\x61tchProcessDocuments\x12/.google.cloud.documentai.v1.BatchProcessRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\x82\xd3\xe4\x93\x02\x96\x01\";/v1/{name=projects/*/locations/*/processors/*}:batchProcess:\x01*ZT\"O/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:batchProcess:\x01*\xda\x41\x04name\xca\x41,\n\x14\x42\x61tchProcessResponse\x12\x14\x42\x61tchProcessMetadata\x12\xd0\x01\n\x13\x46\x65tchProcessorTypes\x12\x36.google.cloud.documentai.v1.FetchProcessorTypesRequest\x1a\x37.google.cloud.documentai.v1.FetchProcessorTypesResponse\"H\x82\xd3\xe4\x93\x02\x39\x12\x37/v1/{parent=projects/*/locations/*}:fetchProcessorTypes\xda\x41\x06parent\x12\xc8\x01\n\x12ListProcessorTypes\x12\x35.google.cloud.documentai.v1.ListProcessorTypesRequest\x1a\x36.google.cloud.documentai.v1.ListProcessorTypesResponse\"C\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/processorTypes\xda\x41\x06parent\x12\xb5\x01\n\x10GetProcessorType\x12\x33.google.cloud.documentai.v1.GetProcessorTypeRequest\x1a).google.cloud.documentai.v1.ProcessorType\"A\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/processorTypes/*}\xda\x41\x04name\x12\xb8\x01\n\x0eListProcessors\x12\x31.google.cloud.documentai.v1.ListProcessorsRequest\x1a\x32.google.cloud.documentai.v1.ListProcessorsResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/processors\xda\x41\x06parent\x12\xa5\x01\n\x0cGetProcessor\x12/.google.cloud.documentai.v1.GetProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"=\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\x12\xa2\x02\n\x15TrainProcessorVersion\x12\x38.google.cloud.documentai.v1.TrainProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xaf\x01\x82\xd3\xe4\x93\x02M\"H/v1/{parent=projects/*/locations/*/processors/*}/processorVersions:train:\x01*\xda\x41\x18parent,processor_version\xca\x41>\n\x1dTrainProcessorVersionResponse\x12\x1dTrainProcessorVersionMetadata\x12\xce\x01\n\x13GetProcessorVersion\x12\x36.google.cloud.documentai.v1.GetProcessorVersionRequest\x1a,.google.cloud.documentai.v1.ProcessorVersion\"Q\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\x12\xe1\x01\n\x15ListProcessorVersions\x12\x38.google.cloud.documentai.v1.ListProcessorVersionsRequest\x1a\x39.google.cloud.documentai.v1.ListProcessorVersionsResponse\"S\x82\xd3\xe4\x93\x02\x44\x12\x42/v1/{parent=projects/*/locations/*/processors/*}/processorVersions\xda\x41\x06parent\x12\x80\x02\n\x16\x44\x65leteProcessorVersion\x12\x39.google.cloud.documentai.v1.DeleteProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x8b\x01\x82\xd3\xe4\x93\x02\x44*B/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}\xda\x41\x04name\xca\x41\x37\n\x15google.protobuf.Empty\x12\x1e\x44\x65leteProcessorVersionMetadata\x12\x93\x02\n\x16\x44\x65ployProcessorVersion\x12\x39.google.cloud.documentai.v1.DeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\x9e\x01\x82\xd3\xe4\x93\x02N\"I/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:deploy:\x01*\xda\x41\x04name\xca\x41@\n\x1e\x44\x65ployProcessorVersionResponse\x12\x1e\x44\x65ployProcessorVersionMetadata\x12\x9d\x02\n\x18UndeployProcessorVersion\x12;.google.cloud.documentai.v1.UndeployProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02P\"K/v1/{name=projects/*/locations/*/processors/*/processorVersions/*}:undeploy:\x01*\xda\x41\x04name\xca\x41\x44\n UndeployProcessorVersionResponse\x12 UndeployProcessorVersionMetadata\x12\xc2\x01\n\x0f\x43reateProcessor\x12\x32.google.cloud.documentai.v1.CreateProcessorRequest\x1a%.google.cloud.documentai.v1.Processor\"T\x82\xd3\xe4\x93\x02;\"./v1/{parent=projects/*/locations/*}/processors:\tprocessor\xda\x41\x10parent,processor\x12\xd6\x01\n\x0f\x44\x65leteProcessor\x12\x32.google.cloud.documentai.v1.DeleteProcessorRequest\x1a\x1d.google.longrunning.Operation\"p\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/processors/*}\xda\x41\x04name\xca\x41\x30\n\x15google.protobuf.Empty\x12\x17\x44\x65leteProcessorMetadata\x12\xdb\x01\n\x0f\x45nableProcessor\x12\x32.google.cloud.documentai.v1.EnableProcessorRequest\x1a\x1d.google.longrunning.Operation\"u\x82\xd3\xe4\x93\x02:\"5/v1/{name=projects/*/locations/*/processors/*}:enable:\x01*\xca\x41\x32\n\x17\x45nableProcessorResponse\x12\x17\x45nableProcessorMetadata\x12\xe0\x01\n\x10\x44isableProcessor\x12\x33.google.cloud.documentai.v1.DisableProcessorRequest\x1a\x1d.google.longrunning.Operation\"x\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/processors/*}:disable:\x01*\xca\x41\x34\n\x18\x44isableProcessorResponse\x12\x18\x44isableProcessorMetadata\x12\xa1\x02\n\x1aSetDefaultProcessorVersion\x12=.google.cloud.documentai.v1.SetDefaultProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xa4\x01\x82\xd3\xe4\x93\x02S\"N/v1/{processor=projects/*/locations/*/processors/*}:setDefaultProcessorVersion:\x01*\xca\x41H\n\"SetDefaultProcessorVersionResponse\x12\"SetDefaultProcessorVersionMetadata\x12\xa0\x02\n\x0eReviewDocument\x12\x31.google.cloud.documentai.v1.ReviewDocumentRequest\x1a\x1d.google.longrunning.Operation\"\xbb\x01\x82\xd3\xe4\x93\x02\x63\"^/v1/{human_review_config=projects/*/locations/*/processors/*/humanReviewConfig}:reviewDocument:\x01*\xda\x41\x13human_review_config\xca\x41\x39\n\x16ReviewDocumentResponse\x12\x1fReviewDocumentOperationMetadata\x12\xc7\x02\n\x18\x45valuateProcessorVersion\x12;.google.cloud.documentai.v1.EvaluateProcessorVersionRequest\x1a\x1d.google.longrunning.Operation\"\xce\x01\x82\xd3\xe4\x93\x02m\"h/v1/{processor_version=projects/*/locations/*/processors/*/processorVersions/*}:evaluateProcessorVersion:\x01*\xda\x41\x11processor_version\xca\x41\x44\n EvaluateProcessorVersionResponse\x12 EvaluateProcessorVersionMetadata\x12\xca\x01\n\rGetEvaluation\x12\x30.google.cloud.documentai.v1.GetEvaluationRequest\x1a&.google.cloud.documentai.v1.Evaluation\"_\x82\xd3\xe4\x93\x02R\x12P/v1/{name=projects/*/locations/*/processors/*/processorVersions/*/evaluations/*}\xda\x41\x04name\x12\xdd\x01\n\x0fListEvaluations\x12\x32.google.cloud.documentai.v1.ListEvaluationsRequest\x1a\x33.google.cloud.documentai.v1.ListEvaluationsResponse\"a\x82\xd3\xe4\x93\x02R\x12P/v1/{parent=projects/*/locations/*/processors/*/processorVersions/*}/evaluations\xda\x41\x06parent\x1aM\xca\x41\x19\x64ocumentai.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xaa\x03\n\x1e\x63om.google.cloud.documentai.v1B\x1a\x44ocumentAiProcessorServiceP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1\xea\x41\x7f\n+documentai.googleapis.com/HumanReviewConfig\x12Pprojects/{project}/locations/{location}/processors/{processor}/humanReviewConfig\xea\x41M\n\"documentai.googleapis.com/Location\x12\'projects/{project}/locations/{location}b\x06proto3"
|
26
26
|
|
27
27
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
28
28
|
|
@@ -37,8 +37,8 @@ rescue TypeError => e
|
|
37
37
|
file = pool.add_serialized_file(serialized)
|
38
38
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
39
39
|
imports = [
|
40
|
+
["google.cloud.documentai.v1.OcrConfig", "google/cloud/documentai/v1/document_io.proto"],
|
40
41
|
["google.cloud.documentai.v1.Document", "google/cloud/documentai/v1/document.proto"],
|
41
|
-
["google.cloud.documentai.v1.RawDocument", "google/cloud/documentai/v1/document_io.proto"],
|
42
42
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
43
43
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
44
44
|
["google.rpc.Status", "google/rpc/status.proto"],
|
@@ -62,6 +62,7 @@ module Google
|
|
62
62
|
module Cloud
|
63
63
|
module DocumentAI
|
64
64
|
module V1
|
65
|
+
ProcessOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessOptions").msgclass
|
65
66
|
ProcessRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.ProcessRequest").msgclass
|
66
67
|
HumanReviewStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.HumanReviewStatus").msgclass
|
67
68
|
HumanReviewStatus::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.HumanReviewStatus.State").enummodule
|
@@ -104,6 +105,8 @@ module Google
|
|
104
105
|
SetDefaultProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.SetDefaultProcessorVersionMetadata").msgclass
|
105
106
|
TrainProcessorVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest").msgclass
|
106
107
|
TrainProcessorVersionRequest::InputData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.InputData").msgclass
|
108
|
+
TrainProcessorVersionRequest::CustomDocumentExtractionOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions").msgclass
|
109
|
+
TrainProcessorVersionRequest::CustomDocumentExtractionOptions::TrainingMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionRequest.CustomDocumentExtractionOptions.TrainingMethod").enummodule
|
107
110
|
TrainProcessorVersionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionResponse").msgclass
|
108
111
|
TrainProcessorVersionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionMetadata").msgclass
|
109
112
|
TrainProcessorVersionMetadata::DatasetValidation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.documentai.v1.TrainProcessorVersionMetadata.DatasetValidation").msgclass
|
@@ -11,7 +11,7 @@ require 'google/cloud/documentai/v1/evaluation_pb'
|
|
11
11
|
require 'google/protobuf/timestamp_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n*google/cloud/documentai/v1/processor.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
14
|
+
descriptor_data = "\n*google/cloud/documentai/v1/processor.proto\x12\x1agoogle.cloud.documentai.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/documentai/v1/document_schema.proto\x1a+google/cloud/documentai/v1/evaluation.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb5\x07\n\x10ProcessorVersion\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x43\n\x0f\x64ocument_schema\x18\x0c \x01(\x0b\x32*.google.cloud.documentai.v1.DocumentSchema\x12\x41\n\x05state\x18\x06 \x01(\x0e\x32\x32.google.cloud.documentai.v1.ProcessorVersion.State\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12J\n\x11latest_evaluation\x18\x08 \x01(\x0b\x32/.google.cloud.documentai.v1.EvaluationReference\x12\x14\n\x0ckms_key_name\x18\t \x01(\t\x12\x1c\n\x14kms_key_version_name\x18\n \x01(\t\x12\x1b\n\x0egoogle_managed\x18\x0b \x01(\x08\x42\x03\xe0\x41\x03\x12V\n\x10\x64\x65precation_info\x18\r \x01(\x0b\x32<.google.cloud.documentai.v1.ProcessorVersion.DeprecationInfo\x1a\x9f\x01\n\x0f\x44\x65precationInfo\x12\x34\n\x10\x64\x65precation_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12V\n\x1dreplacement_processor_version\x18\x02 \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\"\x93\x01\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44\x45PLOYED\x10\x01\x12\r\n\tDEPLOYING\x10\x02\x12\x0e\n\nUNDEPLOYED\x10\x03\x12\x0f\n\x0bUNDEPLOYING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\n\n\x06\x46\x41ILED\x10\x07\x12\r\n\tIMPORTING\x10\x08:\x96\x01\xea\x41\x92\x01\n*documentai.googleapis.com/ProcessorVersion\x12\x64projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}\"\xad\x04\n\tProcessor\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x05\xe0\x41\x03\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12?\n\x05state\x18\x04 \x01(\x0e\x32+.google.cloud.documentai.v1.Processor.StateB\x03\xe0\x41\x03\x12R\n\x19\x64\x65\x66\x61ult_processor_version\x18\t \x01(\tB/\xfa\x41,\n*documentai.googleapis.com/ProcessorVersion\x12 \n\x10process_endpoint\x18\x06 \x01(\tB\x06\xe0\x41\x03\xe0\x41\x05\x12/\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0ckms_key_name\x18\x08 \x01(\t\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x12\x0c\n\x08\x45NABLING\x10\x03\x12\r\n\tDISABLING\x10\x04\x12\x0c\n\x08\x43REATING\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06\x12\x0c\n\x08\x44\x45LETING\x10\x07:h\xea\x41\x65\n#documentai.googleapis.com/Processor\x12>projects/{project}/locations/{location}/processors/{processor}B\xd1\x01\n\x1e\x63om.google.cloud.documentai.v1B\x13\x44ocumentAiProcessorP\x01Z>cloud.google.com/go/documentai/apiv1/documentaipb;documentaipb\xaa\x02\x1aGoogle.Cloud.DocumentAI.V1\xca\x02\x1aGoogle\\Cloud\\DocumentAI\\V1\xea\x02\x1dGoogle::Cloud::DocumentAI::V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -114,6 +114,53 @@ module Google
|
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|
117
|
+
|
118
|
+
# Config for Document OCR.
|
119
|
+
# @!attribute [rw] hints
|
120
|
+
# @return [::Google::Cloud::DocumentAI::V1::OcrConfig::Hints]
|
121
|
+
# Hints for the OCR model.
|
122
|
+
# @!attribute [rw] enable_native_pdf_parsing
|
123
|
+
# @return [::Boolean]
|
124
|
+
# Enables special handling for PDFs with existing text information. Results
|
125
|
+
# in better text extraction quality in such PDF inputs.
|
126
|
+
# @!attribute [rw] enable_image_quality_scores
|
127
|
+
# @return [::Boolean]
|
128
|
+
# Enables intelligent document quality scores after OCR. Can help with
|
129
|
+
# diagnosing why OCR responses are of poor quality for a given input.
|
130
|
+
# Adds additional latency comparable to regular OCR to the process call.
|
131
|
+
# @!attribute [rw] advanced_ocr_options
|
132
|
+
# @return [::Array<::String>]
|
133
|
+
# A list of advanced OCR options to further fine-tune OCR behavior. Current
|
134
|
+
# valid values are:
|
135
|
+
#
|
136
|
+
# - `legacy_layout`: a heuristics layout detection algorithm, which serves as
|
137
|
+
# an alternative to the current ML-based layout detection algorithm.
|
138
|
+
# Customers can choose the best suitable layout algorithm based on their
|
139
|
+
# situation.
|
140
|
+
# @!attribute [rw] enable_symbol
|
141
|
+
# @return [::Boolean]
|
142
|
+
# Includes symbol level OCR information if set to true.
|
143
|
+
# @!attribute [rw] compute_style_info
|
144
|
+
# @return [::Boolean]
|
145
|
+
# Turn on font id model and returns font style information.
|
146
|
+
class OcrConfig
|
147
|
+
include ::Google::Protobuf::MessageExts
|
148
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
149
|
+
|
150
|
+
# Hints for OCR Engine
|
151
|
+
# @!attribute [rw] language_hints
|
152
|
+
# @return [::Array<::String>]
|
153
|
+
# List of BCP-47 language codes to use for OCR. In most cases, not
|
154
|
+
# specifying it yields the best results since it enables automatic language
|
155
|
+
# detection. For languages based on the Latin alphabet, setting hints is
|
156
|
+
# not needed. In rare cases, when the language of the text in the
|
157
|
+
# image is known, setting a hint will help get better results (although it
|
158
|
+
# will be a significant hindrance if the hint is wrong).
|
159
|
+
class Hints
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
end
|
117
164
|
end
|
118
165
|
end
|
119
166
|
end
|
@@ -21,6 +21,16 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module DocumentAI
|
23
23
|
module V1
|
24
|
+
# Options for Process API
|
25
|
+
# @!attribute [rw] ocr_config
|
26
|
+
# @return [::Google::Cloud::DocumentAI::V1::OcrConfig]
|
27
|
+
# Only applicable to `OCR_PROCESSOR`. Returns error if set on other
|
28
|
+
# processor types.
|
29
|
+
class ProcessOptions
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
|
24
34
|
# Request message for the
|
25
35
|
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#process_document ProcessDocument}
|
26
36
|
# method.
|
@@ -30,6 +40,9 @@ module Google
|
|
30
40
|
# @!attribute [rw] raw_document
|
31
41
|
# @return [::Google::Cloud::DocumentAI::V1::RawDocument]
|
32
42
|
# A raw document content (bytes).
|
43
|
+
# @!attribute [rw] gcs_document
|
44
|
+
# @return [::Google::Cloud::DocumentAI::V1::GcsDocument]
|
45
|
+
# A raw document on Google Cloud Storage.
|
33
46
|
# @!attribute [rw] name
|
34
47
|
# @return [::String]
|
35
48
|
# Required. The resource name of the
|
@@ -52,6 +65,9 @@ module Google
|
|
52
65
|
# {::Google::Cloud::DocumentAI::V1::ProcessResponse#document ProcessResponse.document}
|
53
66
|
# output. Only supports top-level document and pages field, so it must be in
|
54
67
|
# the form of `{document_field_name}` or `pages.{page_field_name}`.
|
68
|
+
# @!attribute [rw] process_options
|
69
|
+
# @return [::Google::Cloud::DocumentAI::V1::ProcessOptions]
|
70
|
+
# Inference-time options for the process API
|
55
71
|
class ProcessRequest
|
56
72
|
include ::Google::Protobuf::MessageExts
|
57
73
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -138,6 +154,9 @@ module Google
|
|
138
154
|
# @return [::Boolean]
|
139
155
|
# Whether human review should be skipped for this request. Default to
|
140
156
|
# `false`.
|
157
|
+
# @!attribute [rw] process_options
|
158
|
+
# @return [::Google::Cloud::DocumentAI::V1::ProcessOptions]
|
159
|
+
# Inference-time options for the process API
|
141
160
|
class BatchProcessRequest
|
142
161
|
include ::Google::Protobuf::MessageExts
|
143
162
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -604,6 +623,9 @@ module Google
|
|
604
623
|
# Request message for the
|
605
624
|
# {::Google::Cloud::DocumentAI::V1::DocumentProcessorService::Client#train_processor_version TrainProcessorVersion}
|
606
625
|
# method.
|
626
|
+
# @!attribute [rw] custom_document_extraction_options
|
627
|
+
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions]
|
628
|
+
# Options to control Custom Document Extraction (CDE) Processor.
|
607
629
|
# @!attribute [rw] parent
|
608
630
|
# @return [::String]
|
609
631
|
# Required. The parent (project, location and processor) to create the new
|
@@ -640,6 +662,26 @@ module Google
|
|
640
662
|
include ::Google::Protobuf::MessageExts
|
641
663
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
642
664
|
end
|
665
|
+
|
666
|
+
# Options to control the training of the Custom Document Extraction (CDE)
|
667
|
+
# Processor.
|
668
|
+
# @!attribute [rw] training_method
|
669
|
+
# @return [::Google::Cloud::DocumentAI::V1::TrainProcessorVersionRequest::CustomDocumentExtractionOptions::TrainingMethod]
|
670
|
+
# Training method to use for CDE training.
|
671
|
+
class CustomDocumentExtractionOptions
|
672
|
+
include ::Google::Protobuf::MessageExts
|
673
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
674
|
+
|
675
|
+
# Training Method for CDE. TRAINING_METHOD_UNSPECIFIED will fallback to
|
676
|
+
# MODEL_BASED.
|
677
|
+
module TrainingMethod
|
678
|
+
TRAINING_METHOD_UNSPECIFIED = 0
|
679
|
+
|
680
|
+
MODEL_BASED = 1
|
681
|
+
|
682
|
+
TEMPLATE_BASED = 2
|
683
|
+
end
|
684
|
+
end
|
643
685
|
end
|
644
686
|
|
645
687
|
# The response for
|
@@ -51,9 +51,9 @@ module Google
|
|
51
51
|
# @!attribute [rw] kms_key_version_name
|
52
52
|
# @return [::String]
|
53
53
|
# The KMS key version with which data is encrypted.
|
54
|
-
# @!attribute [
|
54
|
+
# @!attribute [r] google_managed
|
55
55
|
# @return [::Boolean]
|
56
|
-
# Denotes that this `ProcessorVersion` is managed by Google.
|
56
|
+
# Output only. Denotes that this `ProcessorVersion` is managed by Google.
|
57
57
|
# @!attribute [rw] deprecation_info
|
58
58
|
# @return [::Google::Cloud::DocumentAI::V1::ProcessorVersion::DeprecationInfo]
|
59
59
|
# If set, information about the eventual deprecation of this version.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-document_ai-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.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: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -262,7 +262,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
262
262
|
- !ruby/object:Gem::Version
|
263
263
|
version: '0'
|
264
264
|
requirements: []
|
265
|
-
rubygems_version: 3.4.
|
265
|
+
rubygems_version: 3.4.19
|
266
266
|
signing_key:
|
267
267
|
specification_version: 4
|
268
268
|
summary: Service to parse structured information from unstructured or semi-structured
|