google-cloud-vision 0.32.2 → 0.32.3

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.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -0
  3. data/AUTHENTICATION.md +199 -0
  4. data/lib/google/cloud/vision.rb +8 -6
  5. data/lib/google/cloud/vision/v1.rb +8 -6
  6. data/lib/google/cloud/vision/v1/credentials.rb +1 -1
  7. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/geometry.rb +1 -1
  8. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/image_annotator.rb +1 -1
  9. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search.rb +3 -2
  10. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/product_search_service.rb +13 -8
  11. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/text_annotation.rb +4 -3
  12. data/lib/google/cloud/vision/v1/doc/google/cloud/vision/v1/web_detection.rb +1 -1
  13. data/lib/google/cloud/vision/v1/doc/google/longrunning/operations.rb +2 -44
  14. data/lib/google/cloud/vision/v1/doc/google/protobuf/any.rb +3 -2
  15. data/lib/google/cloud/vision/v1/doc/google/protobuf/empty.rb +1 -1
  16. data/lib/google/cloud/vision/v1/doc/google/protobuf/field_mask.rb +19 -27
  17. data/lib/google/cloud/vision/v1/doc/google/protobuf/timestamp.rb +16 -14
  18. data/lib/google/cloud/vision/v1/doc/google/protobuf/wrappers.rb +1 -65
  19. data/lib/google/cloud/vision/v1/doc/google/rpc/status.rb +18 -15
  20. data/lib/google/cloud/vision/v1/doc/google/type/color.rb +8 -3
  21. data/lib/google/cloud/vision/v1/doc/google/type/latlng.rb +1 -35
  22. data/lib/google/cloud/vision/v1/helpers.rb +44 -44
  23. data/lib/google/cloud/vision/v1/image_annotator_client.rb +1 -1
  24. data/lib/google/cloud/vision/v1/product_search_client.rb +102 -50
  25. data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +9 -7
  26. data/lib/google/cloud/vision/v1p3beta1.rb +8 -4
  27. data/lib/google/cloud/vision/v1p3beta1/credentials.rb +1 -1
  28. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/geometry.rb +1 -1
  29. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/image_annotator.rb +1 -1
  30. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search.rb +4 -2
  31. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/product_search_service.rb +12 -7
  32. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/text_annotation.rb +4 -3
  33. data/lib/google/cloud/vision/v1p3beta1/doc/google/cloud/vision/v1p3beta1/web_detection.rb +1 -1
  34. data/lib/google/cloud/vision/v1p3beta1/doc/google/longrunning/operations.rb +2 -44
  35. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/any.rb +3 -2
  36. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/empty.rb +1 -1
  37. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/field_mask.rb +19 -27
  38. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/timestamp.rb +16 -14
  39. data/lib/google/cloud/vision/v1p3beta1/doc/google/protobuf/wrappers.rb +1 -65
  40. data/lib/google/cloud/vision/v1p3beta1/doc/google/rpc/status.rb +18 -15
  41. data/lib/google/cloud/vision/v1p3beta1/doc/google/type/color.rb +8 -3
  42. data/lib/google/cloud/vision/v1p3beta1/doc/google/type/latlng.rb +1 -35
  43. data/lib/google/cloud/vision/v1p3beta1/helpers.rb +44 -44
  44. data/lib/google/cloud/vision/v1p3beta1/image_annotator_client.rb +1 -1
  45. data/lib/google/cloud/vision/v1p3beta1/product_search_client.rb +98 -40
  46. data/lib/google/cloud/vision/v1p3beta1/product_search_service_services_pb.rb +9 -5
  47. metadata +6 -6
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -37,16 +37,18 @@ module Google
37
37
  # Manages Products and ProductSets of reference images for use in product
38
38
  # search. It uses the following resource model:
39
39
  #
40
- # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet} resources, named
41
- # `projects/*/locations/*/productSets/*`, which acts as a way to put different
42
- # products into groups to limit identification.
40
+ # * The API has a collection of {Google::Cloud::Vision::V1::ProductSet ProductSet}
41
+ # resources, named `projects/*/locations/*/productSets/*`, which acts as a way
42
+ # to put different products into groups to limit identification.
43
43
  #
44
44
  # In parallel,
45
45
  #
46
- # * The API has a collection of {Google::Cloud::Vision::V1::Product Product} resources, named
46
+ # * The API has a collection of {Google::Cloud::Vision::V1::Product Product}
47
+ # resources, named
47
48
  # `projects/*/locations/*/products/*`
48
49
  #
49
- # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
50
+ # * Each {Google::Cloud::Vision::V1::Product Product} has a collection of
51
+ # {Google::Cloud::Vision::V1::ReferenceImage ReferenceImage} resources, named
50
52
  # `projects/*/locations/*/products/*/referenceImages/*`
51
53
  #
52
54
  # @!attribute [r] product_search_stub
@@ -106,18 +108,18 @@ module Google
106
108
 
107
109
  private_constant :LOCATION_PATH_TEMPLATE
108
110
 
109
- PRODUCT_SET_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
110
- "projects/{project}/locations/{location}/productSets/{product_set}"
111
- )
112
-
113
- private_constant :PRODUCT_SET_PATH_TEMPLATE
114
-
115
111
  PRODUCT_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
116
112
  "projects/{project}/locations/{location}/products/{product}"
117
113
  )
118
114
 
119
115
  private_constant :PRODUCT_PATH_TEMPLATE
120
116
 
117
+ PRODUCT_SET_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
118
+ "projects/{project}/locations/{location}/productSets/{product_set}"
119
+ )
120
+
121
+ private_constant :PRODUCT_SET_PATH_TEMPLATE
122
+
121
123
  REFERENCE_IMAGE_PATH_TEMPLATE = Google::Gax::PathTemplate.new(
122
124
  "projects/{project}/locations/{location}/products/{product}/referenceImages/{reference_image}"
123
125
  )
@@ -135,29 +137,29 @@ module Google
135
137
  )
136
138
  end
137
139
 
138
- # Returns a fully-qualified product_set resource name string.
140
+ # Returns a fully-qualified product resource name string.
139
141
  # @param project [String]
140
142
  # @param location [String]
141
- # @param product_set [String]
143
+ # @param product [String]
142
144
  # @return [String]
143
- def self.product_set_path project, location, product_set
144
- PRODUCT_SET_PATH_TEMPLATE.render(
145
+ def self.product_path project, location, product
146
+ PRODUCT_PATH_TEMPLATE.render(
145
147
  :"project" => project,
146
148
  :"location" => location,
147
- :"product_set" => product_set
149
+ :"product" => product
148
150
  )
149
151
  end
150
152
 
151
- # Returns a fully-qualified product resource name string.
153
+ # Returns a fully-qualified product_set resource name string.
152
154
  # @param project [String]
153
155
  # @param location [String]
154
- # @param product [String]
156
+ # @param product_set [String]
155
157
  # @return [String]
156
- def self.product_path project, location, product
157
- PRODUCT_PATH_TEMPLATE.render(
158
+ def self.product_set_path project, location, product_set
159
+ PRODUCT_SET_PATH_TEMPLATE.render(
158
160
  :"project" => project,
159
161
  :"location" => location,
160
- :"product" => product
162
+ :"product_set" => product_set
161
163
  )
162
164
  end
163
165
 
@@ -291,92 +293,146 @@ module Google
291
293
  @create_product = Google::Gax.create_api_call(
292
294
  @product_search_stub.method(:create_product),
293
295
  defaults["create_product"],
294
- exception_transformer: exception_transformer
296
+ exception_transformer: exception_transformer,
297
+ params_extractor: proc do |request|
298
+ {'parent' => request.parent}
299
+ end
295
300
  )
296
301
  @list_products = Google::Gax.create_api_call(
297
302
  @product_search_stub.method(:list_products),
298
303
  defaults["list_products"],
299
- exception_transformer: exception_transformer
304
+ exception_transformer: exception_transformer,
305
+ params_extractor: proc do |request|
306
+ {'parent' => request.parent}
307
+ end
300
308
  )
301
309
  @get_product = Google::Gax.create_api_call(
302
310
  @product_search_stub.method(:get_product),
303
311
  defaults["get_product"],
304
- exception_transformer: exception_transformer
312
+ exception_transformer: exception_transformer,
313
+ params_extractor: proc do |request|
314
+ {'name' => request.name}
315
+ end
305
316
  )
306
317
  @update_product = Google::Gax.create_api_call(
307
318
  @product_search_stub.method(:update_product),
308
319
  defaults["update_product"],
309
- exception_transformer: exception_transformer
320
+ exception_transformer: exception_transformer,
321
+ params_extractor: proc do |request|
322
+ {'product.name' => request.product.name}
323
+ end
310
324
  )
311
325
  @delete_product = Google::Gax.create_api_call(
312
326
  @product_search_stub.method(:delete_product),
313
327
  defaults["delete_product"],
314
- exception_transformer: exception_transformer
328
+ exception_transformer: exception_transformer,
329
+ params_extractor: proc do |request|
330
+ {'name' => request.name}
331
+ end
315
332
  )
316
333
  @list_reference_images = Google::Gax.create_api_call(
317
334
  @product_search_stub.method(:list_reference_images),
318
335
  defaults["list_reference_images"],
319
- exception_transformer: exception_transformer
336
+ exception_transformer: exception_transformer,
337
+ params_extractor: proc do |request|
338
+ {'parent' => request.parent}
339
+ end
320
340
  )
321
341
  @get_reference_image = Google::Gax.create_api_call(
322
342
  @product_search_stub.method(:get_reference_image),
323
343
  defaults["get_reference_image"],
324
- exception_transformer: exception_transformer
344
+ exception_transformer: exception_transformer,
345
+ params_extractor: proc do |request|
346
+ {'name' => request.name}
347
+ end
325
348
  )
326
349
  @delete_reference_image = Google::Gax.create_api_call(
327
350
  @product_search_stub.method(:delete_reference_image),
328
351
  defaults["delete_reference_image"],
329
- exception_transformer: exception_transformer
352
+ exception_transformer: exception_transformer,
353
+ params_extractor: proc do |request|
354
+ {'name' => request.name}
355
+ end
330
356
  )
331
357
  @create_reference_image = Google::Gax.create_api_call(
332
358
  @product_search_stub.method(:create_reference_image),
333
359
  defaults["create_reference_image"],
334
- exception_transformer: exception_transformer
360
+ exception_transformer: exception_transformer,
361
+ params_extractor: proc do |request|
362
+ {'parent' => request.parent}
363
+ end
335
364
  )
336
365
  @create_product_set = Google::Gax.create_api_call(
337
366
  @product_search_stub.method(:create_product_set),
338
367
  defaults["create_product_set"],
339
- exception_transformer: exception_transformer
368
+ exception_transformer: exception_transformer,
369
+ params_extractor: proc do |request|
370
+ {'parent' => request.parent}
371
+ end
340
372
  )
341
373
  @list_product_sets = Google::Gax.create_api_call(
342
374
  @product_search_stub.method(:list_product_sets),
343
375
  defaults["list_product_sets"],
344
- exception_transformer: exception_transformer
376
+ exception_transformer: exception_transformer,
377
+ params_extractor: proc do |request|
378
+ {'parent' => request.parent}
379
+ end
345
380
  )
346
381
  @get_product_set = Google::Gax.create_api_call(
347
382
  @product_search_stub.method(:get_product_set),
348
383
  defaults["get_product_set"],
349
- exception_transformer: exception_transformer
384
+ exception_transformer: exception_transformer,
385
+ params_extractor: proc do |request|
386
+ {'name' => request.name}
387
+ end
350
388
  )
351
389
  @update_product_set = Google::Gax.create_api_call(
352
390
  @product_search_stub.method(:update_product_set),
353
391
  defaults["update_product_set"],
354
- exception_transformer: exception_transformer
392
+ exception_transformer: exception_transformer,
393
+ params_extractor: proc do |request|
394
+ {'product_set.name' => request.product_set.name}
395
+ end
355
396
  )
356
397
  @delete_product_set = Google::Gax.create_api_call(
357
398
  @product_search_stub.method(:delete_product_set),
358
399
  defaults["delete_product_set"],
359
- exception_transformer: exception_transformer
400
+ exception_transformer: exception_transformer,
401
+ params_extractor: proc do |request|
402
+ {'name' => request.name}
403
+ end
360
404
  )
361
405
  @add_product_to_product_set = Google::Gax.create_api_call(
362
406
  @product_search_stub.method(:add_product_to_product_set),
363
407
  defaults["add_product_to_product_set"],
364
- exception_transformer: exception_transformer
408
+ exception_transformer: exception_transformer,
409
+ params_extractor: proc do |request|
410
+ {'name' => request.name}
411
+ end
365
412
  )
366
413
  @remove_product_from_product_set = Google::Gax.create_api_call(
367
414
  @product_search_stub.method(:remove_product_from_product_set),
368
415
  defaults["remove_product_from_product_set"],
369
- exception_transformer: exception_transformer
416
+ exception_transformer: exception_transformer,
417
+ params_extractor: proc do |request|
418
+ {'name' => request.name}
419
+ end
370
420
  )
371
421
  @list_products_in_product_set = Google::Gax.create_api_call(
372
422
  @product_search_stub.method(:list_products_in_product_set),
373
423
  defaults["list_products_in_product_set"],
374
- exception_transformer: exception_transformer
424
+ exception_transformer: exception_transformer,
425
+ params_extractor: proc do |request|
426
+ {'name' => request.name}
427
+ end
375
428
  )
376
429
  @import_product_sets = Google::Gax.create_api_call(
377
430
  @product_search_stub.method(:import_product_sets),
378
431
  defaults["import_product_sets"],
379
- exception_transformer: exception_transformer
432
+ exception_transformer: exception_transformer,
433
+ params_extractor: proc do |request|
434
+ {'parent' => request.parent}
435
+ end
380
436
  )
381
437
  end
382
438
 
@@ -1121,10 +1177,8 @@ module Google
1121
1177
  #
1122
1178
  # product_search_client = Google::Cloud::Vision::ProductSearch.new(version: :v1)
1123
1179
  # formatted_name = Google::Cloud::Vision::V1::ProductSearchClient.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]")
1124
- #
1125
- # # TODO: Initialize `product`:
1126
- # product = ''
1127
- # product_search_client.add_product_to_product_set(formatted_name, product)
1180
+ # formatted_product = Google::Cloud::Vision::V1::ProductSearchClient.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]")
1181
+ # product_search_client.add_product_to_product_set(formatted_name, formatted_product)
1128
1182
 
1129
1183
  def add_product_to_product_set \
1130
1184
  name,
@@ -1168,10 +1222,8 @@ module Google
1168
1222
  #
1169
1223
  # product_search_client = Google::Cloud::Vision::ProductSearch.new(version: :v1)
1170
1224
  # formatted_name = Google::Cloud::Vision::V1::ProductSearchClient.product_set_path("[PROJECT]", "[LOCATION]", "[PRODUCT_SET]")
1171
- #
1172
- # # TODO: Initialize `product`:
1173
- # product = ''
1174
- # product_search_client.remove_product_from_product_set(formatted_name, product)
1225
+ # formatted_product = Google::Cloud::Vision::V1::ProductSearchClient.product_path("[PROJECT]", "[LOCATION]", "[PRODUCT]")
1226
+ # product_search_client.remove_product_from_product_set(formatted_name, formatted_product)
1175
1227
 
1176
1228
  def remove_product_from_product_set \
1177
1229
  name,
@@ -1253,8 +1305,8 @@ module Google
1253
1305
  # Asynchronous API that imports a list of reference images to specified
1254
1306
  # product sets based on a list of image information.
1255
1307
  #
1256
- # The {Google::Longrunning::Operation} API can be used to keep track of the
1257
- # progress and results of the request.
1308
+ # The {Google::Longrunning::Operation} API can be
1309
+ # used to keep track of the progress and results of the request.
1258
1310
  # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
1259
1311
  # `Operation.response` contains `ImportProductSetsResponse`. (results)
1260
1312
  #
@@ -29,16 +29,18 @@ module Google
29
29
  # Manages Products and ProductSets of reference images for use in product
30
30
  # search. It uses the following resource model:
31
31
  #
32
- # - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet] resources, named
33
- # `projects/*/locations/*/productSets/*`, which acts as a way to put different
34
- # products into groups to limit identification.
32
+ # - The API has a collection of [ProductSet][google.cloud.vision.v1.ProductSet]
33
+ # resources, named `projects/*/locations/*/productSets/*`, which acts as a way
34
+ # to put different products into groups to limit identification.
35
35
  #
36
36
  # In parallel,
37
37
  #
38
- # - The API has a collection of [Product][google.cloud.vision.v1.Product] resources, named
38
+ # - The API has a collection of [Product][google.cloud.vision.v1.Product]
39
+ # resources, named
39
40
  # `projects/*/locations/*/products/*`
40
41
  #
41
- # - Each [Product][google.cloud.vision.v1.Product] has a collection of [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
42
+ # - Each [Product][google.cloud.vision.v1.Product] has a collection of
43
+ # [ReferenceImage][google.cloud.vision.v1.ReferenceImage] resources, named
42
44
  # `projects/*/locations/*/products/*/referenceImages/*`
43
45
  class Service
44
46
 
@@ -205,8 +207,8 @@ module Google
205
207
  # Asynchronous API that imports a list of reference images to specified
206
208
  # product sets based on a list of image information.
207
209
  #
208
- # The [google.longrunning.Operation][google.longrunning.Operation] API can be used to keep track of the
209
- # progress and results of the request.
210
+ # The [google.longrunning.Operation][google.longrunning.Operation] API can be
211
+ # used to keep track of the progress and results of the request.
210
212
  # `Operation.metadata` contains `BatchOperationMetadata`. (progress)
211
213
  # `Operation.response` contains `ImportProductSetsResponse`. (results)
212
214
  #
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -106,16 +106,20 @@ module Google
106
106
  # Manages Products and ProductSets of reference images for use in product
107
107
  # search. It uses the following resource model:
108
108
  #
109
- # * The API has a collection of {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
109
+ # * The API has a collection of
110
+ # {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} resources, named
110
111
  # `projects/*/locations/*/productSets/*`, which acts as a way to put different
111
112
  # products into groups to limit identification.
112
113
  #
113
114
  # In parallel,
114
115
  #
115
- # * The API has a collection of {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
116
+ # * The API has a collection of
117
+ # {Google::Cloud::Vision::V1p3beta1::Product Product} resources, named
116
118
  # `projects/*/locations/*/products/*`
117
119
  #
118
- # * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources, named
120
+ # * Each {Google::Cloud::Vision::V1p3beta1::Product Product} has a collection of
121
+ # {Google::Cloud::Vision::V1p3beta1::ReferenceImage ReferenceImage} resources,
122
+ # named
119
123
  # `projects/*/locations/*/products/*/referenceImages/*`
120
124
  #
121
125
  # @param credentials [Google::Auth::Credentials, String, Hash, GRPC::Core::Channel, GRPC::Core::ChannelCredentials, Proc]
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -49,7 +49,9 @@ module Google
49
49
  # Optional. Defaults to `BASIC`.
50
50
  # @!attribute [rw] product_set
51
51
  # @return [String]
52
- # The resource name of a {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} to be searched for similar images.
52
+ # The resource name of a
53
+ # {Google::Cloud::Vision::V1p3beta1::ProductSet ProductSet} to be searched for
54
+ # similar images.
53
55
  #
54
56
  # Format is:
55
57
  # `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`.
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -429,9 +429,11 @@ module Google
429
429
  # product_display_name, product_category and labels are ignored.
430
430
  #
431
431
  # If a Product doesn't exist and needs to be created on the fly, the
432
- # product_display_name field refers to {Google::Cloud::Vision::V1p3beta1::Product#display_name Product#display_name}, the
433
- # product_category field refers to {Google::Cloud::Vision::V1p3beta1::Product#product_category Product#product_category}, and the
434
- # labels field refers to {Product#labels}.
432
+ # product_display_name field refers to
433
+ # {Google::Cloud::Vision::V1p3beta1::Product#display_name Product#display_name},
434
+ # the product_category field refers to
435
+ # {Google::Cloud::Vision::V1p3beta1::Product#product_category Product#product_category},
436
+ # and the labels field refers to {Product#labels}.
435
437
  #
436
438
  # Labels (optional) should be a line containing a list of comma-separated
437
439
  # key-value pairs, with the format
@@ -476,8 +478,10 @@ module Google
476
478
  # Response message for the `ImportProductSets` method.
477
479
  #
478
480
  # This message is returned by the
479
- # {Google::Longrunning::Operations::GetOperation} method in the returned
480
- # {Google::Longrunning::Operation#response} field.
481
+ # {Google::Longrunning::Operations::GetOperation}
482
+ # method in the returned
483
+ # {Google::Longrunning::Operation#response}
484
+ # field.
481
485
  # @!attribute [rw] reference_images
482
486
  # @return [Array<Google::Cloud::Vision::V1p3beta1::ReferenceImage>]
483
487
  # The list of reference_images that are imported successfully.
@@ -504,7 +508,8 @@ module Google
504
508
  # @!attribute [rw] end_time
505
509
  # @return [Google::Protobuf::Timestamp]
506
510
  # The time when the batch request is finished and
507
- # {Google::Longrunning::Operation#done} is set to true.
511
+ # {Google::Longrunning::Operation#done} is
512
+ # set to true.
508
513
  class BatchOperationMetadata
509
514
  # Enumerates the possible states that the batch request can be in.
510
515
  module State
@@ -1,4 +1,4 @@
1
- # Copyright 2018 Google LLC
1
+ # Copyright 2019 Google LLC
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -22,8 +22,9 @@ module Google
22
22
  # TextAnnotation -> Page -> Block -> Paragraph -> Word -> Symbol
23
23
  # Each structural component, starting from Page, may further have their own
24
24
  # properties. Properties describe detected languages, breaks etc.. Please refer
25
- # to the {Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty TextAnnotation::TextProperty} message definition below for more
26
- # detail.
25
+ # to the
26
+ # {Google::Cloud::Vision::V1p3beta1::TextAnnotation::TextProperty TextAnnotation::TextProperty}
27
+ # message definition below for more detail.
27
28
  # @!attribute [rw] pages
28
29
  # @return [Array<Google::Cloud::Vision::V1p3beta1::Page>]
29
30
  # List of pages detected by OCR.