google-cloud-vision 0.33.1 → 0.34.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0f4728f8d24530bee0e467ff03073c63766875d042836f59fd933d5aec9b22e
4
- data.tar.gz: ee62b6a74eb706895bc0e7c1fb77828507d13fccd1ba0cc14c55ffe665e16378
3
+ metadata.gz: 28fd98f624d5cfc073c4a97134b284bc7469f3ab3c2f93b03b81bf8a272df577
4
+ data.tar.gz: c62874f495e20ce8a9cbfd2aac394694acf6479f433e0491930ebf029d9c6fcd
5
5
  SHA512:
6
- metadata.gz: d4dd9099952347442f0db704e8f0bd1cede1dcd49ff57c5187f84da0946c3e3a9d15d09753bb51a911e9c1852a27b53a992ca340f8e1b65fccacebf47bc8eae7
7
- data.tar.gz: c7dde89251c81857af03142006223d4e87ac8f419d884a50153541aff6a82a5c58bb290a70aac1b9bfa73381ec24b203fe0fcd4edac9560bc3a39063d365b771
6
+ metadata.gz: 2a6d40a407815737957bf83ed7324af52a6f07f59863c774f658d722ff5112a211ef8b23f76f5afe35dabe1fe076fcc4ef60c6a0b6cc8f818ff9f04ae4295d13
7
+ data.tar.gz: d9944f3f13445f20c9e9fb78b7220a75e2c71f3101baf02a3e0280c78f63a4a3b3918fb4f4ddceed624a7de1c3e40a98cfe35a84737ace080d4fc2fed16b1134
@@ -148,6 +148,10 @@ module Google
148
148
  # The default timeout, in seconds, for calls made through this client.
149
149
  # @param metadata [Hash]
150
150
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
151
+ # @param service_address [String]
152
+ # Override for the service hostname, or `nil` to leave as the default.
153
+ # @param service_port [Integer]
154
+ # Override for the service port, or `nil` to leave as the default.
151
155
  # @param exception_transformer [Proc]
152
156
  # An optional proc that intercepts any exceptions raised during an API call to inject
153
157
  # custom error handling.
@@ -215,6 +219,10 @@ module Google
215
219
  # The default timeout, in seconds, for calls made through this client.
216
220
  # @param metadata [Hash]
217
221
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
222
+ # @param service_address [String]
223
+ # Override for the service hostname, or `nil` to leave as the default.
224
+ # @param service_port [Integer]
225
+ # Override for the service port, or `nil` to leave as the default.
218
226
  # @param exception_transformer [Proc]
219
227
  # An optional proc that intercepts any exceptions raised during an API call to inject
220
228
  # custom error handling.
@@ -133,6 +133,10 @@ module Google
133
133
  # The default timeout, in seconds, for calls made through this client.
134
134
  # @param metadata [Hash]
135
135
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
136
+ # @param service_address [String]
137
+ # Override for the service hostname, or `nil` to leave as the default.
138
+ # @param service_port [Integer]
139
+ # Override for the service port, or `nil` to leave as the default.
136
140
  # @param exception_transformer [Proc]
137
141
  # An optional proc that intercepts any exceptions raised during an API call to inject
138
142
  # custom error handling.
@@ -142,6 +146,8 @@ module Google
142
146
  client_config: nil,
143
147
  timeout: nil,
144
148
  metadata: nil,
149
+ service_address: nil,
150
+ service_port: nil,
145
151
  exception_transformer: nil,
146
152
  lib_name: nil,
147
153
  lib_version: nil
@@ -153,6 +159,8 @@ module Google
153
159
  metadata: metadata,
154
160
  exception_transformer: exception_transformer,
155
161
  lib_name: lib_name,
162
+ service_address: service_address,
163
+ service_port: service_port,
156
164
  lib_version: lib_version
157
165
  }.select { |_, v| v != nil }
158
166
  Google::Cloud::Vision::V1::ImageAnnotatorClient.new(**kwargs)
@@ -204,6 +212,10 @@ module Google
204
212
  # The default timeout, in seconds, for calls made through this client.
205
213
  # @param metadata [Hash]
206
214
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
215
+ # @param service_address [String]
216
+ # Override for the service hostname, or `nil` to leave as the default.
217
+ # @param service_port [Integer]
218
+ # Override for the service port, or `nil` to leave as the default.
207
219
  # @param exception_transformer [Proc]
208
220
  # An optional proc that intercepts any exceptions raised during an API call to inject
209
221
  # custom error handling.
@@ -213,6 +225,8 @@ module Google
213
225
  client_config: nil,
214
226
  timeout: nil,
215
227
  metadata: nil,
228
+ service_address: nil,
229
+ service_port: nil,
216
230
  exception_transformer: nil,
217
231
  lib_name: nil,
218
232
  lib_version: nil
@@ -224,6 +238,8 @@ module Google
224
238
  metadata: metadata,
225
239
  exception_transformer: exception_transformer,
226
240
  lib_name: lib_name,
241
+ service_address: service_address,
242
+ service_port: service_port,
227
243
  lib_version: lib_version
228
244
  }.select { |_, v| v != nil }
229
245
  Google::Cloud::Vision::V1::ProductSearchClient.new(**kwargs)
@@ -95,6 +95,10 @@ module Google
95
95
  # The default timeout, in seconds, for calls made through this client.
96
96
  # @param metadata [Hash]
97
97
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
98
+ # @param service_address [String]
99
+ # Override for the service hostname, or `nil` to leave as the default.
100
+ # @param service_port [Integer]
101
+ # Override for the service port, or `nil` to leave as the default.
98
102
  # @param exception_transformer [Proc]
99
103
  # An optional proc that intercepts any exceptions raised during an API call to inject
100
104
  # custom error handling.
@@ -104,6 +108,8 @@ module Google
104
108
  client_config: {},
105
109
  timeout: DEFAULT_TIMEOUT,
106
110
  metadata: nil,
111
+ service_address: nil,
112
+ service_port: nil,
107
113
  exception_transformer: nil,
108
114
  lib_name: nil,
109
115
  lib_version: ""
@@ -121,7 +127,10 @@ module Google
121
127
  client_config: client_config,
122
128
  timeout: timeout,
123
129
  lib_name: lib_name,
130
+ service_address: service_address,
131
+ service_port: service_port,
124
132
  lib_version: lib_version,
133
+ metadata: metadata,
125
134
  )
126
135
 
127
136
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -166,8 +175,8 @@ module Google
166
175
  end
167
176
 
168
177
  # Allow overriding the service path/port in subclasses.
169
- service_path = self.class::SERVICE_ADDRESS
170
- port = self.class::DEFAULT_SERVICE_PORT
178
+ service_path = service_address || self.class::SERVICE_ADDRESS
179
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
171
180
  interceptors = self.class::GRPC_INTERCEPTORS
172
181
  @image_annotator_stub = Google::Gax::Grpc.create_stub(
173
182
  service_path,
@@ -205,6 +205,10 @@ module Google
205
205
  # The default timeout, in seconds, for calls made through this client.
206
206
  # @param metadata [Hash]
207
207
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
208
+ # @param service_address [String]
209
+ # Override for the service hostname, or `nil` to leave as the default.
210
+ # @param service_port [Integer]
211
+ # Override for the service port, or `nil` to leave as the default.
208
212
  # @param exception_transformer [Proc]
209
213
  # An optional proc that intercepts any exceptions raised during an API call to inject
210
214
  # custom error handling.
@@ -214,6 +218,8 @@ module Google
214
218
  client_config: {},
215
219
  timeout: DEFAULT_TIMEOUT,
216
220
  metadata: nil,
221
+ service_address: nil,
222
+ service_port: nil,
217
223
  exception_transformer: nil,
218
224
  lib_name: nil,
219
225
  lib_version: ""
@@ -231,7 +237,10 @@ module Google
231
237
  client_config: client_config,
232
238
  timeout: timeout,
233
239
  lib_name: lib_name,
240
+ service_address: service_address,
241
+ service_port: service_port,
234
242
  lib_version: lib_version,
243
+ metadata: metadata,
235
244
  )
236
245
 
237
246
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -277,8 +286,8 @@ module Google
277
286
  end
278
287
 
279
288
  # Allow overriding the service path/port in subclasses.
280
- service_path = self.class::SERVICE_ADDRESS
281
- port = self.class::DEFAULT_SERVICE_PORT
289
+ service_path = service_address || self.class::SERVICE_ADDRESS
290
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
282
291
  interceptors = self.class::GRPC_INTERCEPTORS
283
292
  @product_search_stub = Google::Gax::Grpc.create_stub(
284
293
  service_path,
@@ -148,6 +148,10 @@ module Google
148
148
  # The default timeout, in seconds, for calls made through this client.
149
149
  # @param metadata [Hash]
150
150
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
151
+ # @param service_address [String]
152
+ # Override for the service hostname, or `nil` to leave as the default.
153
+ # @param service_port [Integer]
154
+ # Override for the service port, or `nil` to leave as the default.
151
155
  # @param exception_transformer [Proc]
152
156
  # An optional proc that intercepts any exceptions raised during an API call to inject
153
157
  # custom error handling.
@@ -157,6 +161,8 @@ module Google
157
161
  client_config: nil,
158
162
  timeout: nil,
159
163
  metadata: nil,
164
+ service_address: nil,
165
+ service_port: nil,
160
166
  exception_transformer: nil,
161
167
  lib_name: nil,
162
168
  lib_version: nil
@@ -168,6 +174,8 @@ module Google
168
174
  metadata: metadata,
169
175
  exception_transformer: exception_transformer,
170
176
  lib_name: lib_name,
177
+ service_address: service_address,
178
+ service_port: service_port,
171
179
  lib_version: lib_version
172
180
  }.select { |_, v| v != nil }
173
181
  Google::Cloud::Vision::V1p3beta1::ProductSearchClient.new(**kwargs)
@@ -206,6 +214,10 @@ module Google
206
214
  # The default timeout, in seconds, for calls made through this client.
207
215
  # @param metadata [Hash]
208
216
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
217
+ # @param service_address [String]
218
+ # Override for the service hostname, or `nil` to leave as the default.
219
+ # @param service_port [Integer]
220
+ # Override for the service port, or `nil` to leave as the default.
209
221
  # @param exception_transformer [Proc]
210
222
  # An optional proc that intercepts any exceptions raised during an API call to inject
211
223
  # custom error handling.
@@ -215,6 +227,8 @@ module Google
215
227
  client_config: nil,
216
228
  timeout: nil,
217
229
  metadata: nil,
230
+ service_address: nil,
231
+ service_port: nil,
218
232
  exception_transformer: nil,
219
233
  lib_name: nil,
220
234
  lib_version: nil
@@ -226,6 +240,8 @@ module Google
226
240
  metadata: metadata,
227
241
  exception_transformer: exception_transformer,
228
242
  lib_name: lib_name,
243
+ service_address: service_address,
244
+ service_port: service_port,
229
245
  lib_version: lib_version
230
246
  }.select { |_, v| v != nil }
231
247
  Google::Cloud::Vision::V1p3beta1::ImageAnnotatorClient.new(**kwargs)
@@ -95,6 +95,10 @@ module Google
95
95
  # The default timeout, in seconds, for calls made through this client.
96
96
  # @param metadata [Hash]
97
97
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
98
+ # @param service_address [String]
99
+ # Override for the service hostname, or `nil` to leave as the default.
100
+ # @param service_port [Integer]
101
+ # Override for the service port, or `nil` to leave as the default.
98
102
  # @param exception_transformer [Proc]
99
103
  # An optional proc that intercepts any exceptions raised during an API call to inject
100
104
  # custom error handling.
@@ -104,6 +108,8 @@ module Google
104
108
  client_config: {},
105
109
  timeout: DEFAULT_TIMEOUT,
106
110
  metadata: nil,
111
+ service_address: nil,
112
+ service_port: nil,
107
113
  exception_transformer: nil,
108
114
  lib_name: nil,
109
115
  lib_version: ""
@@ -121,7 +127,10 @@ module Google
121
127
  client_config: client_config,
122
128
  timeout: timeout,
123
129
  lib_name: lib_name,
130
+ service_address: service_address,
131
+ service_port: service_port,
124
132
  lib_version: lib_version,
133
+ metadata: metadata,
125
134
  )
126
135
 
127
136
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -166,8 +175,8 @@ module Google
166
175
  end
167
176
 
168
177
  # Allow overriding the service path/port in subclasses.
169
- service_path = self.class::SERVICE_ADDRESS
170
- port = self.class::DEFAULT_SERVICE_PORT
178
+ service_path = service_address || self.class::SERVICE_ADDRESS
179
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
171
180
  interceptors = self.class::GRPC_INTERCEPTORS
172
181
  @image_annotator_stub = Google::Gax::Grpc.create_stub(
173
182
  service_path,
@@ -207,6 +207,10 @@ module Google
207
207
  # The default timeout, in seconds, for calls made through this client.
208
208
  # @param metadata [Hash]
209
209
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
210
+ # @param service_address [String]
211
+ # Override for the service hostname, or `nil` to leave as the default.
212
+ # @param service_port [Integer]
213
+ # Override for the service port, or `nil` to leave as the default.
210
214
  # @param exception_transformer [Proc]
211
215
  # An optional proc that intercepts any exceptions raised during an API call to inject
212
216
  # custom error handling.
@@ -216,6 +220,8 @@ module Google
216
220
  client_config: {},
217
221
  timeout: DEFAULT_TIMEOUT,
218
222
  metadata: nil,
223
+ service_address: nil,
224
+ service_port: nil,
219
225
  exception_transformer: nil,
220
226
  lib_name: nil,
221
227
  lib_version: ""
@@ -233,7 +239,10 @@ module Google
233
239
  client_config: client_config,
234
240
  timeout: timeout,
235
241
  lib_name: lib_name,
242
+ service_address: service_address,
243
+ service_port: service_port,
236
244
  lib_version: lib_version,
245
+ metadata: metadata,
237
246
  )
238
247
 
239
248
  if credentials.is_a?(String) || credentials.is_a?(Hash)
@@ -279,8 +288,8 @@ module Google
279
288
  end
280
289
 
281
290
  # Allow overriding the service path/port in subclasses.
282
- service_path = self.class::SERVICE_ADDRESS
283
- port = self.class::DEFAULT_SERVICE_PORT
291
+ service_path = service_address || self.class::SERVICE_ADDRESS
292
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
284
293
  interceptors = self.class::GRPC_INTERCEPTORS
285
294
  @product_search_stub = Google::Gax::Grpc.create_stub(
286
295
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Vision
19
- VERSION = "0.33.1".freeze
19
+ VERSION = "0.34.0".freeze
20
20
  end
21
21
  end
22
22
  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.33.1
4
+ version: 0.34.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-06-13 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.7'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement