google-cloud-vision-v1 0.13.2 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +34 -6
- data/lib/google/cloud/vision/v1/image_annotator/rest/client.rb +34 -6
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search/client.rb +15 -11
- data/lib/google/cloud/vision/v1/product_search/rest/client.rb +15 -11
- data/lib/google/cloud/vision/v1/product_search/rest.rb +7 -5
- data/lib/google/cloud/vision/v1/product_search.rb +7 -5
- data/lib/google/cloud/vision/v1/product_search_service_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +11 -9
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/proto_docs/google/cloud/vision/v1/image_annotator.rb +82 -5
- data/proto_docs/google/cloud/vision/v1/product_search.rb +2 -1
- data/proto_docs/google/cloud/vision/v1/product_search_service.rb +23 -15
- data/proto_docs/google/cloud/vision/v1/text_annotation.rb +3 -2
- 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: a5c232ed921ef9c72fefb3efb9ec501d6174ed18dd928632450feb088830936f
|
|
4
|
+
data.tar.gz: a9bb78061ce0f2eea7946c3af93173eafdaa1179ee3de2f9764af383da6a6682
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 273f218dd46a2dc6b07e6723c331f9bc88f2d420003c948f89358af87296b75f7905a9ec31c2cd2599d80ae319975433940fb23e4a99ee427c1a9183f3d3a95e
|
|
7
|
+
data.tar.gz: 4ef0b60367715615a816807a7e673ad4c7c30ead386f7e23ccacac73c6f3f820bb7a2c2df905f79b577f2d9318350be13522606020c04742d47391c405d5824d
|
|
@@ -209,7 +209,7 @@ module Google
|
|
|
209
209
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
210
210
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
211
211
|
#
|
|
212
|
-
# @overload batch_annotate_images(requests: nil, parent: nil)
|
|
212
|
+
# @overload batch_annotate_images(requests: nil, parent: nil, labels: nil)
|
|
213
213
|
# Pass arguments to `batch_annotate_images` via keyword arguments. Note that at
|
|
214
214
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
215
215
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -229,6 +229,13 @@ module Google
|
|
|
229
229
|
# `eu`: The European Union.
|
|
230
230
|
#
|
|
231
231
|
# Example: `projects/project-A/locations/eu`.
|
|
232
|
+
# @param labels [::Hash{::String => ::String}]
|
|
233
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
234
|
+
#
|
|
235
|
+
# Label keys and values can be no longer than 63 characters
|
|
236
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
237
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
238
|
+
# Label values are optional. Label keys must start with a letter.
|
|
232
239
|
#
|
|
233
240
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
234
241
|
# @yieldparam response [::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse]
|
|
@@ -305,14 +312,14 @@ module Google
|
|
|
305
312
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
306
313
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
307
314
|
#
|
|
308
|
-
# @overload batch_annotate_files(requests: nil, parent: nil)
|
|
315
|
+
# @overload batch_annotate_files(requests: nil, parent: nil, labels: nil)
|
|
309
316
|
# Pass arguments to `batch_annotate_files` via keyword arguments. Note that at
|
|
310
317
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
311
318
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
312
319
|
#
|
|
313
320
|
# @param requests [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest, ::Hash>]
|
|
314
|
-
# Required. The list of file annotation requests. Right now we support only
|
|
315
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
321
|
+
# Required. The list of file annotation requests. Right now we support only
|
|
322
|
+
# one AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
316
323
|
# @param parent [::String]
|
|
317
324
|
# Optional. Target project and location to make a call.
|
|
318
325
|
#
|
|
@@ -326,6 +333,13 @@ module Google
|
|
|
326
333
|
# `eu`: The European Union.
|
|
327
334
|
#
|
|
328
335
|
# Example: `projects/project-A/locations/eu`.
|
|
336
|
+
# @param labels [::Hash{::String => ::String}]
|
|
337
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
338
|
+
#
|
|
339
|
+
# Label keys and values can be no longer than 63 characters
|
|
340
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
341
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
342
|
+
# Label values are optional. Label keys must start with a letter.
|
|
329
343
|
#
|
|
330
344
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
331
345
|
# @yieldparam response [::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse]
|
|
@@ -404,7 +418,7 @@ module Google
|
|
|
404
418
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
405
419
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
406
420
|
#
|
|
407
|
-
# @overload async_batch_annotate_images(requests: nil, output_config: nil, parent: nil)
|
|
421
|
+
# @overload async_batch_annotate_images(requests: nil, output_config: nil, parent: nil, labels: nil)
|
|
408
422
|
# Pass arguments to `async_batch_annotate_images` via keyword arguments. Note that at
|
|
409
423
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
410
424
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -426,6 +440,13 @@ module Google
|
|
|
426
440
|
# `eu`: The European Union.
|
|
427
441
|
#
|
|
428
442
|
# Example: `projects/project-A/locations/eu`.
|
|
443
|
+
# @param labels [::Hash{::String => ::String}]
|
|
444
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
445
|
+
#
|
|
446
|
+
# Label keys and values can be no longer than 63 characters
|
|
447
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
448
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
449
|
+
# Label values are optional. Label keys must start with a letter.
|
|
429
450
|
#
|
|
430
451
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
431
452
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -509,7 +530,7 @@ module Google
|
|
|
509
530
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
510
531
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
511
532
|
#
|
|
512
|
-
# @overload async_batch_annotate_files(requests: nil, parent: nil)
|
|
533
|
+
# @overload async_batch_annotate_files(requests: nil, parent: nil, labels: nil)
|
|
513
534
|
# Pass arguments to `async_batch_annotate_files` via keyword arguments. Note that at
|
|
514
535
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
515
536
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -529,6 +550,13 @@ module Google
|
|
|
529
550
|
# `eu`: The European Union.
|
|
530
551
|
#
|
|
531
552
|
# Example: `projects/project-A/locations/eu`.
|
|
553
|
+
# @param labels [::Hash{::String => ::String}]
|
|
554
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
555
|
+
#
|
|
556
|
+
# Label keys and values can be no longer than 63 characters
|
|
557
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
558
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
559
|
+
# Label values are optional. Label keys must start with a letter.
|
|
532
560
|
#
|
|
533
561
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
534
562
|
# @yieldparam response [::Gapic::Operation]
|
|
@@ -202,7 +202,7 @@ module Google
|
|
|
202
202
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
203
203
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
204
204
|
#
|
|
205
|
-
# @overload batch_annotate_images(requests: nil, parent: nil)
|
|
205
|
+
# @overload batch_annotate_images(requests: nil, parent: nil, labels: nil)
|
|
206
206
|
# Pass arguments to `batch_annotate_images` via keyword arguments. Note that at
|
|
207
207
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
208
208
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -222,6 +222,13 @@ module Google
|
|
|
222
222
|
# `eu`: The European Union.
|
|
223
223
|
#
|
|
224
224
|
# Example: `projects/project-A/locations/eu`.
|
|
225
|
+
# @param labels [::Hash{::String => ::String}]
|
|
226
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
227
|
+
#
|
|
228
|
+
# Label keys and values can be no longer than 63 characters
|
|
229
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
230
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
231
|
+
# Label values are optional. Label keys must start with a letter.
|
|
225
232
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
226
233
|
# @yieldparam result [::Google::Cloud::Vision::V1::BatchAnnotateImagesResponse]
|
|
227
234
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -299,14 +306,14 @@ module Google
|
|
|
299
306
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
300
307
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
301
308
|
#
|
|
302
|
-
# @overload batch_annotate_files(requests: nil, parent: nil)
|
|
309
|
+
# @overload batch_annotate_files(requests: nil, parent: nil, labels: nil)
|
|
303
310
|
# Pass arguments to `batch_annotate_files` via keyword arguments. Note that at
|
|
304
311
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
305
312
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
306
313
|
#
|
|
307
314
|
# @param requests [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest, ::Hash>]
|
|
308
|
-
# Required. The list of file annotation requests. Right now we support only
|
|
309
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
315
|
+
# Required. The list of file annotation requests. Right now we support only
|
|
316
|
+
# one AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
310
317
|
# @param parent [::String]
|
|
311
318
|
# Optional. Target project and location to make a call.
|
|
312
319
|
#
|
|
@@ -320,6 +327,13 @@ module Google
|
|
|
320
327
|
# `eu`: The European Union.
|
|
321
328
|
#
|
|
322
329
|
# Example: `projects/project-A/locations/eu`.
|
|
330
|
+
# @param labels [::Hash{::String => ::String}]
|
|
331
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
332
|
+
#
|
|
333
|
+
# Label keys and values can be no longer than 63 characters
|
|
334
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
335
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
336
|
+
# Label values are optional. Label keys must start with a letter.
|
|
323
337
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
324
338
|
# @yieldparam result [::Google::Cloud::Vision::V1::BatchAnnotateFilesResponse]
|
|
325
339
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -399,7 +413,7 @@ module Google
|
|
|
399
413
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
400
414
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
401
415
|
#
|
|
402
|
-
# @overload async_batch_annotate_images(requests: nil, output_config: nil, parent: nil)
|
|
416
|
+
# @overload async_batch_annotate_images(requests: nil, output_config: nil, parent: nil, labels: nil)
|
|
403
417
|
# Pass arguments to `async_batch_annotate_images` via keyword arguments. Note that at
|
|
404
418
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
405
419
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -421,6 +435,13 @@ module Google
|
|
|
421
435
|
# `eu`: The European Union.
|
|
422
436
|
#
|
|
423
437
|
# Example: `projects/project-A/locations/eu`.
|
|
438
|
+
# @param labels [::Hash{::String => ::String}]
|
|
439
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
440
|
+
#
|
|
441
|
+
# Label keys and values can be no longer than 63 characters
|
|
442
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
443
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
444
|
+
# Label values are optional. Label keys must start with a letter.
|
|
424
445
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
425
446
|
# @yieldparam result [::Gapic::Operation]
|
|
426
447
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -505,7 +526,7 @@ module Google
|
|
|
505
526
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
506
527
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
507
528
|
#
|
|
508
|
-
# @overload async_batch_annotate_files(requests: nil, parent: nil)
|
|
529
|
+
# @overload async_batch_annotate_files(requests: nil, parent: nil, labels: nil)
|
|
509
530
|
# Pass arguments to `async_batch_annotate_files` via keyword arguments. Note that at
|
|
510
531
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
511
532
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -525,6 +546,13 @@ module Google
|
|
|
525
546
|
# `eu`: The European Union.
|
|
526
547
|
#
|
|
527
548
|
# Example: `projects/project-A/locations/eu`.
|
|
549
|
+
# @param labels [::Hash{::String => ::String}]
|
|
550
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
551
|
+
#
|
|
552
|
+
# Label keys and values can be no longer than 63 characters
|
|
553
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
554
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
555
|
+
# Label values are optional. Label keys must start with a letter.
|
|
528
556
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
529
557
|
# @yieldparam result [::Gapic::Operation]
|
|
530
558
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -18,7 +18,7 @@ require 'google/type/color_pb'
|
|
|
18
18
|
require 'google/type/latlng_pb'
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
descriptor_data = "\n,google/cloud/vision/v1/image_annotator.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a%google/cloud/vision/v1/geometry.proto\x1a+google/cloud/vision/v1/product_search.proto\x1a,google/cloud/vision/v1/text_annotation.proto\x1a*google/cloud/vision/v1/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto\"\x87\x03\n\x07\x46\x65\x61ture\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.google.cloud.vision.v1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t\"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13\"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"M\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x33\n\x06source\x18\x02 \x01(\x0b\x32#.google.cloud.vision.v1.ImageSource\"\xf6\r\n\x0e\x46\x61\x63\x65\x41nnotation\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12>\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x1a\xe8\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position\"\xe3\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\x12\x15\n\x11LEFT_CHEEK_CENTER\x10#\x12\x16\n\x12RIGHT_CHEEK_CENTER\x10$\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property\"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\"\x99\x02\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo\"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation\"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"1\n\x12WebDetectionParams\x12\x1b\n\x13include_geo_results\x18\x02 \x01(\x08\"c\n\x13TextDetectionParams\x12.\n&enable_text_detection_confidence_score\x18\t \x01(\x08\x12\x1c\n\x14\x61\x64vanced_ocr_options\x18\x0b \x03(\t\"\x88\x03\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams\x12J\n\x15text_detection_params\x18\x0c \x01(\x0b\x32+.google.cloud.vision.v1.TextDetectionParams\"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext\"r\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x44\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x04\xe2\x41\x01\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\"\xcf\x01\n\x13\x41nnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05\"\xcb\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"p\n\x19\x42\x61tchAnnotateFilesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32+.google.cloud.vision.v1.AnnotateFileRequestB\x04\xe2\x41\x01\x02\x12\x0e\n\x06parent\x18\x03 \x01(\t\"]\n\x1a\x42\x61tchAnnotateFilesResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateFileResponse\"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"\xba\x01\n\x1f\x41syncBatchAnnotateImagesRequest\x12\x44\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x04\xe2\x41\x01\x02\x12\x41\n\routput_config\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfigB\x04\xe2\x41\x01\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\"_\n AsyncBatchAnnotateImagesResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"z\n\x1e\x41syncBatchAnnotateFilesRequest\x12H\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequestB\x04\xe2\x41\x01\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse\"h\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf5\n\n\x0eImageAnnotator\x12\x93\x02\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse\"\x92\x01\xda\x41\x08requests\x82\xd3\xe4\x93\x02\x80\x01\"\x13/v1/images:annotate:\x01*Z8\"3/v1/{parent=projects/*/locations/*}/images:annotate:\x01*Z,\"\'/v1/{parent=projects/*}/images:annotate:\x01*\x12\x8c\x02\n\x12\x42\x61tchAnnotateFiles\x12\x31.google.cloud.vision.v1.BatchAnnotateFilesRequest\x1a\x32.google.cloud.vision.v1.BatchAnnotateFilesResponse\"\x8e\x01\xda\x41\x08requests\x82\xd3\xe4\x93\x02}\"\x12/v1/files:annotate:\x01*Z7\"2/v1/{parent=projects/*/locations/*}/files:annotate:\x01*Z+\"&/v1/{parent=projects/*}/files:annotate:\x01*\x12\xeb\x02\n\x18\x41syncBatchAnnotateImages\x12\x37.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation\"\xf6\x01\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\xda\x41\x16requests,output_config\x82\xd3\xe4\x93\x02\x9e\x01\"\x1d/v1/images:asyncBatchAnnotate:\x01*ZB\"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\x01*Z6\"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\x01*\x12\xd7\x02\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\"\xe4\x01\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\xda\x41\x08requests\x82\xd3\xe4\x93\x02\x9b\x01\"\x1c/v1/files:asyncBatchAnnotate:\x01*ZA\"</v1/{parent=projects/*/locations/*}/files:asyncBatchAnnotate:\x01*Z5\"0/v1/{parent=projects/*}/files:asyncBatchAnnotate:\x01*\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionBt\n\x1a\x63om.google.cloud.vision.v1B\x13ImageAnnotatorProtoP\x01Z5cloud.google.com/go/vision/v2/apiv1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
|
|
21
|
+
descriptor_data = "\n,google/cloud/vision/v1/image_annotator.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a%google/cloud/vision/v1/geometry.proto\x1a+google/cloud/vision/v1/product_search.proto\x1a,google/cloud/vision/v1/text_annotation.proto\x1a*google/cloud/vision/v1/web_detection.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x17google/type/color.proto\x1a\x18google/type/latlng.proto\"\x87\x03\n\x07\x46\x65\x61ture\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.google.cloud.vision.v1.Feature.Type\x12\x13\n\x0bmax_results\x18\x02 \x01(\x05\x12\r\n\x05model\x18\x03 \x01(\t\"\xa3\x02\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0e\x46\x41\x43\x45_DETECTION\x10\x01\x12\x16\n\x12LANDMARK_DETECTION\x10\x02\x12\x12\n\x0eLOGO_DETECTION\x10\x03\x12\x13\n\x0fLABEL_DETECTION\x10\x04\x12\x12\n\x0eTEXT_DETECTION\x10\x05\x12\x1b\n\x17\x44OCUMENT_TEXT_DETECTION\x10\x0b\x12\x19\n\x15SAFE_SEARCH_DETECTION\x10\x06\x12\x14\n\x10IMAGE_PROPERTIES\x10\x07\x12\x0e\n\nCROP_HINTS\x10\t\x12\x11\n\rWEB_DETECTION\x10\n\x12\x12\n\x0ePRODUCT_SEARCH\x10\x0c\x12\x17\n\x13OBJECT_LOCALIZATION\x10\x13\"7\n\x0bImageSource\x12\x15\n\rgcs_image_uri\x18\x01 \x01(\t\x12\x11\n\timage_uri\x18\x02 \x01(\t\"M\n\x05Image\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\x0c\x12\x33\n\x06source\x18\x02 \x01(\x0b\x32#.google.cloud.vision.v1.ImageSource\"\xf6\r\n\x0e\x46\x61\x63\x65\x41nnotation\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12>\n\x10\x66\x64_bounding_poly\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x42\n\tlandmarks\x18\x03 \x03(\x0b\x32/.google.cloud.vision.v1.FaceAnnotation.Landmark\x12\x12\n\nroll_angle\x18\x04 \x01(\x02\x12\x11\n\tpan_angle\x18\x05 \x01(\x02\x12\x12\n\ntilt_angle\x18\x06 \x01(\x02\x12\x1c\n\x14\x64\x65tection_confidence\x18\x07 \x01(\x02\x12\x1e\n\x16landmarking_confidence\x18\x08 \x01(\x02\x12:\n\x0ejoy_likelihood\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12=\n\x11sorrow_likelihood\x18\n \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12<\n\x10\x61nger_likelihood\x18\x0b \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13surprise_likelihood\x18\x0c \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x44\n\x18under_exposed_likelihood\x18\r \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12>\n\x12\x62lurred_likelihood\x18\x0e \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12?\n\x13headwear_likelihood\x18\x0f \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x1a\xe8\x07\n\x08Landmark\x12\x42\n\x04type\x18\x03 \x01(\x0e\x32\x34.google.cloud.vision.v1.FaceAnnotation.Landmark.Type\x12\x32\n\x08position\x18\x04 \x01(\x0b\x32 .google.cloud.vision.v1.Position\"\xe3\x06\n\x04Type\x12\x14\n\x10UNKNOWN_LANDMARK\x10\x00\x12\x0c\n\x08LEFT_EYE\x10\x01\x12\r\n\tRIGHT_EYE\x10\x02\x12\x18\n\x14LEFT_OF_LEFT_EYEBROW\x10\x03\x12\x19\n\x15RIGHT_OF_LEFT_EYEBROW\x10\x04\x12\x19\n\x15LEFT_OF_RIGHT_EYEBROW\x10\x05\x12\x1a\n\x16RIGHT_OF_RIGHT_EYEBROW\x10\x06\x12\x19\n\x15MIDPOINT_BETWEEN_EYES\x10\x07\x12\x0c\n\x08NOSE_TIP\x10\x08\x12\r\n\tUPPER_LIP\x10\t\x12\r\n\tLOWER_LIP\x10\n\x12\x0e\n\nMOUTH_LEFT\x10\x0b\x12\x0f\n\x0bMOUTH_RIGHT\x10\x0c\x12\x10\n\x0cMOUTH_CENTER\x10\r\x12\x15\n\x11NOSE_BOTTOM_RIGHT\x10\x0e\x12\x14\n\x10NOSE_BOTTOM_LEFT\x10\x0f\x12\x16\n\x12NOSE_BOTTOM_CENTER\x10\x10\x12\x19\n\x15LEFT_EYE_TOP_BOUNDARY\x10\x11\x12\x19\n\x15LEFT_EYE_RIGHT_CORNER\x10\x12\x12\x1c\n\x18LEFT_EYE_BOTTOM_BOUNDARY\x10\x13\x12\x18\n\x14LEFT_EYE_LEFT_CORNER\x10\x14\x12\x1a\n\x16RIGHT_EYE_TOP_BOUNDARY\x10\x15\x12\x1a\n\x16RIGHT_EYE_RIGHT_CORNER\x10\x16\x12\x1d\n\x19RIGHT_EYE_BOTTOM_BOUNDARY\x10\x17\x12\x19\n\x15RIGHT_EYE_LEFT_CORNER\x10\x18\x12\x1f\n\x1bLEFT_EYEBROW_UPPER_MIDPOINT\x10\x19\x12 \n\x1cRIGHT_EYEBROW_UPPER_MIDPOINT\x10\x1a\x12\x14\n\x10LEFT_EAR_TRAGION\x10\x1b\x12\x15\n\x11RIGHT_EAR_TRAGION\x10\x1c\x12\x12\n\x0eLEFT_EYE_PUPIL\x10\x1d\x12\x13\n\x0fRIGHT_EYE_PUPIL\x10\x1e\x12\x15\n\x11\x46OREHEAD_GLABELLA\x10\x1f\x12\x11\n\rCHIN_GNATHION\x10 \x12\x14\n\x10\x43HIN_LEFT_GONION\x10!\x12\x15\n\x11\x43HIN_RIGHT_GONION\x10\"\x12\x15\n\x11LEFT_CHEEK_CENTER\x10#\x12\x16\n\x12RIGHT_CHEEK_CENTER\x10$\"4\n\x0cLocationInfo\x12$\n\x07lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\"=\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\x12\x14\n\x0cuint64_value\x18\x03 \x01(\x04\"\xab\x02\n\x10\x45ntityAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x0e\n\x06locale\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12\x16\n\nconfidence\x18\x05 \x01(\x02\x42\x02\x18\x01\x12\x12\n\ntopicality\x18\x06 \x01(\x02\x12;\n\rbounding_poly\x18\x07 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x37\n\tlocations\x18\x08 \x03(\x0b\x32$.google.cloud.vision.v1.LocationInfo\x12\x34\n\nproperties\x18\t \x03(\x0b\x32 .google.cloud.vision.v1.Property\"\x99\x01\n\x19LocalizedObjectAnnotation\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05score\x18\x04 \x01(\x02\x12;\n\rbounding_poly\x18\x05 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\"\x99\x02\n\x14SafeSearchAnnotation\x12\x31\n\x05\x61\x64ult\x18\x01 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x31\n\x05spoof\x18\x02 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x33\n\x07medical\x18\x03 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x34\n\x08violence\x18\x04 \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\x12\x30\n\x04racy\x18\t \x01(\x0e\x32\".google.cloud.vision.v1.Likelihood\"a\n\x0bLatLongRect\x12(\n\x0bmin_lat_lng\x18\x01 \x01(\x0b\x32\x13.google.type.LatLng\x12(\n\x0bmax_lat_lng\x18\x02 \x01(\x0b\x32\x13.google.type.LatLng\"U\n\tColorInfo\x12!\n\x05\x63olor\x18\x01 \x01(\x0b\x32\x12.google.type.Color\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x16\n\x0epixel_fraction\x18\x03 \x01(\x02\"M\n\x18\x44ominantColorsAnnotation\x12\x31\n\x06\x63olors\x18\x01 \x03(\x0b\x32!.google.cloud.vision.v1.ColorInfo\"\\\n\x0fImageProperties\x12I\n\x0f\x64ominant_colors\x18\x01 \x01(\x0b\x32\x30.google.cloud.vision.v1.DominantColorsAnnotation\"x\n\x08\x43ropHint\x12;\n\rbounding_poly\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.BoundingPoly\x12\x12\n\nconfidence\x18\x02 \x01(\x02\x12\x1b\n\x13importance_fraction\x18\x03 \x01(\x02\"K\n\x13\x43ropHintsAnnotation\x12\x34\n\ncrop_hints\x18\x01 \x03(\x0b\x32 .google.cloud.vision.v1.CropHint\"(\n\x0f\x43ropHintsParams\x12\x15\n\raspect_ratios\x18\x01 \x03(\x02\"5\n\x12WebDetectionParams\x12\x1f\n\x13include_geo_results\x18\x02 \x01(\x08\x42\x02\x18\x01\"c\n\x13TextDetectionParams\x12.\n&enable_text_detection_confidence_score\x18\t \x01(\x08\x12\x1c\n\x14\x61\x64vanced_ocr_options\x18\x0b \x03(\t\"\x88\x03\n\x0cImageContext\x12:\n\rlat_long_rect\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.LatLongRect\x12\x16\n\x0elanguage_hints\x18\x02 \x03(\t\x12\x42\n\x11\x63rop_hints_params\x18\x04 \x01(\x0b\x32\'.google.cloud.vision.v1.CropHintsParams\x12J\n\x15product_search_params\x18\x05 \x01(\x0b\x32+.google.cloud.vision.v1.ProductSearchParams\x12H\n\x14web_detection_params\x18\x06 \x01(\x0b\x32*.google.cloud.vision.v1.WebDetectionParams\x12J\n\x15text_detection_params\x18\x0c \x01(\x0b\x32+.google.cloud.vision.v1.TextDetectionParams\"\xb4\x01\n\x14\x41nnotateImageRequest\x12,\n\x05image\x18\x01 \x01(\x0b\x32\x1d.google.cloud.vision.v1.Image\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\":\n\x16ImageAnnotationContext\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x13\n\x0bpage_number\x18\x02 \x01(\x05\"\xe4\x07\n\x15\x41nnotateImageResponse\x12@\n\x10\x66\x61\x63\x65_annotations\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.FaceAnnotation\x12\x46\n\x14landmark_annotations\x18\x02 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x42\n\x10logo_annotations\x18\x03 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x43\n\x11label_annotations\x18\x04 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12W\n\x1clocalized_object_annotations\x18\x16 \x03(\x0b\x32\x31.google.cloud.vision.v1.LocalizedObjectAnnotation\x12\x42\n\x10text_annotations\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.EntityAnnotation\x12\x44\n\x14\x66ull_text_annotation\x18\x0c \x01(\x0b\x32&.google.cloud.vision.v1.TextAnnotation\x12L\n\x16safe_search_annotation\x18\x06 \x01(\x0b\x32,.google.cloud.vision.v1.SafeSearchAnnotation\x12L\n\x1bimage_properties_annotation\x18\x08 \x01(\x0b\x32\'.google.cloud.vision.v1.ImageProperties\x12J\n\x15\x63rop_hints_annotation\x18\x0b \x01(\x0b\x32+.google.cloud.vision.v1.CropHintsAnnotation\x12;\n\rweb_detection\x18\r \x01(\x0b\x32$.google.cloud.vision.v1.WebDetection\x12L\n\x16product_search_results\x18\x0e \x01(\x0b\x32,.google.cloud.vision.v1.ProductSearchResults\x12!\n\x05\x65rror\x18\t \x01(\x0b\x32\x12.google.rpc.Status\x12?\n\x07\x63ontext\x18\x15 \x01(\x0b\x32..google.cloud.vision.v1.ImageAnnotationContext\"\xf5\x01\n\x1a\x42\x61tchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12S\n\x06labels\x18\x05 \x03(\x0b\x32>.google.cloud.vision.v1.BatchAnnotateImagesRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"_\n\x1b\x42\x61tchAnnotateImagesResponse\x12@\n\tresponses\x18\x01 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\"\xcf\x01\n\x13\x41nnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12\r\n\x05pages\x18\x04 \x03(\x05\"\xcb\x01\n\x14\x41nnotateFileResponse\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12@\n\tresponses\x18\x02 \x03(\x0b\x32-.google.cloud.vision.v1.AnnotateImageResponse\x12\x13\n\x0btotal_pages\x18\x03 \x01(\x05\x12!\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\"\xf2\x01\n\x19\x42\x61tchAnnotateFilesRequest\x12\x42\n\x08requests\x18\x01 \x03(\x0b\x32+.google.cloud.vision.v1.AnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x03 \x01(\t\x12R\n\x06labels\x18\x05 \x03(\x0b\x32=.google.cloud.vision.v1.BatchAnnotateFilesRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"]\n\x1a\x42\x61tchAnnotateFilesResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateFileResponse\"\x82\x02\n\x18\x41syncAnnotateFileRequest\x12\x39\n\x0cinput_config\x18\x01 \x01(\x0b\x32#.google.cloud.vision.v1.InputConfig\x12\x31\n\x08\x66\x65\x61tures\x18\x02 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Feature\x12;\n\rimage_context\x18\x03 \x01(\x0b\x32$.google.cloud.vision.v1.ImageContext\x12;\n\routput_config\x18\x04 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"X\n\x19\x41syncAnnotateFileResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"\xc1\x02\n\x1f\x41syncBatchAnnotateImagesRequest\x12\x43\n\x08requests\x18\x01 \x03(\x0b\x32,.google.cloud.vision.v1.AnnotateImageRequestB\x03\xe0\x41\x02\x12@\n\routput_config\x18\x02 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfigB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12X\n\x06labels\x18\x05 \x03(\x0b\x32\x43.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"_\n AsyncBatchAnnotateImagesResponse\x12;\n\routput_config\x18\x01 \x01(\x0b\x32$.google.cloud.vision.v1.OutputConfig\"\x81\x02\n\x1e\x41syncBatchAnnotateFilesRequest\x12G\n\x08requests\x18\x01 \x03(\x0b\x32\x30.google.cloud.vision.v1.AsyncAnnotateFileRequestB\x03\xe0\x41\x02\x12\x0e\n\x06parent\x18\x04 \x01(\t\x12W\n\x06labels\x18\x05 \x03(\x0b\x32\x42.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest.LabelsEntryB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"g\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x44\n\tresponses\x18\x01 \x03(\x0b\x32\x31.google.cloud.vision.v1.AsyncAnnotateFileResponse\"h\n\x0bInputConfig\x12\x35\n\ngcs_source\x18\x01 \x01(\x0b\x32!.google.cloud.vision.v1.GcsSource\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\x0c\x12\x11\n\tmime_type\x18\x02 \x01(\t\"c\n\x0cOutputConfig\x12?\n\x0fgcs_destination\x18\x01 \x01(\x0b\x32&.google.cloud.vision.v1.GcsDestination\x12\x12\n\nbatch_size\x18\x02 \x01(\x05\"\x18\n\tGcsSource\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x1d\n\x0eGcsDestination\x12\x0b\n\x03uri\x18\x01 \x01(\t\"\x88\x02\n\x11OperationMetadata\x12>\n\x05state\x18\x01 \x01(\x0e\x32/.google.cloud.vision.v1.OperationMetadata.State\x12/\n\x0b\x63reate_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x08\n\x04\x44ONE\x10\x03\x12\r\n\tCANCELLED\x10\x04*e\n\nLikelihood\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x11\n\rVERY_UNLIKELY\x10\x01\x12\x0c\n\x08UNLIKELY\x10\x02\x12\x0c\n\x08POSSIBLE\x10\x03\x12\n\n\x06LIKELY\x10\x04\x12\x0f\n\x0bVERY_LIKELY\x10\x05\x32\xf5\n\n\x0eImageAnnotator\x12\x93\x02\n\x13\x42\x61tchAnnotateImages\x12\x32.google.cloud.vision.v1.BatchAnnotateImagesRequest\x1a\x33.google.cloud.vision.v1.BatchAnnotateImagesResponse\"\x92\x01\xda\x41\x08requests\x82\xd3\xe4\x93\x02\x80\x01\"\x13/v1/images:annotate:\x01*Z8\"3/v1/{parent=projects/*/locations/*}/images:annotate:\x01*Z,\"\'/v1/{parent=projects/*}/images:annotate:\x01*\x12\x8c\x02\n\x12\x42\x61tchAnnotateFiles\x12\x31.google.cloud.vision.v1.BatchAnnotateFilesRequest\x1a\x32.google.cloud.vision.v1.BatchAnnotateFilesResponse\"\x8e\x01\xda\x41\x08requests\x82\xd3\xe4\x93\x02}\"\x12/v1/files:annotate:\x01*Z7\"2/v1/{parent=projects/*/locations/*}/files:annotate:\x01*Z+\"&/v1/{parent=projects/*}/files:annotate:\x01*\x12\xeb\x02\n\x18\x41syncBatchAnnotateImages\x12\x37.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest\x1a\x1d.google.longrunning.Operation\"\xf6\x01\xca\x41\x35\n AsyncBatchAnnotateImagesResponse\x12\x11OperationMetadata\xda\x41\x16requests,output_config\x82\xd3\xe4\x93\x02\x9e\x01\"\x1d/v1/images:asyncBatchAnnotate:\x01*ZB\"=/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate:\x01*Z6\"1/v1/{parent=projects/*}/images:asyncBatchAnnotate:\x01*\x12\xd7\x02\n\x17\x41syncBatchAnnotateFiles\x12\x36.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest\x1a\x1d.google.longrunning.Operation\"\xe4\x01\xca\x41\x34\n\x1f\x41syncBatchAnnotateFilesResponse\x12\x11OperationMetadata\xda\x41\x08requests\x82\xd3\xe4\x93\x02\x9b\x01\"\x1c/v1/files:asyncBatchAnnotate:\x01*ZA\"</v1/{parent=projects/*/locations/*}/files:asyncBatchAnnotate:\x01*Z5\"0/v1/{parent=projects/*}/files:asyncBatchAnnotate:\x01*\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionBt\n\x1a\x63om.google.cloud.vision.v1B\x13ImageAnnotatorProtoP\x01Z5cloud.google.com/go/vision/v2/apiv1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
|
|
22
22
|
|
|
23
23
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
24
24
|
|
|
@@ -30,16 +30,18 @@ module Google
|
|
|
30
30
|
# Manages Products and ProductSets of reference images for use in product
|
|
31
31
|
# search. It uses the following resource model:
|
|
32
32
|
#
|
|
33
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
34
|
-
# `projects/*/locations/*/productSets/*`, which acts as a way
|
|
35
|
-
# products into groups to limit identification.
|
|
33
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
34
|
+
# resources, named `projects/*/locations/*/productSets/*`, which acts as a way
|
|
35
|
+
# to put different products into groups to limit identification.
|
|
36
36
|
#
|
|
37
37
|
# In parallel,
|
|
38
38
|
#
|
|
39
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
39
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
40
|
+
# resources, named
|
|
40
41
|
# `projects/*/locations/*/products/*`
|
|
41
42
|
#
|
|
42
|
-
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
43
|
+
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
44
|
+
# {::Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
|
43
45
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
|
44
46
|
#
|
|
45
47
|
class Client
|
|
@@ -1292,7 +1294,8 @@ module Google
|
|
|
1292
1294
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1293
1295
|
#
|
|
1294
1296
|
# @param parent [::String]
|
|
1295
|
-
# Required. Resource name of the product in which to create the reference
|
|
1297
|
+
# Required. Resource name of the product in which to create the reference
|
|
1298
|
+
# image.
|
|
1296
1299
|
#
|
|
1297
1300
|
# Format is
|
|
1298
1301
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
|
@@ -1785,7 +1788,8 @@ module Google
|
|
|
1785
1788
|
# Format is:
|
|
1786
1789
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
|
1787
1790
|
# @param product [::String]
|
|
1788
|
-
# Required. The resource name for the Product to be removed from this
|
|
1791
|
+
# Required. The resource name for the Product to be removed from this
|
|
1792
|
+
# ProductSet.
|
|
1789
1793
|
#
|
|
1790
1794
|
# Format is:
|
|
1791
1795
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
|
@@ -1961,8 +1965,8 @@ module Google
|
|
|
1961
1965
|
# Asynchronous API that imports a list of reference images to specified
|
|
1962
1966
|
# product sets based on a list of image information.
|
|
1963
1967
|
#
|
|
1964
|
-
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1965
|
-
# progress and results of the request.
|
|
1968
|
+
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1969
|
+
# used to keep track of the progress and results of the request.
|
|
1966
1970
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
1967
1971
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
|
1968
1972
|
#
|
|
@@ -2086,8 +2090,8 @@ module Google
|
|
|
2086
2090
|
# ProductSet, you must wait until the PurgeProducts operation has finished
|
|
2087
2091
|
# for that ProductSet.
|
|
2088
2092
|
#
|
|
2089
|
-
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
2090
|
-
# progress and results of the request.
|
|
2093
|
+
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
2094
|
+
# used to keep track of the progress and results of the request.
|
|
2091
2095
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
2092
2096
|
#
|
|
2093
2097
|
# @overload purge_products(request, options = nil)
|
|
@@ -32,16 +32,18 @@ module Google
|
|
|
32
32
|
# Manages Products and ProductSets of reference images for use in product
|
|
33
33
|
# search. It uses the following resource model:
|
|
34
34
|
#
|
|
35
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
36
|
-
# `projects/*/locations/*/productSets/*`, which acts as a way
|
|
37
|
-
# products into groups to limit identification.
|
|
35
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
36
|
+
# resources, named `projects/*/locations/*/productSets/*`, which acts as a way
|
|
37
|
+
# to put different products into groups to limit identification.
|
|
38
38
|
#
|
|
39
39
|
# In parallel,
|
|
40
40
|
#
|
|
41
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
41
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
42
|
+
# resources, named
|
|
42
43
|
# `projects/*/locations/*/products/*`
|
|
43
44
|
#
|
|
44
|
-
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
45
|
+
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
46
|
+
# {::Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
|
45
47
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
|
46
48
|
#
|
|
47
49
|
class Client
|
|
@@ -1215,7 +1217,8 @@ module Google
|
|
|
1215
1217
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1216
1218
|
#
|
|
1217
1219
|
# @param parent [::String]
|
|
1218
|
-
# Required. Resource name of the product in which to create the reference
|
|
1220
|
+
# Required. Resource name of the product in which to create the reference
|
|
1221
|
+
# image.
|
|
1219
1222
|
#
|
|
1220
1223
|
# Format is
|
|
1221
1224
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
|
@@ -1673,7 +1676,8 @@ module Google
|
|
|
1673
1676
|
# Format is:
|
|
1674
1677
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
|
1675
1678
|
# @param product [::String]
|
|
1676
|
-
# Required. The resource name for the Product to be removed from this
|
|
1679
|
+
# Required. The resource name for the Product to be removed from this
|
|
1680
|
+
# ProductSet.
|
|
1677
1681
|
#
|
|
1678
1682
|
# Format is:
|
|
1679
1683
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
|
@@ -1835,8 +1839,8 @@ module Google
|
|
|
1835
1839
|
# Asynchronous API that imports a list of reference images to specified
|
|
1836
1840
|
# product sets based on a list of image information.
|
|
1837
1841
|
#
|
|
1838
|
-
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1839
|
-
# progress and results of the request.
|
|
1842
|
+
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1843
|
+
# used to keep track of the progress and results of the request.
|
|
1840
1844
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
1841
1845
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
|
1842
1846
|
#
|
|
@@ -1953,8 +1957,8 @@ module Google
|
|
|
1953
1957
|
# ProductSet, you must wait until the PurgeProducts operation has finished
|
|
1954
1958
|
# for that ProductSet.
|
|
1955
1959
|
#
|
|
1956
|
-
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1957
|
-
# progress and results of the request.
|
|
1960
|
+
# The {::Google::Longrunning::Operation google.longrunning.Operation} API can be
|
|
1961
|
+
# used to keep track of the progress and results of the request.
|
|
1958
1962
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
1959
1963
|
#
|
|
1960
1964
|
# @overload purge_products(request, options = nil)
|
|
@@ -35,16 +35,18 @@ module Google
|
|
|
35
35
|
# Manages Products and ProductSets of reference images for use in product
|
|
36
36
|
# search. It uses the following resource model:
|
|
37
37
|
#
|
|
38
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
39
|
-
# `projects/*/locations/*/productSets/*`, which acts as a way
|
|
40
|
-
# products into groups to limit identification.
|
|
38
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
39
|
+
# resources, named `projects/*/locations/*/productSets/*`, which acts as a way
|
|
40
|
+
# to put different products into groups to limit identification.
|
|
41
41
|
#
|
|
42
42
|
# In parallel,
|
|
43
43
|
#
|
|
44
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
44
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
45
|
+
# resources, named
|
|
45
46
|
# `projects/*/locations/*/products/*`
|
|
46
47
|
#
|
|
47
|
-
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
48
|
+
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
49
|
+
# {::Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
|
48
50
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
|
49
51
|
#
|
|
50
52
|
# To load this service and instantiate a REST client:
|
|
@@ -36,16 +36,18 @@ module Google
|
|
|
36
36
|
# Manages Products and ProductSets of reference images for use in product
|
|
37
37
|
# search. It uses the following resource model:
|
|
38
38
|
#
|
|
39
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
40
|
-
# `projects/*/locations/*/productSets/*`, which acts as a way
|
|
41
|
-
# products into groups to limit identification.
|
|
39
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::ProductSet ProductSet}
|
|
40
|
+
# resources, named `projects/*/locations/*/productSets/*`, which acts as a way
|
|
41
|
+
# to put different products into groups to limit identification.
|
|
42
42
|
#
|
|
43
43
|
# In parallel,
|
|
44
44
|
#
|
|
45
|
-
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
45
|
+
# - The API has a collection of {::Google::Cloud::Vision::V1::Product Product}
|
|
46
|
+
# resources, named
|
|
46
47
|
# `projects/*/locations/*/products/*`
|
|
47
48
|
#
|
|
48
|
-
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
49
|
+
# - Each {::Google::Cloud::Vision::V1::Product Product} has a collection of
|
|
50
|
+
# {::Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
|
|
49
51
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
|
50
52
|
#
|
|
51
53
|
# @example Load this service and instantiate a gRPC client
|
|
@@ -16,7 +16,7 @@ require 'google/protobuf/timestamp_pb'
|
|
|
16
16
|
require 'google/rpc/status_pb'
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
descriptor_data = "\n3google/cloud/vision/v1/product_search_service.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/vision/v1/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xac\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1e\n\x10product_category\x18\x04 \x01(\tB\x04\xe2\x41\x01\x05\x12@\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}\"\xff\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x34\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12-\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x04\xe2\x41\x01\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}\"\x80\x02\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\x03uri\x18\x02 \x01(\tB\x04\xe2\x41\x01\x02\x12\x42\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32$.google.cloud.vision.v1.BoundingPolyB\x04\xe2\x41\x01\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}\"\x9e\x01\n\x14\x43reateProductRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x36\n\x07product\x18\x02 \x01(\x0b\x32\x1f.google.cloud.vision.v1.ProductB\x04\xe2\x41\x01\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t\"x\n\x13ListProductsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"b\n\x14ListProductsResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"I\n\x11GetProductRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\x7f\n\x14UpdateProductRequest\x12\x36\n\x07product\x18\x01 \x01(\x0b\x32\x1f.google.cloud.vision.v1.ProductB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"L\n\x14\x44\x65leteProductRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\xac\x01\n\x17\x43reateProductSetRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12=\n\x0bproduct_set\x18\x02 \x01(\x0b\x32\".google.cloud.vision.v1.ProductSetB\x04\xe2\x41\x01\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t\"{\n\x16ListProductSetsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x17ListProductSetsResponse\x12\x38\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32\".google.cloud.vision.v1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x14GetProductSetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\"\x89\x01\n\x17UpdateProductSetRequest\x12=\n\x0bproduct_set\x18\x01 \x01(\x0b\x32\".google.cloud.vision.v1.ProductSetB\x04\xe2\x41\x01\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"R\n\x17\x44\x65leteProductSetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\"\xb8\x01\n\x1b\x43reateReferenceImageRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x45\n\x0freference_image\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1.ReferenceImageB\x04\xe2\x41\x01\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t\"{\n\x1aListReferenceImagesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8b\x01\n\x1bListReferenceImagesResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"W\n\x18GetReferenceImageRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage\"Z\n\x1b\x44\x65leteReferenceImageRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe2\x41\x01\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage\"\x91\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x37\n\x07product\x18\x02 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\x96\x01\n\"RemoveProductFromProductSetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x37\n\x07product\x18\x02 \x01(\tB&\xe2\x41\x01\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\x81\x01\n\x1fListProductsInProductSetRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe2\x41\x01\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n ListProductsInProductSetResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t\"r\n\x1cImportProductSetsInputConfig\x12H\n\ngcs_source\x18\x01 \x01(\x0b\x32\x32.google.cloud.vision.v1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source\"\xa8\x01\n\x18ImportProductSetsRequest\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12P\n\x0cinput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.ImportProductSetsInputConfigB\x04\xe2\x41\x01\x02\"\x83\x01\n\x19ImportProductSetsResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x97\x02\n\x16\x42\x61tchOperationMetadata\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"/\n\x15ProductSetPurgeConfig\x12\x16\n\x0eproduct_set_id\x18\x01 \x01(\t\"\xe0\x01\n\x14PurgeProductsRequest\x12Q\n\x18product_set_purge_config\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1.ProductSetPurgeConfigH\x00\x12 \n\x16\x64\x65lete_orphan_products\x18\x03 \x01(\x08H\x00\x12:\n\x06parent\x18\x01 \x01(\tB*\xe2\x41\x01\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05\x66orce\x18\x04 \x01(\x08\x42\x08\n\x06target2\xf4\x1d\n\rProductSearch\x12\xd1\x01\n\x10\x43reateProductSet\x12/.google.cloud.vision.v1.CreateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"h\xda\x41!parent,product_set,product_set_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xb4\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\x12\xa1\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\x12\xd3\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"j\xda\x41\x17product_set,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\x9b\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\x12\xb9\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"Y\xda\x41\x19parent,product,product_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/products:\x07product\x12\xa8\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\x12\x95\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\x12\xbb\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"[\xda\x41\x13product,update_mask\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x92\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\x12\xf9\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"\x83\x01\xda\x41)parent,reference_image,reference_image_id\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xb2\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xcf\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xbc\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xbd\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x0cname,product\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xca\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty\"W\xda\x41\x0cname,product\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xd6\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\x12\xf4\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\xda\x41\x13parent,input_config\x82\xd3\xe4\x93\x02;\"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*\x12\xd6\x01\n\rPurgeProducts\x12,.google.cloud.vision.v1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\"2/v1/{parent=projects/*/locations/*}/products:purge:\x01*\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionBz\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z5cloud.google.com/go/vision/v2/apiv1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
|
|
19
|
+
descriptor_data = "\n3google/cloud/vision/v1/product_search_service.proto\x12\x16google.cloud.vision.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/vision/v1/geometry.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"\xab\x02\n\x07Product\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x1d\n\x10product_category\x18\x04 \x01(\tB\x03\xe0\x41\x05\x12@\n\x0eproduct_labels\x18\x05 \x03(\x0b\x32(.google.cloud.vision.v1.Product.KeyValue\x1a&\n\x08KeyValue\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:^\xea\x41[\n\x1dvision.googleapis.com/Product\x12:projects/{project}/locations/{location}/products/{product}\"\xfd\x01\n\nProductSet\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x33\n\nindex_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12,\n\x0bindex_error\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03:h\xea\x41\x65\n vision.googleapis.com/ProductSet\x12\x41projects/{project}/locations/{location}/productSets/{product_set}\"\xfe\x01\n\x0eReferenceImage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uri\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0e\x62ounding_polys\x18\x03 \x03(\x0b\x32$.google.cloud.vision.v1.BoundingPolyB\x03\xe0\x41\x01:\x88\x01\xea\x41\x84\x01\n$vision.googleapis.com/ReferenceImage\x12\\projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}\"\x9c\x01\n\x14\x43reateProductRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x35\n\x07product\x18\x02 \x01(\x0b\x32\x1f.google.cloud.vision.v1.ProductB\x03\xe0\x41\x02\x12\x12\n\nproduct_id\x18\x03 \x01(\t\"w\n\x13ListProductsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"b\n\x14ListProductsResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"H\n\x11GetProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"~\n\x14UpdateProductRequest\x12\x35\n\x07product\x18\x01 \x01(\x0b\x32\x1f.google.cloud.vision.v1.ProductB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"K\n\x14\x44\x65leteProductRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\xaa\x01\n\x17\x43reateProductSetRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12<\n\x0bproduct_set\x18\x02 \x01(\x0b\x32\".google.cloud.vision.v1.ProductSetB\x03\xe0\x41\x02\x12\x16\n\x0eproduct_set_id\x18\x03 \x01(\t\"z\n\x16ListProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"l\n\x17ListProductSetsResponse\x12\x38\n\x0cproduct_sets\x18\x01 \x03(\x0b\x32\".google.cloud.vision.v1.ProductSet\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x14GetProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\"\x88\x01\n\x17UpdateProductSetRequest\x12<\n\x0bproduct_set\x18\x01 \x01(\x0b\x32\".google.cloud.vision.v1.ProductSetB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"Q\n\x17\x44\x65leteProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\"\xb6\x01\n\x1b\x43reateReferenceImageRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x44\n\x0freference_image\x18\x02 \x01(\x0b\x32&.google.cloud.vision.v1.ReferenceImageB\x03\xe0\x41\x02\x12\x1a\n\x12reference_image_id\x18\x03 \x01(\t\"z\n\x1aListReferenceImagesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x8b\x01\n\x1bListReferenceImagesResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"V\n\x18GetReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage\"Y\n\x1b\x44\x65leteReferenceImageRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$vision.googleapis.com/ReferenceImage\"\x8f\x01\n\x1d\x41\x64\x64ProductToProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\x94\x01\n\"RemoveProductFromProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x36\n\x07product\x18\x02 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1dvision.googleapis.com/Product\"\x80\x01\n\x1fListProductsInProductSetRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n vision.googleapis.com/ProductSet\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n ListProductsInProductSetResponse\x12\x31\n\x08products\x18\x01 \x03(\x0b\x32\x1f.google.cloud.vision.v1.Product\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"2\n\x1aImportProductSetsGcsSource\x12\x14\n\x0c\x63sv_file_uri\x18\x01 \x01(\t\"r\n\x1cImportProductSetsInputConfig\x12H\n\ngcs_source\x18\x01 \x01(\x0b\x32\x32.google.cloud.vision.v1.ImportProductSetsGcsSourceH\x00\x42\x08\n\x06source\"\xa6\x01\n\x18ImportProductSetsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12O\n\x0cinput_config\x18\x02 \x01(\x0b\x32\x34.google.cloud.vision.v1.ImportProductSetsInputConfigB\x03\xe0\x41\x02\"\x83\x01\n\x19ImportProductSetsResponse\x12@\n\x10reference_images\x18\x01 \x03(\x0b\x32&.google.cloud.vision.v1.ReferenceImage\x12$\n\x08statuses\x18\x02 \x03(\x0b\x32\x12.google.rpc.Status\"\x97\x02\n\x16\x42\x61tchOperationMetadata\x12\x43\n\x05state\x18\x01 \x01(\x0e\x32\x34.google.cloud.vision.v1.BatchOperationMetadata.State\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"Y\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0e\n\nPROCESSING\x10\x01\x12\x0e\n\nSUCCESSFUL\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"/\n\x15ProductSetPurgeConfig\x12\x16\n\x0eproduct_set_id\x18\x01 \x01(\t\"\xdf\x01\n\x14PurgeProductsRequest\x12Q\n\x18product_set_purge_config\x18\x02 \x01(\x0b\x32-.google.cloud.vision.v1.ProductSetPurgeConfigH\x00\x12 \n\x16\x64\x65lete_orphan_products\x18\x03 \x01(\x08H\x00\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\r\n\x05\x66orce\x18\x04 \x01(\x08\x42\x08\n\x06target2\xf4\x1d\n\rProductSearch\x12\xd1\x01\n\x10\x43reateProductSet\x12/.google.cloud.vision.v1.CreateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"h\xda\x41!parent,product_set,product_set_id\x82\xd3\xe4\x93\x02>\"//v1/{parent=projects/*/locations/*}/productSets:\x0bproduct_set\x12\xb4\x01\n\x0fListProductSets\x12..google.cloud.vision.v1.ListProductSetsRequest\x1a/.google.cloud.vision.v1.ListProductSetsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/productSets\x12\xa1\x01\n\rGetProductSet\x12,.google.cloud.vision.v1.GetProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/productSets/*}\x12\xd3\x01\n\x10UpdateProductSet\x12/.google.cloud.vision.v1.UpdateProductSetRequest\x1a\".google.cloud.vision.v1.ProductSet\"j\xda\x41\x17product_set,update_mask\x82\xd3\xe4\x93\x02J2;/v1/{product_set.name=projects/*/locations/*/productSets/*}:\x0bproduct_set\x12\x9b\x01\n\x10\x44\x65leteProductSet\x12/.google.cloud.vision.v1.DeleteProductSetRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/productSets/*}\x12\xb9\x01\n\rCreateProduct\x12,.google.cloud.vision.v1.CreateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"Y\xda\x41\x19parent,product,product_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/products:\x07product\x12\xa8\x01\n\x0cListProducts\x12+.google.cloud.vision.v1.ListProductsRequest\x1a,.google.cloud.vision.v1.ListProductsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/products\x12\x95\x01\n\nGetProduct\x12).google.cloud.vision.v1.GetProductRequest\x1a\x1f.google.cloud.vision.v1.Product\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/products/*}\x12\xbb\x01\n\rUpdateProduct\x12,.google.cloud.vision.v1.UpdateProductRequest\x1a\x1f.google.cloud.vision.v1.Product\"[\xda\x41\x13product,update_mask\x82\xd3\xe4\x93\x02?24/v1/{product.name=projects/*/locations/*/products/*}:\x07product\x12\x92\x01\n\rDeleteProduct\x12,.google.cloud.vision.v1.DeleteProductRequest\x1a\x16.google.protobuf.Empty\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/products/*}\x12\xf9\x01\n\x14\x43reateReferenceImage\x12\x33.google.cloud.vision.v1.CreateReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"\x83\x01\xda\x41)parent,reference_image,reference_image_id\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/products/*}/referenceImages:\x0freference_image\x12\xb2\x01\n\x14\x44\x65leteReferenceImage\x12\x33.google.cloud.vision.v1.DeleteReferenceImageRequest\x1a\x16.google.protobuf.Empty\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@*>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xcf\x01\n\x13ListReferenceImages\x12\x32.google.cloud.vision.v1.ListReferenceImagesRequest\x1a\x33.google.cloud.vision.v1.ListReferenceImagesResponse\"O\xda\x41\x06parent\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/products/*}/referenceImages\x12\xbc\x01\n\x11GetReferenceImage\x12\x30.google.cloud.vision.v1.GetReferenceImageRequest\x1a&.google.cloud.vision.v1.ReferenceImage\"M\xda\x41\x04name\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/products/*/referenceImages/*}\x12\xbd\x01\n\x16\x41\x64\x64ProductToProductSet\x12\x35.google.cloud.vision.v1.AddProductToProductSetRequest\x1a\x16.google.protobuf.Empty\"T\xda\x41\x0cname,product\x82\xd3\xe4\x93\x02?\":/v1/{name=projects/*/locations/*/productSets/*}:addProduct:\x01*\x12\xca\x01\n\x1bRemoveProductFromProductSet\x12:.google.cloud.vision.v1.RemoveProductFromProductSetRequest\x1a\x16.google.protobuf.Empty\"W\xda\x41\x0cname,product\x82\xd3\xe4\x93\x02\x42\"=/v1/{name=projects/*/locations/*/productSets/*}:removeProduct:\x01*\x12\xd6\x01\n\x18ListProductsInProductSet\x12\x37.google.cloud.vision.v1.ListProductsInProductSetRequest\x1a\x38.google.cloud.vision.v1.ListProductsInProductSetResponse\"G\xda\x41\x04name\x82\xd3\xe4\x93\x02:\x12\x38/v1/{name=projects/*/locations/*/productSets/*}/products\x12\xf4\x01\n\x11ImportProductSets\x12\x30.google.cloud.vision.v1.ImportProductSetsRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x33\n\x19ImportProductSetsResponse\x12\x16\x42\x61tchOperationMetadata\xda\x41\x13parent,input_config\x82\xd3\xe4\x93\x02;\"6/v1/{parent=projects/*/locations/*}/productSets:import:\x01*\x12\xd6\x01\n\rPurgeProducts\x12,.google.cloud.vision.v1.PurgeProductsRequest\x1a\x1d.google.longrunning.Operation\"x\xca\x41/\n\x15google.protobuf.Empty\x12\x16\x42\x61tchOperationMetadata\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\"2/v1/{parent=projects/*/locations/*}/products:purge:\x01*\x1av\xca\x41\x15vision.googleapis.com\xd2\x41[https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-visionBz\n\x1a\x63om.google.cloud.vision.v1B\x19ProductSearchServiceProtoP\x01Z5cloud.google.com/go/vision/v2/apiv1/visionpb;visionpb\xf8\x01\x01\xa2\x02\x04GCVNb\x06proto3"
|
|
20
20
|
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
22
22
|
|
|
@@ -27,16 +27,18 @@ module Google
|
|
|
27
27
|
# Manages Products and ProductSets of reference images for use in product
|
|
28
28
|
# search. It uses the following resource model:
|
|
29
29
|
#
|
|
30
|
-
# - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
|
|
31
|
-
# `projects/*/locations/*/productSets/*`, which acts as a way
|
|
32
|
-
# products into groups to limit identification.
|
|
30
|
+
# - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
|
|
31
|
+
# resources, named `projects/*/locations/*/productSets/*`, which acts as a way
|
|
32
|
+
# to put different products into groups to limit identification.
|
|
33
33
|
#
|
|
34
34
|
# In parallel,
|
|
35
35
|
#
|
|
36
|
-
# - The API has a collection of [Product][google.cloud.vision.v1.Product]
|
|
36
|
+
# - The API has a collection of [Product][google.cloud.vision.v1.Product]
|
|
37
|
+
# resources, named
|
|
37
38
|
# `projects/*/locations/*/products/*`
|
|
38
39
|
#
|
|
39
|
-
# - Each [Product][google.cloud.vision.v1.Product] has a collection of
|
|
40
|
+
# - Each [Product][google.cloud.vision.v1.Product] has a collection of
|
|
41
|
+
# [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
|
|
40
42
|
# `projects/*/locations/*/products/*/referenceImages/*`
|
|
41
43
|
class Service
|
|
42
44
|
|
|
@@ -187,8 +189,8 @@ module Google
|
|
|
187
189
|
# Asynchronous API that imports a list of reference images to specified
|
|
188
190
|
# product sets based on a list of image information.
|
|
189
191
|
#
|
|
190
|
-
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
|
191
|
-
# progress and results of the request.
|
|
192
|
+
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
|
193
|
+
# used to keep track of the progress and results of the request.
|
|
192
194
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
193
195
|
# `Operation.response` contains `ImportProductSetsResponse`. (results)
|
|
194
196
|
#
|
|
@@ -217,8 +219,8 @@ module Google
|
|
|
217
219
|
# ProductSet, you must wait until the PurgeProducts operation has finished
|
|
218
220
|
# for that ProductSet.
|
|
219
221
|
#
|
|
220
|
-
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
|
221
|
-
# progress and results of the request.
|
|
222
|
+
# The [google.longrunning.Operation][google.longrunning.Operation] API can be
|
|
223
|
+
# used to keep track of the progress and results of the request.
|
|
222
224
|
# `Operation.metadata` contains `BatchOperationMetadata`. (progress)
|
|
223
225
|
rpc :PurgeProducts, ::Google::Cloud::Vision::V1::PurgeProductsRequest, ::Google::Longrunning::Operation
|
|
224
226
|
end
|
|
@@ -453,7 +453,9 @@ module Google
|
|
|
453
453
|
# Likelihood that this is a medical image.
|
|
454
454
|
# @!attribute [rw] violence
|
|
455
455
|
# @return [::Google::Cloud::Vision::V1::Likelihood]
|
|
456
|
-
# Likelihood that this image contains violent content.
|
|
456
|
+
# Likelihood that this image contains violent content. Violent content may
|
|
457
|
+
# include death, serious harm, or injury to individuals or groups of
|
|
458
|
+
# individuals.
|
|
457
459
|
# @!attribute [rw] racy
|
|
458
460
|
# @return [::Google::Cloud::Vision::V1::Likelihood]
|
|
459
461
|
# Likelihood that the request image contains racy content. Racy content may
|
|
@@ -554,8 +556,9 @@ module Google
|
|
|
554
556
|
|
|
555
557
|
# Parameters for web detection request.
|
|
556
558
|
# @!attribute [rw] include_geo_results
|
|
559
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
557
560
|
# @return [::Boolean]
|
|
558
|
-
#
|
|
561
|
+
# This field has no effect on results.
|
|
559
562
|
class WebDetectionParams
|
|
560
563
|
include ::Google::Protobuf::MessageExts
|
|
561
564
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -570,7 +573,13 @@ module Google
|
|
|
570
573
|
# score for TEXT_DETECTION as well.
|
|
571
574
|
# @!attribute [rw] advanced_ocr_options
|
|
572
575
|
# @return [::Array<::String>]
|
|
573
|
-
# A list of advanced OCR options to fine-tune OCR behavior.
|
|
576
|
+
# A list of advanced OCR options to further fine-tune OCR behavior.
|
|
577
|
+
# Current valid values are:
|
|
578
|
+
#
|
|
579
|
+
# - `legacy_layout`: a heuristics layout detection algorithm, which serves as
|
|
580
|
+
# an alternative to the current ML-based layout detection algorithm.
|
|
581
|
+
# Customers can choose the best suitable layout algorithm based on their
|
|
582
|
+
# situation.
|
|
574
583
|
class TextDetectionParams
|
|
575
584
|
include ::Google::Protobuf::MessageExts
|
|
576
585
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -710,9 +719,26 @@ module Google
|
|
|
710
719
|
# `eu`: The European Union.
|
|
711
720
|
#
|
|
712
721
|
# Example: `projects/project-A/locations/eu`.
|
|
722
|
+
# @!attribute [rw] labels
|
|
723
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
724
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
725
|
+
#
|
|
726
|
+
# Label keys and values can be no longer than 63 characters
|
|
727
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
728
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
729
|
+
# Label values are optional. Label keys must start with a letter.
|
|
713
730
|
class BatchAnnotateImagesRequest
|
|
714
731
|
include ::Google::Protobuf::MessageExts
|
|
715
732
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
733
|
+
|
|
734
|
+
# @!attribute [rw] key
|
|
735
|
+
# @return [::String]
|
|
736
|
+
# @!attribute [rw] value
|
|
737
|
+
# @return [::String]
|
|
738
|
+
class LabelsEntry
|
|
739
|
+
include ::Google::Protobuf::MessageExts
|
|
740
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
741
|
+
end
|
|
716
742
|
end
|
|
717
743
|
|
|
718
744
|
# Response to a batch image annotation request.
|
|
@@ -779,8 +805,8 @@ module Google
|
|
|
779
805
|
# A list of requests to annotate files using the BatchAnnotateFiles API.
|
|
780
806
|
# @!attribute [rw] requests
|
|
781
807
|
# @return [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest>]
|
|
782
|
-
# Required. The list of file annotation requests. Right now we support only
|
|
783
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
808
|
+
# Required. The list of file annotation requests. Right now we support only
|
|
809
|
+
# one AnnotateFileRequest in BatchAnnotateFilesRequest.
|
|
784
810
|
# @!attribute [rw] parent
|
|
785
811
|
# @return [::String]
|
|
786
812
|
# Optional. Target project and location to make a call.
|
|
@@ -795,9 +821,26 @@ module Google
|
|
|
795
821
|
# `eu`: The European Union.
|
|
796
822
|
#
|
|
797
823
|
# Example: `projects/project-A/locations/eu`.
|
|
824
|
+
# @!attribute [rw] labels
|
|
825
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
826
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
827
|
+
#
|
|
828
|
+
# Label keys and values can be no longer than 63 characters
|
|
829
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
830
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
831
|
+
# Label values are optional. Label keys must start with a letter.
|
|
798
832
|
class BatchAnnotateFilesRequest
|
|
799
833
|
include ::Google::Protobuf::MessageExts
|
|
800
834
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
835
|
+
|
|
836
|
+
# @!attribute [rw] key
|
|
837
|
+
# @return [::String]
|
|
838
|
+
# @!attribute [rw] value
|
|
839
|
+
# @return [::String]
|
|
840
|
+
class LabelsEntry
|
|
841
|
+
include ::Google::Protobuf::MessageExts
|
|
842
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
843
|
+
end
|
|
801
844
|
end
|
|
802
845
|
|
|
803
846
|
# A list of file annotation responses.
|
|
@@ -858,9 +901,26 @@ module Google
|
|
|
858
901
|
# `eu`: The European Union.
|
|
859
902
|
#
|
|
860
903
|
# Example: `projects/project-A/locations/eu`.
|
|
904
|
+
# @!attribute [rw] labels
|
|
905
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
906
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
907
|
+
#
|
|
908
|
+
# Label keys and values can be no longer than 63 characters
|
|
909
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
910
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
911
|
+
# Label values are optional. Label keys must start with a letter.
|
|
861
912
|
class AsyncBatchAnnotateImagesRequest
|
|
862
913
|
include ::Google::Protobuf::MessageExts
|
|
863
914
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
915
|
+
|
|
916
|
+
# @!attribute [rw] key
|
|
917
|
+
# @return [::String]
|
|
918
|
+
# @!attribute [rw] value
|
|
919
|
+
# @return [::String]
|
|
920
|
+
class LabelsEntry
|
|
921
|
+
include ::Google::Protobuf::MessageExts
|
|
922
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
923
|
+
end
|
|
864
924
|
end
|
|
865
925
|
|
|
866
926
|
# Response to an async batch image annotation request.
|
|
@@ -891,9 +951,26 @@ module Google
|
|
|
891
951
|
# `eu`: The European Union.
|
|
892
952
|
#
|
|
893
953
|
# Example: `projects/project-A/locations/eu`.
|
|
954
|
+
# @!attribute [rw] labels
|
|
955
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
956
|
+
# Optional. The labels with user-defined metadata for the request.
|
|
957
|
+
#
|
|
958
|
+
# Label keys and values can be no longer than 63 characters
|
|
959
|
+
# (Unicode codepoints), can only contain lowercase letters, numeric
|
|
960
|
+
# characters, underscores and dashes. International characters are allowed.
|
|
961
|
+
# Label values are optional. Label keys must start with a letter.
|
|
894
962
|
class AsyncBatchAnnotateFilesRequest
|
|
895
963
|
include ::Google::Protobuf::MessageExts
|
|
896
964
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
965
|
+
|
|
966
|
+
# @!attribute [rw] key
|
|
967
|
+
# @return [::String]
|
|
968
|
+
# @!attribute [rw] value
|
|
969
|
+
# @return [::String]
|
|
970
|
+
class LabelsEntry
|
|
971
|
+
include ::Google::Protobuf::MessageExts
|
|
972
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
973
|
+
end
|
|
897
974
|
end
|
|
898
975
|
|
|
899
976
|
# Response to an async batch file annotation request.
|
|
@@ -28,7 +28,8 @@ module Google
|
|
|
28
28
|
# If it is not specified, system discretion will be applied.
|
|
29
29
|
# @!attribute [rw] product_set
|
|
30
30
|
# @return [::String]
|
|
31
|
-
# The resource name of a {::Google::Cloud::Vision::V1::ProductSet ProductSet} to
|
|
31
|
+
# The resource name of a {::Google::Cloud::Vision::V1::ProductSet ProductSet} to
|
|
32
|
+
# be searched for similar images.
|
|
32
33
|
#
|
|
33
34
|
# Format is:
|
|
34
35
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
|
|
@@ -40,10 +40,11 @@ module Google
|
|
|
40
40
|
# characters long.
|
|
41
41
|
# @!attribute [rw] product_category
|
|
42
42
|
# @return [::String]
|
|
43
|
-
# Immutable. The category for the product identified by the reference image.
|
|
44
|
-
# be one of "homegoods-v2", "apparel-v2", "toys-v2",
|
|
45
|
-
# "general-v1". The legacy categories "homegoods",
|
|
46
|
-
# still supported, but these should not be used for
|
|
43
|
+
# Immutable. The category for the product identified by the reference image.
|
|
44
|
+
# This should be one of "homegoods-v2", "apparel-v2", "toys-v2",
|
|
45
|
+
# "packagedgoods-v1" or "general-v1". The legacy categories "homegoods",
|
|
46
|
+
# "apparel", and "toys" are still supported, but these should not be used for
|
|
47
|
+
# new products.
|
|
47
48
|
# @!attribute [rw] product_labels
|
|
48
49
|
# @return [::Array<::Google::Cloud::Vision::V1::Product::KeyValue>]
|
|
49
50
|
# Key-value pairs that can be attached to a product. At query time,
|
|
@@ -129,8 +130,8 @@ module Google
|
|
|
129
130
|
# The URI must start with `gs://`.
|
|
130
131
|
# @!attribute [rw] bounding_polys
|
|
131
132
|
# @return [::Array<::Google::Cloud::Vision::V1::BoundingPoly>]
|
|
132
|
-
# Optional. Bounding polygons around the areas of interest in the reference
|
|
133
|
-
# If this field is empty, the system will try to detect regions of
|
|
133
|
+
# Optional. Bounding polygons around the areas of interest in the reference
|
|
134
|
+
# image. If this field is empty, the system will try to detect regions of
|
|
134
135
|
# interest. At most 10 bounding polygons will be used.
|
|
135
136
|
#
|
|
136
137
|
# The provided shape is converted into a non-rotated rectangle. Once
|
|
@@ -327,7 +328,8 @@ module Google
|
|
|
327
328
|
# Request message for the `CreateReferenceImage` method.
|
|
328
329
|
# @!attribute [rw] parent
|
|
329
330
|
# @return [::String]
|
|
330
|
-
# Required. Resource name of the product in which to create the reference
|
|
331
|
+
# Required. Resource name of the product in which to create the reference
|
|
332
|
+
# image.
|
|
331
333
|
#
|
|
332
334
|
# Format is
|
|
333
335
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`.
|
|
@@ -433,7 +435,8 @@ module Google
|
|
|
433
435
|
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
|
434
436
|
# @!attribute [rw] product
|
|
435
437
|
# @return [::String]
|
|
436
|
-
# Required. The resource name for the Product to be removed from this
|
|
438
|
+
# Required. The resource name for the Product to be removed from this
|
|
439
|
+
# ProductSet.
|
|
437
440
|
#
|
|
438
441
|
# Format is:
|
|
439
442
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
|
|
@@ -502,15 +505,17 @@ module Google
|
|
|
502
505
|
# `product-display-name` column refers to
|
|
503
506
|
# {::Google::Cloud::Vision::V1::Product#display_name display_name}, the
|
|
504
507
|
# `product-category` column refers to
|
|
505
|
-
# {::Google::Cloud::Vision::V1::Product#product_category product_category}, and
|
|
506
|
-
# `labels` column refers to
|
|
508
|
+
# {::Google::Cloud::Vision::V1::Product#product_category product_category}, and
|
|
509
|
+
# the `labels` column refers to
|
|
510
|
+
# {::Google::Cloud::Vision::V1::Product#product_labels product_labels}.
|
|
507
511
|
#
|
|
508
512
|
# The `image-id` column is optional but must be unique if provided. If it is
|
|
509
513
|
# empty, the system will automatically assign a unique id to the image.
|
|
510
514
|
#
|
|
511
515
|
# The `product-display-name` column is optional. If it is empty, the system
|
|
512
|
-
# sets the {::Google::Cloud::Vision::V1::Product#display_name display_name} field
|
|
513
|
-
# space (" "). You can update the `display_name` later
|
|
516
|
+
# sets the {::Google::Cloud::Vision::V1::Product#display_name display_name} field
|
|
517
|
+
# for the product to a space (" "). You can update the `display_name` later
|
|
518
|
+
# by using the API.
|
|
514
519
|
#
|
|
515
520
|
# If a `Product` with the specified `product-id` already exists, then the
|
|
516
521
|
# system ignores the `product-display-name`, `product-category`, and `labels`
|
|
@@ -570,8 +575,10 @@ module Google
|
|
|
570
575
|
# Response message for the `ImportProductSets` method.
|
|
571
576
|
#
|
|
572
577
|
# This message is returned by the
|
|
573
|
-
# google.longrunning.Operations.GetOperation
|
|
574
|
-
#
|
|
578
|
+
# google.longrunning.Operations.GetOperation
|
|
579
|
+
# method in the returned
|
|
580
|
+
# {::Google::Longrunning::Operation#response google.longrunning.Operation.response}
|
|
581
|
+
# field.
|
|
575
582
|
# @!attribute [rw] reference_images
|
|
576
583
|
# @return [::Array<::Google::Cloud::Vision::V1::ReferenceImage>]
|
|
577
584
|
# The list of reference_images that are imported successfully.
|
|
@@ -601,7 +608,8 @@ module Google
|
|
|
601
608
|
# @!attribute [rw] end_time
|
|
602
609
|
# @return [::Google::Protobuf::Timestamp]
|
|
603
610
|
# The time when the batch request is finished and
|
|
604
|
-
# {::Google::Longrunning::Operation#done google.longrunning.Operation.done} is
|
|
611
|
+
# {::Google::Longrunning::Operation#done google.longrunning.Operation.done} is
|
|
612
|
+
# set to true.
|
|
605
613
|
class BatchOperationMetadata
|
|
606
614
|
include ::Google::Protobuf::MessageExts
|
|
607
615
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -26,8 +26,9 @@ module Google
|
|
|
26
26
|
# TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
|
|
27
27
|
# Each structural component, starting from Page, may further have their own
|
|
28
28
|
# properties. Properties describe detected languages, breaks etc.. Please refer
|
|
29
|
-
# to the
|
|
30
|
-
#
|
|
29
|
+
# to the
|
|
30
|
+
# {::Google::Cloud::Vision::V1::TextAnnotation::TextProperty TextAnnotation.TextProperty}
|
|
31
|
+
# message definition below for more detail.
|
|
31
32
|
# @!attribute [rw] pages
|
|
32
33
|
# @return [::Array<::Google::Cloud::Vision::V1::Page>]
|
|
33
34
|
# List of pages detected by OCR.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-vision-v1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.14.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: 2024-02-
|
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|