google-cloud-vision-v1 0.4.0 → 0.5.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 +2 -2
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +2 -0
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +1 -2
- data/lib/google/cloud/vision/v1/product_search/client.rb +1 -3
- data/lib/google/cloud/vision/v1/product_search_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +1 -2
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/proto_docs/google/cloud/vision/v1/image_annotator.rb +11 -2
- data/proto_docs/google/cloud/vision/v1/product_search.rb +1 -1
- data/proto_docs/google/cloud/vision/v1/product_search_service.rb +4 -7
- 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: 81a8ee6d7b1cf6d7efb61a53051398441483b10e202b863f7b6e1c18578fbb35
|
4
|
+
data.tar.gz: 49a2b391342fe68630872b33168a4643a6f08692f2c323394f28cc36df14f31d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ee9717796884954c82be442725d912f6f1818cc1ff722f0dd4d14bb12cb743e037c4e5ae6ae43e371689a6bfc12003b00d4265557db889ef0ce8087532f26125
|
7
|
+
data.tar.gz: 7fdfb2d8618c2d5637a757719a479c6db3907b9aaca2b90c47f3297ae670eddeebc8b31bdf072f751b5c05a340a2c9015b82244d36c410b3dda9bf9ca90538af
|
@@ -294,8 +294,8 @@ module Google
|
|
294
294
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
295
295
|
#
|
296
296
|
# @param requests [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest, ::Hash>]
|
297
|
-
# Required. The list of file annotation requests. Right now we support only
|
298
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
297
|
+
# Required. The list of file annotation requests. Right now we support only
|
298
|
+
# one AnnotateFileRequest in BatchAnnotateFilesRequest.
|
299
299
|
# @param parent [::String]
|
300
300
|
# Optional. Target project and location to make a call.
|
301
301
|
#
|
@@ -103,6 +103,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
103
103
|
value :CHIN_GNATHION, 32
|
104
104
|
value :CHIN_LEFT_GONION, 33
|
105
105
|
value :CHIN_RIGHT_GONION, 34
|
106
|
+
value :LEFT_CHEEK_CENTER, 35
|
107
|
+
value :RIGHT_CHEEK_CENTER, 36
|
106
108
|
end
|
107
109
|
add_message "google.cloud.vision.v1.LocationInfo" do
|
108
110
|
optional :lat_lng, :message, 1, "google.type.LatLng"
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/vision/v1/image_annotator.proto for package 'google.cloud.vision.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/cloud/vision/v1/image_annotator_pb'
|
@@ -511,7 +511,7 @@ module Google
|
|
511
511
|
# Required. Resource name of the ProductSet to get.
|
512
512
|
#
|
513
513
|
# Format is:
|
514
|
-
# `projects/PROJECT_ID/locations/
|
514
|
+
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
515
515
|
#
|
516
516
|
# @yield [response, operation] Access the result along with the RPC operation
|
517
517
|
# @yieldparam response [::Google::Cloud::Vision::V1::ProductSet]
|
@@ -1225,7 +1225,6 @@ module Google
|
|
1225
1225
|
# Required. The resource name of the reference image to delete.
|
1226
1226
|
#
|
1227
1227
|
# Format is:
|
1228
|
-
#
|
1229
1228
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
|
1230
1229
|
#
|
1231
1230
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -1382,7 +1381,6 @@ module Google
|
|
1382
1381
|
# Required. The resource name of the ReferenceImage to get.
|
1383
1382
|
#
|
1384
1383
|
# Format is:
|
1385
|
-
#
|
1386
1384
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
|
1387
1385
|
#
|
1388
1386
|
# @yield [response, operation] Access the result along with the RPC operation
|
@@ -3,11 +3,11 @@
|
|
3
3
|
|
4
4
|
require 'google/protobuf'
|
5
5
|
|
6
|
+
require 'google/api/resource_pb'
|
6
7
|
require 'google/cloud/vision/v1/geometry_pb'
|
7
8
|
require 'google/cloud/vision/v1/product_search_service_pb'
|
8
9
|
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/api/annotations_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/cloud/vision/v1/product_search.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.cloud.vision.v1.ProductSearchParams" do
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# Source: google/cloud/vision/v1/product_search_service.proto for package 'google.cloud.vision.v1'
|
3
3
|
# Original file comments:
|
4
|
-
# Copyright
|
4
|
+
# Copyright 2020 Google LLC
|
5
5
|
#
|
6
6
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
# you may not use this file except in compliance with the License.
|
@@ -15,7 +15,6 @@
|
|
15
15
|
# See the License for the specific language governing permissions and
|
16
16
|
# limitations under the License.
|
17
17
|
#
|
18
|
-
#
|
19
18
|
|
20
19
|
require 'grpc'
|
21
20
|
require 'google/cloud/vision/v1/product_search_service_pb'
|
@@ -127,6 +127,9 @@ module Google
|
|
127
127
|
# Image content, represented as a stream of bytes.
|
128
128
|
# Note: As with all `bytes` fields, protobuffers use a pure binary
|
129
129
|
# representation, whereas JSON representations use base64.
|
130
|
+
#
|
131
|
+
# Currently, this field only works for BatchAnnotateImages requests. It does
|
132
|
+
# not work for AsyncBatchAnnotateImages requests.
|
130
133
|
# @!attribute [rw] source
|
131
134
|
# @return [::Google::Cloud::Vision::V1::ImageSource]
|
132
135
|
# Google Cloud Storage image location, or publicly-accessible image
|
@@ -323,6 +326,12 @@ module Google
|
|
323
326
|
|
324
327
|
# Chin right gonion.
|
325
328
|
CHIN_RIGHT_GONION = 34
|
329
|
+
|
330
|
+
# Left cheek center.
|
331
|
+
LEFT_CHEEK_CENTER = 35
|
332
|
+
|
333
|
+
# Right cheek center.
|
334
|
+
RIGHT_CHEEK_CENTER = 36
|
326
335
|
end
|
327
336
|
end
|
328
337
|
end
|
@@ -789,8 +798,8 @@ module Google
|
|
789
798
|
# A list of requests to annotate files using the BatchAnnotateFiles API.
|
790
799
|
# @!attribute [rw] requests
|
791
800
|
# @return [::Array<::Google::Cloud::Vision::V1::AnnotateFileRequest>]
|
792
|
-
# Required. The list of file annotation requests. Right now we support only
|
793
|
-
# AnnotateFileRequest in BatchAnnotateFilesRequest.
|
801
|
+
# Required. The list of file annotation requests. Right now we support only
|
802
|
+
# one AnnotateFileRequest in BatchAnnotateFilesRequest.
|
794
803
|
# @!attribute [rw] parent
|
795
804
|
# @return [::String]
|
796
805
|
# Optional. Target project and location to make a call.
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @!attribute [rw] bounding_poly
|
26
26
|
# @return [::Google::Cloud::Vision::V1::BoundingPoly]
|
27
27
|
# The bounding polygon around the area of interest in the image.
|
28
|
-
#
|
28
|
+
# If it is not specified, system discretion will be applied.
|
29
29
|
# @!attribute [rw] product_set
|
30
30
|
# @return [::String]
|
31
31
|
# The resource name of a {::Google::Cloud::Vision::V1::ProductSet ProductSet} to be searched for similar images.
|
@@ -41,9 +41,9 @@ module Google
|
|
41
41
|
# @!attribute [rw] product_category
|
42
42
|
# @return [::String]
|
43
43
|
# Immutable. The category for the product identified by the reference image. This should
|
44
|
-
# be
|
45
|
-
# "homegoods", "apparel", and "toys" are
|
46
|
-
# not be used for new products.
|
44
|
+
# be one of "homegoods-v2", "apparel-v2", "toys-v2", "packagedgoods-v1" or
|
45
|
+
# "general-v1". The legacy categories "homegoods", "apparel", and "toys" are
|
46
|
+
# still supported, but these should not be used for new products.
|
47
47
|
# @!attribute [rw] product_labels
|
48
48
|
# @return [::Array<::Google::Cloud::Vision::V1::Product::KeyValue>]
|
49
49
|
# Key-value pairs that can be attached to a product. At query time,
|
@@ -119,7 +119,6 @@ module Google
|
|
119
119
|
# The resource name of the reference image.
|
120
120
|
#
|
121
121
|
# Format is:
|
122
|
-
#
|
123
122
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
|
124
123
|
#
|
125
124
|
# This field is ignored when creating a reference image.
|
@@ -292,7 +291,7 @@ module Google
|
|
292
291
|
# Required. Resource name of the ProductSet to get.
|
293
292
|
#
|
294
293
|
# Format is:
|
295
|
-
# `projects/PROJECT_ID/locations/
|
294
|
+
# `projects/PROJECT_ID/locations/LOC_ID/productSets/PRODUCT_SET_ID`
|
296
295
|
class GetProductSetRequest
|
297
296
|
include ::Google::Protobuf::MessageExts
|
298
297
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -389,7 +388,6 @@ module Google
|
|
389
388
|
# Required. The resource name of the ReferenceImage to get.
|
390
389
|
#
|
391
390
|
# Format is:
|
392
|
-
#
|
393
391
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`.
|
394
392
|
class GetReferenceImageRequest
|
395
393
|
include ::Google::Protobuf::MessageExts
|
@@ -402,7 +400,6 @@ module Google
|
|
402
400
|
# Required. The resource name of the reference image to delete.
|
403
401
|
#
|
404
402
|
# Format is:
|
405
|
-
#
|
406
403
|
# `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID/referenceImages/IMAGE_ID`
|
407
404
|
class DeleteReferenceImageRequest
|
408
405
|
include ::Google::Protobuf::MessageExts
|
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.5.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: 2021-02-
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|