google-cloud-data_labeling-v1beta1 0.3.3 → 0.4.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 +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +777 -102
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +118 -12
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
- data/lib/google/cloud/data_labeling/v1beta1.rb +2 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_services_pb.rb +1 -1
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +1 -0
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +1 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/protobuf/any.rb +3 -3
- metadata +12 -12
@@ -264,6 +264,7 @@ module Google
|
|
264
264
|
|
265
265
|
@operations_client = Operations.new do |config|
|
266
266
|
config.credentials = credentials
|
267
|
+
config.quota_project = @quota_project_id
|
267
268
|
config.endpoint = @config.endpoint
|
268
269
|
end
|
269
270
|
|
@@ -317,6 +318,21 @@ module Google
|
|
317
318
|
#
|
318
319
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
319
320
|
#
|
321
|
+
# @example Basic example
|
322
|
+
# require "google/cloud/data_labeling/v1beta1"
|
323
|
+
#
|
324
|
+
# # Create a client object. The client can be reused for multiple calls.
|
325
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
326
|
+
#
|
327
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
328
|
+
# request = Google::Cloud::DataLabeling::V1beta1::CreateDatasetRequest.new
|
329
|
+
#
|
330
|
+
# # Call the create_dataset method.
|
331
|
+
# result = client.create_dataset request
|
332
|
+
#
|
333
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::Dataset.
|
334
|
+
# p result
|
335
|
+
#
|
320
336
|
def create_dataset request, options = nil
|
321
337
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
322
338
|
|
@@ -334,9 +350,11 @@ module Google
|
|
334
350
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
335
351
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
336
352
|
|
337
|
-
header_params = {
|
338
|
-
|
339
|
-
|
353
|
+
header_params = {}
|
354
|
+
if request.parent
|
355
|
+
header_params["parent"] = request.parent
|
356
|
+
end
|
357
|
+
|
340
358
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
341
359
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
342
360
|
|
@@ -386,6 +404,21 @@ module Google
|
|
386
404
|
#
|
387
405
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
388
406
|
#
|
407
|
+
# @example Basic example
|
408
|
+
# require "google/cloud/data_labeling/v1beta1"
|
409
|
+
#
|
410
|
+
# # Create a client object. The client can be reused for multiple calls.
|
411
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
412
|
+
#
|
413
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
414
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetDatasetRequest.new
|
415
|
+
#
|
416
|
+
# # Call the get_dataset method.
|
417
|
+
# result = client.get_dataset request
|
418
|
+
#
|
419
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::Dataset.
|
420
|
+
# p result
|
421
|
+
#
|
389
422
|
def get_dataset request, options = nil
|
390
423
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
391
424
|
|
@@ -403,9 +436,11 @@ module Google
|
|
403
436
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
404
437
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
405
438
|
|
406
|
-
header_params = {
|
407
|
-
|
408
|
-
|
439
|
+
header_params = {}
|
440
|
+
if request.name
|
441
|
+
header_params["name"] = request.name
|
442
|
+
end
|
443
|
+
|
409
444
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
410
445
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
411
446
|
|
@@ -466,6 +501,27 @@ module Google
|
|
466
501
|
#
|
467
502
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
468
503
|
#
|
504
|
+
# @example Basic example
|
505
|
+
# require "google/cloud/data_labeling/v1beta1"
|
506
|
+
#
|
507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
508
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
509
|
+
#
|
510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
511
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListDatasetsRequest.new
|
512
|
+
#
|
513
|
+
# # Call the list_datasets method.
|
514
|
+
# result = client.list_datasets request
|
515
|
+
#
|
516
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
517
|
+
# # iterate over all elements by calling #each, and the enumerable
|
518
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
519
|
+
# # methods are also available for managing paging directly.
|
520
|
+
# result.each do |response|
|
521
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Dataset.
|
522
|
+
# p response
|
523
|
+
# end
|
524
|
+
#
|
469
525
|
def list_datasets request, options = nil
|
470
526
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
471
527
|
|
@@ -483,9 +539,11 @@ module Google
|
|
483
539
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
484
540
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
485
541
|
|
486
|
-
header_params = {
|
487
|
-
|
488
|
-
|
542
|
+
header_params = {}
|
543
|
+
if request.parent
|
544
|
+
header_params["parent"] = request.parent
|
545
|
+
end
|
546
|
+
|
489
547
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
490
548
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
491
549
|
|
@@ -536,6 +594,21 @@ module Google
|
|
536
594
|
#
|
537
595
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
538
596
|
#
|
597
|
+
# @example Basic example
|
598
|
+
# require "google/cloud/data_labeling/v1beta1"
|
599
|
+
#
|
600
|
+
# # Create a client object. The client can be reused for multiple calls.
|
601
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
602
|
+
#
|
603
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
604
|
+
# request = Google::Cloud::DataLabeling::V1beta1::DeleteDatasetRequest.new
|
605
|
+
#
|
606
|
+
# # Call the delete_dataset method.
|
607
|
+
# result = client.delete_dataset request
|
608
|
+
#
|
609
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
610
|
+
# p result
|
611
|
+
#
|
539
612
|
def delete_dataset request, options = nil
|
540
613
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
541
614
|
|
@@ -553,9 +626,11 @@ module Google
|
|
553
626
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
554
627
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
555
628
|
|
556
|
-
header_params = {
|
557
|
-
|
558
|
-
|
629
|
+
header_params = {}
|
630
|
+
if request.name
|
631
|
+
header_params["name"] = request.name
|
632
|
+
end
|
633
|
+
|
559
634
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
560
635
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
561
636
|
|
@@ -614,6 +689,28 @@ module Google
|
|
614
689
|
#
|
615
690
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
616
691
|
#
|
692
|
+
# @example Basic example
|
693
|
+
# require "google/cloud/data_labeling/v1beta1"
|
694
|
+
#
|
695
|
+
# # Create a client object. The client can be reused for multiple calls.
|
696
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
697
|
+
#
|
698
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
699
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ImportDataRequest.new
|
700
|
+
#
|
701
|
+
# # Call the import_data method.
|
702
|
+
# result = client.import_data request
|
703
|
+
#
|
704
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
705
|
+
# # object to check the status of an operation, cancel it, or wait
|
706
|
+
# # for results. Here is how to block until completion:
|
707
|
+
# result.wait_until_done! timeout: 60
|
708
|
+
# if result.response?
|
709
|
+
# p result.response
|
710
|
+
# else
|
711
|
+
# puts "Error!"
|
712
|
+
# end
|
713
|
+
#
|
617
714
|
def import_data request, options = nil
|
618
715
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
619
716
|
|
@@ -631,9 +728,11 @@ module Google
|
|
631
728
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
632
729
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
633
730
|
|
634
|
-
header_params = {
|
635
|
-
|
636
|
-
|
731
|
+
header_params = {}
|
732
|
+
if request.name
|
733
|
+
header_params["name"] = request.name
|
734
|
+
end
|
735
|
+
|
637
736
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
638
737
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
639
738
|
|
@@ -697,6 +796,28 @@ module Google
|
|
697
796
|
#
|
698
797
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
699
798
|
#
|
799
|
+
# @example Basic example
|
800
|
+
# require "google/cloud/data_labeling/v1beta1"
|
801
|
+
#
|
802
|
+
# # Create a client object. The client can be reused for multiple calls.
|
803
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
804
|
+
#
|
805
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
806
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ExportDataRequest.new
|
807
|
+
#
|
808
|
+
# # Call the export_data method.
|
809
|
+
# result = client.export_data request
|
810
|
+
#
|
811
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
812
|
+
# # object to check the status of an operation, cancel it, or wait
|
813
|
+
# # for results. Here is how to block until completion:
|
814
|
+
# result.wait_until_done! timeout: 60
|
815
|
+
# if result.response?
|
816
|
+
# p result.response
|
817
|
+
# else
|
818
|
+
# puts "Error!"
|
819
|
+
# end
|
820
|
+
#
|
700
821
|
def export_data request, options = nil
|
701
822
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
702
823
|
|
@@ -714,9 +835,11 @@ module Google
|
|
714
835
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
715
836
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
716
837
|
|
717
|
-
header_params = {
|
718
|
-
|
719
|
-
|
838
|
+
header_params = {}
|
839
|
+
if request.name
|
840
|
+
header_params["name"] = request.name
|
841
|
+
end
|
842
|
+
|
720
843
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
721
844
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
722
845
|
|
@@ -768,6 +891,21 @@ module Google
|
|
768
891
|
#
|
769
892
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
770
893
|
#
|
894
|
+
# @example Basic example
|
895
|
+
# require "google/cloud/data_labeling/v1beta1"
|
896
|
+
#
|
897
|
+
# # Create a client object. The client can be reused for multiple calls.
|
898
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
899
|
+
#
|
900
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
901
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetDataItemRequest.new
|
902
|
+
#
|
903
|
+
# # Call the get_data_item method.
|
904
|
+
# result = client.get_data_item request
|
905
|
+
#
|
906
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::DataItem.
|
907
|
+
# p result
|
908
|
+
#
|
771
909
|
def get_data_item request, options = nil
|
772
910
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
773
911
|
|
@@ -785,9 +923,11 @@ module Google
|
|
785
923
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
786
924
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
787
925
|
|
788
|
-
header_params = {
|
789
|
-
|
790
|
-
|
926
|
+
header_params = {}
|
927
|
+
if request.name
|
928
|
+
header_params["name"] = request.name
|
929
|
+
end
|
930
|
+
|
791
931
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
792
932
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
793
933
|
|
@@ -849,6 +989,27 @@ module Google
|
|
849
989
|
#
|
850
990
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
851
991
|
#
|
992
|
+
# @example Basic example
|
993
|
+
# require "google/cloud/data_labeling/v1beta1"
|
994
|
+
#
|
995
|
+
# # Create a client object. The client can be reused for multiple calls.
|
996
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
997
|
+
#
|
998
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
999
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListDataItemsRequest.new
|
1000
|
+
#
|
1001
|
+
# # Call the list_data_items method.
|
1002
|
+
# result = client.list_data_items request
|
1003
|
+
#
|
1004
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1005
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1006
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1007
|
+
# # methods are also available for managing paging directly.
|
1008
|
+
# result.each do |response|
|
1009
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::DataItem.
|
1010
|
+
# p response
|
1011
|
+
# end
|
1012
|
+
#
|
852
1013
|
def list_data_items request, options = nil
|
853
1014
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
854
1015
|
|
@@ -866,9 +1027,11 @@ module Google
|
|
866
1027
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
867
1028
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
868
1029
|
|
869
|
-
header_params = {
|
870
|
-
|
871
|
-
|
1030
|
+
header_params = {}
|
1031
|
+
if request.parent
|
1032
|
+
header_params["parent"] = request.parent
|
1033
|
+
end
|
1034
|
+
|
872
1035
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
873
1036
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
874
1037
|
|
@@ -920,6 +1083,21 @@ module Google
|
|
920
1083
|
#
|
921
1084
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
922
1085
|
#
|
1086
|
+
# @example Basic example
|
1087
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1088
|
+
#
|
1089
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1090
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1091
|
+
#
|
1092
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1093
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetAnnotatedDatasetRequest.new
|
1094
|
+
#
|
1095
|
+
# # Call the get_annotated_dataset method.
|
1096
|
+
# result = client.get_annotated_dataset request
|
1097
|
+
#
|
1098
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::AnnotatedDataset.
|
1099
|
+
# p result
|
1100
|
+
#
|
923
1101
|
def get_annotated_dataset request, options = nil
|
924
1102
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
925
1103
|
|
@@ -937,9 +1115,11 @@ module Google
|
|
937
1115
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
938
1116
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
939
1117
|
|
940
|
-
header_params = {
|
941
|
-
|
942
|
-
|
1118
|
+
header_params = {}
|
1119
|
+
if request.name
|
1120
|
+
header_params["name"] = request.name
|
1121
|
+
end
|
1122
|
+
|
943
1123
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
944
1124
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
945
1125
|
|
@@ -1000,6 +1180,27 @@ module Google
|
|
1000
1180
|
#
|
1001
1181
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1002
1182
|
#
|
1183
|
+
# @example Basic example
|
1184
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1185
|
+
#
|
1186
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1187
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1188
|
+
#
|
1189
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1190
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListAnnotatedDatasetsRequest.new
|
1191
|
+
#
|
1192
|
+
# # Call the list_annotated_datasets method.
|
1193
|
+
# result = client.list_annotated_datasets request
|
1194
|
+
#
|
1195
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1196
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1197
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1198
|
+
# # methods are also available for managing paging directly.
|
1199
|
+
# result.each do |response|
|
1200
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::AnnotatedDataset.
|
1201
|
+
# p response
|
1202
|
+
# end
|
1203
|
+
#
|
1003
1204
|
def list_annotated_datasets request, options = nil
|
1004
1205
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1005
1206
|
|
@@ -1017,9 +1218,11 @@ module Google
|
|
1017
1218
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1018
1219
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1019
1220
|
|
1020
|
-
header_params = {
|
1021
|
-
|
1022
|
-
|
1221
|
+
header_params = {}
|
1222
|
+
if request.parent
|
1223
|
+
header_params["parent"] = request.parent
|
1224
|
+
end
|
1225
|
+
|
1023
1226
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1024
1227
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1025
1228
|
|
@@ -1071,6 +1274,21 @@ module Google
|
|
1071
1274
|
#
|
1072
1275
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1073
1276
|
#
|
1277
|
+
# @example Basic example
|
1278
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1279
|
+
#
|
1280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1281
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1282
|
+
#
|
1283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1284
|
+
# request = Google::Cloud::DataLabeling::V1beta1::DeleteAnnotatedDatasetRequest.new
|
1285
|
+
#
|
1286
|
+
# # Call the delete_annotated_dataset method.
|
1287
|
+
# result = client.delete_annotated_dataset request
|
1288
|
+
#
|
1289
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
1290
|
+
# p result
|
1291
|
+
#
|
1074
1292
|
def delete_annotated_dataset request, options = nil
|
1075
1293
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1076
1294
|
|
@@ -1088,9 +1306,11 @@ module Google
|
|
1088
1306
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1089
1307
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1090
1308
|
|
1091
|
-
header_params = {
|
1092
|
-
|
1093
|
-
|
1309
|
+
header_params = {}
|
1310
|
+
if request.name
|
1311
|
+
header_params["name"] = request.name
|
1312
|
+
end
|
1313
|
+
|
1094
1314
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1095
1315
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1096
1316
|
|
@@ -1161,6 +1381,28 @@ module Google
|
|
1161
1381
|
#
|
1162
1382
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1163
1383
|
#
|
1384
|
+
# @example Basic example
|
1385
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1386
|
+
#
|
1387
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1388
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1389
|
+
#
|
1390
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1391
|
+
# request = Google::Cloud::DataLabeling::V1beta1::LabelImageRequest.new
|
1392
|
+
#
|
1393
|
+
# # Call the label_image method.
|
1394
|
+
# result = client.label_image request
|
1395
|
+
#
|
1396
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1397
|
+
# # object to check the status of an operation, cancel it, or wait
|
1398
|
+
# # for results. Here is how to block until completion:
|
1399
|
+
# result.wait_until_done! timeout: 60
|
1400
|
+
# if result.response?
|
1401
|
+
# p result.response
|
1402
|
+
# else
|
1403
|
+
# puts "Error!"
|
1404
|
+
# end
|
1405
|
+
#
|
1164
1406
|
def label_image request, options = nil
|
1165
1407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1166
1408
|
|
@@ -1178,9 +1420,11 @@ module Google
|
|
1178
1420
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1179
1421
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1180
1422
|
|
1181
|
-
header_params = {
|
1182
|
-
|
1183
|
-
|
1423
|
+
header_params = {}
|
1424
|
+
if request.parent
|
1425
|
+
header_params["parent"] = request.parent
|
1426
|
+
end
|
1427
|
+
|
1184
1428
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1185
1429
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1186
1430
|
|
@@ -1252,6 +1496,28 @@ module Google
|
|
1252
1496
|
#
|
1253
1497
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1254
1498
|
#
|
1499
|
+
# @example Basic example
|
1500
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1501
|
+
#
|
1502
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1503
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1504
|
+
#
|
1505
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1506
|
+
# request = Google::Cloud::DataLabeling::V1beta1::LabelVideoRequest.new
|
1507
|
+
#
|
1508
|
+
# # Call the label_video method.
|
1509
|
+
# result = client.label_video request
|
1510
|
+
#
|
1511
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1512
|
+
# # object to check the status of an operation, cancel it, or wait
|
1513
|
+
# # for results. Here is how to block until completion:
|
1514
|
+
# result.wait_until_done! timeout: 60
|
1515
|
+
# if result.response?
|
1516
|
+
# p result.response
|
1517
|
+
# else
|
1518
|
+
# puts "Error!"
|
1519
|
+
# end
|
1520
|
+
#
|
1255
1521
|
def label_video request, options = nil
|
1256
1522
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1257
1523
|
|
@@ -1269,9 +1535,11 @@ module Google
|
|
1269
1535
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1270
1536
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1271
1537
|
|
1272
|
-
header_params = {
|
1273
|
-
|
1274
|
-
|
1538
|
+
header_params = {}
|
1539
|
+
if request.parent
|
1540
|
+
header_params["parent"] = request.parent
|
1541
|
+
end
|
1542
|
+
|
1275
1543
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1276
1544
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1277
1545
|
|
@@ -1335,6 +1603,28 @@ module Google
|
|
1335
1603
|
#
|
1336
1604
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1337
1605
|
#
|
1606
|
+
# @example Basic example
|
1607
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1608
|
+
#
|
1609
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1610
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1611
|
+
#
|
1612
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1613
|
+
# request = Google::Cloud::DataLabeling::V1beta1::LabelTextRequest.new
|
1614
|
+
#
|
1615
|
+
# # Call the label_text method.
|
1616
|
+
# result = client.label_text request
|
1617
|
+
#
|
1618
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1619
|
+
# # object to check the status of an operation, cancel it, or wait
|
1620
|
+
# # for results. Here is how to block until completion:
|
1621
|
+
# result.wait_until_done! timeout: 60
|
1622
|
+
# if result.response?
|
1623
|
+
# p result.response
|
1624
|
+
# else
|
1625
|
+
# puts "Error!"
|
1626
|
+
# end
|
1627
|
+
#
|
1338
1628
|
def label_text request, options = nil
|
1339
1629
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1340
1630
|
|
@@ -1352,9 +1642,11 @@ module Google
|
|
1352
1642
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1353
1643
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1354
1644
|
|
1355
|
-
header_params = {
|
1356
|
-
|
1357
|
-
|
1645
|
+
header_params = {}
|
1646
|
+
if request.parent
|
1647
|
+
header_params["parent"] = request.parent
|
1648
|
+
end
|
1649
|
+
|
1358
1650
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1359
1651
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1360
1652
|
|
@@ -1410,6 +1702,21 @@ module Google
|
|
1410
1702
|
#
|
1411
1703
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1412
1704
|
#
|
1705
|
+
# @example Basic example
|
1706
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1707
|
+
#
|
1708
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1709
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1710
|
+
#
|
1711
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1712
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetExampleRequest.new
|
1713
|
+
#
|
1714
|
+
# # Call the get_example method.
|
1715
|
+
# result = client.get_example request
|
1716
|
+
#
|
1717
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::Example.
|
1718
|
+
# p result
|
1719
|
+
#
|
1413
1720
|
def get_example request, options = nil
|
1414
1721
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1415
1722
|
|
@@ -1427,9 +1734,11 @@ module Google
|
|
1427
1734
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1428
1735
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1429
1736
|
|
1430
|
-
header_params = {
|
1431
|
-
|
1432
|
-
|
1737
|
+
header_params = {}
|
1738
|
+
if request.name
|
1739
|
+
header_params["name"] = request.name
|
1740
|
+
end
|
1741
|
+
|
1433
1742
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1434
1743
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1435
1744
|
|
@@ -1492,6 +1801,27 @@ module Google
|
|
1492
1801
|
#
|
1493
1802
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1494
1803
|
#
|
1804
|
+
# @example Basic example
|
1805
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1806
|
+
#
|
1807
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1808
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1809
|
+
#
|
1810
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1811
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListExamplesRequest.new
|
1812
|
+
#
|
1813
|
+
# # Call the list_examples method.
|
1814
|
+
# result = client.list_examples request
|
1815
|
+
#
|
1816
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1817
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1818
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1819
|
+
# # methods are also available for managing paging directly.
|
1820
|
+
# result.each do |response|
|
1821
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Example.
|
1822
|
+
# p response
|
1823
|
+
# end
|
1824
|
+
#
|
1495
1825
|
def list_examples request, options = nil
|
1496
1826
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1497
1827
|
|
@@ -1509,9 +1839,11 @@ module Google
|
|
1509
1839
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1510
1840
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1511
1841
|
|
1512
|
-
header_params = {
|
1513
|
-
|
1514
|
-
|
1842
|
+
header_params = {}
|
1843
|
+
if request.parent
|
1844
|
+
header_params["parent"] = request.parent
|
1845
|
+
end
|
1846
|
+
|
1515
1847
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1516
1848
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1517
1849
|
|
@@ -1566,6 +1898,21 @@ module Google
|
|
1566
1898
|
#
|
1567
1899
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1568
1900
|
#
|
1901
|
+
# @example Basic example
|
1902
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1903
|
+
#
|
1904
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1905
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1906
|
+
#
|
1907
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1908
|
+
# request = Google::Cloud::DataLabeling::V1beta1::CreateAnnotationSpecSetRequest.new
|
1909
|
+
#
|
1910
|
+
# # Call the create_annotation_spec_set method.
|
1911
|
+
# result = client.create_annotation_spec_set request
|
1912
|
+
#
|
1913
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet.
|
1914
|
+
# p result
|
1915
|
+
#
|
1569
1916
|
def create_annotation_spec_set request, options = nil
|
1570
1917
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1571
1918
|
|
@@ -1583,9 +1930,11 @@ module Google
|
|
1583
1930
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1584
1931
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1585
1932
|
|
1586
|
-
header_params = {
|
1587
|
-
|
1588
|
-
|
1933
|
+
header_params = {}
|
1934
|
+
if request.parent
|
1935
|
+
header_params["parent"] = request.parent
|
1936
|
+
end
|
1937
|
+
|
1589
1938
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1590
1939
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1591
1940
|
|
@@ -1635,6 +1984,21 @@ module Google
|
|
1635
1984
|
#
|
1636
1985
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1637
1986
|
#
|
1987
|
+
# @example Basic example
|
1988
|
+
# require "google/cloud/data_labeling/v1beta1"
|
1989
|
+
#
|
1990
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1991
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
1992
|
+
#
|
1993
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1994
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetAnnotationSpecSetRequest.new
|
1995
|
+
#
|
1996
|
+
# # Call the get_annotation_spec_set method.
|
1997
|
+
# result = client.get_annotation_spec_set request
|
1998
|
+
#
|
1999
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet.
|
2000
|
+
# p result
|
2001
|
+
#
|
1638
2002
|
def get_annotation_spec_set request, options = nil
|
1639
2003
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1640
2004
|
|
@@ -1652,9 +2016,11 @@ module Google
|
|
1652
2016
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1653
2017
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1654
2018
|
|
1655
|
-
header_params = {
|
1656
|
-
|
1657
|
-
|
2019
|
+
header_params = {}
|
2020
|
+
if request.name
|
2021
|
+
header_params["name"] = request.name
|
2022
|
+
end
|
2023
|
+
|
1658
2024
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1659
2025
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1660
2026
|
|
@@ -1715,6 +2081,27 @@ module Google
|
|
1715
2081
|
#
|
1716
2082
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1717
2083
|
#
|
2084
|
+
# @example Basic example
|
2085
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2086
|
+
#
|
2087
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2088
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2089
|
+
#
|
2090
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2091
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListAnnotationSpecSetsRequest.new
|
2092
|
+
#
|
2093
|
+
# # Call the list_annotation_spec_sets method.
|
2094
|
+
# result = client.list_annotation_spec_sets request
|
2095
|
+
#
|
2096
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2097
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2098
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2099
|
+
# # methods are also available for managing paging directly.
|
2100
|
+
# result.each do |response|
|
2101
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet.
|
2102
|
+
# p response
|
2103
|
+
# end
|
2104
|
+
#
|
1718
2105
|
def list_annotation_spec_sets request, options = nil
|
1719
2106
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1720
2107
|
|
@@ -1732,9 +2119,11 @@ module Google
|
|
1732
2119
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1733
2120
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1734
2121
|
|
1735
|
-
header_params = {
|
1736
|
-
|
1737
|
-
|
2122
|
+
header_params = {}
|
2123
|
+
if request.parent
|
2124
|
+
header_params["parent"] = request.parent
|
2125
|
+
end
|
2126
|
+
|
1738
2127
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1739
2128
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1740
2129
|
|
@@ -1785,6 +2174,21 @@ module Google
|
|
1785
2174
|
#
|
1786
2175
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1787
2176
|
#
|
2177
|
+
# @example Basic example
|
2178
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2179
|
+
#
|
2180
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2181
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2182
|
+
#
|
2183
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2184
|
+
# request = Google::Cloud::DataLabeling::V1beta1::DeleteAnnotationSpecSetRequest.new
|
2185
|
+
#
|
2186
|
+
# # Call the delete_annotation_spec_set method.
|
2187
|
+
# result = client.delete_annotation_spec_set request
|
2188
|
+
#
|
2189
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2190
|
+
# p result
|
2191
|
+
#
|
1788
2192
|
def delete_annotation_spec_set request, options = nil
|
1789
2193
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1790
2194
|
|
@@ -1802,9 +2206,11 @@ module Google
|
|
1802
2206
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1803
2207
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1804
2208
|
|
1805
|
-
header_params = {
|
1806
|
-
|
1807
|
-
|
2209
|
+
header_params = {}
|
2210
|
+
if request.name
|
2211
|
+
header_params["name"] = request.name
|
2212
|
+
end
|
2213
|
+
|
1808
2214
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1809
2215
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1810
2216
|
|
@@ -1856,6 +2262,28 @@ module Google
|
|
1856
2262
|
#
|
1857
2263
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1858
2264
|
#
|
2265
|
+
# @example Basic example
|
2266
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2267
|
+
#
|
2268
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2269
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2270
|
+
#
|
2271
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2272
|
+
# request = Google::Cloud::DataLabeling::V1beta1::CreateInstructionRequest.new
|
2273
|
+
#
|
2274
|
+
# # Call the create_instruction method.
|
2275
|
+
# result = client.create_instruction request
|
2276
|
+
#
|
2277
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2278
|
+
# # object to check the status of an operation, cancel it, or wait
|
2279
|
+
# # for results. Here is how to block until completion:
|
2280
|
+
# result.wait_until_done! timeout: 60
|
2281
|
+
# if result.response?
|
2282
|
+
# p result.response
|
2283
|
+
# else
|
2284
|
+
# puts "Error!"
|
2285
|
+
# end
|
2286
|
+
#
|
1859
2287
|
def create_instruction request, options = nil
|
1860
2288
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1861
2289
|
|
@@ -1873,9 +2301,11 @@ module Google
|
|
1873
2301
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1874
2302
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1875
2303
|
|
1876
|
-
header_params = {
|
1877
|
-
|
1878
|
-
|
2304
|
+
header_params = {}
|
2305
|
+
if request.parent
|
2306
|
+
header_params["parent"] = request.parent
|
2307
|
+
end
|
2308
|
+
|
1879
2309
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1880
2310
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1881
2311
|
|
@@ -1926,6 +2356,21 @@ module Google
|
|
1926
2356
|
#
|
1927
2357
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1928
2358
|
#
|
2359
|
+
# @example Basic example
|
2360
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2361
|
+
#
|
2362
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2363
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2364
|
+
#
|
2365
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2366
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetInstructionRequest.new
|
2367
|
+
#
|
2368
|
+
# # Call the get_instruction method.
|
2369
|
+
# result = client.get_instruction request
|
2370
|
+
#
|
2371
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::Instruction.
|
2372
|
+
# p result
|
2373
|
+
#
|
1929
2374
|
def get_instruction request, options = nil
|
1930
2375
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1931
2376
|
|
@@ -1943,9 +2388,11 @@ module Google
|
|
1943
2388
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
1944
2389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1945
2390
|
|
1946
|
-
header_params = {
|
1947
|
-
|
1948
|
-
|
2391
|
+
header_params = {}
|
2392
|
+
if request.name
|
2393
|
+
header_params["name"] = request.name
|
2394
|
+
end
|
2395
|
+
|
1949
2396
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1950
2397
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1951
2398
|
|
@@ -2006,6 +2453,27 @@ module Google
|
|
2006
2453
|
#
|
2007
2454
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2008
2455
|
#
|
2456
|
+
# @example Basic example
|
2457
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2458
|
+
#
|
2459
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2460
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2461
|
+
#
|
2462
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2463
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListInstructionsRequest.new
|
2464
|
+
#
|
2465
|
+
# # Call the list_instructions method.
|
2466
|
+
# result = client.list_instructions request
|
2467
|
+
#
|
2468
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2469
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2470
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2471
|
+
# # methods are also available for managing paging directly.
|
2472
|
+
# result.each do |response|
|
2473
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Instruction.
|
2474
|
+
# p response
|
2475
|
+
# end
|
2476
|
+
#
|
2009
2477
|
def list_instructions request, options = nil
|
2010
2478
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2011
2479
|
|
@@ -2023,9 +2491,11 @@ module Google
|
|
2023
2491
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2024
2492
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2025
2493
|
|
2026
|
-
header_params = {
|
2027
|
-
|
2028
|
-
|
2494
|
+
header_params = {}
|
2495
|
+
if request.parent
|
2496
|
+
header_params["parent"] = request.parent
|
2497
|
+
end
|
2498
|
+
|
2029
2499
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2030
2500
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2031
2501
|
|
@@ -2076,6 +2546,21 @@ module Google
|
|
2076
2546
|
#
|
2077
2547
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2078
2548
|
#
|
2549
|
+
# @example Basic example
|
2550
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2551
|
+
#
|
2552
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2553
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2554
|
+
#
|
2555
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2556
|
+
# request = Google::Cloud::DataLabeling::V1beta1::DeleteInstructionRequest.new
|
2557
|
+
#
|
2558
|
+
# # Call the delete_instruction method.
|
2559
|
+
# result = client.delete_instruction request
|
2560
|
+
#
|
2561
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
2562
|
+
# p result
|
2563
|
+
#
|
2079
2564
|
def delete_instruction request, options = nil
|
2080
2565
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2081
2566
|
|
@@ -2093,9 +2578,11 @@ module Google
|
|
2093
2578
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2094
2579
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2095
2580
|
|
2096
|
-
header_params = {
|
2097
|
-
|
2098
|
-
|
2581
|
+
header_params = {}
|
2582
|
+
if request.name
|
2583
|
+
header_params["name"] = request.name
|
2584
|
+
end
|
2585
|
+
|
2099
2586
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2100
2587
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2101
2588
|
|
@@ -2147,6 +2634,21 @@ module Google
|
|
2147
2634
|
#
|
2148
2635
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2149
2636
|
#
|
2637
|
+
# @example Basic example
|
2638
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2639
|
+
#
|
2640
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2641
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2642
|
+
#
|
2643
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2644
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetEvaluationRequest.new
|
2645
|
+
#
|
2646
|
+
# # Call the get_evaluation method.
|
2647
|
+
# result = client.get_evaluation request
|
2648
|
+
#
|
2649
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::Evaluation.
|
2650
|
+
# p result
|
2651
|
+
#
|
2150
2652
|
def get_evaluation request, options = nil
|
2151
2653
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2152
2654
|
|
@@ -2164,9 +2666,11 @@ module Google
|
|
2164
2666
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2165
2667
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2166
2668
|
|
2167
|
-
header_params = {
|
2168
|
-
|
2169
|
-
|
2669
|
+
header_params = {}
|
2670
|
+
if request.name
|
2671
|
+
header_params["name"] = request.name
|
2672
|
+
end
|
2673
|
+
|
2170
2674
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2171
2675
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2172
2676
|
|
@@ -2259,6 +2763,27 @@ module Google
|
|
2259
2763
|
#
|
2260
2764
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2261
2765
|
#
|
2766
|
+
# @example Basic example
|
2767
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2768
|
+
#
|
2769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2770
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2771
|
+
#
|
2772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2773
|
+
# request = Google::Cloud::DataLabeling::V1beta1::SearchEvaluationsRequest.new
|
2774
|
+
#
|
2775
|
+
# # Call the search_evaluations method.
|
2776
|
+
# result = client.search_evaluations request
|
2777
|
+
#
|
2778
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2779
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2780
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2781
|
+
# # methods are also available for managing paging directly.
|
2782
|
+
# result.each do |response|
|
2783
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Evaluation.
|
2784
|
+
# p response
|
2785
|
+
# end
|
2786
|
+
#
|
2262
2787
|
def search_evaluations request, options = nil
|
2263
2788
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2264
2789
|
|
@@ -2276,9 +2801,11 @@ module Google
|
|
2276
2801
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2277
2802
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2278
2803
|
|
2279
|
-
header_params = {
|
2280
|
-
|
2281
|
-
|
2804
|
+
header_params = {}
|
2805
|
+
if request.parent
|
2806
|
+
header_params["parent"] = request.parent
|
2807
|
+
end
|
2808
|
+
|
2282
2809
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2283
2810
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2284
2811
|
|
@@ -2344,6 +2871,27 @@ module Google
|
|
2344
2871
|
#
|
2345
2872
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2346
2873
|
#
|
2874
|
+
# @example Basic example
|
2875
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2876
|
+
#
|
2877
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2878
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2879
|
+
#
|
2880
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2881
|
+
# request = Google::Cloud::DataLabeling::V1beta1::SearchExampleComparisonsRequest.new
|
2882
|
+
#
|
2883
|
+
# # Call the search_example_comparisons method.
|
2884
|
+
# result = client.search_example_comparisons request
|
2885
|
+
#
|
2886
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2887
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2888
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2889
|
+
# # methods are also available for managing paging directly.
|
2890
|
+
# result.each do |response|
|
2891
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::SearchExampleComparisonsResponse::ExampleComparison.
|
2892
|
+
# p response
|
2893
|
+
# end
|
2894
|
+
#
|
2347
2895
|
def search_example_comparisons request, options = nil
|
2348
2896
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2349
2897
|
|
@@ -2361,9 +2909,11 @@ module Google
|
|
2361
2909
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2362
2910
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2363
2911
|
|
2364
|
-
header_params = {
|
2365
|
-
|
2366
|
-
|
2912
|
+
header_params = {}
|
2913
|
+
if request.parent
|
2914
|
+
header_params["parent"] = request.parent
|
2915
|
+
end
|
2916
|
+
|
2367
2917
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2368
2918
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2369
2919
|
|
@@ -2416,6 +2966,21 @@ module Google
|
|
2416
2966
|
#
|
2417
2967
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2418
2968
|
#
|
2969
|
+
# @example Basic example
|
2970
|
+
# require "google/cloud/data_labeling/v1beta1"
|
2971
|
+
#
|
2972
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2973
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
2974
|
+
#
|
2975
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2976
|
+
# request = Google::Cloud::DataLabeling::V1beta1::CreateEvaluationJobRequest.new
|
2977
|
+
#
|
2978
|
+
# # Call the create_evaluation_job method.
|
2979
|
+
# result = client.create_evaluation_job request
|
2980
|
+
#
|
2981
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::EvaluationJob.
|
2982
|
+
# p result
|
2983
|
+
#
|
2419
2984
|
def create_evaluation_job request, options = nil
|
2420
2985
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2421
2986
|
|
@@ -2433,9 +2998,11 @@ module Google
|
|
2433
2998
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2434
2999
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2435
3000
|
|
2436
|
-
header_params = {
|
2437
|
-
|
2438
|
-
|
3001
|
+
header_params = {}
|
3002
|
+
if request.parent
|
3003
|
+
header_params["parent"] = request.parent
|
3004
|
+
end
|
3005
|
+
|
2439
3006
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2440
3007
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2441
3008
|
|
@@ -2499,6 +3066,21 @@ module Google
|
|
2499
3066
|
#
|
2500
3067
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2501
3068
|
#
|
3069
|
+
# @example Basic example
|
3070
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3071
|
+
#
|
3072
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3073
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3074
|
+
#
|
3075
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3076
|
+
# request = Google::Cloud::DataLabeling::V1beta1::UpdateEvaluationJobRequest.new
|
3077
|
+
#
|
3078
|
+
# # Call the update_evaluation_job method.
|
3079
|
+
# result = client.update_evaluation_job request
|
3080
|
+
#
|
3081
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::EvaluationJob.
|
3082
|
+
# p result
|
3083
|
+
#
|
2502
3084
|
def update_evaluation_job request, options = nil
|
2503
3085
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2504
3086
|
|
@@ -2516,9 +3098,11 @@ module Google
|
|
2516
3098
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2517
3099
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2518
3100
|
|
2519
|
-
header_params = {
|
2520
|
-
|
2521
|
-
|
3101
|
+
header_params = {}
|
3102
|
+
if request.evaluation_job&.name
|
3103
|
+
header_params["evaluation_job.name"] = request.evaluation_job.name
|
3104
|
+
end
|
3105
|
+
|
2522
3106
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2523
3107
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2524
3108
|
|
@@ -2569,6 +3153,21 @@ module Google
|
|
2569
3153
|
#
|
2570
3154
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2571
3155
|
#
|
3156
|
+
# @example Basic example
|
3157
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3158
|
+
#
|
3159
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3160
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3161
|
+
#
|
3162
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3163
|
+
# request = Google::Cloud::DataLabeling::V1beta1::GetEvaluationJobRequest.new
|
3164
|
+
#
|
3165
|
+
# # Call the get_evaluation_job method.
|
3166
|
+
# result = client.get_evaluation_job request
|
3167
|
+
#
|
3168
|
+
# # The returned object is of type Google::Cloud::DataLabeling::V1beta1::EvaluationJob.
|
3169
|
+
# p result
|
3170
|
+
#
|
2572
3171
|
def get_evaluation_job request, options = nil
|
2573
3172
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2574
3173
|
|
@@ -2586,9 +3185,11 @@ module Google
|
|
2586
3185
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2587
3186
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2588
3187
|
|
2589
|
-
header_params = {
|
2590
|
-
|
2591
|
-
|
3188
|
+
header_params = {}
|
3189
|
+
if request.name
|
3190
|
+
header_params["name"] = request.name
|
3191
|
+
end
|
3192
|
+
|
2592
3193
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2593
3194
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2594
3195
|
|
@@ -2640,6 +3241,21 @@ module Google
|
|
2640
3241
|
#
|
2641
3242
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2642
3243
|
#
|
3244
|
+
# @example Basic example
|
3245
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3246
|
+
#
|
3247
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3248
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3249
|
+
#
|
3250
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3251
|
+
# request = Google::Cloud::DataLabeling::V1beta1::PauseEvaluationJobRequest.new
|
3252
|
+
#
|
3253
|
+
# # Call the pause_evaluation_job method.
|
3254
|
+
# result = client.pause_evaluation_job request
|
3255
|
+
#
|
3256
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3257
|
+
# p result
|
3258
|
+
#
|
2643
3259
|
def pause_evaluation_job request, options = nil
|
2644
3260
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2645
3261
|
|
@@ -2657,9 +3273,11 @@ module Google
|
|
2657
3273
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2658
3274
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2659
3275
|
|
2660
|
-
header_params = {
|
2661
|
-
|
2662
|
-
|
3276
|
+
header_params = {}
|
3277
|
+
if request.name
|
3278
|
+
header_params["name"] = request.name
|
3279
|
+
end
|
3280
|
+
|
2663
3281
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2664
3282
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2665
3283
|
|
@@ -2711,6 +3329,21 @@ module Google
|
|
2711
3329
|
#
|
2712
3330
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2713
3331
|
#
|
3332
|
+
# @example Basic example
|
3333
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3334
|
+
#
|
3335
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3336
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3337
|
+
#
|
3338
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3339
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ResumeEvaluationJobRequest.new
|
3340
|
+
#
|
3341
|
+
# # Call the resume_evaluation_job method.
|
3342
|
+
# result = client.resume_evaluation_job request
|
3343
|
+
#
|
3344
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3345
|
+
# p result
|
3346
|
+
#
|
2714
3347
|
def resume_evaluation_job request, options = nil
|
2715
3348
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2716
3349
|
|
@@ -2728,9 +3361,11 @@ module Google
|
|
2728
3361
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2729
3362
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2730
3363
|
|
2731
|
-
header_params = {
|
2732
|
-
|
2733
|
-
|
3364
|
+
header_params = {}
|
3365
|
+
if request.name
|
3366
|
+
header_params["name"] = request.name
|
3367
|
+
end
|
3368
|
+
|
2734
3369
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2735
3370
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2736
3371
|
|
@@ -2781,6 +3416,21 @@ module Google
|
|
2781
3416
|
#
|
2782
3417
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2783
3418
|
#
|
3419
|
+
# @example Basic example
|
3420
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3421
|
+
#
|
3422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3423
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3424
|
+
#
|
3425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3426
|
+
# request = Google::Cloud::DataLabeling::V1beta1::DeleteEvaluationJobRequest.new
|
3427
|
+
#
|
3428
|
+
# # Call the delete_evaluation_job method.
|
3429
|
+
# result = client.delete_evaluation_job request
|
3430
|
+
#
|
3431
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
3432
|
+
# p result
|
3433
|
+
#
|
2784
3434
|
def delete_evaluation_job request, options = nil
|
2785
3435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2786
3436
|
|
@@ -2798,9 +3448,11 @@ module Google
|
|
2798
3448
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2799
3449
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2800
3450
|
|
2801
|
-
header_params = {
|
2802
|
-
|
2803
|
-
|
3451
|
+
header_params = {}
|
3452
|
+
if request.name
|
3453
|
+
header_params["name"] = request.name
|
3454
|
+
end
|
3455
|
+
|
2804
3456
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2805
3457
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2806
3458
|
|
@@ -2869,6 +3521,27 @@ module Google
|
|
2869
3521
|
#
|
2870
3522
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2871
3523
|
#
|
3524
|
+
# @example Basic example
|
3525
|
+
# require "google/cloud/data_labeling/v1beta1"
|
3526
|
+
#
|
3527
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3528
|
+
# client = Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
3529
|
+
#
|
3530
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3531
|
+
# request = Google::Cloud::DataLabeling::V1beta1::ListEvaluationJobsRequest.new
|
3532
|
+
#
|
3533
|
+
# # Call the list_evaluation_jobs method.
|
3534
|
+
# result = client.list_evaluation_jobs request
|
3535
|
+
#
|
3536
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3537
|
+
# # iterate over all elements by calling #each, and the enumerable
|
3538
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
3539
|
+
# # methods are also available for managing paging directly.
|
3540
|
+
# result.each do |response|
|
3541
|
+
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::EvaluationJob.
|
3542
|
+
# p response
|
3543
|
+
# end
|
3544
|
+
#
|
2872
3545
|
def list_evaluation_jobs request, options = nil
|
2873
3546
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2874
3547
|
|
@@ -2886,9 +3559,11 @@ module Google
|
|
2886
3559
|
gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
|
2887
3560
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2888
3561
|
|
2889
|
-
header_params = {
|
2890
|
-
|
2891
|
-
|
3562
|
+
header_params = {}
|
3563
|
+
if request.parent
|
3564
|
+
header_params["parent"] = request.parent
|
3565
|
+
end
|
3566
|
+
|
2892
3567
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2893
3568
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2894
3569
|
|