google-cloud-vision-v1p4beta1 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74ab9478678fa6eaeaa499bda2842a773cc53e1210c4f99288c0f1e7871f1128
4
- data.tar.gz: 4ce23512cee350a191e8fdf243a0c4984866ae274f143b73a5f48ea04d5675f2
3
+ metadata.gz: 3942d55fa5589b61a1d9fe09fc16b0ecae41866bea60cbadfc6117bad9c78289
4
+ data.tar.gz: 91dfaa7586918d4f883127bd2369632adbd751bbb2dba9d34b53802d3cc15fa4
5
5
  SHA512:
6
- metadata.gz: 3e93d50fa2644fe1ac71ee1dca8c6379d0cb0d990633c4f20d4c111c2daec03af5c8fd529a5bb83889a7556221af5fac17761b1522455ff3f747f30244964046
7
- data.tar.gz: 15fbbcada78d2771348a1ff9c3cbfbbecf04f979da7e8bbef282b9efa660404f74275ce8423adc41362b6c568387cb152371e4238e8692a29d1270e53f5acdca
6
+ metadata.gz: 708d924308091bc9f55e02b21501be7f383fc7a685cad03b5ddaf7aa81fd21fa9fe2472b79e3e739bca8055d6854bb0a18300d30c1a5cc3c73b70a97ed93da94
7
+ data.tar.gz: 9b55c5325e570374798bcd642c7669b9025a3f6e610b0d346e5f75ed087b140bd2fe407d40e7ef37560dc2224e8571f05eabeab8dbf3eef324a67c9a97f1e30e
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1p4beta1/face.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/cloud/vision/v1p4beta1/geometry_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/vision/v1p4beta1/face.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.vision.v1p4beta1.FaceRecognitionParams" do
@@ -1,9 +1,9 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1p4beta1/geometry.proto
3
3
 
4
+ require 'google/api/annotations_pb'
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  Google::Protobuf::DescriptorPool.generated_pool.build do
8
8
  add_file("google/cloud/vision/v1p4beta1/geometry.proto", :syntax => :proto3) do
9
9
  add_message "google.cloud.vision.v1p4beta1.Vertex" do
@@ -207,6 +207,21 @@ module Google
207
207
  #
208
208
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
209
209
  #
210
+ # @example Basic example
211
+ # require "google/cloud/vision/v1p4beta1"
212
+ #
213
+ # # Create a client object. The client can be reused for multiple calls.
214
+ # client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new
215
+ #
216
+ # # Create a request. To set request fields, pass in keyword arguments.
217
+ # request = Google::Cloud::Vision::V1p4beta1::BatchAnnotateImagesRequest.new
218
+ #
219
+ # # Call the batch_annotate_images method.
220
+ # result = client.batch_annotate_images request
221
+ #
222
+ # # The returned object is of type Google::Cloud::Vision::V1p4beta1::BatchAnnotateImagesResponse.
223
+ # p result
224
+ #
210
225
  def batch_annotate_images request, options = nil
211
226
  raise ::ArgumentError, "request must be provided" if request.nil?
212
227
 
@@ -276,6 +291,21 @@ module Google
276
291
  #
277
292
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
278
293
  #
294
+ # @example Basic example
295
+ # require "google/cloud/vision/v1p4beta1"
296
+ #
297
+ # # Create a client object. The client can be reused for multiple calls.
298
+ # client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new
299
+ #
300
+ # # Create a request. To set request fields, pass in keyword arguments.
301
+ # request = Google::Cloud::Vision::V1p4beta1::BatchAnnotateFilesRequest.new
302
+ #
303
+ # # Call the batch_annotate_files method.
304
+ # result = client.batch_annotate_files request
305
+ #
306
+ # # The returned object is of type Google::Cloud::Vision::V1p4beta1::BatchAnnotateFilesResponse.
307
+ # p result
308
+ #
279
309
  def batch_annotate_files request, options = nil
280
310
  raise ::ArgumentError, "request must be provided" if request.nil?
281
311
 
@@ -348,6 +378,28 @@ module Google
348
378
  #
349
379
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
350
380
  #
381
+ # @example Basic example
382
+ # require "google/cloud/vision/v1p4beta1"
383
+ #
384
+ # # Create a client object. The client can be reused for multiple calls.
385
+ # client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new
386
+ #
387
+ # # Create a request. To set request fields, pass in keyword arguments.
388
+ # request = Google::Cloud::Vision::V1p4beta1::AsyncBatchAnnotateImagesRequest.new
389
+ #
390
+ # # Call the async_batch_annotate_images method.
391
+ # result = client.async_batch_annotate_images request
392
+ #
393
+ # # The returned object is of type Gapic::Operation. You can use this
394
+ # # object to check the status of an operation, cancel it, or wait
395
+ # # for results. Here is how to block until completion:
396
+ # result.wait_until_done! timeout: 60
397
+ # if result.response?
398
+ # p result.response
399
+ # else
400
+ # puts "Error!"
401
+ # end
402
+ #
351
403
  def async_batch_annotate_images request, options = nil
352
404
  raise ::ArgumentError, "request must be provided" if request.nil?
353
405
 
@@ -416,6 +468,28 @@ module Google
416
468
  #
417
469
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
418
470
  #
471
+ # @example Basic example
472
+ # require "google/cloud/vision/v1p4beta1"
473
+ #
474
+ # # Create a client object. The client can be reused for multiple calls.
475
+ # client = Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new
476
+ #
477
+ # # Create a request. To set request fields, pass in keyword arguments.
478
+ # request = Google::Cloud::Vision::V1p4beta1::AsyncBatchAnnotateFilesRequest.new
479
+ #
480
+ # # Call the async_batch_annotate_files method.
481
+ # result = client.async_batch_annotate_files request
482
+ #
483
+ # # The returned object is of type Gapic::Operation. You can use this
484
+ # # object to check the status of an operation, cancel it, or wait
485
+ # # for results. Here is how to block until completion:
486
+ # result.wait_until_done! timeout: 60
487
+ # if result.response?
488
+ # p result.response
489
+ # else
490
+ # puts "Error!"
491
+ # end
492
+ #
419
493
  def async_batch_annotate_files request, options = nil
420
494
  raise ::ArgumentError, "request must be provided" if request.nil?
421
495
 
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::Vision::V1p4beta1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/vision/v1p4beta1/image_annotator.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -17,6 +15,8 @@ require 'google/protobuf/timestamp_pb'
17
15
  require 'google/rpc/status_pb'
18
16
  require 'google/type/color_pb'
19
17
  require 'google/type/latlng_pb'
18
+ require 'google/protobuf'
19
+
20
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
21
21
  add_file("google/cloud/vision/v1p4beta1/image_annotator.proto", :syntax => :proto3) do
22
22
  add_message "google.cloud.vision.v1p4beta1.Feature" do