google-cloud-data_labeling-v1beta1 0.4.0 → 0.6.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/AUTHENTICATION.md +1 -1
- data/README.md +3 -3
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/client.rb +76 -83
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service/operations.rb +27 -18
- data/lib/google/cloud/data_labeling/v1beta1/data_labeling_service.rb +1 -1
- data/lib/google/cloud/data_labeling/v1beta1/version.rb +1 -1
- data/lib/google/cloud/data_labeling/v1beta1.rb +2 -2
- data/lib/google/cloud/datalabeling/v1beta1/annotation_pb.rb +26 -134
- data/lib/google/cloud/datalabeling/v1beta1/annotation_spec_set_pb.rb +24 -13
- data/lib/google/cloud/datalabeling/v1beta1/data_labeling_service_pb.rb +31 -224
- data/lib/google/cloud/datalabeling/v1beta1/data_payloads_pb.rb +25 -23
- data/lib/google/cloud/datalabeling/v1beta1/dataset_pb.rb +28 -104
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_job_pb.rb +29 -43
- data/lib/google/cloud/datalabeling/v1beta1/evaluation_pb.rb +26 -61
- data/lib/google/cloud/datalabeling/v1beta1/human_annotation_config_pb.rb +25 -65
- data/lib/google/cloud/datalabeling/v1beta1/instruction_pb.rb +25 -19
- data/lib/google/cloud/datalabeling/v1beta1/operations_pb.rb +28 -85
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63d49eef199a9818de2282951ac875a4568decca9ba89e4ccc2fda802e2dabda
|
4
|
+
data.tar.gz: 85535b66a9808e5aec3a4c8fbbedc7ecc19a498e73e1c4ffcc2b6c949ecd95fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1874a931bb71a4f681b83d4056c35c97e8f17d8da1801c85f4560afadf6d171773b419805f18d8a55857a48967750860fd1171b53595c378dee6e4eb65ff6ba6
|
7
|
+
data.tar.gz: e5b33d45a142fee8af6ee09e4d30e79941dc00b5edc9cf4783c3a05c6ba29f58f20932232b909cf008859ae9cf3bfabcbecdffc090d81ec8b8694204e403f250
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the AI Platform Data Labeling Service V1beta1 API
|
2
2
|
|
3
|
-
API
|
3
|
+
Public API for Google Cloud AI Data Labeling Service.
|
4
4
|
|
5
5
|
AI Platform Data Labeling Service lets you work with human labelers to generate highly accurate labels for a collection of data that you can use in machine learning models.
|
6
6
|
|
@@ -46,8 +46,8 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
50
|
-
or a [`Google::Cloud::Logging::Logger`](https://
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
|
+
or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
53
53
|
|
@@ -252,7 +252,7 @@ module Google
|
|
252
252
|
credentials = @config.credentials
|
253
253
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
254
254
|
# but only if the default endpoint does not have a region prefix.
|
255
|
-
enable_self_signed_jwt = @config.endpoint ==
|
255
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
256
256
|
!@config.endpoint.split(".").first.include?("-")
|
257
257
|
credentials ||= Credentials.default scope: @config.scope,
|
258
258
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -273,7 +273,8 @@ module Google
|
|
273
273
|
credentials: credentials,
|
274
274
|
endpoint: @config.endpoint,
|
275
275
|
channel_args: @config.channel_args,
|
276
|
-
interceptors: @config.interceptors
|
276
|
+
interceptors: @config.interceptors,
|
277
|
+
channel_pool_config: @config.channel_pool
|
277
278
|
)
|
278
279
|
end
|
279
280
|
|
@@ -513,13 +514,11 @@ module Google
|
|
513
514
|
# # Call the list_datasets method.
|
514
515
|
# result = client.list_datasets request
|
515
516
|
#
|
516
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
517
|
-
# #
|
518
|
-
#
|
519
|
-
# # methods are also available for managing paging directly.
|
520
|
-
# result.each do |response|
|
517
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
518
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
519
|
+
# result.each do |item|
|
521
520
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Dataset.
|
522
|
-
# p
|
521
|
+
# p item
|
523
522
|
# end
|
524
523
|
#
|
525
524
|
def list_datasets request, options = nil
|
@@ -701,14 +700,14 @@ module Google
|
|
701
700
|
# # Call the import_data method.
|
702
701
|
# result = client.import_data request
|
703
702
|
#
|
704
|
-
# # The returned object is of type Gapic::Operation. You can use
|
705
|
-
# #
|
706
|
-
# #
|
703
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
704
|
+
# # check the status of an operation, cancel it, or wait for results.
|
705
|
+
# # Here is how to wait for a response.
|
707
706
|
# result.wait_until_done! timeout: 60
|
708
707
|
# if result.response?
|
709
708
|
# p result.response
|
710
709
|
# else
|
711
|
-
# puts "
|
710
|
+
# puts "No response received."
|
712
711
|
# end
|
713
712
|
#
|
714
713
|
def import_data request, options = nil
|
@@ -808,14 +807,14 @@ module Google
|
|
808
807
|
# # Call the export_data method.
|
809
808
|
# result = client.export_data request
|
810
809
|
#
|
811
|
-
# # The returned object is of type Gapic::Operation. You can use
|
812
|
-
# #
|
813
|
-
# #
|
810
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
811
|
+
# # check the status of an operation, cancel it, or wait for results.
|
812
|
+
# # Here is how to wait for a response.
|
814
813
|
# result.wait_until_done! timeout: 60
|
815
814
|
# if result.response?
|
816
815
|
# p result.response
|
817
816
|
# else
|
818
|
-
# puts "
|
817
|
+
# puts "No response received."
|
819
818
|
# end
|
820
819
|
#
|
821
820
|
def export_data request, options = nil
|
@@ -1001,13 +1000,11 @@ module Google
|
|
1001
1000
|
# # Call the list_data_items method.
|
1002
1001
|
# result = client.list_data_items request
|
1003
1002
|
#
|
1004
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1005
|
-
# #
|
1006
|
-
#
|
1007
|
-
# # methods are also available for managing paging directly.
|
1008
|
-
# result.each do |response|
|
1003
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1004
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1005
|
+
# result.each do |item|
|
1009
1006
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::DataItem.
|
1010
|
-
# p
|
1007
|
+
# p item
|
1011
1008
|
# end
|
1012
1009
|
#
|
1013
1010
|
def list_data_items request, options = nil
|
@@ -1192,13 +1189,11 @@ module Google
|
|
1192
1189
|
# # Call the list_annotated_datasets method.
|
1193
1190
|
# result = client.list_annotated_datasets request
|
1194
1191
|
#
|
1195
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1196
|
-
# #
|
1197
|
-
#
|
1198
|
-
# # methods are also available for managing paging directly.
|
1199
|
-
# result.each do |response|
|
1192
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1193
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1194
|
+
# result.each do |item|
|
1200
1195
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::AnnotatedDataset.
|
1201
|
-
# p
|
1196
|
+
# p item
|
1202
1197
|
# end
|
1203
1198
|
#
|
1204
1199
|
def list_annotated_datasets request, options = nil
|
@@ -1393,14 +1388,14 @@ module Google
|
|
1393
1388
|
# # Call the label_image method.
|
1394
1389
|
# result = client.label_image request
|
1395
1390
|
#
|
1396
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1397
|
-
# #
|
1398
|
-
# #
|
1391
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1392
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1393
|
+
# # Here is how to wait for a response.
|
1399
1394
|
# result.wait_until_done! timeout: 60
|
1400
1395
|
# if result.response?
|
1401
1396
|
# p result.response
|
1402
1397
|
# else
|
1403
|
-
# puts "
|
1398
|
+
# puts "No response received."
|
1404
1399
|
# end
|
1405
1400
|
#
|
1406
1401
|
def label_image request, options = nil
|
@@ -1508,14 +1503,14 @@ module Google
|
|
1508
1503
|
# # Call the label_video method.
|
1509
1504
|
# result = client.label_video request
|
1510
1505
|
#
|
1511
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1512
|
-
# #
|
1513
|
-
# #
|
1506
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1507
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1508
|
+
# # Here is how to wait for a response.
|
1514
1509
|
# result.wait_until_done! timeout: 60
|
1515
1510
|
# if result.response?
|
1516
1511
|
# p result.response
|
1517
1512
|
# else
|
1518
|
-
# puts "
|
1513
|
+
# puts "No response received."
|
1519
1514
|
# end
|
1520
1515
|
#
|
1521
1516
|
def label_video request, options = nil
|
@@ -1615,14 +1610,14 @@ module Google
|
|
1615
1610
|
# # Call the label_text method.
|
1616
1611
|
# result = client.label_text request
|
1617
1612
|
#
|
1618
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1619
|
-
# #
|
1620
|
-
# #
|
1613
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1614
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1615
|
+
# # Here is how to wait for a response.
|
1621
1616
|
# result.wait_until_done! timeout: 60
|
1622
1617
|
# if result.response?
|
1623
1618
|
# p result.response
|
1624
1619
|
# else
|
1625
|
-
# puts "
|
1620
|
+
# puts "No response received."
|
1626
1621
|
# end
|
1627
1622
|
#
|
1628
1623
|
def label_text request, options = nil
|
@@ -1813,13 +1808,11 @@ module Google
|
|
1813
1808
|
# # Call the list_examples method.
|
1814
1809
|
# result = client.list_examples request
|
1815
1810
|
#
|
1816
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1817
|
-
# #
|
1818
|
-
#
|
1819
|
-
# # methods are also available for managing paging directly.
|
1820
|
-
# result.each do |response|
|
1811
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1812
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1813
|
+
# result.each do |item|
|
1821
1814
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Example.
|
1822
|
-
# p
|
1815
|
+
# p item
|
1823
1816
|
# end
|
1824
1817
|
#
|
1825
1818
|
def list_examples request, options = nil
|
@@ -2093,13 +2086,11 @@ module Google
|
|
2093
2086
|
# # Call the list_annotation_spec_sets method.
|
2094
2087
|
# result = client.list_annotation_spec_sets request
|
2095
2088
|
#
|
2096
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2097
|
-
# #
|
2098
|
-
#
|
2099
|
-
# # methods are also available for managing paging directly.
|
2100
|
-
# result.each do |response|
|
2089
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2090
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2091
|
+
# result.each do |item|
|
2101
2092
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::AnnotationSpecSet.
|
2102
|
-
# p
|
2093
|
+
# p item
|
2103
2094
|
# end
|
2104
2095
|
#
|
2105
2096
|
def list_annotation_spec_sets request, options = nil
|
@@ -2274,14 +2265,14 @@ module Google
|
|
2274
2265
|
# # Call the create_instruction method.
|
2275
2266
|
# result = client.create_instruction request
|
2276
2267
|
#
|
2277
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2278
|
-
# #
|
2279
|
-
# #
|
2268
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2269
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2270
|
+
# # Here is how to wait for a response.
|
2280
2271
|
# result.wait_until_done! timeout: 60
|
2281
2272
|
# if result.response?
|
2282
2273
|
# p result.response
|
2283
2274
|
# else
|
2284
|
-
# puts "
|
2275
|
+
# puts "No response received."
|
2285
2276
|
# end
|
2286
2277
|
#
|
2287
2278
|
def create_instruction request, options = nil
|
@@ -2465,13 +2456,11 @@ module Google
|
|
2465
2456
|
# # Call the list_instructions method.
|
2466
2457
|
# result = client.list_instructions request
|
2467
2458
|
#
|
2468
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2469
|
-
# #
|
2470
|
-
#
|
2471
|
-
# # methods are also available for managing paging directly.
|
2472
|
-
# result.each do |response|
|
2459
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2460
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2461
|
+
# result.each do |item|
|
2473
2462
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Instruction.
|
2474
|
-
# p
|
2463
|
+
# p item
|
2475
2464
|
# end
|
2476
2465
|
#
|
2477
2466
|
def list_instructions request, options = nil
|
@@ -2775,13 +2764,11 @@ module Google
|
|
2775
2764
|
# # Call the search_evaluations method.
|
2776
2765
|
# result = client.search_evaluations request
|
2777
2766
|
#
|
2778
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2779
|
-
# #
|
2780
|
-
#
|
2781
|
-
# # methods are also available for managing paging directly.
|
2782
|
-
# result.each do |response|
|
2767
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2768
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2769
|
+
# result.each do |item|
|
2783
2770
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::Evaluation.
|
2784
|
-
# p
|
2771
|
+
# p item
|
2785
2772
|
# end
|
2786
2773
|
#
|
2787
2774
|
def search_evaluations request, options = nil
|
@@ -2883,13 +2870,11 @@ module Google
|
|
2883
2870
|
# # Call the search_example_comparisons method.
|
2884
2871
|
# result = client.search_example_comparisons request
|
2885
2872
|
#
|
2886
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2887
|
-
# #
|
2888
|
-
#
|
2889
|
-
# # methods are also available for managing paging directly.
|
2890
|
-
# result.each do |response|
|
2873
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2874
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2875
|
+
# result.each do |item|
|
2891
2876
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::SearchExampleComparisonsResponse::ExampleComparison.
|
2892
|
-
# p
|
2877
|
+
# p item
|
2893
2878
|
# end
|
2894
2879
|
#
|
2895
2880
|
def search_example_comparisons request, options = nil
|
@@ -3533,13 +3518,11 @@ module Google
|
|
3533
3518
|
# # Call the list_evaluation_jobs method.
|
3534
3519
|
# result = client.list_evaluation_jobs request
|
3535
3520
|
#
|
3536
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
3537
|
-
# #
|
3538
|
-
#
|
3539
|
-
# # methods are also available for managing paging directly.
|
3540
|
-
# result.each do |response|
|
3521
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3522
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3523
|
+
# result.each do |item|
|
3541
3524
|
# # Each element is of type ::Google::Cloud::DataLabeling::V1beta1::EvaluationJob.
|
3542
|
-
# p
|
3525
|
+
# p item
|
3543
3526
|
# end
|
3544
3527
|
#
|
3545
3528
|
def list_evaluation_jobs request, options = nil
|
@@ -3622,9 +3605,9 @@ module Google
|
|
3622
3605
|
# * (`String`) The path to a service account key file in JSON format
|
3623
3606
|
# * (`Hash`) A service account key as a Hash
|
3624
3607
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
3625
|
-
# (see the [googleauth docs](https://
|
3608
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
3626
3609
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3627
|
-
# (see the [signet docs](https://
|
3610
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3628
3611
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
3629
3612
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
3630
3613
|
# * (`nil`) indicating no credentials
|
@@ -3666,7 +3649,9 @@ module Google
|
|
3666
3649
|
class Configuration
|
3667
3650
|
extend ::Gapic::Config
|
3668
3651
|
|
3669
|
-
|
3652
|
+
DEFAULT_ENDPOINT = "datalabeling.googleapis.com"
|
3653
|
+
|
3654
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3670
3655
|
config_attr :credentials, nil do |value|
|
3671
3656
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3672
3657
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -3701,6 +3686,14 @@ module Google
|
|
3701
3686
|
end
|
3702
3687
|
end
|
3703
3688
|
|
3689
|
+
##
|
3690
|
+
# Configuration for the channel pool
|
3691
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
3692
|
+
#
|
3693
|
+
def channel_pool
|
3694
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
3695
|
+
end
|
3696
|
+
|
3704
3697
|
##
|
3705
3698
|
# Configuration RPC class for the DataLabelingService API.
|
3706
3699
|
#
|
@@ -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
|
@@ -158,13 +159,11 @@ module Google
|
|
158
159
|
# # Call the list_operations method.
|
159
160
|
# result = client.list_operations request
|
160
161
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
162
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
163
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
164
|
+
# result.each do |item|
|
166
165
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
166
|
+
# p item
|
168
167
|
# end
|
169
168
|
#
|
170
169
|
def list_operations request, options = nil
|
@@ -253,14 +252,14 @@ module Google
|
|
253
252
|
# # Call the get_operation method.
|
254
253
|
# result = client.get_operation request
|
255
254
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
255
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
256
|
+
# # check the status of an operation, cancel it, or wait for results.
|
257
|
+
# # Here is how to wait for a response.
|
259
258
|
# result.wait_until_done! timeout: 60
|
260
259
|
# if result.response?
|
261
260
|
# p result.response
|
262
261
|
# else
|
263
|
-
# puts "
|
262
|
+
# puts "No response received."
|
264
263
|
# end
|
265
264
|
#
|
266
265
|
def get_operation request, options = nil
|
@@ -540,14 +539,14 @@ module Google
|
|
540
539
|
# # Call the wait_operation method.
|
541
540
|
# result = client.wait_operation request
|
542
541
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
542
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
543
|
+
# # check the status of an operation, cancel it, or wait for results.
|
544
|
+
# # Here is how to wait for a response.
|
546
545
|
# result.wait_until_done! timeout: 60
|
547
546
|
# if result.response?
|
548
547
|
# p result.response
|
549
548
|
# else
|
550
|
-
# puts "
|
549
|
+
# puts "No response received."
|
551
550
|
# end
|
552
551
|
#
|
553
552
|
def wait_operation request, options = nil
|
@@ -622,9 +621,9 @@ module Google
|
|
622
621
|
# * (`String`) The path to a service account key file in JSON format
|
623
622
|
# * (`Hash`) A service account key as a Hash
|
624
623
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
625
|
-
# (see the [googleauth docs](https://
|
624
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
626
625
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
627
|
-
# (see the [signet docs](https://
|
626
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
628
627
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
629
628
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
630
629
|
# * (`nil`) indicating no credentials
|
@@ -666,7 +665,9 @@ module Google
|
|
666
665
|
class Configuration
|
667
666
|
extend ::Gapic::Config
|
668
667
|
|
669
|
-
|
668
|
+
DEFAULT_ENDPOINT = "datalabeling.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
670
671
|
config_attr :credentials, nil do |value|
|
671
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
672
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -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
|
#
|
@@ -34,7 +34,7 @@ module Google
|
|
34
34
|
##
|
35
35
|
# Service for the AI Platform Data Labeling API.
|
36
36
|
#
|
37
|
-
#
|
37
|
+
# @example Load this service and instantiate a gRPC client
|
38
38
|
#
|
39
39
|
# require "google/cloud/data_labeling/v1beta1/data_labeling_service"
|
40
40
|
# client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|
@@ -23,9 +23,9 @@ module Google
|
|
23
23
|
module Cloud
|
24
24
|
module DataLabeling
|
25
25
|
##
|
26
|
-
#
|
26
|
+
# API client module.
|
27
27
|
#
|
28
|
-
# @example
|
28
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
29
29
|
#
|
30
30
|
# require "google/cloud/data_labeling/v1beta1"
|
31
31
|
# client = ::Google::Cloud::DataLabeling::V1beta1::DataLabelingService::Client.new
|