google-cloud-vision-v1p4beta1 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/client.rb +14 -3
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +13 -2
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/client.rb +82 -2
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/operations.rb +82 -5
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/service_stub.rb +4 -4
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +14 -3
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +13 -2
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/client.rb +338 -2
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/operations.rb +82 -5
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/service_stub.rb +19 -19
- data/lib/google/cloud/vision/v1p4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3e78900f14ab268809b2974db76a9460e9ded61ae1a09fe6662c1383262c779
|
4
|
+
data.tar.gz: 1b93d9648267f3f8111f22b6ef983fa3c3d306ffe8bb26578ec6db583624bb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c982ee1e49606fc9e43f5536526afad8d0c14c435d43e9b39693500dedfaeaf812c305fac9cae600a3d5f9a6ab2fb920d9bb7aeb66536dd4784ba9b0fc6f0de4
|
7
|
+
data.tar.gz: 9648ca60f5635b684d4d426b092a634f4b641b096cb0eacacbe080798477b5cd7a310ad8a3b26594f00e747b018009145f3733aa0545409be810f3bb964cdc31
|
@@ -145,7 +145,7 @@ module Google
|
|
145
145
|
credentials = @config.credentials
|
146
146
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
147
147
|
# but only if the default endpoint does not have a region prefix.
|
148
|
-
enable_self_signed_jwt = @config.endpoint ==
|
148
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
149
149
|
!@config.endpoint.split(".").first.include?("-")
|
150
150
|
credentials ||= Credentials.default scope: @config.scope,
|
151
151
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -166,7 +166,8 @@ module Google
|
|
166
166
|
credentials: credentials,
|
167
167
|
endpoint: @config.endpoint,
|
168
168
|
channel_args: @config.channel_args,
|
169
|
-
interceptors: @config.interceptors
|
169
|
+
interceptors: @config.interceptors,
|
170
|
+
channel_pool_config: @config.channel_pool
|
170
171
|
)
|
171
172
|
end
|
172
173
|
|
@@ -607,7 +608,9 @@ module Google
|
|
607
608
|
class Configuration
|
608
609
|
extend ::Gapic::Config
|
609
610
|
|
610
|
-
|
611
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
612
|
+
|
613
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
611
614
|
config_attr :credentials, nil do |value|
|
612
615
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
613
616
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -642,6 +645,14 @@ module Google
|
|
642
645
|
end
|
643
646
|
end
|
644
647
|
|
648
|
+
##
|
649
|
+
# Configuration for the channel pool
|
650
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
651
|
+
#
|
652
|
+
def channel_pool
|
653
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
654
|
+
end
|
655
|
+
|
645
656
|
##
|
646
657
|
# Configuration RPC class for the ImageAnnotator API.
|
647
658
|
#
|
@@ -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
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
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
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -141,7 +141,7 @@ module Google
|
|
141
141
|
credentials = @config.credentials
|
142
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
143
143
|
# but only if the default endpoint does not have a region prefix.
|
144
|
-
enable_self_signed_jwt = @config.endpoint ==
|
144
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
145
145
|
!@config.endpoint.split(".").first.include?("-")
|
146
146
|
credentials ||= Credentials.default scope: @config.scope,
|
147
147
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -197,6 +197,22 @@ module Google
|
|
197
197
|
# @return [::Google::Cloud::Vision::V1p4beta1::BatchAnnotateImagesResponse]
|
198
198
|
#
|
199
199
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
200
|
+
#
|
201
|
+
# @example Basic example
|
202
|
+
# require "google/cloud/vision/v1p4beta1"
|
203
|
+
#
|
204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
205
|
+
# client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Rest::Client.new
|
206
|
+
#
|
207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
208
|
+
# request = Google::Cloud::Vision::V1p4beta1::BatchAnnotateImagesRequest.new
|
209
|
+
#
|
210
|
+
# # Call the batch_annotate_images method.
|
211
|
+
# result = client.batch_annotate_images request
|
212
|
+
#
|
213
|
+
# # The returned object is of type Google::Cloud::Vision::V1p4beta1::BatchAnnotateImagesResponse.
|
214
|
+
# p result
|
215
|
+
#
|
200
216
|
def batch_annotate_images request, options = nil
|
201
217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
218
|
|
@@ -266,6 +282,22 @@ module Google
|
|
266
282
|
# @return [::Google::Cloud::Vision::V1p4beta1::BatchAnnotateFilesResponse]
|
267
283
|
#
|
268
284
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
285
|
+
#
|
286
|
+
# @example Basic example
|
287
|
+
# require "google/cloud/vision/v1p4beta1"
|
288
|
+
#
|
289
|
+
# # Create a client object. The client can be reused for multiple calls.
|
290
|
+
# client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Rest::Client.new
|
291
|
+
#
|
292
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
293
|
+
# request = Google::Cloud::Vision::V1p4beta1::BatchAnnotateFilesRequest.new
|
294
|
+
#
|
295
|
+
# # Call the batch_annotate_files method.
|
296
|
+
# result = client.batch_annotate_files request
|
297
|
+
#
|
298
|
+
# # The returned object is of type Google::Cloud::Vision::V1p4beta1::BatchAnnotateFilesResponse.
|
299
|
+
# p result
|
300
|
+
#
|
269
301
|
def batch_annotate_files request, options = nil
|
270
302
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
271
303
|
|
@@ -338,6 +370,29 @@ module Google
|
|
338
370
|
# @return [::Gapic::Operation]
|
339
371
|
#
|
340
372
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
373
|
+
#
|
374
|
+
# @example Basic example
|
375
|
+
# require "google/cloud/vision/v1p4beta1"
|
376
|
+
#
|
377
|
+
# # Create a client object. The client can be reused for multiple calls.
|
378
|
+
# client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Rest::Client.new
|
379
|
+
#
|
380
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
381
|
+
# request = Google::Cloud::Vision::V1p4beta1::AsyncBatchAnnotateImagesRequest.new
|
382
|
+
#
|
383
|
+
# # Call the async_batch_annotate_images method.
|
384
|
+
# result = client.async_batch_annotate_images request
|
385
|
+
#
|
386
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
387
|
+
# # check the status of an operation, cancel it, or wait for results.
|
388
|
+
# # Here is how to wait for a response.
|
389
|
+
# result.wait_until_done! timeout: 60
|
390
|
+
# if result.response?
|
391
|
+
# p result.response
|
392
|
+
# else
|
393
|
+
# puts "No response received."
|
394
|
+
# end
|
395
|
+
#
|
341
396
|
def async_batch_annotate_images request, options = nil
|
342
397
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
398
|
|
@@ -406,6 +461,29 @@ module Google
|
|
406
461
|
# @return [::Gapic::Operation]
|
407
462
|
#
|
408
463
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
464
|
+
#
|
465
|
+
# @example Basic example
|
466
|
+
# require "google/cloud/vision/v1p4beta1"
|
467
|
+
#
|
468
|
+
# # Create a client object. The client can be reused for multiple calls.
|
469
|
+
# client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Rest::Client.new
|
470
|
+
#
|
471
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
472
|
+
# request = Google::Cloud::Vision::V1p4beta1::AsyncBatchAnnotateFilesRequest.new
|
473
|
+
#
|
474
|
+
# # Call the async_batch_annotate_files method.
|
475
|
+
# result = client.async_batch_annotate_files request
|
476
|
+
#
|
477
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
478
|
+
# # check the status of an operation, cancel it, or wait for results.
|
479
|
+
# # Here is how to wait for a response.
|
480
|
+
# result.wait_until_done! timeout: 60
|
481
|
+
# if result.response?
|
482
|
+
# p result.response
|
483
|
+
# else
|
484
|
+
# puts "No response received."
|
485
|
+
# end
|
486
|
+
#
|
409
487
|
def async_batch_annotate_files request, options = nil
|
410
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
411
489
|
|
@@ -515,7 +593,9 @@ module Google
|
|
515
593
|
class Configuration
|
516
594
|
extend ::Gapic::Config
|
517
595
|
|
518
|
-
|
596
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
597
|
+
|
598
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
519
599
|
config_attr :credentials, nil do |value|
|
520
600
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
521
601
|
allowed.any? { |klass| klass === value }
|
@@ -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
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_annotate_images_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_annotate_files_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_async_batch_annotate_images_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_async_batch_annotate_files_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -230,7 +230,7 @@ module Google
|
|
230
230
|
credentials = @config.credentials
|
231
231
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
232
232
|
# but only if the default endpoint does not have a region prefix.
|
233
|
-
enable_self_signed_jwt = @config.endpoint ==
|
233
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
234
234
|
!@config.endpoint.split(".").first.include?("-")
|
235
235
|
credentials ||= Credentials.default scope: @config.scope,
|
236
236
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -251,7 +251,8 @@ module Google
|
|
251
251
|
credentials: credentials,
|
252
252
|
endpoint: @config.endpoint,
|
253
253
|
channel_args: @config.channel_args,
|
254
|
-
interceptors: @config.interceptors
|
254
|
+
interceptors: @config.interceptors,
|
255
|
+
channel_pool_config: @config.channel_pool
|
255
256
|
)
|
256
257
|
end
|
257
258
|
|
@@ -2258,7 +2259,9 @@ module Google
|
|
2258
2259
|
class Configuration
|
2259
2260
|
extend ::Gapic::Config
|
2260
2261
|
|
2261
|
-
|
2262
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
2263
|
+
|
2264
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
2262
2265
|
config_attr :credentials, nil do |value|
|
2263
2266
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
2264
2267
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -2293,6 +2296,14 @@ module Google
|
|
2293
2296
|
end
|
2294
2297
|
end
|
2295
2298
|
|
2299
|
+
##
|
2300
|
+
# Configuration for the channel pool
|
2301
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2302
|
+
#
|
2303
|
+
def channel_pool
|
2304
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2305
|
+
end
|
2306
|
+
|
2296
2307
|
##
|
2297
2308
|
# Configuration RPC class for the ProductSearch API.
|
2298
2309
|
#
|
@@ -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
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "vision.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
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
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|