google-cloud-vision 0.35.0 → 0.36.0
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.rb +5 -7
- data/lib/google/cloud/vision/v1.rb +5 -7
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +46 -22
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search.rb +7 -8
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search_service.rb +36 -45
- data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +2 -3
- data/lib/google/cloud/vision/v1/doc/google/protobuf/timestamp.rb +6 -4
- data/lib/google/cloud/vision/v1/image_annotator_client.rb +4 -4
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +14 -7
- data/lib/google/cloud/vision/v1/product_search_client.rb +34 -36
- data/lib/google/cloud/vision/v1/product_search_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search_service_pb.rb +2 -0
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +9 -11
- data/lib/google/cloud/vision/v1/text_annotation_pb.rb +1 -1
- data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/timestamp.rb +6 -4
- 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: 16ec1f0926e5b6a774f1be8ed2366046fdc386818ef233542a321ec4df75f827
|
4
|
+
data.tar.gz: d8e8c9d59d12e377409d9aa031e2d3876ddcdfaf00dddbafcdee6b283dca2b14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 881f30276e7dad4af98a59ef37e81d35ca5f45504007981c29384d206f20fbd5acb1451aca0fad6cffb5e7f861886e74481d53ebbbde282bb473fa8333f45eb2
|
7
|
+
data.tar.gz: 9881ac665c124e85c5322e2a53796c4411119633bf0d92a1502172d070d7d47cacdc9f50ad8ecaf5d159e9f07181000bcd57cda076dbf55c48d1c737007ff2d2
|
data/lib/google/cloud/vision.rb
CHANGED
@@ -175,18 +175,16 @@ module Google
|
|
175
175
|
# Manages Products and ProductSets of reference images for use in product
|
176
176
|
# search. It uses the following resource model:
|
177
177
|
#
|
178
|
-
# * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet}
|
179
|
-
#
|
180
|
-
#
|
178
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
|
179
|
+
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
180
|
+
# products into groups to limit identification.
|
181
181
|
#
|
182
182
|
# In parallel,
|
183
183
|
#
|
184
|
-
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
|
185
|
-
# resources, named
|
184
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
|
186
185
|
# `projects/*/locations/*/products/*`
|
187
186
|
#
|
188
|
-
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
|
189
|
-
# {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
187
|
+
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
190
188
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
191
189
|
#
|
192
190
|
# @param version [Symbol, String]
|
@@ -172,18 +172,16 @@ module Google
|
|
172
172
|
# Manages Products and ProductSets of reference images for use in product
|
173
173
|
# search. It uses the following resource model:
|
174
174
|
#
|
175
|
-
# * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet}
|
176
|
-
#
|
177
|
-
#
|
175
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
|
176
|
+
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
177
|
+
# products into groups to limit identification.
|
178
178
|
#
|
179
179
|
# In parallel,
|
180
180
|
#
|
181
|
-
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
|
182
|
-
# resources, named
|
181
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
|
183
182
|
# `projects/*/locations/*/products/*`
|
184
183
|
#
|
185
|
-
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
|
186
|
-
# {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
184
|
+
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
187
185
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
188
186
|
#
|
189
187
|
# @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
|
@@ -418,6 +418,30 @@ module Google
|
|
418
418
|
# include (but is not limited to) skimpy or sheer clothing, strategically
|
419
419
|
# covered nudity, lewd or provocative poses, or close-ups of sensitive
|
420
420
|
# body areas.
|
421
|
+
# @!attribute [rw] adult_confidence
|
422
|
+
# @return [Float]
|
423
|
+
# Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means
|
424
|
+
# very confident.
|
425
|
+
# @!attribute [rw] spoof_confidence
|
426
|
+
# @return [Float]
|
427
|
+
# Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means
|
428
|
+
# very confident.
|
429
|
+
# @!attribute [rw] medical_confidence
|
430
|
+
# @return [Float]
|
431
|
+
# Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means
|
432
|
+
# very confident.
|
433
|
+
# @!attribute [rw] violence_confidence
|
434
|
+
# @return [Float]
|
435
|
+
# Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means
|
436
|
+
# very confident.
|
437
|
+
# @!attribute [rw] racy_confidence
|
438
|
+
# @return [Float]
|
439
|
+
# Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very
|
440
|
+
# confident.
|
441
|
+
# @!attribute [rw] nsfw_confidence
|
442
|
+
# @return [Float]
|
443
|
+
# Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very
|
444
|
+
# confident.
|
421
445
|
class SafeSearchAnnotation; end
|
422
446
|
|
423
447
|
# Rectangle determined by min and max `LatLng` pairs.
|
@@ -593,28 +617,10 @@ module Google
|
|
593
617
|
# comes from.
|
594
618
|
class AnnotateImageResponse; end
|
595
619
|
|
596
|
-
# Response to a single file annotation request. A file may contain one or more
|
597
|
-
# images, which individually have their own responses.
|
598
|
-
# @!attribute [rw] input_config
|
599
|
-
# @return [Google::Cloud::Vision::V1::InputConfig]
|
600
|
-
# Information about the file for which this response is generated.
|
601
|
-
# @!attribute [rw] responses
|
602
|
-
# @return [Array<Google::Cloud::Vision::V1::AnnotateImageResponse>]
|
603
|
-
# Individual responses to images found within the file. This field will be
|
604
|
-
# empty if the `error` field is set.
|
605
|
-
# @!attribute [rw] total_pages
|
606
|
-
# @return [Integer]
|
607
|
-
# This field gives the total number of pages in the file.
|
608
|
-
# @!attribute [rw] error
|
609
|
-
# @return [Google::Rpc::Status]
|
610
|
-
# If set, represents the error message for the failed request. The
|
611
|
-
# `responses` field will not be set in this case.
|
612
|
-
class AnnotateFileResponse; end
|
613
|
-
|
614
620
|
# Multiple image annotation requests are batched into a single service call.
|
615
621
|
# @!attribute [rw] requests
|
616
622
|
# @return [Array<Google::Cloud::Vision::V1::AnnotateImageRequest>]
|
617
|
-
# Individual image annotation requests for this batch.
|
623
|
+
# Required. Individual image annotation requests for this batch.
|
618
624
|
# @!attribute [rw] parent
|
619
625
|
# @return [String]
|
620
626
|
# Optional. Target project and location to make a call.
|
@@ -665,10 +671,28 @@ module Google
|
|
665
671
|
# for the first 5 pages of the file.
|
666
672
|
class AnnotateFileRequest; end
|
667
673
|
|
674
|
+
# Response to a single file annotation request. A file may contain one or more
|
675
|
+
# images, which individually have their own responses.
|
676
|
+
# @!attribute [rw] input_config
|
677
|
+
# @return [Google::Cloud::Vision::V1::InputConfig]
|
678
|
+
# Information about the file for which this response is generated.
|
679
|
+
# @!attribute [rw] responses
|
680
|
+
# @return [Array<Google::Cloud::Vision::V1::AnnotateImageResponse>]
|
681
|
+
# Individual responses to images found within the file. This field will be
|
682
|
+
# empty if the `error` field is set.
|
683
|
+
# @!attribute [rw] total_pages
|
684
|
+
# @return [Integer]
|
685
|
+
# This field gives the total number of pages in the file.
|
686
|
+
# @!attribute [rw] error
|
687
|
+
# @return [Google::Rpc::Status]
|
688
|
+
# If set, represents the error message for the failed request. The
|
689
|
+
# `responses` field will not be set in this case.
|
690
|
+
class AnnotateFileResponse; end
|
691
|
+
|
668
692
|
# A list of requests to annotate files using the BatchAnnotateFiles API.
|
669
693
|
# @!attribute [rw] requests
|
670
694
|
# @return [Array<Google::Cloud::Vision::V1::AnnotateFileRequest>]
|
671
|
-
# The list of file annotation requests. Right now we support only one
|
695
|
+
# Required. The list of file annotation requests. Right now we support only one
|
672
696
|
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
673
697
|
# @!attribute [rw] parent
|
674
698
|
# @return [String]
|
@@ -717,7 +741,7 @@ module Google
|
|
717
741
|
# Request for async image annotation for a list of images.
|
718
742
|
# @!attribute [rw] requests
|
719
743
|
# @return [Array<Google::Cloud::Vision::V1::AnnotateImageRequest>]
|
720
|
-
# Individual image annotation requests for this batch.
|
744
|
+
# Required. Individual image annotation requests for this batch.
|
721
745
|
# @!attribute [rw] output_config
|
722
746
|
# @return [Google::Cloud::Vision::V1::OutputConfig]
|
723
747
|
# Required. The desired output location and metadata (e.g. format).
|
@@ -747,7 +771,7 @@ module Google
|
|
747
771
|
# call.
|
748
772
|
# @!attribute [rw] requests
|
749
773
|
# @return [Array<Google::Cloud::Vision::V1::AsyncAnnotateFileRequest>]
|
750
|
-
# Individual async file annotation requests for this batch.
|
774
|
+
# Required. Individual async file annotation requests for this batch.
|
751
775
|
# @!attribute [rw] parent
|
752
776
|
# @return [String]
|
753
777
|
# Optional. Target project and location to make a call.
|
@@ -24,20 +24,19 @@ module Google
|
|
24
24
|
# Optional. If it is not specified, system discretion will be applied.
|
25
25
|
# @!attribute [rw] product_set
|
26
26
|
# @return [String]
|
27
|
-
# The resource name of a {Google::Cloud::Vision::V1::ProductSet ProductSet} to
|
28
|
-
# be searched for similar images.
|
27
|
+
# The resource name of a {Google::Cloud::Vision::V1::ProductSet ProductSet} to be searched for similar images.
|
29
28
|
#
|
30
29
|
# Format is:
|
31
30
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
|
32
31
|
# @!attribute [rw] product_categories
|
33
32
|
# @return [Array<String>]
|
34
33
|
# The list of product categories to search in. Currently, we only consider
|
35
|
-
# the first category, and either "homegoods-v2", "apparel-v2",
|
36
|
-
# should be specified. The legacy
|
37
|
-
# "toys" are still supported but will
|
38
|
-
# use "homegoods-v2", "apparel-v2",
|
39
|
-
# accuracy. It is recommended to
|
40
|
-
# categories as well.
|
34
|
+
# the first category, and either "homegoods-v2", "apparel-v2", "toys-v2",
|
35
|
+
# "packagedgoods-v1", or "general-v1" should be specified. The legacy
|
36
|
+
# categories "homegoods", "apparel", and "toys" are still supported but will
|
37
|
+
# be deprecated. For new products, please use "homegoods-v2", "apparel-v2",
|
38
|
+
# or "toys-v2" for better product search accuracy. It is recommended to
|
39
|
+
# migrate existing products to these categories as well.
|
41
40
|
# @!attribute [rw] filter
|
42
41
|
# @return [String]
|
43
42
|
# The filtering expression. This can be used to restrict search results based
|
@@ -36,12 +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
|
39
|
+
# Immutable. The category for the product identified by the reference image. This should
|
40
40
|
# be either "homegoods-v2", "apparel-v2", or "toys-v2". The legacy categories
|
41
41
|
# "homegoods", "apparel", and "toys" are still supported, but these should
|
42
42
|
# not be used for new products.
|
43
|
-
#
|
44
|
-
# This field is immutable.
|
45
43
|
# @!attribute [rw] product_labels
|
46
44
|
# @return [Array<Google::Cloud::Vision::V1::Product::KeyValue>]
|
47
45
|
# Key-value pairs that can be attached to a product. At query time,
|
@@ -114,15 +112,13 @@ module Google
|
|
114
112
|
# This field is ignored when creating a reference image.
|
115
113
|
# @!attribute [rw] uri
|
116
114
|
# @return [String]
|
117
|
-
# The Google Cloud Storage URI of the reference image.
|
115
|
+
# Required. The Google Cloud Storage URI of the reference image.
|
118
116
|
#
|
119
117
|
# The URI must start with `gs://`.
|
120
|
-
#
|
121
|
-
# Required.
|
122
118
|
# @!attribute [rw] bounding_polys
|
123
119
|
# @return [Array<Google::Cloud::Vision::V1::BoundingPoly>]
|
124
|
-
# Bounding polygons around the areas of interest in the reference image.
|
125
|
-
#
|
120
|
+
# Optional. Bounding polygons around the areas of interest in the reference image.
|
121
|
+
# If this field is empty, the system will try to detect regions of
|
126
122
|
# interest. At most 10 bounding polygons will be used.
|
127
123
|
#
|
128
124
|
# The provided shape is converted into a non-rotated rectangle. Once
|
@@ -134,13 +130,13 @@ module Google
|
|
134
130
|
# Request message for the `CreateProduct` method.
|
135
131
|
# @!attribute [rw] parent
|
136
132
|
# @return [String]
|
137
|
-
# The project in which the Product should be created.
|
133
|
+
# Required. The project in which the Product should be created.
|
138
134
|
#
|
139
135
|
# Format is
|
140
136
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
141
137
|
# @!attribute [rw] product
|
142
138
|
# @return [Google::Cloud::Vision::V1::Product]
|
143
|
-
# The product to create.
|
139
|
+
# Required. The product to create.
|
144
140
|
# @!attribute [rw] product_id
|
145
141
|
# @return [String]
|
146
142
|
# A user-supplied resource id for this Product. If set, the server will
|
@@ -152,7 +148,7 @@ module Google
|
|
152
148
|
# Request message for the `ListProducts` method.
|
153
149
|
# @!attribute [rw] parent
|
154
150
|
# @return [String]
|
155
|
-
# The project OR ProductSet from which Products should be listed.
|
151
|
+
# Required. The project OR ProductSet from which Products should be listed.
|
156
152
|
#
|
157
153
|
# Format:
|
158
154
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
@@ -177,7 +173,7 @@ module Google
|
|
177
173
|
# Request message for the `GetProduct` method.
|
178
174
|
# @!attribute [rw] name
|
179
175
|
# @return [String]
|
180
|
-
# Resource name of the Product to get.
|
176
|
+
# Required. Resource name of the Product to get.
|
181
177
|
#
|
182
178
|
# Format is:
|
183
179
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -186,7 +182,7 @@ module Google
|
|
186
182
|
# Request message for the `UpdateProduct` method.
|
187
183
|
# @!attribute [rw] product
|
188
184
|
# @return [Google::Cloud::Vision::V1::Product]
|
189
|
-
# The Product resource which replaces the one on the server.
|
185
|
+
# Required. The Product resource which replaces the one on the server.
|
190
186
|
# product.name is immutable.
|
191
187
|
# @!attribute [rw] update_mask
|
192
188
|
# @return [Google::Protobuf::FieldMask]
|
@@ -200,7 +196,7 @@ module Google
|
|
200
196
|
# Request message for the `DeleteProduct` method.
|
201
197
|
# @!attribute [rw] name
|
202
198
|
# @return [String]
|
203
|
-
# Resource name of product to delete.
|
199
|
+
# Required. Resource name of product to delete.
|
204
200
|
#
|
205
201
|
# Format is:
|
206
202
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -209,12 +205,12 @@ module Google
|
|
209
205
|
# Request message for the `CreateProductSet` method.
|
210
206
|
# @!attribute [rw] parent
|
211
207
|
# @return [String]
|
212
|
-
# The project in which the ProductSet should be created.
|
208
|
+
# Required. The project in which the ProductSet should be created.
|
213
209
|
#
|
214
210
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
215
211
|
# @!attribute [rw] product_set
|
216
212
|
# @return [Google::Cloud::Vision::V1::ProductSet]
|
217
|
-
# The ProductSet to create.
|
213
|
+
# Required. The ProductSet to create.
|
218
214
|
# @!attribute [rw] product_set_id
|
219
215
|
# @return [String]
|
220
216
|
# A user-supplied resource id for this ProductSet. If set, the server will
|
@@ -226,7 +222,7 @@ module Google
|
|
226
222
|
# Request message for the `ListProductSets` method.
|
227
223
|
# @!attribute [rw] parent
|
228
224
|
# @return [String]
|
229
|
-
# The project from which ProductSets should be listed.
|
225
|
+
# Required. The project from which ProductSets should be listed.
|
230
226
|
#
|
231
227
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
232
228
|
# @!attribute [rw] page_size
|
@@ -250,7 +246,7 @@ module Google
|
|
250
246
|
# Request message for the `GetProductSet` method.
|
251
247
|
# @!attribute [rw] name
|
252
248
|
# @return [String]
|
253
|
-
# Resource name of the ProductSet to get.
|
249
|
+
# Required. Resource name of the ProductSet to get.
|
254
250
|
#
|
255
251
|
# Format is:
|
256
252
|
# `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
|
@@ -259,7 +255,7 @@ module Google
|
|
259
255
|
# Request message for the `UpdateProductSet` method.
|
260
256
|
# @!attribute [rw] product_set
|
261
257
|
# @return [Google::Cloud::Vision::V1::ProductSet]
|
262
|
-
# The ProductSet resource which replaces the one on the server.
|
258
|
+
# Required. The ProductSet resource which replaces the one on the server.
|
263
259
|
# @!attribute [rw] update_mask
|
264
260
|
# @return [Google::Protobuf::FieldMask]
|
265
261
|
# The {Google::Protobuf::FieldMask FieldMask} that specifies which fields to
|
@@ -271,7 +267,7 @@ module Google
|
|
271
267
|
# Request message for the `DeleteProductSet` method.
|
272
268
|
# @!attribute [rw] name
|
273
269
|
# @return [String]
|
274
|
-
# Resource name of the ProductSet to delete.
|
270
|
+
# Required. Resource name of the ProductSet to delete.
|
275
271
|
#
|
276
272
|
# Format is:
|
277
273
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -280,13 +276,13 @@ module Google
|
|
280
276
|
# Request message for the `CreateReferenceImage` method.
|
281
277
|
# @!attribute [rw] parent
|
282
278
|
# @return [String]
|
283
|
-
# Resource name of the product in which to create the reference image.
|
279
|
+
# Required. Resource name of the product in which to create the reference image.
|
284
280
|
#
|
285
281
|
# Format is
|
286
282
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
287
283
|
# @!attribute [rw] reference_image
|
288
284
|
# @return [Google::Cloud::Vision::V1::ReferenceImage]
|
289
|
-
# The reference image to create.
|
285
|
+
# Required. The reference image to create.
|
290
286
|
# If an image ID is specified, it is ignored.
|
291
287
|
# @!attribute [rw] reference_image_id
|
292
288
|
# @return [String]
|
@@ -299,7 +295,7 @@ module Google
|
|
299
295
|
# Request message for the `ListReferenceImages` method.
|
300
296
|
# @!attribute [rw] parent
|
301
297
|
# @return [String]
|
302
|
-
# Resource name of the product containing the reference images.
|
298
|
+
# Required. Resource name of the product containing the reference images.
|
303
299
|
#
|
304
300
|
# Format is
|
305
301
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
@@ -329,7 +325,7 @@ module Google
|
|
329
325
|
# Request message for the `GetReferenceImage` method.
|
330
326
|
# @!attribute [rw] name
|
331
327
|
# @return [String]
|
332
|
-
# The resource name of the ReferenceImage to get.
|
328
|
+
# Required. The resource name of the ReferenceImage to get.
|
333
329
|
#
|
334
330
|
# Format is:
|
335
331
|
#
|
@@ -339,7 +335,7 @@ module Google
|
|
339
335
|
# Request message for the `DeleteReferenceImage` method.
|
340
336
|
# @!attribute [rw] name
|
341
337
|
# @return [String]
|
342
|
-
# The resource name of the reference image to delete.
|
338
|
+
# Required. The resource name of the reference image to delete.
|
343
339
|
#
|
344
340
|
# Format is:
|
345
341
|
#
|
@@ -349,13 +345,13 @@ module Google
|
|
349
345
|
# Request message for the `AddProductToProductSet` method.
|
350
346
|
# @!attribute [rw] name
|
351
347
|
# @return [String]
|
352
|
-
# The resource name for the ProductSet to modify.
|
348
|
+
# Required. The resource name for the ProductSet to modify.
|
353
349
|
#
|
354
350
|
# Format is:
|
355
351
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
356
352
|
# @!attribute [rw] product
|
357
353
|
# @return [String]
|
358
|
-
# The resource name for the Product to be added to this ProductSet.
|
354
|
+
# Required. The resource name for the Product to be added to this ProductSet.
|
359
355
|
#
|
360
356
|
# Format is:
|
361
357
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -364,13 +360,13 @@ module Google
|
|
364
360
|
# Request message for the `RemoveProductFromProductSet` method.
|
365
361
|
# @!attribute [rw] name
|
366
362
|
# @return [String]
|
367
|
-
# The resource name for the ProductSet to modify.
|
363
|
+
# Required. The resource name for the ProductSet to modify.
|
368
364
|
#
|
369
365
|
# Format is:
|
370
366
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
371
367
|
# @!attribute [rw] product
|
372
368
|
# @return [String]
|
373
|
-
# The resource name for the Product to be removed from this ProductSet.
|
369
|
+
# Required. The resource name for the Product to be removed from this ProductSet.
|
374
370
|
#
|
375
371
|
# Format is:
|
376
372
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -379,7 +375,7 @@ module Google
|
|
379
375
|
# Request message for the `ListProductsInProductSet` method.
|
380
376
|
# @!attribute [rw] name
|
381
377
|
# @return [String]
|
382
|
-
# The ProductSet resource for which to retrieve Products.
|
378
|
+
# Required. The ProductSet resource for which to retrieve Products.
|
383
379
|
#
|
384
380
|
# Format is:
|
385
381
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -430,17 +426,15 @@ module Google
|
|
430
426
|
# `product-display-name` column refers to
|
431
427
|
# {Google::Cloud::Vision::V1::Product#display_name display_name}, the
|
432
428
|
# `product-category` column refers to
|
433
|
-
# {Google::Cloud::Vision::V1::Product#product_category product_category}, and
|
434
|
-
#
|
435
|
-
# {Google::Cloud::Vision::V1::Product#product_labels product_labels}.
|
429
|
+
# {Google::Cloud::Vision::V1::Product#product_category product_category}, and the
|
430
|
+
# `labels` column refers to {Google::Cloud::Vision::V1::Product#product_labels product_labels}.
|
436
431
|
#
|
437
432
|
# The `image-id` column is optional but must be unique if provided. If it is
|
438
433
|
# empty, the system will automatically assign a unique id to the image.
|
439
434
|
#
|
440
435
|
# The `product-display-name` column is optional. If it is empty, the system
|
441
|
-
# sets the {Google::Cloud::Vision::V1::Product#display_name display_name} field
|
442
|
-
#
|
443
|
-
# by using the API.
|
436
|
+
# sets the {Google::Cloud::Vision::V1::Product#display_name display_name} field for the product to a
|
437
|
+
# space (" "). You can update the `display_name` later by using the API.
|
444
438
|
#
|
445
439
|
# If a `Product` with the specified `product-id` already exists, then the
|
446
440
|
# system ignores the `product-display-name`, `product-category`, and `labels`
|
@@ -480,21 +474,19 @@ module Google
|
|
480
474
|
# Request message for the `ImportProductSets` method.
|
481
475
|
# @!attribute [rw] parent
|
482
476
|
# @return [String]
|
483
|
-
# The project in which the ProductSets should be imported.
|
477
|
+
# Required. The project in which the ProductSets should be imported.
|
484
478
|
#
|
485
479
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
486
480
|
# @!attribute [rw] input_config
|
487
481
|
# @return [Google::Cloud::Vision::V1::ImportProductSetsInputConfig]
|
488
|
-
# The input content for the list of requests.
|
482
|
+
# Required. The input content for the list of requests.
|
489
483
|
class ImportProductSetsRequest; end
|
490
484
|
|
491
485
|
# Response message for the `ImportProductSets` method.
|
492
486
|
#
|
493
487
|
# This message is returned by the
|
494
|
-
# {Google::Longrunning::Operations::GetOperation}
|
495
|
-
#
|
496
|
-
# {Google::Longrunning::Operation#response}
|
497
|
-
# field.
|
488
|
+
# {Google::Longrunning::Operations::GetOperation} method in the returned
|
489
|
+
# {Google::Longrunning::Operation#response} field.
|
498
490
|
# @!attribute [rw] reference_images
|
499
491
|
# @return [Array<Google::Cloud::Vision::V1::ReferenceImage>]
|
500
492
|
# The list of reference_images that are imported successfully.
|
@@ -521,8 +513,7 @@ module Google
|
|
521
513
|
# @!attribute [rw] end_time
|
522
514
|
# @return [Google::Protobuf::Timestamp]
|
523
515
|
# The time when the batch request is finished and
|
524
|
-
# {Google::Longrunning::Operation#done} is
|
525
|
-
# set to true.
|
516
|
+
# {Google::Longrunning::Operation#done} is set to true.
|
526
517
|
class BatchOperationMetadata
|
527
518
|
# Enumerates the possible states that the batch request can be in.
|
528
519
|
module State
|
@@ -564,7 +555,7 @@ module Google
|
|
564
555
|
# ProductSet will be deleted.
|
565
556
|
# @!attribute [rw] parent
|
566
557
|
# @return [String]
|
567
|
-
# The project and location in which the Products should be deleted.
|
558
|
+
# Required. The project and location in which the Products should be deleted.
|
568
559
|
#
|
569
560
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
570
561
|
# @!attribute [rw] force
|
@@ -22,9 +22,8 @@ module Google
|
|
22
22
|
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
23
23
|
# Each structural component, starting from Page, may further have their own
|
24
24
|
# properties. Properties describe detected languages, breaks etc.. Please refer
|
25
|
-
# to the
|
26
|
-
#
|
27
|
-
# message definition below for more detail.
|
25
|
+
# to the {Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation::TextProperty} message definition below for more
|
26
|
+
# detail.
|
28
27
|
# @!attribute [rw] pages
|
29
28
|
# @return [Array<Google::Cloud::Vision::V1::Page>]
|
30
29
|
# List of pages detected by OCR.
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
@@ -228,7 +228,7 @@ module Google
|
|
228
228
|
# Run image detection and annotation for a batch of images.
|
229
229
|
#
|
230
230
|
# @param requests [Array<Google::Cloud::Vision::V1::AnnotateImageRequest | Hash>]
|
231
|
-
# Individual image annotation requests for this batch.
|
231
|
+
# Required. Individual image annotation requests for this batch.
|
232
232
|
# A hash of the same form as `Google::Cloud::Vision::V1::AnnotateImageRequest`
|
233
233
|
# can also be provided.
|
234
234
|
# @param parent [String]
|
@@ -283,7 +283,7 @@ module Google
|
|
283
283
|
# extracted.
|
284
284
|
#
|
285
285
|
# @param requests [Array<Google::Cloud::Vision::V1::AnnotateFileRequest | Hash>]
|
286
|
-
# The list of file annotation requests. Right now we support only one
|
286
|
+
# Required. The list of file annotation requests. Right now we support only one
|
287
287
|
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
288
288
|
# A hash of the same form as `Google::Cloud::Vision::V1::AnnotateFileRequest`
|
289
289
|
# can also be provided.
|
@@ -341,7 +341,7 @@ module Google
|
|
341
341
|
# GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
|
342
342
|
#
|
343
343
|
# @param requests [Array<Google::Cloud::Vision::V1::AnnotateImageRequest | Hash>]
|
344
|
-
# Individual image annotation requests for this batch.
|
344
|
+
# Required. Individual image annotation requests for this batch.
|
345
345
|
# A hash of the same form as `Google::Cloud::Vision::V1::AnnotateImageRequest`
|
346
346
|
# can also be provided.
|
347
347
|
# @param output_config [Google::Cloud::Vision::V1::OutputConfig | Hash]
|
@@ -434,7 +434,7 @@ module Google
|
|
434
434
|
# `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
|
435
435
|
#
|
436
436
|
# @param requests [Array<Google::Cloud::Vision::V1::AsyncAnnotateFileRequest | Hash>]
|
437
|
-
# Individual async file annotation requests for this batch.
|
437
|
+
# Required. Individual async file annotation requests for this batch.
|
438
438
|
# A hash of the same form as `Google::Cloud::Vision::V1::AsyncAnnotateFileRequest`
|
439
439
|
# can also be provided.
|
440
440
|
# @param parent [String]
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
9
10
|
require 'google/cloud/vision/v1/geometry_pb'
|
10
11
|
require 'google/cloud/vision/v1/product_search_pb'
|
11
12
|
require 'google/cloud/vision/v1/text_annotation_pb'
|
@@ -135,6 +136,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
135
136
|
optional :medical, :enum, 3, "google.cloud.vision.v1.Likelihood"
|
136
137
|
optional :violence, :enum, 4, "google.cloud.vision.v1.Likelihood"
|
137
138
|
optional :racy, :enum, 9, "google.cloud.vision.v1.Likelihood"
|
139
|
+
optional :adult_confidence, :float, 16
|
140
|
+
optional :spoof_confidence, :float, 18
|
141
|
+
optional :medical_confidence, :float, 20
|
142
|
+
optional :violence_confidence, :float, 22
|
143
|
+
optional :racy_confidence, :float, 24
|
144
|
+
optional :nsfw_confidence, :float, 26
|
138
145
|
end
|
139
146
|
add_message "google.cloud.vision.v1.LatLongRect" do
|
140
147
|
optional :min_lat_lng, :message, 1, "google.type.LatLng"
|
@@ -197,12 +204,6 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
197
204
|
optional :error, :message, 9, "google.rpc.Status"
|
198
205
|
optional :context, :message, 21, "google.cloud.vision.v1.ImageAnnotationContext"
|
199
206
|
end
|
200
|
-
add_message "google.cloud.vision.v1.AnnotateFileResponse" do
|
201
|
-
optional :input_config, :message, 1, "google.cloud.vision.v1.InputConfig"
|
202
|
-
repeated :responses, :message, 2, "google.cloud.vision.v1.AnnotateImageResponse"
|
203
|
-
optional :total_pages, :int32, 3
|
204
|
-
optional :error, :message, 4, "google.rpc.Status"
|
205
|
-
end
|
206
207
|
add_message "google.cloud.vision.v1.BatchAnnotateImagesRequest" do
|
207
208
|
repeated :requests, :message, 1, "google.cloud.vision.v1.AnnotateImageRequest"
|
208
209
|
optional :parent, :string, 4
|
@@ -216,6 +217,12 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
216
217
|
optional :image_context, :message, 3, "google.cloud.vision.v1.ImageContext"
|
217
218
|
repeated :pages, :int32, 4
|
218
219
|
end
|
220
|
+
add_message "google.cloud.vision.v1.AnnotateFileResponse" do
|
221
|
+
optional :input_config, :message, 1, "google.cloud.vision.v1.InputConfig"
|
222
|
+
repeated :responses, :message, 2, "google.cloud.vision.v1.AnnotateImageResponse"
|
223
|
+
optional :total_pages, :int32, 3
|
224
|
+
optional :error, :message, 4, "google.rpc.Status"
|
225
|
+
end
|
219
226
|
add_message "google.cloud.vision.v1.BatchAnnotateFilesRequest" do
|
220
227
|
repeated :requests, :message, 1, "google.cloud.vision.v1.AnnotateFileRequest"
|
221
228
|
optional :parent, :string, 3
|
@@ -312,10 +319,10 @@ module Google
|
|
312
319
|
AnnotateImageRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateImageRequest").msgclass
|
313
320
|
ImageAnnotationContext = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.ImageAnnotationContext").msgclass
|
314
321
|
AnnotateImageResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateImageResponse").msgclass
|
315
|
-
AnnotateFileResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateFileResponse").msgclass
|
316
322
|
BatchAnnotateImagesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateImagesRequest").msgclass
|
317
323
|
BatchAnnotateImagesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateImagesResponse").msgclass
|
318
324
|
AnnotateFileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateFileRequest").msgclass
|
325
|
+
AnnotateFileResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AnnotateFileResponse").msgclass
|
319
326
|
BatchAnnotateFilesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateFilesRequest").msgclass
|
320
327
|
BatchAnnotateFilesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.BatchAnnotateFilesResponse").msgclass
|
321
328
|
AsyncAnnotateFileRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.vision.v1.AsyncAnnotateFileRequest").msgclass
|
@@ -38,18 +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 {Google::Cloud::Vision::V1::ProductSet ProductSet}
|
42
|
-
#
|
43
|
-
#
|
41
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
|
42
|
+
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
43
|
+
# products into groups to limit identification.
|
44
44
|
#
|
45
45
|
# In parallel,
|
46
46
|
#
|
47
|
-
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
|
48
|
-
# resources, named
|
47
|
+
# * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
|
49
48
|
# `projects/*/locations/*/products/*`
|
50
49
|
#
|
51
|
-
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
|
52
|
-
# {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
50
|
+
# * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
53
51
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
54
52
|
#
|
55
53
|
# @!attribute [r] product_search_stub
|
@@ -464,11 +462,11 @@ module Google
|
|
464
462
|
# 4096 characters.
|
465
463
|
#
|
466
464
|
# @param parent [String]
|
467
|
-
# The project in which the ProductSet should be created.
|
465
|
+
# Required. The project in which the ProductSet should be created.
|
468
466
|
#
|
469
467
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
470
468
|
# @param product_set [Google::Cloud::Vision::V1::ProductSet | Hash]
|
471
|
-
# The ProductSet to create.
|
469
|
+
# Required. The ProductSet to create.
|
472
470
|
# A hash of the same form as `Google::Cloud::Vision::V1::ProductSet`
|
473
471
|
# can also be provided.
|
474
472
|
# @param product_set_id [String]
|
@@ -517,7 +515,7 @@ module Google
|
|
517
515
|
# than 1.
|
518
516
|
#
|
519
517
|
# @param parent [String]
|
520
|
-
# The project from which ProductSets should be listed.
|
518
|
+
# Required. The project from which ProductSets should be listed.
|
521
519
|
#
|
522
520
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
523
521
|
# @param page_size [Integer]
|
@@ -577,7 +575,7 @@ module Google
|
|
577
575
|
# * Returns NOT_FOUND if the ProductSet does not exist.
|
578
576
|
#
|
579
577
|
# @param name [String]
|
580
|
-
# Resource name of the ProductSet to get.
|
578
|
+
# Required. Resource name of the ProductSet to get.
|
581
579
|
#
|
582
580
|
# Format is:
|
583
581
|
# `projects/PROJECT_ID/locations/LOG_ID/productSets/PRODUCT_SET_ID`
|
@@ -617,7 +615,7 @@ module Google
|
|
617
615
|
# missing from the request or longer than 4096 characters.
|
618
616
|
#
|
619
617
|
# @param product_set [Google::Cloud::Vision::V1::ProductSet | Hash]
|
620
|
-
# The ProductSet resource which replaces the one on the server.
|
618
|
+
# Required. The ProductSet resource which replaces the one on the server.
|
621
619
|
# A hash of the same form as `Google::Cloud::Vision::V1::ProductSet`
|
622
620
|
# can also be provided.
|
623
621
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
@@ -663,7 +661,7 @@ module Google
|
|
663
661
|
# The actual image files are not deleted from Google Cloud Storage.
|
664
662
|
#
|
665
663
|
# @param name [String]
|
666
|
-
# Resource name of the ProductSet to delete.
|
664
|
+
# Required. Resource name of the ProductSet to delete.
|
667
665
|
#
|
668
666
|
# Format is:
|
669
667
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -703,12 +701,12 @@ module Google
|
|
703
701
|
# * Returns INVALID_ARGUMENT if product_category is missing or invalid.
|
704
702
|
#
|
705
703
|
# @param parent [String]
|
706
|
-
# The project in which the Product should be created.
|
704
|
+
# Required. The project in which the Product should be created.
|
707
705
|
#
|
708
706
|
# Format is
|
709
707
|
# `projects/PROJECT_ID/locations/LOC_ID`.
|
710
708
|
# @param product [Google::Cloud::Vision::V1::Product | Hash]
|
711
|
-
# The product to create.
|
709
|
+
# Required. The product to create.
|
712
710
|
# A hash of the same form as `Google::Cloud::Vision::V1::Product`
|
713
711
|
# can also be provided.
|
714
712
|
# @param product_id [String]
|
@@ -756,7 +754,7 @@ module Google
|
|
756
754
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
757
755
|
#
|
758
756
|
# @param parent [String]
|
759
|
-
# The project OR ProductSet from which Products should be listed.
|
757
|
+
# Required. The project OR ProductSet from which Products should be listed.
|
760
758
|
#
|
761
759
|
# Format:
|
762
760
|
# `projects/PROJECT_ID/locations/LOC_ID`
|
@@ -817,7 +815,7 @@ module Google
|
|
817
815
|
# * Returns NOT_FOUND if the Product does not exist.
|
818
816
|
#
|
819
817
|
# @param name [String]
|
820
|
-
# Resource name of the Product to get.
|
818
|
+
# Required. Resource name of the Product to get.
|
821
819
|
#
|
822
820
|
# Format is:
|
823
821
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -864,7 +862,7 @@ module Google
|
|
864
862
|
# * Returns INVALID_ARGUMENT if product_category is present in update_mask.
|
865
863
|
#
|
866
864
|
# @param product [Google::Cloud::Vision::V1::Product | Hash]
|
867
|
-
# The Product resource which replaces the one on the server.
|
865
|
+
# Required. The Product resource which replaces the one on the server.
|
868
866
|
# product.name is immutable.
|
869
867
|
# A hash of the same form as `Google::Cloud::Vision::V1::Product`
|
870
868
|
# can also be provided.
|
@@ -913,7 +911,7 @@ module Google
|
|
913
911
|
# until all related caches are refreshed.
|
914
912
|
#
|
915
913
|
# @param name [String]
|
916
|
-
# Resource name of product to delete.
|
914
|
+
# Required. Resource name of product to delete.
|
917
915
|
#
|
918
916
|
# Format is:
|
919
917
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -964,12 +962,12 @@ module Google
|
|
964
962
|
# * Returns INVALID_ARGUMENT if bounding_poly contains more than 10 polygons.
|
965
963
|
#
|
966
964
|
# @param parent [String]
|
967
|
-
# Resource name of the product in which to create the reference image.
|
965
|
+
# Required. Resource name of the product in which to create the reference image.
|
968
966
|
#
|
969
967
|
# Format is
|
970
968
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
971
969
|
# @param reference_image [Google::Cloud::Vision::V1::ReferenceImage | Hash]
|
972
|
-
# The reference image to create.
|
970
|
+
# Required. The reference image to create.
|
973
971
|
# If an image ID is specified, it is ignored.
|
974
972
|
# A hash of the same form as `Google::Cloud::Vision::V1::ReferenceImage`
|
975
973
|
# can also be provided.
|
@@ -1020,7 +1018,7 @@ module Google
|
|
1020
1018
|
# The actual image files are not deleted from Google Cloud Storage.
|
1021
1019
|
#
|
1022
1020
|
# @param name [String]
|
1023
|
-
# The resource name of the reference image to delete.
|
1021
|
+
# Required. The resource name of the reference image to delete.
|
1024
1022
|
#
|
1025
1023
|
# Format is:
|
1026
1024
|
#
|
@@ -1060,7 +1058,7 @@ module Google
|
|
1060
1058
|
# than 1.
|
1061
1059
|
#
|
1062
1060
|
# @param parent [String]
|
1063
|
-
# Resource name of the product containing the reference images.
|
1061
|
+
# Required. Resource name of the product containing the reference images.
|
1064
1062
|
#
|
1065
1063
|
# Format is
|
1066
1064
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
@@ -1121,7 +1119,7 @@ module Google
|
|
1121
1119
|
# * Returns NOT_FOUND if the specified image does not exist.
|
1122
1120
|
#
|
1123
1121
|
# @param name [String]
|
1124
|
-
# The resource name of the ReferenceImage to get.
|
1122
|
+
# Required. The resource name of the ReferenceImage to get.
|
1125
1123
|
#
|
1126
1124
|
# Format is:
|
1127
1125
|
#
|
@@ -1162,12 +1160,12 @@ module Google
|
|
1162
1160
|
# * Returns NOT_FOUND if the Product or the ProductSet doesn't exist.
|
1163
1161
|
#
|
1164
1162
|
# @param name [String]
|
1165
|
-
# The resource name for the ProductSet to modify.
|
1163
|
+
# Required. The resource name for the ProductSet to modify.
|
1166
1164
|
#
|
1167
1165
|
# Format is:
|
1168
1166
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1169
1167
|
# @param product [String]
|
1170
|
-
# The resource name for the Product to be added to this ProductSet.
|
1168
|
+
# Required. The resource name for the Product to be added to this ProductSet.
|
1171
1169
|
#
|
1172
1170
|
# Format is:
|
1173
1171
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -1203,12 +1201,12 @@ module Google
|
|
1203
1201
|
# Removes a Product from the specified ProductSet.
|
1204
1202
|
#
|
1205
1203
|
# @param name [String]
|
1206
|
-
# The resource name for the ProductSet to modify.
|
1204
|
+
# Required. The resource name for the ProductSet to modify.
|
1207
1205
|
#
|
1208
1206
|
# Format is:
|
1209
1207
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
1210
1208
|
# @param product [String]
|
1211
|
-
# The resource name for the Product to be removed from this ProductSet.
|
1209
|
+
# Required. The resource name for the Product to be removed from this ProductSet.
|
1212
1210
|
#
|
1213
1211
|
# Format is:
|
1214
1212
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
@@ -1250,7 +1248,7 @@ module Google
|
|
1250
1248
|
# * Returns INVALID_ARGUMENT if page_size is greater than 100 or less than 1.
|
1251
1249
|
#
|
1252
1250
|
# @param name [String]
|
1253
|
-
# The ProductSet resource for which to retrieve Products.
|
1251
|
+
# Required. The ProductSet resource for which to retrieve Products.
|
1254
1252
|
#
|
1255
1253
|
# Format is:
|
1256
1254
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
@@ -1307,8 +1305,8 @@ module Google
|
|
1307
1305
|
# Asynchronous API that imports a list of reference images to specified
|
1308
1306
|
# product sets based on a list of image information.
|
1309
1307
|
#
|
1310
|
-
# The {Google::Longrunning::Operation} API can be
|
1311
|
-
#
|
1308
|
+
# The {Google::Longrunning::Operation} API can be used to keep track of the
|
1309
|
+
# progress and results of the request.
|
1312
1310
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
1313
1311
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
1314
1312
|
#
|
@@ -1317,11 +1315,11 @@ module Google
|
|
1317
1315
|
# {Google::Cloud::Vision::V1::ImportProductSetsGcsSource#csv_file_uri ImportProductSetsGcsSource#csv_file_uri}.
|
1318
1316
|
#
|
1319
1317
|
# @param parent [String]
|
1320
|
-
# The project in which the ProductSets should be imported.
|
1318
|
+
# Required. The project in which the ProductSets should be imported.
|
1321
1319
|
#
|
1322
1320
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
1323
1321
|
# @param input_config [Google::Cloud::Vision::V1::ImportProductSetsInputConfig | Hash]
|
1324
|
-
# The input content for the list of requests.
|
1322
|
+
# Required. The input content for the list of requests.
|
1325
1323
|
# A hash of the same form as `Google::Cloud::Vision::V1::ImportProductSetsInputConfig`
|
1326
1324
|
# can also be provided.
|
1327
1325
|
# @param options [Google::Gax::CallOptions]
|
@@ -1406,12 +1404,12 @@ module Google
|
|
1406
1404
|
# ProductSet, you must wait until the PurgeProducts operation has finished
|
1407
1405
|
# for that ProductSet.
|
1408
1406
|
#
|
1409
|
-
# The {Google::Longrunning::Operation} API can be
|
1410
|
-
#
|
1407
|
+
# The {Google::Longrunning::Operation} API can be used to keep track of the
|
1408
|
+
# progress and results of the request.
|
1411
1409
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
1412
1410
|
#
|
1413
1411
|
# @param parent [String]
|
1414
|
-
# The project and location in which the Products should be deleted.
|
1412
|
+
# Required. The project and location in which the Products should be deleted.
|
1415
1413
|
#
|
1416
1414
|
# Format is `projects/PROJECT_ID/locations/LOC_ID`.
|
1417
1415
|
# @param product_set_purge_config [Google::Cloud::Vision::V1::ProductSetPurgeConfig | Hash]
|
@@ -4,10 +4,10 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/vision/v1/geometry_pb'
|
9
8
|
require 'google/cloud/vision/v1/product_search_service_pb'
|
10
9
|
require 'google/protobuf/timestamp_pb'
|
10
|
+
require 'google/api/annotations_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_message "google.cloud.vision.v1.ProductSearchParams" do
|
13
13
|
optional :bounding_poly, :message, 9, "google.cloud.vision.v1.BoundingPoly"
|
@@ -6,6 +6,8 @@ require 'google/protobuf'
|
|
6
6
|
|
7
7
|
require 'google/api/annotations_pb'
|
8
8
|
require 'google/api/client_pb'
|
9
|
+
require 'google/api/field_behavior_pb'
|
10
|
+
require 'google/api/resource_pb'
|
9
11
|
require 'google/cloud/vision/v1/geometry_pb'
|
10
12
|
require 'google/longrunning/operations_pb'
|
11
13
|
require 'google/protobuf/empty_pb'
|
@@ -29,18 +29,16 @@ module Google
|
|
29
29
|
# Manages Products and ProductSets of reference images for use in product
|
30
30
|
# search. It uses the following resource model:
|
31
31
|
#
|
32
|
-
# - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
|
33
|
-
#
|
34
|
-
#
|
32
|
+
# - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
|
33
|
+
# `projects/*/locations/*/productSets/*`, which acts as a way to put different
|
34
|
+
# products into groups to limit identification.
|
35
35
|
#
|
36
36
|
# In parallel,
|
37
37
|
#
|
38
|
-
# - The API has a collection of [Product][google.cloud.vision.v1.Product]
|
39
|
-
# resources, named
|
38
|
+
# - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
|
40
39
|
# `projects/*/locations/*/products/*`
|
41
40
|
#
|
42
|
-
# - Each [Product][google.cloud.vision.v1.Product] has a collection of
|
43
|
-
# [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
|
41
|
+
# - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
|
44
42
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
45
43
|
class Service
|
46
44
|
|
@@ -191,8 +189,8 @@ module Google
|
|
191
189
|
# Asynchronous API that imports a list of reference images to specified
|
192
190
|
# product sets based on a list of image information.
|
193
191
|
#
|
194
|
-
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
195
|
-
#
|
192
|
+
# The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the
|
193
|
+
# progress and results of the request.
|
196
194
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
197
195
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
198
196
|
#
|
@@ -221,8 +219,8 @@ module Google
|
|
221
219
|
# ProductSet, you must wait until the PurgeProducts operation has finished
|
222
220
|
# for that ProductSet.
|
223
221
|
#
|
224
|
-
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
225
|
-
#
|
222
|
+
# The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the
|
223
|
+
# progress and results of the request.
|
226
224
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
227
225
|
rpc :PurgeProducts, PurgeProductsRequest, Google::Longrunning::Operation
|
228
226
|
end
|
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
-
require 'google/api/annotations_pb'
|
8
7
|
require 'google/cloud/vision/v1/geometry_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_message "google.cloud.vision.v1.TextAnnotation" do
|
11
11
|
repeated :pages, :message, 1, "google.cloud.vision.v1.Page"
|
@@ -88,11 +88,13 @@ module Google
|
|
88
88
|
# 01:30 UTC on January 15, 2017.
|
89
89
|
#
|
90
90
|
# In JavaScript, one can convert a Date object to this format using the
|
91
|
-
# standard
|
91
|
+
# standard
|
92
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
92
93
|
# method. In Python, a standard `datetime.datetime` object can be converted
|
93
|
-
# to this format using
|
94
|
-
#
|
95
|
-
#
|
94
|
+
# to this format using
|
95
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
96
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
97
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
96
98
|
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
97
99
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
98
100
|
# @!attribute [rw] seconds
|
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.36.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-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|