google-cloud-vision-v1 0.1.4 → 0.1.5
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 +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/vision/v1.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +108 -108
- data/lib/google/cloud/vision/v1/image_annotator/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +100 -100
- data/lib/google/cloud/vision/v1/image_annotator/paths.rb +3 -3
- data/lib/google/cloud/vision/v1/product_search.rb +4 -4
- data/lib/google/cloud/vision/v1/product_search/client.rb +377 -377
- data/lib/google/cloud/vision/v1/product_search/credentials.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search/operations.rb +100 -100
- data/lib/google/cloud/vision/v1/product_search/paths.rb +12 -12
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/vision/v1/geometry.rb +17 -17
- data/proto_docs/google/cloud/vision/v1/image_annotator.rb +204 -204
- data/proto_docs/google/cloud/vision/v1/product_search.rb +28 -28
- data/proto_docs/google/cloud/vision/v1/product_search_service.rb +144 -144
- data/proto_docs/google/cloud/vision/v1/text_annotation.rb +49 -49
- data/proto_docs/google/cloud/vision/v1/web_detection.rb +28 -28
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/protobuf/wrappers.rb +27 -27
- data/proto_docs/google/rpc/status.rb +6 -6
- data/proto_docs/google/type/color.rb +6 -6
- data/proto_docs/google/type/latlng.rb +4 -4
- metadata +2 -2
@@ -99,7 +99,7 @@ module Google
|
|
99
99
|
# "value": "1.212s"
|
100
100
|
# }
|
101
101
|
# @!attribute [rw] type_url
|
102
|
-
# @return [String]
|
102
|
+
# @return [::String]
|
103
103
|
# A URL/resource name that uniquely identifies the type of the serialized
|
104
104
|
# protocol buffer message. This string must contain at least
|
105
105
|
# one "/" character. The last segment of the URL's path must represent
|
@@ -128,11 +128,11 @@ module Google
|
|
128
128
|
# Schemes other than `http`, `https` (or the empty scheme) might be
|
129
129
|
# used with implementation specific semantics.
|
130
130
|
# @!attribute [rw] value
|
131
|
-
# @return [String]
|
131
|
+
# @return [::String]
|
132
132
|
# Must be a valid serialized protocol buffer of the above specified type.
|
133
133
|
class Any
|
134
|
-
include Google::Protobuf::MessageExts
|
135
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
134
|
+
include ::Google::Protobuf::MessageExts
|
135
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
136
|
end
|
137
137
|
end
|
138
138
|
end
|
@@ -29,8 +29,8 @@ module Google
|
|
29
29
|
#
|
30
30
|
# The JSON representation for `Empty` is empty JSON object `{}`.
|
31
31
|
class Empty
|
32
|
-
include Google::Protobuf::MessageExts
|
33
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
include ::Google::Protobuf::MessageExts
|
33
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -219,11 +219,11 @@ module Google
|
|
219
219
|
# request should verify the included field paths, and return an
|
220
220
|
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
221
|
# @!attribute [rw] paths
|
222
|
-
# @return [Array
|
222
|
+
# @return [::Array<::String>]
|
223
223
|
# The set of field mask paths.
|
224
224
|
class FieldMask
|
225
|
-
include Google::Protobuf::MessageExts
|
226
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
227
|
end
|
228
228
|
end
|
229
229
|
end
|
@@ -102,19 +102,19 @@ module Google
|
|
102
102
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
103
103
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
104
104
|
# @!attribute [rw] seconds
|
105
|
-
# @return [Integer]
|
105
|
+
# @return [::Integer]
|
106
106
|
# Represents seconds of UTC time since Unix epoch
|
107
107
|
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
108
108
|
# 9999-12-31T23:59:59Z inclusive.
|
109
109
|
# @!attribute [rw] nanos
|
110
|
-
# @return [Integer]
|
110
|
+
# @return [::Integer]
|
111
111
|
# Non-negative fractions of a second at nanosecond resolution. Negative
|
112
112
|
# second values with fractions must still have non-negative nanos values
|
113
113
|
# that count forward in time. Must be from 0 to 999,999,999
|
114
114
|
# inclusive.
|
115
115
|
class Timestamp
|
116
|
-
include Google::Protobuf::MessageExts
|
117
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
116
|
+
include ::Google::Protobuf::MessageExts
|
117
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
118
118
|
end
|
119
119
|
end
|
120
120
|
end
|
@@ -23,99 +23,99 @@ module Google
|
|
23
23
|
#
|
24
24
|
# The JSON representation for `DoubleValue` is JSON number.
|
25
25
|
# @!attribute [rw] value
|
26
|
-
# @return [Float]
|
26
|
+
# @return [::Float]
|
27
27
|
# The double value.
|
28
28
|
class DoubleValue
|
29
|
-
include Google::Protobuf::MessageExts
|
30
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
31
|
end
|
32
32
|
|
33
33
|
# Wrapper message for `float`.
|
34
34
|
#
|
35
35
|
# The JSON representation for `FloatValue` is JSON number.
|
36
36
|
# @!attribute [rw] value
|
37
|
-
# @return [Float]
|
37
|
+
# @return [::Float]
|
38
38
|
# The float value.
|
39
39
|
class FloatValue
|
40
|
-
include Google::Protobuf::MessageExts
|
41
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
40
|
+
include ::Google::Protobuf::MessageExts
|
41
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
42
42
|
end
|
43
43
|
|
44
44
|
# Wrapper message for `int64`.
|
45
45
|
#
|
46
46
|
# The JSON representation for `Int64Value` is JSON string.
|
47
47
|
# @!attribute [rw] value
|
48
|
-
# @return [Integer]
|
48
|
+
# @return [::Integer]
|
49
49
|
# The int64 value.
|
50
50
|
class Int64Value
|
51
|
-
include Google::Protobuf::MessageExts
|
52
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
53
|
end
|
54
54
|
|
55
55
|
# Wrapper message for `uint64`.
|
56
56
|
#
|
57
57
|
# The JSON representation for `UInt64Value` is JSON string.
|
58
58
|
# @!attribute [rw] value
|
59
|
-
# @return [Integer]
|
59
|
+
# @return [::Integer]
|
60
60
|
# The uint64 value.
|
61
61
|
class UInt64Value
|
62
|
-
include Google::Protobuf::MessageExts
|
63
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
62
|
+
include ::Google::Protobuf::MessageExts
|
63
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
64
64
|
end
|
65
65
|
|
66
66
|
# Wrapper message for `int32`.
|
67
67
|
#
|
68
68
|
# The JSON representation for `Int32Value` is JSON number.
|
69
69
|
# @!attribute [rw] value
|
70
|
-
# @return [Integer]
|
70
|
+
# @return [::Integer]
|
71
71
|
# The int32 value.
|
72
72
|
class Int32Value
|
73
|
-
include Google::Protobuf::MessageExts
|
74
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
75
|
end
|
76
76
|
|
77
77
|
# Wrapper message for `uint32`.
|
78
78
|
#
|
79
79
|
# The JSON representation for `UInt32Value` is JSON number.
|
80
80
|
# @!attribute [rw] value
|
81
|
-
# @return [Integer]
|
81
|
+
# @return [::Integer]
|
82
82
|
# The uint32 value.
|
83
83
|
class UInt32Value
|
84
|
-
include Google::Protobuf::MessageExts
|
85
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
86
|
end
|
87
87
|
|
88
88
|
# Wrapper message for `bool`.
|
89
89
|
#
|
90
90
|
# The JSON representation for `BoolValue` is JSON `true` and `false`.
|
91
91
|
# @!attribute [rw] value
|
92
|
-
# @return [Boolean]
|
92
|
+
# @return [::Boolean]
|
93
93
|
# The bool value.
|
94
94
|
class BoolValue
|
95
|
-
include Google::Protobuf::MessageExts
|
96
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
include ::Google::Protobuf::MessageExts
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
97
97
|
end
|
98
98
|
|
99
99
|
# Wrapper message for `string`.
|
100
100
|
#
|
101
101
|
# The JSON representation for `StringValue` is JSON string.
|
102
102
|
# @!attribute [rw] value
|
103
|
-
# @return [String]
|
103
|
+
# @return [::String]
|
104
104
|
# The string value.
|
105
105
|
class StringValue
|
106
|
-
include Google::Protobuf::MessageExts
|
107
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
106
|
+
include ::Google::Protobuf::MessageExts
|
107
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
108
108
|
end
|
109
109
|
|
110
110
|
# Wrapper message for `bytes`.
|
111
111
|
#
|
112
112
|
# The JSON representation for `BytesValue` is JSON string.
|
113
113
|
# @!attribute [rw] value
|
114
|
-
# @return [String]
|
114
|
+
# @return [::String]
|
115
115
|
# The bytes value.
|
116
116
|
class BytesValue
|
117
|
-
include Google::Protobuf::MessageExts
|
118
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
117
|
+
include ::Google::Protobuf::MessageExts
|
118
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
119
119
|
end
|
120
120
|
end
|
121
121
|
end
|
@@ -27,20 +27,20 @@ module Google
|
|
27
27
|
# You can find out more about this error model and how to work with it in the
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
|
-
# @return [Integer]
|
30
|
+
# @return [::Integer]
|
31
31
|
# The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
|
32
32
|
# @!attribute [rw] message
|
33
|
-
# @return [String]
|
33
|
+
# @return [::String]
|
34
34
|
# A developer-facing error message, which should be in English. Any
|
35
35
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
|
36
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized by the client.
|
37
37
|
# @!attribute [rw] details
|
38
|
-
# @return [Array
|
38
|
+
# @return [::Array<::Google::Protobuf::Any>]
|
39
39
|
# A list of messages that carry the error details. There is a common set of
|
40
40
|
# message types for APIs to use.
|
41
41
|
class Status
|
42
|
-
include Google::Protobuf::MessageExts
|
43
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
42
|
+
include ::Google::Protobuf::MessageExts
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -139,16 +139,16 @@ module Google
|
|
139
139
|
#
|
140
140
|
# // ...
|
141
141
|
# @!attribute [rw] red
|
142
|
-
# @return [Float]
|
142
|
+
# @return [::Float]
|
143
143
|
# The amount of red in the color as a value in the interval [0, 1].
|
144
144
|
# @!attribute [rw] green
|
145
|
-
# @return [Float]
|
145
|
+
# @return [::Float]
|
146
146
|
# The amount of green in the color as a value in the interval [0, 1].
|
147
147
|
# @!attribute [rw] blue
|
148
|
-
# @return [Float]
|
148
|
+
# @return [::Float]
|
149
149
|
# The amount of blue in the color as a value in the interval [0, 1].
|
150
150
|
# @!attribute [rw] alpha
|
151
|
-
# @return [Google::Protobuf::FloatValue]
|
151
|
+
# @return [::Google::Protobuf::FloatValue]
|
152
152
|
# The fraction of this color that should be applied to the pixel. That is,
|
153
153
|
# the final pixel color is defined by the equation:
|
154
154
|
#
|
@@ -161,8 +161,8 @@ module Google
|
|
161
161
|
# If omitted, this color object is to be rendered as a solid color
|
162
162
|
# (as if the alpha value had been explicitly given with a value of 1.0).
|
163
163
|
class Color
|
164
|
-
include Google::Protobuf::MessageExts
|
165
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
164
|
+
include ::Google::Protobuf::MessageExts
|
165
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
166
166
|
end
|
167
167
|
end
|
168
168
|
end
|
@@ -25,14 +25,14 @@ module Google
|
|
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.
|
27
27
|
# @!attribute [rw] latitude
|
28
|
-
# @return [Float]
|
28
|
+
# @return [::Float]
|
29
29
|
# The latitude in degrees. It must be in the range [-90.0, +90.0].
|
30
30
|
# @!attribute [rw] longitude
|
31
|
-
# @return [Float]
|
31
|
+
# @return [::Float]
|
32
32
|
# The longitude in degrees. It must be in the range [-180.0, +180.0].
|
33
33
|
class LatLng
|
34
|
-
include Google::Protobuf::MessageExts
|
35
|
-
extend Google::Protobuf::MessageExts::ClassMethods
|
34
|
+
include ::Google::Protobuf::MessageExts
|
35
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|