google-cloud-vision-v1 0.3.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/vision/v1.rb +3 -0
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +29 -23
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +95 -10
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +2 -0
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +2 -3
- data/lib/google/cloud/vision/v1/product_search/client.rb +88 -84
- data/lib/google/cloud/vision/v1/product_search/operations.rb +95 -10
- data/lib/google/cloud/vision/v1/product_search_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +2 -3
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/cloud/vision/v1/image_annotator.rb +11 -2
- data/proto_docs/google/cloud/vision/v1/product_search.rb +1 -1
- data/proto_docs/google/cloud/vision/v1/product_search_service.rb +4 -7
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/type/latlng.rb +2 -2
- metadata +21 -11
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
@@ -19,8 +19,8 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Type
|
22
|
-
# An object
|
23
|
-
# of doubles
|
22
|
+
# An object that represents a latitude/longitude pair. This is expressed as a
|
23
|
+
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
24
24
|
# specified otherwise, this must conform to the
|
25
25
|
# <a href="http://www.unoosa.org/pdf/icg/2012/template/WGS_84.pdf">WGS84
|
26
26
|
# standard</a>. Values must be within normalized ranges.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -152,7 +158,10 @@ dependencies:
|
|
152
158
|
version: '0.9'
|
153
159
|
description: Cloud Vision API allows developers to easily integrate vision detection
|
154
160
|
features within applications, including image labeling, face and landmark detection,
|
155
|
-
optical character recognition (OCR), and tagging of explicit content.
|
161
|
+
optical character recognition (OCR), and tagging of explicit content. Note that
|
162
|
+
google-cloud-vision-v1 is a version-specific client library. For most uses, we recommend
|
163
|
+
installing the main client library google-cloud-vision instead. See the readme for
|
164
|
+
more details.
|
156
165
|
email: googleapis-packages@google.com
|
157
166
|
executables: []
|
158
167
|
extensions: []
|
@@ -195,6 +204,7 @@ files:
|
|
195
204
|
- proto_docs/google/cloud/vision/v1/web_detection.rb
|
196
205
|
- proto_docs/google/longrunning/operations.rb
|
197
206
|
- proto_docs/google/protobuf/any.rb
|
207
|
+
- proto_docs/google/protobuf/duration.rb
|
198
208
|
- proto_docs/google/protobuf/empty.rb
|
199
209
|
- proto_docs/google/protobuf/field_mask.rb
|
200
210
|
- proto_docs/google/protobuf/timestamp.rb
|
@@ -214,14 +224,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
214
224
|
requirements:
|
215
225
|
- - ">="
|
216
226
|
- !ruby/object:Gem::Version
|
217
|
-
version: '2.
|
227
|
+
version: '2.5'
|
218
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
219
229
|
requirements:
|
220
230
|
- - ">="
|
221
231
|
- !ruby/object:Gem::Version
|
222
232
|
version: '0'
|
223
233
|
requirements: []
|
224
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.2.17
|
225
235
|
signing_key:
|
226
236
|
specification_version: 4
|
227
237
|
summary: API Client library for the Cloud Vision V1 API
|