google-cloud-document_ai-v1beta3 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 862dff0c398d9cde485ea687836cc8f545419df08ca1a7244c456fd6ed80b949
4
- data.tar.gz: a86ffaa639b4446d477f30628f9f9cfc01c14251b7afa3b201b11bf0e9f0fb9f
3
+ metadata.gz: 60a5e738246339ac729ac2c314ee99b29cde12b71ba0cf15d2ff1391907a5946
4
+ data.tar.gz: 9b5abfad5cdf7ec4c2d2a802ba98a04d51470284abaed92860be43504eda6006
5
5
  SHA512:
6
- metadata.gz: c1fd5961a5360be321993039116e5203594d2e85c734a9e8a88ac926921aaf5876dce78a277275fe5f6b5ebda5907297567df86bc9975e0582f51d14cd6c1674
7
- data.tar.gz: 6b9a7c0d3748f70a3fa07692e409fd334edbcd7e0455110db52e03f6e81676f875b92e9e99261add25427a95d8d1b631208991ed6af527244c84afa0d033c286
6
+ metadata.gz: 53131ab92cdf7e97dc3d5c1b6d0e80b484df9fb2cb0ae86c12e98e8d24655ca327207aa576dd0490377e19032fbb0130eebb3ce86bdf0d72e4ca3e0c6c1650d0
7
+ data.tar.gz: 56138da545556fdbbb414a0d3ee48c4daf579bc804cd6673f5d326096b776273944b170201b8806e829646fc91775e935581dc54d8501553dc7fd7f94306c43b
@@ -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
 
@@ -2538,6 +2539,14 @@ module Google
2538
2539
  end
2539
2540
  end
2540
2541
 
2542
+ ##
2543
+ # Configuration for the channel pool
2544
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2545
+ #
2546
+ def channel_pool
2547
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2548
+ end
2549
+
2541
2550
  ##
2542
2551
  # Configuration RPC class for the DocumentProcessorService API.
2543
2552
  #
@@ -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
  #
@@ -238,6 +238,22 @@ module Google
238
238
  # @return [::Google::Cloud::DocumentAI::V1beta3::ProcessResponse]
239
239
  #
240
240
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
241
+ #
242
+ # @example Basic example
243
+ # require "google/cloud/document_ai/v1beta3"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Cloud::DocumentAI::V1beta3::ProcessRequest.new
250
+ #
251
+ # # Call the process_document method.
252
+ # result = client.process_document request
253
+ #
254
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::ProcessResponse.
255
+ # p result
256
+ #
241
257
  def process_document request, options = nil
242
258
  raise ::ArgumentError, "request must be provided" if request.nil?
243
259
 
@@ -323,6 +339,29 @@ module Google
323
339
  # @return [::Gapic::Operation]
324
340
  #
325
341
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
342
+ #
343
+ # @example Basic example
344
+ # require "google/cloud/document_ai/v1beta3"
345
+ #
346
+ # # Create a client object. The client can be reused for multiple calls.
347
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
348
+ #
349
+ # # Create a request. To set request fields, pass in keyword arguments.
350
+ # request = Google::Cloud::DocumentAI::V1beta3::BatchProcessRequest.new
351
+ #
352
+ # # Call the batch_process_documents method.
353
+ # result = client.batch_process_documents request
354
+ #
355
+ # # The returned object is of type Gapic::Operation. You can use it to
356
+ # # check the status of an operation, cancel it, or wait for results.
357
+ # # Here is how to wait for a response.
358
+ # result.wait_until_done! timeout: 60
359
+ # if result.response?
360
+ # p result.response
361
+ # else
362
+ # puts "No response received."
363
+ # end
364
+ #
326
365
  def batch_process_documents request, options = nil
327
366
  raise ::ArgumentError, "request must be provided" if request.nil?
328
367
 
@@ -389,6 +428,22 @@ module Google
389
428
  # @return [::Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesResponse]
390
429
  #
391
430
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
431
+ #
432
+ # @example Basic example
433
+ # require "google/cloud/document_ai/v1beta3"
434
+ #
435
+ # # Create a client object. The client can be reused for multiple calls.
436
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
437
+ #
438
+ # # Create a request. To set request fields, pass in keyword arguments.
439
+ # request = Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesRequest.new
440
+ #
441
+ # # Call the fetch_processor_types method.
442
+ # result = client.fetch_processor_types request
443
+ #
444
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::FetchProcessorTypesResponse.
445
+ # p result
446
+ #
392
447
  def fetch_processor_types request, options = nil
393
448
  raise ::ArgumentError, "request must be provided" if request.nil?
394
449
 
@@ -458,6 +513,26 @@ module Google
458
513
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::ProcessorType>]
459
514
  #
460
515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
516
+ #
517
+ # @example Basic example
518
+ # require "google/cloud/document_ai/v1beta3"
519
+ #
520
+ # # Create a client object. The client can be reused for multiple calls.
521
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
522
+ #
523
+ # # Create a request. To set request fields, pass in keyword arguments.
524
+ # request = Google::Cloud::DocumentAI::V1beta3::ListProcessorTypesRequest.new
525
+ #
526
+ # # Call the list_processor_types method.
527
+ # result = client.list_processor_types request
528
+ #
529
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
530
+ # # over elements, and API calls will be issued to fetch pages as needed.
531
+ # result.each do |item|
532
+ # # Each element is of type ::Google::Cloud::DocumentAI::V1beta3::ProcessorType.
533
+ # p item
534
+ # end
535
+ #
461
536
  def list_processor_types request, options = nil
462
537
  raise ::ArgumentError, "request must be provided" if request.nil?
463
538
 
@@ -521,6 +596,22 @@ module Google
521
596
  # @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorType]
522
597
  #
523
598
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
599
+ #
600
+ # @example Basic example
601
+ # require "google/cloud/document_ai/v1beta3"
602
+ #
603
+ # # Create a client object. The client can be reused for multiple calls.
604
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
605
+ #
606
+ # # Create a request. To set request fields, pass in keyword arguments.
607
+ # request = Google::Cloud::DocumentAI::V1beta3::GetProcessorTypeRequest.new
608
+ #
609
+ # # Call the get_processor_type method.
610
+ # result = client.get_processor_type request
611
+ #
612
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::ProcessorType.
613
+ # p result
614
+ #
524
615
  def get_processor_type request, options = nil
525
616
  raise ::ArgumentError, "request must be provided" if request.nil?
526
617
 
@@ -591,6 +682,26 @@ module Google
591
682
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::Processor>]
592
683
  #
593
684
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
685
+ #
686
+ # @example Basic example
687
+ # require "google/cloud/document_ai/v1beta3"
688
+ #
689
+ # # Create a client object. The client can be reused for multiple calls.
690
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
691
+ #
692
+ # # Create a request. To set request fields, pass in keyword arguments.
693
+ # request = Google::Cloud::DocumentAI::V1beta3::ListProcessorsRequest.new
694
+ #
695
+ # # Call the list_processors method.
696
+ # result = client.list_processors request
697
+ #
698
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
699
+ # # over elements, and API calls will be issued to fetch pages as needed.
700
+ # result.each do |item|
701
+ # # Each element is of type ::Google::Cloud::DocumentAI::V1beta3::Processor.
702
+ # p item
703
+ # end
704
+ #
594
705
  def list_processors request, options = nil
595
706
  raise ::ArgumentError, "request must be provided" if request.nil?
596
707
 
@@ -654,6 +765,22 @@ module Google
654
765
  # @return [::Google::Cloud::DocumentAI::V1beta3::Processor]
655
766
  #
656
767
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
768
+ #
769
+ # @example Basic example
770
+ # require "google/cloud/document_ai/v1beta3"
771
+ #
772
+ # # Create a client object. The client can be reused for multiple calls.
773
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
774
+ #
775
+ # # Create a request. To set request fields, pass in keyword arguments.
776
+ # request = Google::Cloud::DocumentAI::V1beta3::GetProcessorRequest.new
777
+ #
778
+ # # Call the get_processor method.
779
+ # result = client.get_processor request
780
+ #
781
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::Processor.
782
+ # p result
783
+ #
657
784
  def get_processor request, options = nil
658
785
  raise ::ArgumentError, "request must be provided" if request.nil?
659
786
 
@@ -733,6 +860,29 @@ module Google
733
860
  # @return [::Gapic::Operation]
734
861
  #
735
862
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
863
+ #
864
+ # @example Basic example
865
+ # require "google/cloud/document_ai/v1beta3"
866
+ #
867
+ # # Create a client object. The client can be reused for multiple calls.
868
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
869
+ #
870
+ # # Create a request. To set request fields, pass in keyword arguments.
871
+ # request = Google::Cloud::DocumentAI::V1beta3::TrainProcessorVersionRequest.new
872
+ #
873
+ # # Call the train_processor_version method.
874
+ # result = client.train_processor_version request
875
+ #
876
+ # # The returned object is of type Gapic::Operation. You can use it to
877
+ # # check the status of an operation, cancel it, or wait for results.
878
+ # # Here is how to wait for a response.
879
+ # result.wait_until_done! timeout: 60
880
+ # if result.response?
881
+ # p result.response
882
+ # else
883
+ # puts "No response received."
884
+ # end
885
+ #
736
886
  def train_processor_version request, options = nil
737
887
  raise ::ArgumentError, "request must be provided" if request.nil?
738
888
 
@@ -796,6 +946,22 @@ module Google
796
946
  # @return [::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion]
797
947
  #
798
948
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
949
+ #
950
+ # @example Basic example
951
+ # require "google/cloud/document_ai/v1beta3"
952
+ #
953
+ # # Create a client object. The client can be reused for multiple calls.
954
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
955
+ #
956
+ # # Create a request. To set request fields, pass in keyword arguments.
957
+ # request = Google::Cloud::DocumentAI::V1beta3::GetProcessorVersionRequest.new
958
+ #
959
+ # # Call the get_processor_version method.
960
+ # result = client.get_processor_version request
961
+ #
962
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::ProcessorVersion.
963
+ # p result
964
+ #
799
965
  def get_processor_version request, options = nil
800
966
  raise ::ArgumentError, "request must be provided" if request.nil?
801
967
 
@@ -867,6 +1033,26 @@ module Google
867
1033
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion>]
868
1034
  #
869
1035
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1036
+ #
1037
+ # @example Basic example
1038
+ # require "google/cloud/document_ai/v1beta3"
1039
+ #
1040
+ # # Create a client object. The client can be reused for multiple calls.
1041
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1042
+ #
1043
+ # # Create a request. To set request fields, pass in keyword arguments.
1044
+ # request = Google::Cloud::DocumentAI::V1beta3::ListProcessorVersionsRequest.new
1045
+ #
1046
+ # # Call the list_processor_versions method.
1047
+ # result = client.list_processor_versions request
1048
+ #
1049
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1050
+ # # over elements, and API calls will be issued to fetch pages as needed.
1051
+ # result.each do |item|
1052
+ # # Each element is of type ::Google::Cloud::DocumentAI::V1beta3::ProcessorVersion.
1053
+ # p item
1054
+ # end
1055
+ #
870
1056
  def list_processor_versions request, options = nil
871
1057
  raise ::ArgumentError, "request must be provided" if request.nil?
872
1058
 
@@ -931,6 +1117,29 @@ module Google
931
1117
  # @return [::Gapic::Operation]
932
1118
  #
933
1119
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1120
+ #
1121
+ # @example Basic example
1122
+ # require "google/cloud/document_ai/v1beta3"
1123
+ #
1124
+ # # Create a client object. The client can be reused for multiple calls.
1125
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1126
+ #
1127
+ # # Create a request. To set request fields, pass in keyword arguments.
1128
+ # request = Google::Cloud::DocumentAI::V1beta3::DeleteProcessorVersionRequest.new
1129
+ #
1130
+ # # Call the delete_processor_version method.
1131
+ # result = client.delete_processor_version request
1132
+ #
1133
+ # # The returned object is of type Gapic::Operation. You can use it to
1134
+ # # check the status of an operation, cancel it, or wait for results.
1135
+ # # Here is how to wait for a response.
1136
+ # result.wait_until_done! timeout: 60
1137
+ # if result.response?
1138
+ # p result.response
1139
+ # else
1140
+ # puts "No response received."
1141
+ # end
1142
+ #
934
1143
  def delete_processor_version request, options = nil
935
1144
  raise ::ArgumentError, "request must be provided" if request.nil?
936
1145
 
@@ -994,6 +1203,29 @@ module Google
994
1203
  # @return [::Gapic::Operation]
995
1204
  #
996
1205
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1206
+ #
1207
+ # @example Basic example
1208
+ # require "google/cloud/document_ai/v1beta3"
1209
+ #
1210
+ # # Create a client object. The client can be reused for multiple calls.
1211
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1212
+ #
1213
+ # # Create a request. To set request fields, pass in keyword arguments.
1214
+ # request = Google::Cloud::DocumentAI::V1beta3::DeployProcessorVersionRequest.new
1215
+ #
1216
+ # # Call the deploy_processor_version method.
1217
+ # result = client.deploy_processor_version request
1218
+ #
1219
+ # # The returned object is of type Gapic::Operation. You can use it to
1220
+ # # check the status of an operation, cancel it, or wait for results.
1221
+ # # Here is how to wait for a response.
1222
+ # result.wait_until_done! timeout: 60
1223
+ # if result.response?
1224
+ # p result.response
1225
+ # else
1226
+ # puts "No response received."
1227
+ # end
1228
+ #
997
1229
  def deploy_processor_version request, options = nil
998
1230
  raise ::ArgumentError, "request must be provided" if request.nil?
999
1231
 
@@ -1057,6 +1289,29 @@ module Google
1057
1289
  # @return [::Gapic::Operation]
1058
1290
  #
1059
1291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1292
+ #
1293
+ # @example Basic example
1294
+ # require "google/cloud/document_ai/v1beta3"
1295
+ #
1296
+ # # Create a client object. The client can be reused for multiple calls.
1297
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1298
+ #
1299
+ # # Create a request. To set request fields, pass in keyword arguments.
1300
+ # request = Google::Cloud::DocumentAI::V1beta3::UndeployProcessorVersionRequest.new
1301
+ #
1302
+ # # Call the undeploy_processor_version method.
1303
+ # result = client.undeploy_processor_version request
1304
+ #
1305
+ # # The returned object is of type Gapic::Operation. You can use it to
1306
+ # # check the status of an operation, cancel it, or wait for results.
1307
+ # # Here is how to wait for a response.
1308
+ # result.wait_until_done! timeout: 60
1309
+ # if result.response?
1310
+ # p result.response
1311
+ # else
1312
+ # puts "No response received."
1313
+ # end
1314
+ #
1060
1315
  def undeploy_processor_version request, options = nil
1061
1316
  raise ::ArgumentError, "request must be provided" if request.nil?
1062
1317
 
@@ -1129,6 +1384,22 @@ module Google
1129
1384
  # @return [::Google::Cloud::DocumentAI::V1beta3::Processor]
1130
1385
  #
1131
1386
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1387
+ #
1388
+ # @example Basic example
1389
+ # require "google/cloud/document_ai/v1beta3"
1390
+ #
1391
+ # # Create a client object. The client can be reused for multiple calls.
1392
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1393
+ #
1394
+ # # Create a request. To set request fields, pass in keyword arguments.
1395
+ # request = Google::Cloud::DocumentAI::V1beta3::CreateProcessorRequest.new
1396
+ #
1397
+ # # Call the create_processor method.
1398
+ # result = client.create_processor request
1399
+ #
1400
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::Processor.
1401
+ # p result
1402
+ #
1132
1403
  def create_processor request, options = nil
1133
1404
  raise ::ArgumentError, "request must be provided" if request.nil?
1134
1405
 
@@ -1192,6 +1463,29 @@ module Google
1192
1463
  # @return [::Gapic::Operation]
1193
1464
  #
1194
1465
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1466
+ #
1467
+ # @example Basic example
1468
+ # require "google/cloud/document_ai/v1beta3"
1469
+ #
1470
+ # # Create a client object. The client can be reused for multiple calls.
1471
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1472
+ #
1473
+ # # Create a request. To set request fields, pass in keyword arguments.
1474
+ # request = Google::Cloud::DocumentAI::V1beta3::DeleteProcessorRequest.new
1475
+ #
1476
+ # # Call the delete_processor method.
1477
+ # result = client.delete_processor request
1478
+ #
1479
+ # # The returned object is of type Gapic::Operation. You can use it to
1480
+ # # check the status of an operation, cancel it, or wait for results.
1481
+ # # Here is how to wait for a response.
1482
+ # result.wait_until_done! timeout: 60
1483
+ # if result.response?
1484
+ # p result.response
1485
+ # else
1486
+ # puts "No response received."
1487
+ # end
1488
+ #
1195
1489
  def delete_processor request, options = nil
1196
1490
  raise ::ArgumentError, "request must be provided" if request.nil?
1197
1491
 
@@ -1255,6 +1549,29 @@ module Google
1255
1549
  # @return [::Gapic::Operation]
1256
1550
  #
1257
1551
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1552
+ #
1553
+ # @example Basic example
1554
+ # require "google/cloud/document_ai/v1beta3"
1555
+ #
1556
+ # # Create a client object. The client can be reused for multiple calls.
1557
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1558
+ #
1559
+ # # Create a request. To set request fields, pass in keyword arguments.
1560
+ # request = Google::Cloud::DocumentAI::V1beta3::EnableProcessorRequest.new
1561
+ #
1562
+ # # Call the enable_processor method.
1563
+ # result = client.enable_processor request
1564
+ #
1565
+ # # The returned object is of type Gapic::Operation. You can use it to
1566
+ # # check the status of an operation, cancel it, or wait for results.
1567
+ # # Here is how to wait for a response.
1568
+ # result.wait_until_done! timeout: 60
1569
+ # if result.response?
1570
+ # p result.response
1571
+ # else
1572
+ # puts "No response received."
1573
+ # end
1574
+ #
1258
1575
  def enable_processor request, options = nil
1259
1576
  raise ::ArgumentError, "request must be provided" if request.nil?
1260
1577
 
@@ -1318,6 +1635,29 @@ module Google
1318
1635
  # @return [::Gapic::Operation]
1319
1636
  #
1320
1637
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1638
+ #
1639
+ # @example Basic example
1640
+ # require "google/cloud/document_ai/v1beta3"
1641
+ #
1642
+ # # Create a client object. The client can be reused for multiple calls.
1643
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1644
+ #
1645
+ # # Create a request. To set request fields, pass in keyword arguments.
1646
+ # request = Google::Cloud::DocumentAI::V1beta3::DisableProcessorRequest.new
1647
+ #
1648
+ # # Call the disable_processor method.
1649
+ # result = client.disable_processor request
1650
+ #
1651
+ # # The returned object is of type Gapic::Operation. You can use it to
1652
+ # # check the status of an operation, cancel it, or wait for results.
1653
+ # # Here is how to wait for a response.
1654
+ # result.wait_until_done! timeout: 60
1655
+ # if result.response?
1656
+ # p result.response
1657
+ # else
1658
+ # puts "No response received."
1659
+ # end
1660
+ #
1321
1661
  def disable_processor request, options = nil
1322
1662
  raise ::ArgumentError, "request must be provided" if request.nil?
1323
1663
 
@@ -1392,6 +1732,29 @@ module Google
1392
1732
  # @return [::Gapic::Operation]
1393
1733
  #
1394
1734
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1735
+ #
1736
+ # @example Basic example
1737
+ # require "google/cloud/document_ai/v1beta3"
1738
+ #
1739
+ # # Create a client object. The client can be reused for multiple calls.
1740
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1741
+ #
1742
+ # # Create a request. To set request fields, pass in keyword arguments.
1743
+ # request = Google::Cloud::DocumentAI::V1beta3::SetDefaultProcessorVersionRequest.new
1744
+ #
1745
+ # # Call the set_default_processor_version method.
1746
+ # result = client.set_default_processor_version request
1747
+ #
1748
+ # # The returned object is of type Gapic::Operation. You can use it to
1749
+ # # check the status of an operation, cancel it, or wait for results.
1750
+ # # Here is how to wait for a response.
1751
+ # result.wait_until_done! timeout: 60
1752
+ # if result.response?
1753
+ # p result.response
1754
+ # else
1755
+ # puts "No response received."
1756
+ # end
1757
+ #
1395
1758
  def set_default_processor_version request, options = nil
1396
1759
  raise ::ArgumentError, "request must be provided" if request.nil?
1397
1760
 
@@ -1468,6 +1831,29 @@ module Google
1468
1831
  # @return [::Gapic::Operation]
1469
1832
  #
1470
1833
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1834
+ #
1835
+ # @example Basic example
1836
+ # require "google/cloud/document_ai/v1beta3"
1837
+ #
1838
+ # # Create a client object. The client can be reused for multiple calls.
1839
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1840
+ #
1841
+ # # Create a request. To set request fields, pass in keyword arguments.
1842
+ # request = Google::Cloud::DocumentAI::V1beta3::ReviewDocumentRequest.new
1843
+ #
1844
+ # # Call the review_document method.
1845
+ # result = client.review_document request
1846
+ #
1847
+ # # The returned object is of type Gapic::Operation. You can use it to
1848
+ # # check the status of an operation, cancel it, or wait for results.
1849
+ # # Here is how to wait for a response.
1850
+ # result.wait_until_done! timeout: 60
1851
+ # if result.response?
1852
+ # p result.response
1853
+ # else
1854
+ # puts "No response received."
1855
+ # end
1856
+ #
1471
1857
  def review_document request, options = nil
1472
1858
  raise ::ArgumentError, "request must be provided" if request.nil?
1473
1859
 
@@ -1538,6 +1924,29 @@ module Google
1538
1924
  # @return [::Gapic::Operation]
1539
1925
  #
1540
1926
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1927
+ #
1928
+ # @example Basic example
1929
+ # require "google/cloud/document_ai/v1beta3"
1930
+ #
1931
+ # # Create a client object. The client can be reused for multiple calls.
1932
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
1933
+ #
1934
+ # # Create a request. To set request fields, pass in keyword arguments.
1935
+ # request = Google::Cloud::DocumentAI::V1beta3::EvaluateProcessorVersionRequest.new
1936
+ #
1937
+ # # Call the evaluate_processor_version method.
1938
+ # result = client.evaluate_processor_version request
1939
+ #
1940
+ # # The returned object is of type Gapic::Operation. You can use it to
1941
+ # # check the status of an operation, cancel it, or wait for results.
1942
+ # # Here is how to wait for a response.
1943
+ # result.wait_until_done! timeout: 60
1944
+ # if result.response?
1945
+ # p result.response
1946
+ # else
1947
+ # puts "No response received."
1948
+ # end
1949
+ #
1541
1950
  def evaluate_processor_version request, options = nil
1542
1951
  raise ::ArgumentError, "request must be provided" if request.nil?
1543
1952
 
@@ -1603,6 +2012,22 @@ module Google
1603
2012
  # @return [::Google::Cloud::DocumentAI::V1beta3::Evaluation]
1604
2013
  #
1605
2014
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2015
+ #
2016
+ # @example Basic example
2017
+ # require "google/cloud/document_ai/v1beta3"
2018
+ #
2019
+ # # Create a client object. The client can be reused for multiple calls.
2020
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
2021
+ #
2022
+ # # Create a request. To set request fields, pass in keyword arguments.
2023
+ # request = Google::Cloud::DocumentAI::V1beta3::GetEvaluationRequest.new
2024
+ #
2025
+ # # Call the get_evaluation method.
2026
+ # result = client.get_evaluation request
2027
+ #
2028
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::Evaluation.
2029
+ # p result
2030
+ #
1606
2031
  def get_evaluation request, options = nil
1607
2032
  raise ::ArgumentError, "request must be provided" if request.nil?
1608
2033
 
@@ -1675,6 +2100,26 @@ module Google
1675
2100
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::DocumentAI::V1beta3::Evaluation>]
1676
2101
  #
1677
2102
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2103
+ #
2104
+ # @example Basic example
2105
+ # require "google/cloud/document_ai/v1beta3"
2106
+ #
2107
+ # # Create a client object. The client can be reused for multiple calls.
2108
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
2109
+ #
2110
+ # # Create a request. To set request fields, pass in keyword arguments.
2111
+ # request = Google::Cloud::DocumentAI::V1beta3::ListEvaluationsRequest.new
2112
+ #
2113
+ # # Call the list_evaluations method.
2114
+ # result = client.list_evaluations request
2115
+ #
2116
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2117
+ # # over elements, and API calls will be issued to fetch pages as needed.
2118
+ # result.each do |item|
2119
+ # # Each element is of type ::Google::Cloud::DocumentAI::V1beta3::Evaluation.
2120
+ # p item
2121
+ # end
2122
+ #
1678
2123
  def list_evaluations request, options = nil
1679
2124
  raise ::ArgumentError, "request must be provided" if request.nil?
1680
2125
 
@@ -1746,6 +2191,29 @@ module Google
1746
2191
  # @return [::Gapic::Operation]
1747
2192
  #
1748
2193
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2194
+ #
2195
+ # @example Basic example
2196
+ # require "google/cloud/document_ai/v1beta3"
2197
+ #
2198
+ # # Create a client object. The client can be reused for multiple calls.
2199
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentProcessorService::Rest::Client.new
2200
+ #
2201
+ # # Create a request. To set request fields, pass in keyword arguments.
2202
+ # request = Google::Cloud::DocumentAI::V1beta3::ImportProcessorVersionRequest.new
2203
+ #
2204
+ # # Call the import_processor_version method.
2205
+ # result = client.import_processor_version request
2206
+ #
2207
+ # # The returned object is of type Gapic::Operation. You can use it to
2208
+ # # check the status of an operation, cancel it, or wait for results.
2209
+ # # Here is how to wait for a response.
2210
+ # result.wait_until_done! timeout: 60
2211
+ # if result.response?
2212
+ # p result.response
2213
+ # else
2214
+ # puts "No response received."
2215
+ # end
2216
+ #
1749
2217
  def import_processor_version request, options = nil
1750
2218
  raise ::ArgumentError, "request must be provided" if request.nil?
1751
2219
 
@@ -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
 
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -856,6 +857,14 @@ module Google
856
857
  end
857
858
  end
858
859
 
860
+ ##
861
+ # Configuration for the channel pool
862
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
863
+ #
864
+ def channel_pool
865
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
866
+ end
867
+
859
868
  ##
860
869
  # Configuration RPC class for the DocumentService API.
861
870
  #
@@ -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
  #
@@ -193,6 +193,29 @@ module Google
193
193
  # @return [::Gapic::Operation]
194
194
  #
195
195
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
196
+ #
197
+ # @example Basic example
198
+ # require "google/cloud/document_ai/v1beta3"
199
+ #
200
+ # # Create a client object. The client can be reused for multiple calls.
201
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
202
+ #
203
+ # # Create a request. To set request fields, pass in keyword arguments.
204
+ # request = Google::Cloud::DocumentAI::V1beta3::UpdateDatasetRequest.new
205
+ #
206
+ # # Call the update_dataset method.
207
+ # result = client.update_dataset request
208
+ #
209
+ # # The returned object is of type Gapic::Operation. You can use it to
210
+ # # check the status of an operation, cancel it, or wait for results.
211
+ # # Here is how to wait for a response.
212
+ # result.wait_until_done! timeout: 60
213
+ # if result.response?
214
+ # p result.response
215
+ # else
216
+ # puts "No response received."
217
+ # end
218
+ #
196
219
  def update_dataset request, options = nil
197
220
  raise ::ArgumentError, "request must be provided" if request.nil?
198
221
 
@@ -261,6 +284,29 @@ module Google
261
284
  # @return [::Gapic::Operation]
262
285
  #
263
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/cloud/document_ai/v1beta3"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::DocumentAI::V1beta3::ImportDocumentsRequest.new
296
+ #
297
+ # # Call the import_documents method.
298
+ # result = client.import_documents request
299
+ #
300
+ # # The returned object is of type Gapic::Operation. You can use it to
301
+ # # check the status of an operation, cancel it, or wait for results.
302
+ # # Here is how to wait for a response.
303
+ # result.wait_until_done! timeout: 60
304
+ # if result.response?
305
+ # p result.response
306
+ # else
307
+ # puts "No response received."
308
+ # end
309
+ #
264
310
  def import_documents request, options = nil
265
311
  raise ::ArgumentError, "request must be provided" if request.nil?
266
312
 
@@ -334,6 +380,22 @@ module Google
334
380
  # @return [::Google::Cloud::DocumentAI::V1beta3::GetDocumentResponse]
335
381
  #
336
382
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
383
+ #
384
+ # @example Basic example
385
+ # require "google/cloud/document_ai/v1beta3"
386
+ #
387
+ # # Create a client object. The client can be reused for multiple calls.
388
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
389
+ #
390
+ # # Create a request. To set request fields, pass in keyword arguments.
391
+ # request = Google::Cloud::DocumentAI::V1beta3::GetDocumentRequest.new
392
+ #
393
+ # # Call the get_document method.
394
+ # result = client.get_document request
395
+ #
396
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::GetDocumentResponse.
397
+ # p result
398
+ #
337
399
  def get_document request, options = nil
338
400
  raise ::ArgumentError, "request must be provided" if request.nil?
339
401
 
@@ -403,6 +465,29 @@ module Google
403
465
  # @return [::Gapic::Operation]
404
466
  #
405
467
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
468
+ #
469
+ # @example Basic example
470
+ # require "google/cloud/document_ai/v1beta3"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::DocumentAI::V1beta3::BatchDeleteDocumentsRequest.new
477
+ #
478
+ # # Call the batch_delete_documents method.
479
+ # result = client.batch_delete_documents request
480
+ #
481
+ # # The returned object is of type Gapic::Operation. You can use it to
482
+ # # check the status of an operation, cancel it, or wait for results.
483
+ # # Here is how to wait for a response.
484
+ # result.wait_until_done! timeout: 60
485
+ # if result.response?
486
+ # p result.response
487
+ # else
488
+ # puts "No response received."
489
+ # end
490
+ #
406
491
  def batch_delete_documents request, options = nil
407
492
  raise ::ArgumentError, "request must be provided" if request.nil?
408
493
 
@@ -470,6 +555,22 @@ module Google
470
555
  # @return [::Google::Cloud::DocumentAI::V1beta3::DatasetSchema]
471
556
  #
472
557
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
558
+ #
559
+ # @example Basic example
560
+ # require "google/cloud/document_ai/v1beta3"
561
+ #
562
+ # # Create a client object. The client can be reused for multiple calls.
563
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
564
+ #
565
+ # # Create a request. To set request fields, pass in keyword arguments.
566
+ # request = Google::Cloud::DocumentAI::V1beta3::GetDatasetSchemaRequest.new
567
+ #
568
+ # # Call the get_dataset_schema method.
569
+ # result = client.get_dataset_schema request
570
+ #
571
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::DatasetSchema.
572
+ # p result
573
+ #
473
574
  def get_dataset_schema request, options = nil
474
575
  raise ::ArgumentError, "request must be provided" if request.nil?
475
576
 
@@ -535,6 +636,22 @@ module Google
535
636
  # @return [::Google::Cloud::DocumentAI::V1beta3::DatasetSchema]
536
637
  #
537
638
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
639
+ #
640
+ # @example Basic example
641
+ # require "google/cloud/document_ai/v1beta3"
642
+ #
643
+ # # Create a client object. The client can be reused for multiple calls.
644
+ # client = Google::Cloud::DocumentAI::V1beta3::DocumentService::Rest::Client.new
645
+ #
646
+ # # Create a request. To set request fields, pass in keyword arguments.
647
+ # request = Google::Cloud::DocumentAI::V1beta3::UpdateDatasetSchemaRequest.new
648
+ #
649
+ # # Call the update_dataset_schema method.
650
+ # result = client.update_dataset_schema request
651
+ #
652
+ # # The returned object is of type Google::Cloud::DocumentAI::V1beta3::DatasetSchema.
653
+ # p result
654
+ #
538
655
  def update_dataset_schema request, options = nil
539
656
  raise ::ArgumentError, "request must be provided" if request.nil?
540
657
 
@@ -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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DocumentAI
23
23
  module V1beta3
24
- VERSION = "0.26.0"
24
+ VERSION = "0.27.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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
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.26.0
4
+ version: 0.27.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-07-27 00:00:00.000000000 Z
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.1
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
276
276
  - !ruby/object:Gem::Version
277
277
  version: '0'
278
278
  requirements: []
279
- rubygems_version: 3.4.2
279
+ rubygems_version: 3.4.19
280
280
  signing_key:
281
281
  specification_version: 4
282
282
  summary: Service to parse structured information from unstructured or semi-structured