google-cloud-vision 0.37.2 → 0.37.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1p3beta1.rb +3 -7
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/image_annotator.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search_service.rb +34 -36
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_pb.rb +2 -0
- data/lib/google/cloud/vision/v1p3beta1/image_annotator_services_pb.rb +2 -1
- data/lib/google/cloud/vision/v1p3beta1/product_search_client.rb +29 -33
- data/lib/google/cloud/vision/v1p3beta1/product_search_pb.rb +1 -0
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_pb.rb +3 -0
- data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +5 -8
- data/lib/google/cloud/vision/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 728cfbfcbadf75365d1b332bf5904cc58faf71835c4ea3c9745bf932be53a7da
|
4
|
+
data.tar.gz: e7fe439d5543fe793a5dbf8097256a4449960bd8e2b678470e8ca9277617c787
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 864b7a968ce5a58c9df136919fc03cf27e9956165294e1d496ad68ee7fd087e1bb97bdea77158d7469d92ee30196b0986e96f633931afcbaa70ac4629422fdbe
|
7
|
+
data.tar.gz: d1517a14e8164d2c329d7dfd38fad3edf5c0c979fc2a3148353528dbb4b655b9ab70292ad4b09b8e4b2a45b6244d81e418b44358afc42c5a7145bab2e134c380
|
@@ -106,20 +106,16 @@ module Google
|
|
106
106
|
# Manages Products and ProductSets of reference images for use in product
|
107
107
|
# search. It uses the following resource model:
|
108
108
|
#
|
109
|
-
# * The API has a collection of
|
110
|
-
# {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
109
|
+
# * The API has a collection of {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
111
110
|
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
112
111
|
# products into groups to limit identification.
|
113
112
|
#
|
114
113
|
# In parallel,
|
115
114
|
#
|
116
|
-
# * The API has a collection of
|
117
|
-
# {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
115
|
+
# * The API has a collection of {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
118
116
|
# `projects/*/locations/*/products/*`
|
119
117
|
#
|
120
|
-
# * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of
|
121
|
-
# {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources,
|
122
|
-
# named
|
118
|
+
# * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
123
119
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
124
120
|
#
|
125
121
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
@@ -640,7 +640,7 @@ module Google
|
|
640
640
|
# call.
|
641
641
|
# @!attribute [rw] requests
|
642
642
|
# @return [Array<Google::Cloud::Vision::V1p3beta1::AsyncAnnotateFileRequest>]
|
643
|
-
# Individual async file annotation requests for this batch.
|
643
|
+
# Required. Individual async file annotation requests for this batch.
|
644
644
|
class AsyncBatchAnnotateFilesRequest; end
|
645
645
|
|
646
646
|
# Response to an async batch file annotation request.
|
data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search_service.rb
CHANGED
@@ -36,10 +36,10 @@ module Google
|
|
36
36
|
# characters long.
|
37
37
|
# @!attribute [rw] product_category
|
38
38
|
# @return [String]
|
39
|
-
# The category for the product identified by the reference image. This should
|
40
|
-
# be either "homegoods" or "
|
41
|
-
#
|
42
|
-
#
|
39
|
+
# Immutable. The category for the product identified by the reference image. This should
|
40
|
+
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
41
|
+
# "homegoods", "apparel", and "toys" are still supported, but these should
|
42
|
+
# not be used for new products.
|
43
43
|
# @!attribute [rw] product_labels
|
44
44
|
# @return [Array<Google::Cloud::Vision::V1p3beta1::Product::KeyValue>]
|
45
45
|
# Key-value pairs that can be attached to a product. At query time,
|
@@ -107,15 +107,13 @@ module Google
|
|
107
107
|
# This field is ignored when creating a reference image.
|
108
108
|
# @!attribute [rw] uri
|
109
109
|
# @return [String]
|
110
|
-
# The Google Cloud Storage URI of the reference image.
|
110
|
+
# Required. The Google Cloud Storage URI of the reference image.
|
111
111
|
#
|
112
112
|
# The URI must start with `gs://`.
|
113
|
-
#
|
114
|
-
# Required.
|
115
113
|
# @!attribute [rw] bounding_polys
|
116
114
|
# @return [Array<Google::Cloud::Vision::V1p3beta1::BoundingPoly>]
|
117
|
-
# Bounding polygons around the areas of interest in the reference image.
|
118
|
-
#
|
115
|
+
# Optional. Bounding polygons around the areas of interest in the reference image.
|
116
|
+
# If this field is empty, the system will try to detect regions of
|
119
117
|
# interest. At most 10 bounding polygons will be used.
|
120
118
|
#
|
121
119
|
# The provided shape is converted into a non-rotated rectangle. Once
|
@@ -127,13 +125,13 @@ module Google
|
|
127
125
|
# Request message for the `CreateProduct` method.
|
128
126
|
# @!attribute [rw] parent
|
129
127
|
# @return [String]
|
130
|
-
# The project in which the Product should be created.
|
128
|
+
# Required. The project in which the Product should be created.
|
131
129
|
#
|
132
130
|
# Format is
|
133
131
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
134
132
|
# @!attribute [rw] product
|
135
133
|
# @return [Google::Cloud::Vision::V1p3beta1::Product]
|
136
|
-
# The product to create.
|
134
|
+
# Required. The product to create.
|
137
135
|
# @!attribute [rw] product_id
|
138
136
|
# @return [String]
|
139
137
|
# A user-supplied resource id for this Product. If set, the server will
|
@@ -145,7 +143,7 @@ module Google
|
|
145
143
|
# Request message for the `ListProducts` method.
|
146
144
|
# @!attribute [rw] parent
|
147
145
|
# @return [String]
|
148
|
-
# The project OR ProductSet from which Products should be listed.
|
146
|
+
# Required. The project OR ProductSet from which Products should be listed.
|
149
147
|
#
|
150
148
|
# Format:
|
151
149
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
@@ -170,7 +168,7 @@ module Google
|
|
170
168
|
# Request message for the `GetProduct` method.
|
171
169
|
# @!attribute [rw] name
|
172
170
|
# @return [String]
|
173
|
-
# Resource name of the Product to get.
|
171
|
+
# Required. Resource name of the Product to get.
|
174
172
|
#
|
175
173
|
# Format is:
|
176
174
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -179,21 +177,21 @@ module Google
|
|
179
177
|
# Request message for the `UpdateProduct` method.
|
180
178
|
# @!attribute [rw] product
|
181
179
|
# @return [Google::Cloud::Vision::V1p3beta1::Product]
|
182
|
-
# The Product resource which replaces the one on the server.
|
180
|
+
# Required. The Product resource which replaces the one on the server.
|
183
181
|
# product.name is immutable.
|
184
182
|
# @!attribute [rw] update_mask
|
185
183
|
# @return [Google::Protobuf::FieldMask]
|
186
184
|
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields
|
187
185
|
# to update.
|
188
186
|
# If update_mask isn't specified, all mutable fields are to be updated.
|
189
|
-
# Valid mask paths include `product_labels`, `display_name
|
187
|
+
# Valid mask paths include `product_labels`, `display_name`, and
|
190
188
|
# `description`.
|
191
189
|
class UpdateProductRequest; end
|
192
190
|
|
193
191
|
# Request message for the `DeleteProduct` method.
|
194
192
|
# @!attribute [rw] name
|
195
193
|
# @return [String]
|
196
|
-
# Resource name of product to delete.
|
194
|
+
# Required. Resource name of product to delete.
|
197
195
|
#
|
198
196
|
# Format is:
|
199
197
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -202,12 +200,12 @@ module Google
|
|
202
200
|
# Request message for the `CreateProductSet` method.
|
203
201
|
# @!attribute [rw] parent
|
204
202
|
# @return [String]
|
205
|
-
# The project in which the ProductSet should be created.
|
203
|
+
# Required. The project in which the ProductSet should be created.
|
206
204
|
#
|
207
205
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
208
206
|
# @!attribute [rw] product_set
|
209
207
|
# @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
210
|
-
# The ProductSet to create.
|
208
|
+
# Required. The ProductSet to create.
|
211
209
|
# @!attribute [rw] product_set_id
|
212
210
|
# @return [String]
|
213
211
|
# A user-supplied resource id for this ProductSet. If set, the server will
|
@@ -219,7 +217,7 @@ module Google
|
|
219
217
|
# Request message for the `ListProductSets` method.
|
220
218
|
# @!attribute [rw] parent
|
221
219
|
# @return [String]
|
222
|
-
# The project from which ProductSets should be listed.
|
220
|
+
# Required. The project from which ProductSets should be listed.
|
223
221
|
#
|
224
222
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
225
223
|
# @!attribute [rw] page_size
|
@@ -243,16 +241,16 @@ module Google
|
|
243
241
|
# Request message for the `GetProductSet` method.
|
244
242
|
# @!attribute [rw] name
|
245
243
|
# @return [String]
|
246
|
-
# Resource name of the ProductSet to get.
|
244
|
+
# Required. Resource name of the ProductSet to get.
|
247
245
|
#
|
248
246
|
# Format is:
|
249
|
-
# `projects/PROJECT_ID/locations/
|
247
|
+
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
250
248
|
class GetProductSetRequest; end
|
251
249
|
|
252
250
|
# Request message for the `UpdateProductSet` method.
|
253
251
|
# @!attribute [rw] product_set
|
254
252
|
# @return [Google::Cloud::Vision::V1p3beta1::ProductSet]
|
255
|
-
# The ProductSet resource which replaces the one on the server.
|
253
|
+
# Required. The ProductSet resource which replaces the one on the server.
|
256
254
|
# @!attribute [rw] update_mask
|
257
255
|
# @return [Google::Protobuf::FieldMask]
|
258
256
|
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields to
|
@@ -264,7 +262,7 @@ module Google
|
|
264
262
|
# Request message for the `DeleteProductSet` method.
|
265
263
|
# @!attribute [rw] name
|
266
264
|
# @return [String]
|
267
|
-
# Resource name of the ProductSet to delete.
|
265
|
+
# Required. Resource name of the ProductSet to delete.
|
268
266
|
#
|
269
267
|
# Format is:
|
270
268
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -273,13 +271,13 @@ module Google
|
|
273
271
|
# Request message for the `CreateReferenceImage` method.
|
274
272
|
# @!attribute [rw] parent
|
275
273
|
# @return [String]
|
276
|
-
# Resource name of the product in which to create the reference image.
|
274
|
+
# Required. Resource name of the product in which to create the reference image.
|
277
275
|
#
|
278
276
|
# Format is
|
279
277
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
280
278
|
# @!attribute [rw] reference_image
|
281
279
|
# @return [Google::Cloud::Vision::V1p3beta1::ReferenceImage]
|
282
|
-
# The reference image to create.
|
280
|
+
# Required. The reference image to create.
|
283
281
|
# If an image ID is specified, it is ignored.
|
284
282
|
# @!attribute [rw] reference_image_id
|
285
283
|
# @return [String]
|
@@ -292,7 +290,7 @@ module Google
|
|
292
290
|
# Request message for the `ListReferenceImages` method.
|
293
291
|
# @!attribute [rw] parent
|
294
292
|
# @return [String]
|
295
|
-
# Resource name of the product containing the reference images.
|
293
|
+
# Required. Resource name of the product containing the reference images.
|
296
294
|
#
|
297
295
|
# Format is
|
298
296
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
@@ -322,7 +320,7 @@ module Google
|
|
322
320
|
# Request message for the `GetReferenceImage` method.
|
323
321
|
# @!attribute [rw] name
|
324
322
|
# @return [String]
|
325
|
-
# The resource name of the ReferenceImage to get.
|
323
|
+
# Required. The resource name of the ReferenceImage to get.
|
326
324
|
#
|
327
325
|
# Format is:
|
328
326
|
#
|
@@ -332,7 +330,7 @@ module Google
|
|
332
330
|
# Request message for the `DeleteReferenceImage` method.
|
333
331
|
# @!attribute [rw] name
|
334
332
|
# @return [String]
|
335
|
-
# The resource name of the reference image to delete.
|
333
|
+
# Required. The resource name of the reference image to delete.
|
336
334
|
#
|
337
335
|
# Format is:
|
338
336
|
#
|
@@ -342,13 +340,13 @@ module Google
|
|
342
340
|
# Request message for the `AddProductToProductSet` method.
|
343
341
|
# @!attribute [rw] name
|
344
342
|
# @return [String]
|
345
|
-
# The resource name for the ProductSet to modify.
|
343
|
+
# Required. The resource name for the ProductSet to modify.
|
346
344
|
#
|
347
345
|
# Format is:
|
348
346
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
349
347
|
# @!attribute [rw] product
|
350
348
|
# @return [String]
|
351
|
-
# The resource name for the Product to be added to this ProductSet.
|
349
|
+
# Required. The resource name for the Product to be added to this ProductSet.
|
352
350
|
#
|
353
351
|
# Format is:
|
354
352
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -357,13 +355,13 @@ module Google
|
|
357
355
|
# Request message for the `RemoveProductFromProductSet` method.
|
358
356
|
# @!attribute [rw] name
|
359
357
|
# @return [String]
|
360
|
-
# The resource name for the ProductSet to modify.
|
358
|
+
# Required. The resource name for the ProductSet to modify.
|
361
359
|
#
|
362
360
|
# Format is:
|
363
361
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
364
362
|
# @!attribute [rw] product
|
365
363
|
# @return [String]
|
366
|
-
# The resource name for the Product to be removed from this ProductSet.
|
364
|
+
# Required. The resource name for the Product to be removed from this ProductSet.
|
367
365
|
#
|
368
366
|
# Format is:
|
369
367
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -372,7 +370,7 @@ module Google
|
|
372
370
|
# Request message for the `ListProductsInProductSet` method.
|
373
371
|
# @!attribute [rw] name
|
374
372
|
# @return [String]
|
375
|
-
# The ProductSet resource for which to retrieve Products.
|
373
|
+
# Required. The ProductSet resource for which to retrieve Products.
|
376
374
|
#
|
377
375
|
# Format is:
|
378
376
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -400,7 +398,7 @@ module Google
|
|
400
398
|
# @return [String]
|
401
399
|
# The Google Cloud Storage URI of the input csv file.
|
402
400
|
#
|
403
|
-
# The URI must start with gs
|
401
|
+
# The URI must start with `gs://`.
|
404
402
|
#
|
405
403
|
# The format of the input csv file should be one image per line.
|
406
404
|
# In each line, there are 6 columns.
|
@@ -467,12 +465,12 @@ module Google
|
|
467
465
|
# Request message for the `ImportProductSets` method.
|
468
466
|
# @!attribute [rw] parent
|
469
467
|
# @return [String]
|
470
|
-
# The project in which the ProductSets should be imported.
|
468
|
+
# Required. The project in which the ProductSets should be imported.
|
471
469
|
#
|
472
470
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
473
471
|
# @!attribute [rw] input_config
|
474
472
|
# @return [Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig]
|
475
|
-
# The input content for the list of requests.
|
473
|
+
# Required. The input content for the list of requests.
|
476
474
|
class ImportProductSetsRequest; end
|
477
475
|
|
478
476
|
# Response message for the `ImportProductSets` method.
|
@@ -245,7 +245,7 @@ module Google
|
|
245
245
|
# `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
|
246
246
|
#
|
247
247
|
# @param requests [Array<Google::Cloud::Vision::V1p3beta1::AsyncAnnotateFileRequest | Hash>]
|
248
|
-
# Individual async file annotation requests for this batch.
|
248
|
+
# Required. Individual async file annotation requests for this batch.
|
249
249
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::AsyncAnnotateFileRequest`
|
250
250
|
# can also be provided.
|
251
251
|
# @param options [Google::Gax::CallOptions]
|
@@ -5,6 +5,8 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
8
10
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
9
11
|
require 'google/cloud/vision/v1p3beta1/product_search_pb'
|
10
12
|
require 'google/cloud/vision/v1p3beta1/text_annotation_pb'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/vision/v1p3beta1/image_annotator.proto for package 'google.cloud.vision.v1p3beta1'
|
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.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -38,20 +38,16 @@ module Google
|
|
38
38
|
# Manages Products and ProductSets of reference images for use in product
|
39
39
|
# search. It uses the following resource model:
|
40
40
|
#
|
41
|
-
# * The API has a collection of
|
42
|
-
# {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
41
|
+
# * The API has a collection of {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
|
43
42
|
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
44
43
|
# products into groups to limit identification.
|
45
44
|
#
|
46
45
|
# In parallel,
|
47
46
|
#
|
48
|
-
# * The API has a collection of
|
49
|
-
# {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
47
|
+
# * The API has a collection of {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
|
50
48
|
# `projects/*/locations/*/products/*`
|
51
49
|
#
|
52
|
-
# * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of
|
53
|
-
# {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources,
|
54
|
-
# named
|
50
|
+
# * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
|
55
51
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
56
52
|
#
|
57
53
|
# @!attribute [r] product_search_stub
|
@@ -458,11 +454,11 @@ module Google
|
|
458
454
|
# 4096 characters.
|
459
455
|
#
|
460
456
|
# @param parent [String]
|
461
|
-
# The project in which the ProductSet should be created.
|
457
|
+
# Required. The project in which the ProductSet should be created.
|
462
458
|
#
|
463
459
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
464
460
|
# @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet | Hash]
|
465
|
-
# The ProductSet to create.
|
461
|
+
# Required. The ProductSet to create.
|
466
462
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::ProductSet`
|
467
463
|
# can also be provided.
|
468
464
|
# @param product_set_id [String]
|
@@ -514,7 +510,7 @@ module Google
|
|
514
510
|
# than 1.
|
515
511
|
#
|
516
512
|
# @param parent [String]
|
517
|
-
# The project from which ProductSets should be listed.
|
513
|
+
# Required. The project from which ProductSets should be listed.
|
518
514
|
#
|
519
515
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
520
516
|
# @param page_size [Integer]
|
@@ -574,10 +570,10 @@ module Google
|
|
574
570
|
# * Returns NOT_FOUND if the ProductSet does not exist.
|
575
571
|
#
|
576
572
|
# @param name [String]
|
577
|
-
# Resource name of the ProductSet to get.
|
573
|
+
# Required. Resource name of the ProductSet to get.
|
578
574
|
#
|
579
575
|
# Format is:
|
580
|
-
# `projects/PROJECT_ID/locations/
|
576
|
+
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
581
577
|
# @param options [Google::Gax::CallOptions]
|
582
578
|
# Overrides the default settings for this call, e.g, timeout,
|
583
579
|
# retries, etc.
|
@@ -614,7 +610,7 @@ module Google
|
|
614
610
|
# missing from the request or longer than 4096 characters.
|
615
611
|
#
|
616
612
|
# @param product_set [Google::Cloud::Vision::V1p3beta1::ProductSet | Hash]
|
617
|
-
# The ProductSet resource which replaces the one on the server.
|
613
|
+
# Required. The ProductSet resource which replaces the one on the server.
|
618
614
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::ProductSet`
|
619
615
|
# can also be provided.
|
620
616
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -667,7 +663,7 @@ module Google
|
|
667
663
|
# * Returns NOT_FOUND if the ProductSet does not exist.
|
668
664
|
#
|
669
665
|
# @param name [String]
|
670
|
-
# Resource name of the ProductSet to delete.
|
666
|
+
# Required. Resource name of the ProductSet to delete.
|
671
667
|
#
|
672
668
|
# Format is:
|
673
669
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -707,12 +703,12 @@ module Google
|
|
707
703
|
# * Returns INVALID_ARGUMENT if product_category is missing or invalid.
|
708
704
|
#
|
709
705
|
# @param parent [String]
|
710
|
-
# The project in which the Product should be created.
|
706
|
+
# Required. The project in which the Product should be created.
|
711
707
|
#
|
712
708
|
# Format is
|
713
709
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
714
710
|
# @param product [Google::Cloud::Vision::V1p3beta1::Product | Hash]
|
715
|
-
# The product to create.
|
711
|
+
# Required. The product to create.
|
716
712
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::Product`
|
717
713
|
# can also be provided.
|
718
714
|
# @param product_id [String]
|
@@ -763,7 +759,7 @@ module Google
|
|
763
759
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
764
760
|
#
|
765
761
|
# @param parent [String]
|
766
|
-
# The project OR ProductSet from which Products should be listed.
|
762
|
+
# Required. The project OR ProductSet from which Products should be listed.
|
767
763
|
#
|
768
764
|
# Format:
|
769
765
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
@@ -824,7 +820,7 @@ module Google
|
|
824
820
|
# * Returns NOT_FOUND if the Product does not exist.
|
825
821
|
#
|
826
822
|
# @param name [String]
|
827
|
-
# Resource name of the Product to get.
|
823
|
+
# Required. Resource name of the Product to get.
|
828
824
|
#
|
829
825
|
# Format is:
|
830
826
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -870,7 +866,7 @@ module Google
|
|
870
866
|
# * Returns INVALID_ARGUMENT if product_category is present in update_mask.
|
871
867
|
#
|
872
868
|
# @param product [Google::Cloud::Vision::V1p3beta1::Product | Hash]
|
873
|
-
# The Product resource which replaces the one on the server.
|
869
|
+
# Required. The Product resource which replaces the one on the server.
|
874
870
|
# product.name is immutable.
|
875
871
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::Product`
|
876
872
|
# can also be provided.
|
@@ -878,7 +874,7 @@ module Google
|
|
878
874
|
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields
|
879
875
|
# to update.
|
880
876
|
# If update_mask isn't specified, all mutable fields are to be updated.
|
881
|
-
# Valid mask paths include `product_labels`, `display_name
|
877
|
+
# Valid mask paths include `product_labels`, `display_name`, and
|
882
878
|
# `description`.
|
883
879
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
884
880
|
# can also be provided.
|
@@ -926,7 +922,7 @@ module Google
|
|
926
922
|
# * Returns NOT_FOUND if the product does not exist.
|
927
923
|
#
|
928
924
|
# @param name [String]
|
929
|
-
# Resource name of product to delete.
|
925
|
+
# Required. Resource name of product to delete.
|
930
926
|
#
|
931
927
|
# Format is:
|
932
928
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -977,12 +973,12 @@ module Google
|
|
977
973
|
# * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
|
978
974
|
#
|
979
975
|
# @param parent [String]
|
980
|
-
# Resource name of the product in which to create the reference image.
|
976
|
+
# Required. Resource name of the product in which to create the reference image.
|
981
977
|
#
|
982
978
|
# Format is
|
983
979
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
984
980
|
# @param reference_image [Google::Cloud::Vision::V1p3beta1::ReferenceImage | Hash]
|
985
|
-
# The reference image to create.
|
981
|
+
# Required. The reference image to create.
|
986
982
|
# If an image ID is specified, it is ignored.
|
987
983
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::ReferenceImage`
|
988
984
|
# can also be provided.
|
@@ -1040,7 +1036,7 @@ module Google
|
|
1040
1036
|
# * Returns NOT_FOUND if the reference image does not exist.
|
1041
1037
|
#
|
1042
1038
|
# @param name [String]
|
1043
|
-
# The resource name of the reference image to delete.
|
1039
|
+
# Required. The resource name of the reference image to delete.
|
1044
1040
|
#
|
1045
1041
|
# Format is:
|
1046
1042
|
#
|
@@ -1080,7 +1076,7 @@ module Google
|
|
1080
1076
|
# than 1.
|
1081
1077
|
#
|
1082
1078
|
# @param parent [String]
|
1083
|
-
# Resource name of the product containing the reference images.
|
1079
|
+
# Required. Resource name of the product containing the reference images.
|
1084
1080
|
#
|
1085
1081
|
# Format is
|
1086
1082
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
@@ -1141,7 +1137,7 @@ module Google
|
|
1141
1137
|
# * Returns NOT_FOUND if the specified image does not exist.
|
1142
1138
|
#
|
1143
1139
|
# @param name [String]
|
1144
|
-
# The resource name of the ReferenceImage to get.
|
1140
|
+
# Required. The resource name of the ReferenceImage to get.
|
1145
1141
|
#
|
1146
1142
|
# Format is:
|
1147
1143
|
#
|
@@ -1182,12 +1178,12 @@ module Google
|
|
1182
1178
|
# * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
|
1183
1179
|
#
|
1184
1180
|
# @param name [String]
|
1185
|
-
# The resource name for the ProductSet to modify.
|
1181
|
+
# Required. The resource name for the ProductSet to modify.
|
1186
1182
|
#
|
1187
1183
|
# Format is:
|
1188
1184
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1189
1185
|
# @param product [String]
|
1190
|
-
# The resource name for the Product to be added to this ProductSet.
|
1186
|
+
# Required. The resource name for the Product to be added to this ProductSet.
|
1191
1187
|
#
|
1192
1188
|
# Format is:
|
1193
1189
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -1229,12 +1225,12 @@ module Google
|
|
1229
1225
|
# * Returns NOT_FOUND If the Product is not found under the ProductSet.
|
1230
1226
|
#
|
1231
1227
|
# @param name [String]
|
1232
|
-
# The resource name for the ProductSet to modify.
|
1228
|
+
# Required. The resource name for the ProductSet to modify.
|
1233
1229
|
#
|
1234
1230
|
# Format is:
|
1235
1231
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1236
1232
|
# @param product [String]
|
1237
|
-
# The resource name for the Product to be removed from this ProductSet.
|
1233
|
+
# Required. The resource name for the Product to be removed from this ProductSet.
|
1238
1234
|
#
|
1239
1235
|
# Format is:
|
1240
1236
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -1278,7 +1274,7 @@ module Google
|
|
1278
1274
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
1279
1275
|
#
|
1280
1276
|
# @param name [String]
|
1281
|
-
# The ProductSet resource for which to retrieve Products.
|
1277
|
+
# Required. The ProductSet resource for which to retrieve Products.
|
1282
1278
|
#
|
1283
1279
|
# Format is:
|
1284
1280
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -1345,11 +1341,11 @@ module Google
|
|
1345
1341
|
# {Google::Cloud::Vision::V1p3beta1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource#csv_file_uri}.
|
1346
1342
|
#
|
1347
1343
|
# @param parent [String]
|
1348
|
-
# The project in which the ProductSets should be imported.
|
1344
|
+
# Required. The project in which the ProductSets should be imported.
|
1349
1345
|
#
|
1350
1346
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
1351
1347
|
# @param input_config [Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig | Hash]
|
1352
|
-
# The input content for the list of requests.
|
1348
|
+
# Required. The input content for the list of requests.
|
1353
1349
|
# A hash of the same form as `Google::Cloud::Vision::V1p3beta1::ImportProductSetsInputConfig`
|
1354
1350
|
# can also be provided.
|
1355
1351
|
# @param options [Google::Gax::CallOptions]
|
@@ -5,6 +5,9 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
|
+
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
8
11
|
require 'google/cloud/vision/v1p3beta1/geometry_pb'
|
9
12
|
require 'google/longrunning/operations_pb'
|
10
13
|
require 'google/protobuf/empty_pb'
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/vision/v1p3beta1/product_search_service.proto for package 'google.cloud.vision.v1p3beta1'
|
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.
|
@@ -15,6 +15,7 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
+
#
|
18
19
|
|
19
20
|
|
20
21
|
require 'grpc'
|
@@ -28,20 +29,16 @@ module Google
|
|
28
29
|
# Manages Products and ProductSets of reference images for use in product
|
29
30
|
# search. It uses the following resource model:
|
30
31
|
#
|
31
|
-
# - The API has a collection of
|
32
|
-
# [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] resources, named
|
32
|
+
# - The API has a collection of [ProductSet][google.cloud.vision.v1p3beta1.ProductSet] resources, named
|
33
33
|
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
34
34
|
# products into groups to limit identification.
|
35
35
|
#
|
36
36
|
# In parallel,
|
37
37
|
#
|
38
|
-
# - The API has a collection of
|
39
|
-
# [Product][google.cloud.vision.v1p3beta1.Product] resources, named
|
38
|
+
# - The API has a collection of [Product][google.cloud.vision.v1p3beta1.Product] resources, named
|
40
39
|
# `projects/*/locations/*/products/*`
|
41
40
|
#
|
42
|
-
# - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of
|
43
|
-
# [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources,
|
44
|
-
# named
|
41
|
+
# - Each [Product][google.cloud.vision.v1p3beta1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1p3beta1.ReferenceImage] resources, named
|
45
42
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
46
43
|
class Service
|
47
44
|
|
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.37.
|
4
|
+
version: 0.37.3
|
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-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|