google-cloud-vision 0.32.3 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/vision.rb +26 -26
- data/lib/google/cloud/vision/v1.rb +27 -27
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +85 -10
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search.rb +7 -4
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search_service.rb +2 -1
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +11 -11
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +132 -0
- data/lib/google/cloud/vision/v1/image_annotator_client_config.json +10 -0
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +26 -0
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +19 -1
- data/lib/google/cloud/vision/v1/product_search_client.rb +319 -335
- data/lib/google/cloud/vision/v1/product_search_client_config.json +18 -18
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +1 -17
- data/lib/google/cloud/vision/v1/web_detection_pb.rb +5 -5
- metadata +2 -2
@@ -20,72 +20,72 @@
|
|
20
20
|
}
|
21
21
|
},
|
22
22
|
"methods": {
|
23
|
-
"
|
23
|
+
"CreateProductSet": {
|
24
24
|
"timeout_millis": 60000,
|
25
25
|
"retry_codes_name": "non_idempotent",
|
26
26
|
"retry_params_name": "default"
|
27
27
|
},
|
28
|
-
"
|
28
|
+
"ListProductSets": {
|
29
29
|
"timeout_millis": 60000,
|
30
30
|
"retry_codes_name": "idempotent",
|
31
31
|
"retry_params_name": "default"
|
32
32
|
},
|
33
|
-
"
|
33
|
+
"GetProductSet": {
|
34
34
|
"timeout_millis": 60000,
|
35
35
|
"retry_codes_name": "idempotent",
|
36
36
|
"retry_params_name": "default"
|
37
37
|
},
|
38
|
-
"
|
38
|
+
"UpdateProductSet": {
|
39
39
|
"timeout_millis": 60000,
|
40
40
|
"retry_codes_name": "idempotent",
|
41
41
|
"retry_params_name": "default"
|
42
42
|
},
|
43
|
-
"
|
43
|
+
"DeleteProductSet": {
|
44
44
|
"timeout_millis": 60000,
|
45
45
|
"retry_codes_name": "idempotent",
|
46
46
|
"retry_params_name": "default"
|
47
47
|
},
|
48
|
-
"
|
48
|
+
"CreateProduct": {
|
49
49
|
"timeout_millis": 60000,
|
50
|
-
"retry_codes_name": "
|
50
|
+
"retry_codes_name": "non_idempotent",
|
51
51
|
"retry_params_name": "default"
|
52
52
|
},
|
53
|
-
"
|
53
|
+
"ListProducts": {
|
54
54
|
"timeout_millis": 60000,
|
55
55
|
"retry_codes_name": "idempotent",
|
56
56
|
"retry_params_name": "default"
|
57
57
|
},
|
58
|
-
"
|
58
|
+
"GetProduct": {
|
59
59
|
"timeout_millis": 60000,
|
60
60
|
"retry_codes_name": "idempotent",
|
61
61
|
"retry_params_name": "default"
|
62
62
|
},
|
63
|
-
"
|
63
|
+
"UpdateProduct": {
|
64
64
|
"timeout_millis": 60000,
|
65
|
-
"retry_codes_name": "
|
65
|
+
"retry_codes_name": "idempotent",
|
66
66
|
"retry_params_name": "default"
|
67
67
|
},
|
68
|
-
"
|
68
|
+
"DeleteProduct": {
|
69
69
|
"timeout_millis": 60000,
|
70
|
-
"retry_codes_name": "
|
70
|
+
"retry_codes_name": "idempotent",
|
71
71
|
"retry_params_name": "default"
|
72
72
|
},
|
73
|
-
"
|
73
|
+
"CreateReferenceImage": {
|
74
74
|
"timeout_millis": 60000,
|
75
|
-
"retry_codes_name": "
|
75
|
+
"retry_codes_name": "non_idempotent",
|
76
76
|
"retry_params_name": "default"
|
77
77
|
},
|
78
|
-
"
|
78
|
+
"DeleteReferenceImage": {
|
79
79
|
"timeout_millis": 60000,
|
80
80
|
"retry_codes_name": "idempotent",
|
81
81
|
"retry_params_name": "default"
|
82
82
|
},
|
83
|
-
"
|
83
|
+
"ListReferenceImages": {
|
84
84
|
"timeout_millis": 60000,
|
85
85
|
"retry_codes_name": "idempotent",
|
86
86
|
"retry_params_name": "default"
|
87
87
|
},
|
88
|
-
"
|
88
|
+
"GetReferenceImage": {
|
89
89
|
"timeout_millis": 60000,
|
90
90
|
"retry_codes_name": "idempotent",
|
91
91
|
"retry_params_name": "default"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/vision/v1/product_search_service.proto for package 'google.cloud.vision.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2019 Google LLC.
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -83,10 +83,6 @@ module Google
|
|
83
83
|
# ProductSet are not deleted.
|
84
84
|
#
|
85
85
|
# The actual image files are not deleted from Google Cloud Storage.
|
86
|
-
#
|
87
|
-
# Possible errors:
|
88
|
-
#
|
89
|
-
# * Returns NOT_FOUND if the ProductSet does not exist.
|
90
86
|
rpc :DeleteProductSet, DeleteProductSetRequest, Google::Protobuf::Empty
|
91
87
|
# Creates and returns a new product resource.
|
92
88
|
#
|
@@ -130,10 +126,6 @@ module Google
|
|
130
126
|
# Metadata of the product and all its images will be deleted right away, but
|
131
127
|
# search queries against ProductSets containing the product may still work
|
132
128
|
# until all related caches are refreshed.
|
133
|
-
#
|
134
|
-
# Possible errors:
|
135
|
-
#
|
136
|
-
# * Returns NOT_FOUND if the product does not exist.
|
137
129
|
rpc :DeleteProduct, DeleteProductRequest, Google::Protobuf::Empty
|
138
130
|
# Creates and returns a new ReferenceImage resource.
|
139
131
|
#
|
@@ -162,10 +154,6 @@ module Google
|
|
162
154
|
# caches are refreshed.
|
163
155
|
#
|
164
156
|
# The actual image files are not deleted from Google Cloud Storage.
|
165
|
-
#
|
166
|
-
# Possible errors:
|
167
|
-
#
|
168
|
-
# * Returns NOT_FOUND if the reference image does not exist.
|
169
157
|
rpc :DeleteReferenceImage, DeleteReferenceImageRequest, Google::Protobuf::Empty
|
170
158
|
# Lists reference images.
|
171
159
|
#
|
@@ -191,10 +179,6 @@ module Google
|
|
191
179
|
# * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
|
192
180
|
rpc :AddProductToProductSet, AddProductToProductSetRequest, Google::Protobuf::Empty
|
193
181
|
# Removes a Product from the specified ProductSet.
|
194
|
-
#
|
195
|
-
# Possible errors:
|
196
|
-
#
|
197
|
-
# * Returns NOT_FOUND If the Product is not found under the ProductSet.
|
198
182
|
rpc :RemoveProductFromProductSet, RemoveProductFromProductSetRequest, Google::Protobuf::Empty
|
199
183
|
# Lists the Products in a ProductSet, in an unspecified order. If the
|
200
184
|
# ProductSet does not exist, the products field of the response will be
|
@@ -23,6 +23,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
23
23
|
optional :url, :string, 1
|
24
24
|
optional :score, :float, 2
|
25
25
|
end
|
26
|
+
add_message "google.cloud.vision.v1.WebDetection.WebLabel" do
|
27
|
+
optional :label, :string, 1
|
28
|
+
optional :language_code, :string, 2
|
29
|
+
end
|
26
30
|
add_message "google.cloud.vision.v1.WebDetection.WebPage" do
|
27
31
|
optional :url, :string, 1
|
28
32
|
optional :score, :float, 2
|
@@ -30,10 +34,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
30
34
|
repeated :full_matching_images, :message, 4, "google.cloud.vision.v1.WebDetection.WebImage"
|
31
35
|
repeated :partial_matching_images, :message, 5, "google.cloud.vision.v1.WebDetection.WebImage"
|
32
36
|
end
|
33
|
-
add_message "google.cloud.vision.v1.WebDetection.WebLabel" do
|
34
|
-
optional :label, :string, 1
|
35
|
-
optional :language_code, :string, 2
|
36
|
-
end
|
37
37
|
end
|
38
38
|
|
39
39
|
module Google
|
@@ -43,8 +43,8 @@ module Google
|
|
43
43
|
WebDetection = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection").msgclass
|
44
44
|
WebDetection::WebEntity = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebEntity").msgclass
|
45
45
|
WebDetection::WebImage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebImage").msgclass
|
46
|
-
WebDetection::WebPage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebPage").msgclass
|
47
46
|
WebDetection::WebLabel = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebLabel").msgclass
|
47
|
+
WebDetection::WebPage = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.WebDetection.WebPage").msgclass
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.33.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|