google-cloud-vision-v1p4beta1 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/vision/v1p4beta1/face_pb.rb +0 -1
- data/lib/google/cloud/vision/v1p4beta1/geometry_pb.rb +0 -2
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/client.rb +8 -8
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +12 -14
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/client.rb +610 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/operations.rb +793 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest/service_stub.rb +280 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/rest.rb +55 -0
- data/lib/google/cloud/vision/v1p4beta1/image_annotator.rb +7 -1
- data/lib/google/cloud/vision/v1p4beta1/image_annotator_pb.rb +0 -1
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +24 -32
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +12 -14
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/client.rb +1973 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/operations.rb +793 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest/service_stub.rb +1178 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search/rest.rb +70 -0
- data/lib/google/cloud/vision/v1p4beta1/product_search.rb +7 -1
- data/lib/google/cloud/vision/v1p4beta1/product_search_pb.rb +0 -1
- data/lib/google/cloud/vision/v1p4beta1/rest.rb +38 -0
- data/lib/google/cloud/vision/v1p4beta1/text_annotation_pb.rb +0 -1
- data/lib/google/cloud/vision/v1p4beta1/version.rb +1 -1
- data/lib/google/cloud/vision/v1p4beta1/web_detection_pb.rb +0 -2
- data/lib/google/cloud/vision/v1p4beta1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/vision/v1p4beta1/image_annotator.rb +2 -1
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +18 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd08f67a504e79810a61bf1a27613f4d169d5e4e1ca46351adfebcc55923ebc6
|
4
|
+
data.tar.gz: e5e01d9873455d58f69602139c9e9638c349cb78b83d900b0b949e59ff40d4fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f61fc036bce04b7ac6bc881cec134ad3e6e27f19a28b06e373524dfb0eff7e559d3fff5ea8af305604e4ddeca56c2489c308a0d90d1bfefd12e010d19925dba8
|
7
|
+
data.tar.gz: '065639a173006648de77ee4f6d7bf14868473f29ae3b518cb0fdc6946136355dd14f555295d5631e77570a55d5fc909bb7d844ea4a42335dd765e762a7d6c690'
|
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
@@ -46,7 +46,7 @@ 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/
|
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
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
|
@@ -3,8 +3,6 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
|
-
|
8
6
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
7
|
add_file("google/cloud/vision/v1p4beta1/geometry.proto", :syntax => :proto3) do
|
10
8
|
add_message "google.cloud.vision.v1p4beta1.Vertex" do
|
@@ -391,14 +391,14 @@ module Google
|
|
391
391
|
# # Call the async_batch_annotate_images method.
|
392
392
|
# result = client.async_batch_annotate_images request
|
393
393
|
#
|
394
|
-
# # The returned object is of type Gapic::Operation. You can use
|
395
|
-
# #
|
396
|
-
# #
|
394
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
395
|
+
# # check the status of an operation, cancel it, or wait for results.
|
396
|
+
# # Here is how to wait for a response.
|
397
397
|
# result.wait_until_done! timeout: 60
|
398
398
|
# if result.response?
|
399
399
|
# p result.response
|
400
400
|
# else
|
401
|
-
# puts "
|
401
|
+
# puts "No response received."
|
402
402
|
# end
|
403
403
|
#
|
404
404
|
def async_batch_annotate_images request, options = nil
|
@@ -481,14 +481,14 @@ module Google
|
|
481
481
|
# # Call the async_batch_annotate_files method.
|
482
482
|
# result = client.async_batch_annotate_files request
|
483
483
|
#
|
484
|
-
# # The returned object is of type Gapic::Operation. You can use
|
485
|
-
# #
|
486
|
-
# #
|
484
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
485
|
+
# # check the status of an operation, cancel it, or wait for results.
|
486
|
+
# # Here is how to wait for a response.
|
487
487
|
# result.wait_until_done! timeout: 60
|
488
488
|
# if result.response?
|
489
489
|
# p result.response
|
490
490
|
# else
|
491
|
-
# puts "
|
491
|
+
# puts "No response received."
|
492
492
|
# end
|
493
493
|
#
|
494
494
|
def async_batch_annotate_files request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
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|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|