google-cloud-document_ai-v1beta3 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/client.rb +221 -27
- data/lib/google/cloud/document_ai/v1beta3/document_processor_service/operations.rb +115 -12
- data/lib/google/cloud/document_ai/v1beta3/version.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_io_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/document_pb.rb +2 -2
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_pb.rb +2 -2
- data/lib/google/cloud/documentai/v1beta3/document_processor_service_services_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/geometry_pb.rb +1 -1
- data/lib/google/cloud/documentai/v1beta3/operation_metadata_pb.rb +2 -2
- data/lib/google/cloud/documentai/v1beta3/processor_pb.rb +2 -2
- data/lib/google/cloud/documentai/v1beta3/processor_type_pb.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c57c8f6be04d9612fc1d777c22ee2efc21fc9646c03f203b4bfcc04e48079e52
|
|
4
|
+
data.tar.gz: 5c8562897b9d0a6c2fa8a445d4055074ca99d8175436f23276cffa1a86934ba9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f9cb20f2166f12c91e1ca5286954499084be6500aef22a3539c4d40edb2cb37a716e4541cd4cdac3f8f534f99f007e1f85d100c3489f957ffd9e8f7d0a205a76
|
|
7
|
+
data.tar.gz: f73e1ba783dc650369946ec1948efb53fd509252070538f0f454653b2e10bad97c1e67dce7aac36cf36555d8e02117373033caf2f369709314bb30e9556db1be
|
|
@@ -212,6 +212,21 @@ module Google
|
|
|
212
212
|
#
|
|
213
213
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
214
214
|
#
|
|
215
|
+
# @example Basic example
|
|
216
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
217
|
+
#
|
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
219
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
220
|
+
#
|
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
222
|
+
# request = Google::Cloud::DocumentAI::V1beta3::ProcessRequest.new
|
|
223
|
+
#
|
|
224
|
+
# # Call the process_document method.
|
|
225
|
+
# result = client.process_document request
|
|
226
|
+
#
|
|
227
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1beta3::ProcessResponse.
|
|
228
|
+
# p result
|
|
229
|
+
#
|
|
215
230
|
def process_document request, options = nil
|
|
216
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
217
232
|
|
|
@@ -229,9 +244,11 @@ module Google
|
|
|
229
244
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
230
245
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
231
246
|
|
|
232
|
-
header_params = {
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
header_params = {}
|
|
248
|
+
if request.name
|
|
249
|
+
header_params["name"] = request.name
|
|
250
|
+
end
|
|
251
|
+
|
|
235
252
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
236
253
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
237
254
|
|
|
@@ -292,6 +309,28 @@ module Google
|
|
|
292
309
|
#
|
|
293
310
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
294
311
|
#
|
|
312
|
+
# @example Basic example
|
|
313
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
314
|
+
#
|
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
316
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
317
|
+
#
|
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
319
|
+
# request = Google::Cloud::DocumentAI::V1beta3::BatchProcessRequest.new
|
|
320
|
+
#
|
|
321
|
+
# # Call the batch_process_documents method.
|
|
322
|
+
# result = client.batch_process_documents request
|
|
323
|
+
#
|
|
324
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
325
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
326
|
+
# # for results. Here is how to block until completion:
|
|
327
|
+
# result.wait_until_done! timeout: 60
|
|
328
|
+
# if result.response?
|
|
329
|
+
# p result.response
|
|
330
|
+
# else
|
|
331
|
+
# puts "Error!"
|
|
332
|
+
# end
|
|
333
|
+
#
|
|
295
334
|
def batch_process_documents request, options = nil
|
|
296
335
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
297
336
|
|
|
@@ -309,9 +348,11 @@ module Google
|
|
|
309
348
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
310
349
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
311
350
|
|
|
312
|
-
header_params = {
|
|
313
|
-
|
|
314
|
-
|
|
351
|
+
header_params = {}
|
|
352
|
+
if request.name
|
|
353
|
+
header_params["name"] = request.name
|
|
354
|
+
end
|
|
355
|
+
|
|
315
356
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
316
357
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
317
358
|
|
|
@@ -362,6 +403,21 @@ module Google
|
|
|
362
403
|
#
|
|
363
404
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
364
405
|
#
|
|
406
|
+
# @example Basic example
|
|
407
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
408
|
+
#
|
|
409
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
410
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
411
|
+
#
|
|
412
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
413
|
+
# request = Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesRequest.new
|
|
414
|
+
#
|
|
415
|
+
# # Call the fetch_processor_types method.
|
|
416
|
+
# result = client.fetch_processor_types request
|
|
417
|
+
#
|
|
418
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesResponse.
|
|
419
|
+
# p result
|
|
420
|
+
#
|
|
365
421
|
def fetch_processor_types request, options = nil
|
|
366
422
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
367
423
|
|
|
@@ -379,9 +435,11 @@ module Google
|
|
|
379
435
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
380
436
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
381
437
|
|
|
382
|
-
header_params = {
|
|
383
|
-
|
|
384
|
-
|
|
438
|
+
header_params = {}
|
|
439
|
+
if request.parent
|
|
440
|
+
header_params["parent"] = request.parent
|
|
441
|
+
end
|
|
442
|
+
|
|
385
443
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
386
444
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
387
445
|
|
|
@@ -438,6 +496,27 @@ module Google
|
|
|
438
496
|
#
|
|
439
497
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
440
498
|
#
|
|
499
|
+
# @example Basic example
|
|
500
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
501
|
+
#
|
|
502
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
503
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
504
|
+
#
|
|
505
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
506
|
+
# request = Google::Cloud::DocumentAI::V1beta3::ListProcessorsRequest.new
|
|
507
|
+
#
|
|
508
|
+
# # Call the list_processors method.
|
|
509
|
+
# result = client.list_processors request
|
|
510
|
+
#
|
|
511
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
512
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
513
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
514
|
+
# # methods are also available for managing paging directly.
|
|
515
|
+
# result.each do |response|
|
|
516
|
+
# # Each element is of type ::Google::Cloud::DocumentAI::V1beta3::Processor.
|
|
517
|
+
# p response
|
|
518
|
+
# end
|
|
519
|
+
#
|
|
441
520
|
def list_processors request, options = nil
|
|
442
521
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
443
522
|
|
|
@@ -455,9 +534,11 @@ module Google
|
|
|
455
534
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
456
535
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
457
536
|
|
|
458
|
-
header_params = {
|
|
459
|
-
|
|
460
|
-
|
|
537
|
+
header_params = {}
|
|
538
|
+
if request.parent
|
|
539
|
+
header_params["parent"] = request.parent
|
|
540
|
+
end
|
|
541
|
+
|
|
461
542
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
462
543
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
463
544
|
|
|
@@ -512,6 +593,21 @@ module Google
|
|
|
512
593
|
#
|
|
513
594
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
514
595
|
#
|
|
596
|
+
# @example Basic example
|
|
597
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
598
|
+
#
|
|
599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
600
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
601
|
+
#
|
|
602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
603
|
+
# request = Google::Cloud::DocumentAI::V1beta3::CreateProcessorRequest.new
|
|
604
|
+
#
|
|
605
|
+
# # Call the create_processor method.
|
|
606
|
+
# result = client.create_processor request
|
|
607
|
+
#
|
|
608
|
+
# # The returned object is of type Google::Cloud::DocumentAI::V1beta3::Processor.
|
|
609
|
+
# p result
|
|
610
|
+
#
|
|
515
611
|
def create_processor request, options = nil
|
|
516
612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
517
613
|
|
|
@@ -529,9 +625,11 @@ module Google
|
|
|
529
625
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
530
626
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
531
627
|
|
|
532
|
-
header_params = {
|
|
533
|
-
|
|
534
|
-
|
|
628
|
+
header_params = {}
|
|
629
|
+
if request.parent
|
|
630
|
+
header_params["parent"] = request.parent
|
|
631
|
+
end
|
|
632
|
+
|
|
535
633
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
536
634
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
537
635
|
|
|
@@ -581,6 +679,28 @@ module Google
|
|
|
581
679
|
#
|
|
582
680
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
583
681
|
#
|
|
682
|
+
# @example Basic example
|
|
683
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
684
|
+
#
|
|
685
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
686
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
687
|
+
#
|
|
688
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
689
|
+
# request = Google::Cloud::DocumentAI::V1beta3::DeleteProcessorRequest.new
|
|
690
|
+
#
|
|
691
|
+
# # Call the delete_processor method.
|
|
692
|
+
# result = client.delete_processor request
|
|
693
|
+
#
|
|
694
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
695
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
696
|
+
# # for results. Here is how to block until completion:
|
|
697
|
+
# result.wait_until_done! timeout: 60
|
|
698
|
+
# if result.response?
|
|
699
|
+
# p result.response
|
|
700
|
+
# else
|
|
701
|
+
# puts "Error!"
|
|
702
|
+
# end
|
|
703
|
+
#
|
|
584
704
|
def delete_processor request, options = nil
|
|
585
705
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
586
706
|
|
|
@@ -598,9 +718,11 @@ module Google
|
|
|
598
718
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
599
719
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
600
720
|
|
|
601
|
-
header_params = {
|
|
602
|
-
|
|
603
|
-
|
|
721
|
+
header_params = {}
|
|
722
|
+
if request.name
|
|
723
|
+
header_params["name"] = request.name
|
|
724
|
+
end
|
|
725
|
+
|
|
604
726
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
605
727
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
606
728
|
|
|
@@ -650,6 +772,28 @@ module Google
|
|
|
650
772
|
#
|
|
651
773
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
652
774
|
#
|
|
775
|
+
# @example Basic example
|
|
776
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
777
|
+
#
|
|
778
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
779
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
780
|
+
#
|
|
781
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
782
|
+
# request = Google::Cloud::DocumentAI::V1beta3::EnableProcessorRequest.new
|
|
783
|
+
#
|
|
784
|
+
# # Call the enable_processor method.
|
|
785
|
+
# result = client.enable_processor request
|
|
786
|
+
#
|
|
787
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
788
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
789
|
+
# # for results. Here is how to block until completion:
|
|
790
|
+
# result.wait_until_done! timeout: 60
|
|
791
|
+
# if result.response?
|
|
792
|
+
# p result.response
|
|
793
|
+
# else
|
|
794
|
+
# puts "Error!"
|
|
795
|
+
# end
|
|
796
|
+
#
|
|
653
797
|
def enable_processor request, options = nil
|
|
654
798
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
655
799
|
|
|
@@ -667,9 +811,11 @@ module Google
|
|
|
667
811
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
668
812
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
669
813
|
|
|
670
|
-
header_params = {
|
|
671
|
-
|
|
672
|
-
|
|
814
|
+
header_params = {}
|
|
815
|
+
if request.name
|
|
816
|
+
header_params["name"] = request.name
|
|
817
|
+
end
|
|
818
|
+
|
|
673
819
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
674
820
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
675
821
|
|
|
@@ -719,6 +865,28 @@ module Google
|
|
|
719
865
|
#
|
|
720
866
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
721
867
|
#
|
|
868
|
+
# @example Basic example
|
|
869
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
870
|
+
#
|
|
871
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
872
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
873
|
+
#
|
|
874
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
875
|
+
# request = Google::Cloud::DocumentAI::V1beta3::DisableProcessorRequest.new
|
|
876
|
+
#
|
|
877
|
+
# # Call the disable_processor method.
|
|
878
|
+
# result = client.disable_processor request
|
|
879
|
+
#
|
|
880
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
881
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
882
|
+
# # for results. Here is how to block until completion:
|
|
883
|
+
# result.wait_until_done! timeout: 60
|
|
884
|
+
# if result.response?
|
|
885
|
+
# p result.response
|
|
886
|
+
# else
|
|
887
|
+
# puts "Error!"
|
|
888
|
+
# end
|
|
889
|
+
#
|
|
722
890
|
def disable_processor request, options = nil
|
|
723
891
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
724
892
|
|
|
@@ -736,9 +904,11 @@ module Google
|
|
|
736
904
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
737
905
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
738
906
|
|
|
739
|
-
header_params = {
|
|
740
|
-
|
|
741
|
-
|
|
907
|
+
header_params = {}
|
|
908
|
+
if request.name
|
|
909
|
+
header_params["name"] = request.name
|
|
910
|
+
end
|
|
911
|
+
|
|
742
912
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
743
913
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
744
914
|
|
|
@@ -798,6 +968,28 @@ module Google
|
|
|
798
968
|
#
|
|
799
969
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
800
970
|
#
|
|
971
|
+
# @example Basic example
|
|
972
|
+
# require "google/cloud/document_ai/v1beta3"
|
|
973
|
+
#
|
|
974
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
975
|
+
# client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Client.new
|
|
976
|
+
#
|
|
977
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
978
|
+
# request = Google::Cloud::DocumentAI::V1beta3::ReviewDocumentRequest.new
|
|
979
|
+
#
|
|
980
|
+
# # Call the review_document method.
|
|
981
|
+
# result = client.review_document request
|
|
982
|
+
#
|
|
983
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
984
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
985
|
+
# # for results. Here is how to block until completion:
|
|
986
|
+
# result.wait_until_done! timeout: 60
|
|
987
|
+
# if result.response?
|
|
988
|
+
# p result.response
|
|
989
|
+
# else
|
|
990
|
+
# puts "Error!"
|
|
991
|
+
# end
|
|
992
|
+
#
|
|
801
993
|
def review_document request, options = nil
|
|
802
994
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
803
995
|
|
|
@@ -815,9 +1007,11 @@ module Google
|
|
|
815
1007
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
816
1008
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
817
1009
|
|
|
818
|
-
header_params = {
|
|
819
|
-
|
|
820
|
-
|
|
1010
|
+
header_params = {}
|
|
1011
|
+
if request.human_review_config
|
|
1012
|
+
header_params["human_review_config"] = request.human_review_config
|
|
1013
|
+
end
|
|
1014
|
+
|
|
821
1015
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
822
1016
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
823
1017
|
|
|
@@ -143,6 +143,27 @@ module Google
|
|
|
143
143
|
#
|
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
145
145
|
#
|
|
146
|
+
# @example Basic example
|
|
147
|
+
# require "google/longrunning"
|
|
148
|
+
#
|
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
151
|
+
#
|
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
|
154
|
+
#
|
|
155
|
+
# # Call the list_operations method.
|
|
156
|
+
# result = client.list_operations request
|
|
157
|
+
#
|
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
|
161
|
+
# # methods are also available for managing paging directly.
|
|
162
|
+
# result.each do |response|
|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
|
164
|
+
# p response
|
|
165
|
+
# end
|
|
166
|
+
#
|
|
146
167
|
def list_operations request, options = nil
|
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
148
169
|
|
|
@@ -160,9 +181,11 @@ module Google
|
|
|
160
181
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
162
183
|
|
|
163
|
-
header_params = {
|
|
164
|
-
|
|
165
|
-
|
|
184
|
+
header_params = {}
|
|
185
|
+
if request.name
|
|
186
|
+
header_params["name"] = request.name
|
|
187
|
+
end
|
|
188
|
+
|
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
168
191
|
|
|
@@ -215,6 +238,28 @@ module Google
|
|
|
215
238
|
#
|
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
217
240
|
#
|
|
241
|
+
# @example Basic example
|
|
242
|
+
# require "google/longrunning"
|
|
243
|
+
#
|
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
246
|
+
#
|
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
|
249
|
+
#
|
|
250
|
+
# # Call the get_operation method.
|
|
251
|
+
# result = client.get_operation request
|
|
252
|
+
#
|
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
255
|
+
# # for results. Here is how to block until completion:
|
|
256
|
+
# result.wait_until_done! timeout: 60
|
|
257
|
+
# if result.response?
|
|
258
|
+
# p result.response
|
|
259
|
+
# else
|
|
260
|
+
# puts "Error!"
|
|
261
|
+
# end
|
|
262
|
+
#
|
|
218
263
|
def get_operation request, options = nil
|
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
220
265
|
|
|
@@ -232,9 +277,11 @@ module Google
|
|
|
232
277
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
234
279
|
|
|
235
|
-
header_params = {
|
|
236
|
-
|
|
237
|
-
|
|
280
|
+
header_params = {}
|
|
281
|
+
if request.name
|
|
282
|
+
header_params["name"] = request.name
|
|
283
|
+
end
|
|
284
|
+
|
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
240
287
|
|
|
@@ -287,6 +334,21 @@ module Google
|
|
|
287
334
|
#
|
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
289
336
|
#
|
|
337
|
+
# @example Basic example
|
|
338
|
+
# require "google/longrunning"
|
|
339
|
+
#
|
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
342
|
+
#
|
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
|
345
|
+
#
|
|
346
|
+
# # Call the delete_operation method.
|
|
347
|
+
# result = client.delete_operation request
|
|
348
|
+
#
|
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
350
|
+
# p result
|
|
351
|
+
#
|
|
290
352
|
def delete_operation request, options = nil
|
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
292
354
|
|
|
@@ -304,9 +366,11 @@ module Google
|
|
|
304
366
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
306
368
|
|
|
307
|
-
header_params = {
|
|
308
|
-
|
|
309
|
-
|
|
369
|
+
header_params = {}
|
|
370
|
+
if request.name
|
|
371
|
+
header_params["name"] = request.name
|
|
372
|
+
end
|
|
373
|
+
|
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
312
376
|
|
|
@@ -364,6 +428,21 @@ module Google
|
|
|
364
428
|
#
|
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
366
430
|
#
|
|
431
|
+
# @example Basic example
|
|
432
|
+
# require "google/longrunning"
|
|
433
|
+
#
|
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
436
|
+
#
|
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
|
439
|
+
#
|
|
440
|
+
# # Call the cancel_operation method.
|
|
441
|
+
# result = client.cancel_operation request
|
|
442
|
+
#
|
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
444
|
+
# p result
|
|
445
|
+
#
|
|
367
446
|
def cancel_operation request, options = nil
|
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
369
448
|
|
|
@@ -381,9 +460,11 @@ module Google
|
|
|
381
460
|
gapic_version: ::Google::Cloud::DocumentAI::V1beta3::VERSION
|
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
383
462
|
|
|
384
|
-
header_params = {
|
|
385
|
-
|
|
386
|
-
|
|
463
|
+
header_params = {}
|
|
464
|
+
if request.name
|
|
465
|
+
header_params["name"] = request.name
|
|
466
|
+
end
|
|
467
|
+
|
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
|
389
470
|
|
|
@@ -444,6 +525,28 @@ module Google
|
|
|
444
525
|
#
|
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
|
446
527
|
#
|
|
528
|
+
# @example Basic example
|
|
529
|
+
# require "google/longrunning"
|
|
530
|
+
#
|
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
|
533
|
+
#
|
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
|
536
|
+
#
|
|
537
|
+
# # Call the wait_operation method.
|
|
538
|
+
# result = client.wait_operation request
|
|
539
|
+
#
|
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
|
542
|
+
# # for results. Here is how to block until completion:
|
|
543
|
+
# result.wait_until_done! timeout: 60
|
|
544
|
+
# if result.response?
|
|
545
|
+
# p result.response
|
|
546
|
+
# else
|
|
547
|
+
# puts "Error!"
|
|
548
|
+
# end
|
|
549
|
+
#
|
|
447
550
|
def wait_operation request, options = nil
|
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
449
552
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/document_io.proto
|
|
3
3
|
|
|
4
|
+
require 'google/api/annotations_pb'
|
|
4
5
|
require 'google/protobuf'
|
|
5
6
|
|
|
6
|
-
require 'google/api/annotations_pb'
|
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
8
8
|
add_file("google/cloud/documentai/v1beta3/document_io.proto", :syntax => :proto3) do
|
|
9
9
|
add_message "google.cloud.documentai.v1beta3.RawDocument" do
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/document.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/field_behavior_pb'
|
|
7
5
|
require 'google/cloud/documentai/v1beta3/geometry_pb'
|
|
8
6
|
require 'google/protobuf/timestamp_pb'
|
|
@@ -13,6 +11,8 @@ require 'google/type/datetime_pb'
|
|
|
13
11
|
require 'google/type/money_pb'
|
|
14
12
|
require 'google/type/postal_address_pb'
|
|
15
13
|
require 'google/api/annotations_pb'
|
|
14
|
+
require 'google/protobuf'
|
|
15
|
+
|
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
17
17
|
add_file("google/cloud/documentai/v1beta3/document.proto", :syntax => :proto3) do
|
|
18
18
|
add_message "google.cloud.documentai.v1beta3.Document" do
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/document_processor_service.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/annotations_pb'
|
|
7
5
|
require 'google/api/client_pb'
|
|
8
6
|
require 'google/api/field_behavior_pb'
|
|
@@ -16,6 +14,8 @@ require 'google/longrunning/operations_pb'
|
|
|
16
14
|
require 'google/protobuf/field_mask_pb'
|
|
17
15
|
require 'google/protobuf/timestamp_pb'
|
|
18
16
|
require 'google/rpc/status_pb'
|
|
17
|
+
require 'google/protobuf'
|
|
18
|
+
|
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
20
20
|
add_file("google/cloud/documentai/v1beta3/document_processor_service.proto", :syntax => :proto3) do
|
|
21
21
|
add_message "google.cloud.documentai.v1beta3.ProcessRequest" do
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/geometry.proto
|
|
3
3
|
|
|
4
|
+
require 'google/api/annotations_pb'
|
|
4
5
|
require 'google/protobuf'
|
|
5
6
|
|
|
6
|
-
require 'google/api/annotations_pb'
|
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
8
8
|
add_file("google/cloud/documentai/v1beta3/geometry.proto", :syntax => :proto3) do
|
|
9
9
|
add_message "google.cloud.documentai.v1beta3.Vertex" do
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/operation_metadata.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/protobuf/timestamp_pb'
|
|
7
5
|
require 'google/api/annotations_pb'
|
|
6
|
+
require 'google/protobuf'
|
|
7
|
+
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
9
|
add_file("google/cloud/documentai/v1beta3/operation_metadata.proto", :syntax => :proto3) do
|
|
10
10
|
add_message "google.cloud.documentai.v1beta3.CommonOperationMetadata" do
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/processor.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/field_behavior_pb'
|
|
7
5
|
require 'google/api/resource_pb'
|
|
8
6
|
require 'google/cloud/documentai/v1beta3/document_io_pb'
|
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
|
10
8
|
require 'google/api/annotations_pb'
|
|
9
|
+
require 'google/protobuf'
|
|
10
|
+
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
12
|
add_file("google/cloud/documentai/v1beta3/processor.proto", :syntax => :proto3) do
|
|
13
13
|
add_message "google.cloud.documentai.v1beta3.Processor" do
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
2
|
# source: google/cloud/documentai/v1beta3/processor_type.proto
|
|
3
3
|
|
|
4
|
-
require 'google/protobuf'
|
|
5
|
-
|
|
6
4
|
require 'google/api/resource_pb'
|
|
7
5
|
require 'google/api/annotations_pb'
|
|
6
|
+
require 'google/protobuf'
|
|
7
|
+
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
9
9
|
add_file("google/cloud/documentai/v1beta3/processor_type.proto", :syntax => :proto3) do
|
|
10
10
|
add_message "google.cloud.documentai.v1beta3.ProcessorType" do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-document_ai-v1beta3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-08
|
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|