google-cloud-vision 0.20.0 → 0.20.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 28929deca6370c56d05b09b483fff6770deb6f83
4
- data.tar.gz: ae691948673ad91305ebb0453d8e83761cb54703
3
+ metadata.gz: 4487906f7d671b64d23d2ea67cb6c36c49dc00ba
4
+ data.tar.gz: 84d12de029a46b14fad0a131534106fe599f2adb
5
5
  SHA512:
6
- metadata.gz: 227247c075b86cb6dfef096461e3deb3f7f5d74f0cbaae94d4f7055735eec1861328e3d2568789541eedc440c8215c5119e50073ff8a4df03676fdd1dcfca54e
7
- data.tar.gz: ef2af9f8d7bf04555bc97d87fc260fbb5da54c27bd3f5092040ea2032f506d40c87341fac831d091d6ebb3886fc62a177dd5fe64fe0ded1daa61c08176c846fa
6
+ metadata.gz: 8ba0547278fafe65e073c064e3ccbb8193b57e82ae8372e515ffc1e7fd84e4ffd7560282b62ebd8532a1610efdb32c645b4edc48517c940fe22ea3bea9bfbdd0
7
+ data.tar.gz: 9e144e338efc30dbc26a258596d1ab6033b118402686c0f6189073cc579389997afec4204b58b25edf4854f57d8c4baf8bdde142de0a5df0e7d151ea14451cc4
@@ -41,7 +41,8 @@ module Google
41
41
  @service.client_options.application_version = \
42
42
  Google::Cloud::Vision::VERSION
43
43
  @service.request_options.retries = retries || 3
44
- @service.request_options.timeout_sec = timeout if timeout
44
+ @service.request_options.timeout_sec = timeout
45
+ @service.request_options.open_timeout_sec = timeout
45
46
  @service.authorization = @credentials.client
46
47
  end
47
48
 
@@ -0,0 +1,15 @@
1
+ # Copyright 2016 Google Inc. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require "google/cloud/vision/v1/image_annotator_api"
@@ -0,0 +1,31 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/vision/v1/geometry.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_message "google.cloud.vision.v1.Vertex" do
8
+ optional :x, :int32, 1
9
+ optional :y, :int32, 2
10
+ end
11
+ add_message "google.cloud.vision.v1.BoundingPoly" do
12
+ repeated :vertices, :message, 1, "google.cloud.vision.v1.Vertex"
13
+ end
14
+ add_message "google.cloud.vision.v1.Position" do
15
+ optional :x, :float, 1
16
+ optional :y, :float, 2
17
+ optional :z, :float, 3
18
+ end
19
+ end
20
+
21
+ module Google
22
+ module Cloud
23
+ module Vision
24
+ module V1
25
+ Vertex = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Vertex").msgclass
26
+ BoundingPoly = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BoundingPoly").msgclass
27
+ Position = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Position").msgclass
28
+ end
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,144 @@
1
+ # Copyright 2016 Google Inc. All rights reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+ #
15
+ # EDITING INSTRUCTIONS
16
+ # This file was generated from the file
17
+ # https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/image_annotator.proto,
18
+ # and updates to that file get reflected here through a refresh process.
19
+ # For the short term, the refresh process will only be runnable by Google
20
+ # engineers.
21
+ #
22
+ # The only allowed edits are to method and file documentation. A 3-way
23
+ # merge preserves those additions if the generated source changes.
24
+
25
+ require "json"
26
+ require "pathname"
27
+
28
+ require "google/gax"
29
+ require "google/cloud/vision/v1/image_annotator_services_pb"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Vision
34
+ module V1
35
+ # Service that performs Google Cloud Vision API detection tasks, such as face,
36
+ # landmark, logo, label, and text detection, over client images, and returns
37
+ # detected entities from the images.
38
+ #
39
+ # @!attribute [r] stub
40
+ # @return [Google::Cloud::Vision::V1::ImageAnnotator::Stub]
41
+ class ImageAnnotatorApi
42
+ attr_reader :stub
43
+
44
+ # The default address of the service.
45
+ SERVICE_ADDRESS = "vision.googleapis.com".freeze
46
+
47
+ # The default port of the service.
48
+ DEFAULT_SERVICE_PORT = 443
49
+
50
+ CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
51
+
52
+ DEFAULT_TIMEOUT = 30
53
+
54
+ # The scopes needed to make gRPC calls to all of the methods defined in
55
+ # this service.
56
+ ALL_SCOPES = [
57
+ "https://www.googleapis.com/auth/cloud-platform"
58
+ ].freeze
59
+
60
+ # @param service_path [String]
61
+ # The domain name of the API remote host.
62
+ # @param port [Integer]
63
+ # The port on which to connect to the remote host.
64
+ # @param channel [Channel]
65
+ # A Channel object through which to make calls.
66
+ # @param chan_creds [Grpc::ChannelCredentials]
67
+ # A ChannelCredentials for the setting up the RPC client.
68
+ # @param client_config[Hash]
69
+ # A Hash for call options for each method. See
70
+ # Google::Gax#construct_settings for the structure of
71
+ # this data. Falls back to the default config if not specified
72
+ # or the specified config is missing data points.
73
+ # @param timeout [Numeric]
74
+ # The default timeout, in seconds, for calls made through this client.
75
+ # @param app_name [String]
76
+ # The codename of the calling service.
77
+ # @param app_version [String]
78
+ # The version of the calling service.
79
+ def initialize \
80
+ service_path: SERVICE_ADDRESS,
81
+ port: DEFAULT_SERVICE_PORT,
82
+ channel: nil,
83
+ chan_creds: nil,
84
+ scopes: ALL_SCOPES,
85
+ client_config: {},
86
+ timeout: DEFAULT_TIMEOUT,
87
+ app_name: "gax",
88
+ app_version: Google::Gax::VERSION
89
+ google_api_client = "#{app_name}/#{app_version} " \
90
+ "#{CODE_GEN_NAME_VERSION} ruby/#{RUBY_VERSION}".freeze
91
+ headers = { :"x-goog-api-client" => google_api_client }
92
+ client_config_file = Pathname.new(__dir__).join(
93
+ "image_annotator_client_config.json"
94
+ )
95
+ defaults = client_config_file.open do |f|
96
+ Google::Gax.construct_settings(
97
+ "google.cloud.vision.v1.ImageAnnotator",
98
+ JSON.parse(f.read),
99
+ client_config,
100
+ Google::Gax::Grpc::STATUS_CODE_NAMES,
101
+ timeout,
102
+ errors: Google::Gax::Grpc::API_ERRORS,
103
+ kwargs: headers
104
+ )
105
+ end
106
+ @stub = Google::Gax::Grpc.create_stub(
107
+ service_path,
108
+ port,
109
+ chan_creds: chan_creds,
110
+ channel: channel,
111
+ scopes: scopes,
112
+ &Google::Cloud::Vision::V1::ImageAnnotator::Stub.method(:new)
113
+ )
114
+
115
+ @batch_annotate_images = Google::Gax.create_api_call(
116
+ @stub.method(:batch_annotate_images),
117
+ defaults["batch_annotate_images"]
118
+ )
119
+ end
120
+
121
+ # Service calls
122
+
123
+ # Run image detection and annotation for a batch of images.
124
+ #
125
+ # @param requests [Array<Google::Cloud::Vision::V1::AnnotateImageRequest>]
126
+ # Individual image annotation requests for this batch.
127
+ # @param options [Google::Gax::CallOptions]
128
+ # Overrides the default settings for this call, e.g, timeout,
129
+ # retries, etc.
130
+ # @return [Google::Cloud::Vision::V1::BatchAnnotateImagesResponse]
131
+ # @raise [Google::Gax::GaxError] if the RPC is aborted.
132
+ def batch_annotate_images \
133
+ requests,
134
+ options: nil
135
+ req = Google::Cloud::Vision::V1::BatchAnnotateImagesRequest.new(
136
+ requests: requests
137
+ )
138
+ @batch_annotate_images.call(req, options)
139
+ end
140
+ end
141
+ end
142
+ end
143
+ end
144
+ end
@@ -0,0 +1,33 @@
1
+ {
2
+ "interfaces": {
3
+ "google.cloud.vision.v1.ImageAnnotator": {
4
+ "retry_codes": {
5
+ "retry_codes_def": {
6
+ "idempotent": [
7
+ "DEADLINE_EXCEEDED",
8
+ "UNAVAILABLE"
9
+ ],
10
+ "non_idempotent": []
11
+ }
12
+ },
13
+ "retry_params": {
14
+ "default": {
15
+ "initial_retry_delay_millis": 100,
16
+ "retry_delay_multiplier": 1.3,
17
+ "max_retry_delay_millis": 60000,
18
+ "initial_rpc_timeout_millis": 60000,
19
+ "rpc_timeout_multiplier": 1.0,
20
+ "max_rpc_timeout_millis": 60000,
21
+ "total_timeout_millis": 600000
22
+ }
23
+ },
24
+ "methods": {
25
+ "BatchAnnotateImages": {
26
+ "timeout_millis": 60000,
27
+ "retry_codes_name": "idempotent",
28
+ "retry_params_name": "default"
29
+ }
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,193 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/vision/v1/image_annotator.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/cloud/vision/v1/geometry_pb'
8
+ require 'google/rpc/status_pb'
9
+ require 'google/type/color_pb'
10
+ require 'google/type/latlng_pb'
11
+ Google::Protobuf::DescriptorPool.generated_pool.build do
12
+ add_message "google.cloud.vision.v1.Feature" do
13
+ optional :type, :enum, 1, "google.cloud.vision.v1.Feature.Type"
14
+ optional :max_results, :int32, 2
15
+ end
16
+ add_enum "google.cloud.vision.v1.Feature.Type" do
17
+ value :TYPE_UNSPECIFIED, 0
18
+ value :FACE_DETECTION, 1
19
+ value :LANDMARK_DETECTION, 2
20
+ value :LOGO_DETECTION, 3
21
+ value :LABEL_DETECTION, 4
22
+ value :TEXT_DETECTION, 5
23
+ value :SAFE_SEARCH_DETECTION, 6
24
+ value :IMAGE_PROPERTIES, 7
25
+ end
26
+ add_message "google.cloud.vision.v1.ImageSource" do
27
+ optional :gcs_image_uri, :string, 1
28
+ end
29
+ add_message "google.cloud.vision.v1.Image" do
30
+ optional :content, :bytes, 1
31
+ optional :source, :message, 2, "google.cloud.vision.v1.ImageSource"
32
+ end
33
+ add_message "google.cloud.vision.v1.FaceAnnotation" do
34
+ optional :bounding_poly, :message, 1, "google.cloud.vision.v1.BoundingPoly"
35
+ optional :fd_bounding_poly, :message, 2, "google.cloud.vision.v1.BoundingPoly"
36
+ repeated :landmarks, :message, 3, "google.cloud.vision.v1.FaceAnnotation.Landmark"
37
+ optional :roll_angle, :float, 4
38
+ optional :pan_angle, :float, 5
39
+ optional :tilt_angle, :float, 6
40
+ optional :detection_confidence, :float, 7
41
+ optional :landmarking_confidence, :float, 8
42
+ optional :joy_likelihood, :enum, 9, "google.cloud.vision.v1.Likelihood"
43
+ optional :sorrow_likelihood, :enum, 10, "google.cloud.vision.v1.Likelihood"
44
+ optional :anger_likelihood, :enum, 11, "google.cloud.vision.v1.Likelihood"
45
+ optional :surprise_likelihood, :enum, 12, "google.cloud.vision.v1.Likelihood"
46
+ optional :under_exposed_likelihood, :enum, 13, "google.cloud.vision.v1.Likelihood"
47
+ optional :blurred_likelihood, :enum, 14, "google.cloud.vision.v1.Likelihood"
48
+ optional :headwear_likelihood, :enum, 15, "google.cloud.vision.v1.Likelihood"
49
+ end
50
+ add_message "google.cloud.vision.v1.FaceAnnotation.Landmark" do
51
+ optional :type, :enum, 3, "google.cloud.vision.v1.FaceAnnotation.Landmark.Type"
52
+ optional :position, :message, 4, "google.cloud.vision.v1.Position"
53
+ end
54
+ add_enum "google.cloud.vision.v1.FaceAnnotation.Landmark.Type" do
55
+ value :UNKNOWN_LANDMARK, 0
56
+ value :LEFT_EYE, 1
57
+ value :RIGHT_EYE, 2
58
+ value :LEFT_OF_LEFT_EYEBROW, 3
59
+ value :RIGHT_OF_LEFT_EYEBROW, 4
60
+ value :LEFT_OF_RIGHT_EYEBROW, 5
61
+ value :RIGHT_OF_RIGHT_EYEBROW, 6
62
+ value :MIDPOINT_BETWEEN_EYES, 7
63
+ value :NOSE_TIP, 8
64
+ value :UPPER_LIP, 9
65
+ value :LOWER_LIP, 10
66
+ value :MOUTH_LEFT, 11
67
+ value :MOUTH_RIGHT, 12
68
+ value :MOUTH_CENTER, 13
69
+ value :NOSE_BOTTOM_RIGHT, 14
70
+ value :NOSE_BOTTOM_LEFT, 15
71
+ value :NOSE_BOTTOM_CENTER, 16
72
+ value :LEFT_EYE_TOP_BOUNDARY, 17
73
+ value :LEFT_EYE_RIGHT_CORNER, 18
74
+ value :LEFT_EYE_BOTTOM_BOUNDARY, 19
75
+ value :LEFT_EYE_LEFT_CORNER, 20
76
+ value :RIGHT_EYE_TOP_BOUNDARY, 21
77
+ value :RIGHT_EYE_RIGHT_CORNER, 22
78
+ value :RIGHT_EYE_BOTTOM_BOUNDARY, 23
79
+ value :RIGHT_EYE_LEFT_CORNER, 24
80
+ value :LEFT_EYEBROW_UPPER_MIDPOINT, 25
81
+ value :RIGHT_EYEBROW_UPPER_MIDPOINT, 26
82
+ value :LEFT_EAR_TRAGION, 27
83
+ value :RIGHT_EAR_TRAGION, 28
84
+ value :LEFT_EYE_PUPIL, 29
85
+ value :RIGHT_EYE_PUPIL, 30
86
+ value :FOREHEAD_GLABELLA, 31
87
+ value :CHIN_GNATHION, 32
88
+ value :CHIN_LEFT_GONION, 33
89
+ value :CHIN_RIGHT_GONION, 34
90
+ end
91
+ add_message "google.cloud.vision.v1.LocationInfo" do
92
+ optional :lat_lng, :message, 1, "google.type.LatLng"
93
+ end
94
+ add_message "google.cloud.vision.v1.Property" do
95
+ optional :name, :string, 1
96
+ optional :value, :string, 2
97
+ end
98
+ add_message "google.cloud.vision.v1.EntityAnnotation" do
99
+ optional :mid, :string, 1
100
+ optional :locale, :string, 2
101
+ optional :description, :string, 3
102
+ optional :score, :float, 4
103
+ optional :confidence, :float, 5
104
+ optional :topicality, :float, 6
105
+ optional :bounding_poly, :message, 7, "google.cloud.vision.v1.BoundingPoly"
106
+ repeated :locations, :message, 8, "google.cloud.vision.v1.LocationInfo"
107
+ repeated :properties, :message, 9, "google.cloud.vision.v1.Property"
108
+ end
109
+ add_message "google.cloud.vision.v1.SafeSearchAnnotation" do
110
+ optional :adult, :enum, 1, "google.cloud.vision.v1.Likelihood"
111
+ optional :spoof, :enum, 2, "google.cloud.vision.v1.Likelihood"
112
+ optional :medical, :enum, 3, "google.cloud.vision.v1.Likelihood"
113
+ optional :violence, :enum, 4, "google.cloud.vision.v1.Likelihood"
114
+ end
115
+ add_message "google.cloud.vision.v1.LatLongRect" do
116
+ optional :min_lat_lng, :message, 1, "google.type.LatLng"
117
+ optional :max_lat_lng, :message, 2, "google.type.LatLng"
118
+ end
119
+ add_message "google.cloud.vision.v1.ColorInfo" do
120
+ optional :color, :message, 1, "google.type.Color"
121
+ optional :score, :float, 2
122
+ optional :pixel_fraction, :float, 3
123
+ end
124
+ add_message "google.cloud.vision.v1.DominantColorsAnnotation" do
125
+ repeated :colors, :message, 1, "google.cloud.vision.v1.ColorInfo"
126
+ end
127
+ add_message "google.cloud.vision.v1.ImageProperties" do
128
+ optional :dominant_colors, :message, 1, "google.cloud.vision.v1.DominantColorsAnnotation"
129
+ end
130
+ add_message "google.cloud.vision.v1.ImageContext" do
131
+ optional :lat_long_rect, :message, 1, "google.cloud.vision.v1.LatLongRect"
132
+ repeated :language_hints, :string, 2
133
+ end
134
+ add_message "google.cloud.vision.v1.AnnotateImageRequest" do
135
+ optional :image, :message, 1, "google.cloud.vision.v1.Image"
136
+ repeated :features, :message, 2, "google.cloud.vision.v1.Feature"
137
+ optional :image_context, :message, 3, "google.cloud.vision.v1.ImageContext"
138
+ end
139
+ add_message "google.cloud.vision.v1.AnnotateImageResponse" do
140
+ repeated :face_annotations, :message, 1, "google.cloud.vision.v1.FaceAnnotation"
141
+ repeated :landmark_annotations, :message, 2, "google.cloud.vision.v1.EntityAnnotation"
142
+ repeated :logo_annotations, :message, 3, "google.cloud.vision.v1.EntityAnnotation"
143
+ repeated :label_annotations, :message, 4, "google.cloud.vision.v1.EntityAnnotation"
144
+ repeated :text_annotations, :message, 5, "google.cloud.vision.v1.EntityAnnotation"
145
+ optional :safe_search_annotation, :message, 6, "google.cloud.vision.v1.SafeSearchAnnotation"
146
+ optional :image_properties_annotation, :message, 8, "google.cloud.vision.v1.ImageProperties"
147
+ optional :error, :message, 9, "google.rpc.Status"
148
+ end
149
+ add_message "google.cloud.vision.v1.BatchAnnotateImagesRequest" do
150
+ repeated :requests, :message, 1, "google.cloud.vision.v1.AnnotateImageRequest"
151
+ end
152
+ add_message "google.cloud.vision.v1.BatchAnnotateImagesResponse" do
153
+ repeated :responses, :message, 1, "google.cloud.vision.v1.AnnotateImageResponse"
154
+ end
155
+ add_enum "google.cloud.vision.v1.Likelihood" do
156
+ value :UNKNOWN, 0
157
+ value :VERY_UNLIKELY, 1
158
+ value :UNLIKELY, 2
159
+ value :POSSIBLE, 3
160
+ value :LIKELY, 4
161
+ value :VERY_LIKELY, 5
162
+ end
163
+ end
164
+
165
+ module Google
166
+ module Cloud
167
+ module Vision
168
+ module V1
169
+ Feature = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Feature").msgclass
170
+ Feature::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Feature.Type").enummodule
171
+ ImageSource = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.ImageSource").msgclass
172
+ Image = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Image").msgclass
173
+ FaceAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.FaceAnnotation").msgclass
174
+ FaceAnnotation::Landmark = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.FaceAnnotation.Landmark").msgclass
175
+ FaceAnnotation::Landmark::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.FaceAnnotation.Landmark.Type").enummodule
176
+ LocationInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.LocationInfo").msgclass
177
+ Property = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Property").msgclass
178
+ EntityAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.EntityAnnotation").msgclass
179
+ SafeSearchAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.SafeSearchAnnotation").msgclass
180
+ LatLongRect = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.LatLongRect").msgclass
181
+ ColorInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.ColorInfo").msgclass
182
+ DominantColorsAnnotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.DominantColorsAnnotation").msgclass
183
+ ImageProperties = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.ImageProperties").msgclass
184
+ ImageContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.ImageContext").msgclass
185
+ AnnotateImageRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateImageRequest").msgclass
186
+ AnnotateImageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateImageResponse").msgclass
187
+ BatchAnnotateImagesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateImagesRequest").msgclass
188
+ BatchAnnotateImagesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateImagesResponse").msgclass
189
+ Likelihood = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.Likelihood").enummodule
190
+ end
191
+ end
192
+ end
193
+ end
@@ -0,0 +1,47 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/vision/v1/image_annotator.proto for package 'google.cloud.vision.v1'
3
+ # Original file comments:
4
+ # Copyright 2016 Google Inc.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/vision/v1/image_annotator_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Vision
25
+ module V1
26
+ module ImageAnnotator
27
+ # Service that performs Google Cloud Vision API detection tasks, such as face,
28
+ # landmark, logo, label, and text detection, over client images, and returns
29
+ # detected entities from the images.
30
+ class Service
31
+
32
+ include GRPC::GenericService
33
+
34
+ self.marshal_class_method = :encode
35
+ self.unmarshal_class_method = :decode
36
+ self.service_name = 'google.cloud.vision.v1.ImageAnnotator'
37
+
38
+ # Run image detection and annotation for a batch of images.
39
+ rpc :BatchAnnotateImages, BatchAnnotateImagesRequest, BatchAnnotateImagesResponse
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Vision
19
- VERSION = "0.20.0"
19
+ VERSION = "0.20.1"
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-vision
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.20.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-08-27 00:00:00.000000000 Z
12
+ date: 2016-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -174,6 +174,12 @@ files:
174
174
  - lib/google/cloud/vision/location.rb
175
175
  - lib/google/cloud/vision/project.rb
176
176
  - lib/google/cloud/vision/service.rb
177
+ - lib/google/cloud/vision/v1.rb
178
+ - lib/google/cloud/vision/v1/geometry_pb.rb
179
+ - lib/google/cloud/vision/v1/image_annotator_api.rb
180
+ - lib/google/cloud/vision/v1/image_annotator_client_config.json
181
+ - lib/google/cloud/vision/v1/image_annotator_pb.rb
182
+ - lib/google/cloud/vision/v1/image_annotator_services_pb.rb
177
183
  - lib/google/cloud/vision/version.rb
178
184
  homepage: http://googlecloudplatform.github.io/google-cloud-ruby/
179
185
  licenses: