google-cloud-vision-v1 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/vision/v1/geometry_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +1 -0
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +20 -12
- data/lib/google/cloud/vision/v1/image_annotator_pb.rb +2 -2
- data/lib/google/cloud/vision/v1/image_annotator_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/product_search/client.rb +96 -57
- data/lib/google/cloud/vision/v1/product_search/operations.rb +20 -12
- data/lib/google/cloud/vision/v1/product_search_pb.rb +2 -2
- data/lib/google/cloud/vision/v1/product_search_service_pb.rb +2 -2
- data/lib/google/cloud/vision/v1/product_search_service_services_pb.rb +1 -1
- data/lib/google/cloud/vision/v1/text_annotation_pb.rb +2 -2
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/lib/google/cloud/vision/v1/web_detection_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52910c7b44899ac515511259d2e2f8704b552366f38093ee450a5ca022c0620d
|
4
|
+
data.tar.gz: f85f6cc480ca2bd32b3f2ba3797d9425c1ff0b4641bbc113991620c882c8eefd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92c418b56b69cf0ea77df5f5a7ff9f10f7910f54e01a3424efadd62001fd68516b9b0a6fd2c1d35940da1f5e6dd8ba71ec4852449f6677b90cef6b10a205431a
|
7
|
+
data.tar.gz: 3653dac03e49851aa508479463b5f6513324e7c0a8ba42970fb4260262ed75d027db497a5f341c1fc68a357c1c6f4d9ac5e63a67cc6ed1aa64fb2f460f18d9fd
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
121
121
|
*should* only be used during development.
|
122
122
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
125
|
-
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
127
|
-
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
131
|
-
|
132
123
|
## Creating a Service Account
|
133
124
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
140
131
|
need a Google Developers service account.
|
141
132
|
|
142
|
-
1. Visit the [Google
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
143
134
|
2. Create a new project or click on an existing project.
|
144
|
-
3. Activate the
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
145
136
|
here, you will enable the APIs that your application requires.
|
146
137
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
148
|
-
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
150
139
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
152
141
|
|
153
|
-
|
154
|
-
|
155
|
-
![Create a new service account][create-new-service-account]
|
156
|
-
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
158
|
-
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
160
|
-
guided through downloading a new JSON key file.
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
161
144
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
163
|
-
new key file. Just select the account you wish to re-use,
|
164
|
-
|
165
|
-
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
148
|
+
and then select **Add Key**.
|
167
149
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
169
151
|
requests and should be stored in a secure location.
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/geometry.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/vision/v1/geometry.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.vision.v1.Vertex" do
|
@@ -181,9 +181,11 @@ module Google
|
|
181
181
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
182
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
183
183
|
|
184
|
-
header_params = {
|
185
|
-
|
186
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
187
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
188
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
189
191
|
|
@@ -275,9 +277,11 @@ module Google
|
|
275
277
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
276
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
277
279
|
|
278
|
-
header_params = {
|
279
|
-
|
280
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
281
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
282
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
283
287
|
|
@@ -362,9 +366,11 @@ module Google
|
|
362
366
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
363
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
368
|
|
365
|
-
header_params = {
|
366
|
-
|
367
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
368
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
369
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
370
376
|
|
@@ -454,9 +460,11 @@ module Google
|
|
454
460
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
455
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
456
462
|
|
457
|
-
header_params = {
|
458
|
-
|
459
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
460
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
461
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
462
470
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/image_annotator.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -16,6 +14,8 @@ require 'google/protobuf/timestamp_pb'
|
|
16
14
|
require 'google/rpc/status_pb'
|
17
15
|
require 'google/type/color_pb'
|
18
16
|
require 'google/type/latlng_pb'
|
17
|
+
require 'google/protobuf'
|
18
|
+
|
19
19
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
20
20
|
add_file("google/cloud/vision/v1/image_annotator.proto", :syntax => :proto3) do
|
21
21
|
add_message "google.cloud.vision.v1.Feature" do
|
@@ -243,6 +243,7 @@ module Google
|
|
243
243
|
|
244
244
|
@operations_client = Operations.new do |config|
|
245
245
|
config.credentials = credentials
|
246
|
+
config.quota_project = @quota_project_id
|
246
247
|
config.endpoint = @config.endpoint
|
247
248
|
end
|
248
249
|
|
@@ -339,9 +340,11 @@ module Google
|
|
339
340
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
340
341
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
341
342
|
|
342
|
-
header_params = {
|
343
|
-
|
344
|
-
|
343
|
+
header_params = {}
|
344
|
+
if request.parent
|
345
|
+
header_params["parent"] = request.parent
|
346
|
+
end
|
347
|
+
|
345
348
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
346
349
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
347
350
|
|
@@ -439,9 +442,11 @@ module Google
|
|
439
442
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
440
443
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
441
444
|
|
442
|
-
header_params = {
|
443
|
-
|
444
|
-
|
445
|
+
header_params = {}
|
446
|
+
if request.parent
|
447
|
+
header_params["parent"] = request.parent
|
448
|
+
end
|
449
|
+
|
445
450
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
446
451
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
447
452
|
|
@@ -530,9 +535,11 @@ module Google
|
|
530
535
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
531
536
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
532
537
|
|
533
|
-
header_params = {
|
534
|
-
|
535
|
-
|
538
|
+
header_params = {}
|
539
|
+
if request.name
|
540
|
+
header_params["name"] = request.name
|
541
|
+
end
|
542
|
+
|
536
543
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
537
544
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
538
545
|
|
@@ -625,9 +632,11 @@ module Google
|
|
625
632
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
626
633
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
627
634
|
|
628
|
-
header_params = {
|
629
|
-
|
630
|
-
|
635
|
+
header_params = {}
|
636
|
+
if request.product_set&.name
|
637
|
+
header_params["product_set.name"] = request.product_set.name
|
638
|
+
end
|
639
|
+
|
631
640
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
632
641
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
633
642
|
|
@@ -714,9 +723,11 @@ module Google
|
|
714
723
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
715
724
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
716
725
|
|
717
|
-
header_params = {
|
718
|
-
|
719
|
-
|
726
|
+
header_params = {}
|
727
|
+
if request.name
|
728
|
+
header_params["name"] = request.name
|
729
|
+
end
|
730
|
+
|
720
731
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
721
732
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
722
733
|
|
@@ -814,9 +825,11 @@ module Google
|
|
814
825
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
815
826
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
816
827
|
|
817
|
-
header_params = {
|
818
|
-
|
819
|
-
|
828
|
+
header_params = {}
|
829
|
+
if request.parent
|
830
|
+
header_params["parent"] = request.parent
|
831
|
+
end
|
832
|
+
|
820
833
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
821
834
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
822
835
|
|
@@ -914,9 +927,11 @@ module Google
|
|
914
927
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
915
928
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
916
929
|
|
917
|
-
header_params = {
|
918
|
-
|
919
|
-
|
930
|
+
header_params = {}
|
931
|
+
if request.parent
|
932
|
+
header_params["parent"] = request.parent
|
933
|
+
end
|
934
|
+
|
920
935
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
921
936
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
922
937
|
|
@@ -1005,9 +1020,11 @@ module Google
|
|
1005
1020
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1006
1021
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1007
1022
|
|
1008
|
-
header_params = {
|
1009
|
-
|
1010
|
-
|
1023
|
+
header_params = {}
|
1024
|
+
if request.name
|
1025
|
+
header_params["name"] = request.name
|
1026
|
+
end
|
1027
|
+
|
1011
1028
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1012
1029
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1013
1030
|
|
@@ -1109,9 +1126,11 @@ module Google
|
|
1109
1126
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1110
1127
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1111
1128
|
|
1112
|
-
header_params = {
|
1113
|
-
|
1114
|
-
|
1129
|
+
header_params = {}
|
1130
|
+
if request.product&.name
|
1131
|
+
header_params["product.name"] = request.product.name
|
1132
|
+
end
|
1133
|
+
|
1115
1134
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1116
1135
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1117
1136
|
|
@@ -1199,9 +1218,11 @@ module Google
|
|
1199
1218
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1200
1219
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1201
1220
|
|
1202
|
-
header_params = {
|
1203
|
-
|
1204
|
-
|
1221
|
+
header_params = {}
|
1222
|
+
if request.name
|
1223
|
+
header_params["name"] = request.name
|
1224
|
+
end
|
1225
|
+
|
1205
1226
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1206
1227
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1207
1228
|
|
@@ -1311,9 +1332,11 @@ module Google
|
|
1311
1332
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1312
1333
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1313
1334
|
|
1314
|
-
header_params = {
|
1315
|
-
|
1316
|
-
|
1335
|
+
header_params = {}
|
1336
|
+
if request.parent
|
1337
|
+
header_params["parent"] = request.parent
|
1338
|
+
end
|
1339
|
+
|
1317
1340
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1318
1341
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1319
1342
|
|
@@ -1403,9 +1426,11 @@ module Google
|
|
1403
1426
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1404
1427
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1405
1428
|
|
1406
|
-
header_params = {
|
1407
|
-
|
1408
|
-
|
1429
|
+
header_params = {}
|
1430
|
+
if request.name
|
1431
|
+
header_params["name"] = request.name
|
1432
|
+
end
|
1433
|
+
|
1409
1434
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1410
1435
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1411
1436
|
|
@@ -1508,9 +1533,11 @@ module Google
|
|
1508
1533
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1509
1534
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1510
1535
|
|
1511
|
-
header_params = {
|
1512
|
-
|
1513
|
-
|
1536
|
+
header_params = {}
|
1537
|
+
if request.parent
|
1538
|
+
header_params["parent"] = request.parent
|
1539
|
+
end
|
1540
|
+
|
1514
1541
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1515
1542
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1516
1543
|
|
@@ -1599,9 +1626,11 @@ module Google
|
|
1599
1626
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1600
1627
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1601
1628
|
|
1602
|
-
header_params = {
|
1603
|
-
|
1604
|
-
|
1629
|
+
header_params = {}
|
1630
|
+
if request.name
|
1631
|
+
header_params["name"] = request.name
|
1632
|
+
end
|
1633
|
+
|
1605
1634
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1606
1635
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1607
1636
|
|
@@ -1697,9 +1726,11 @@ module Google
|
|
1697
1726
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1698
1727
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1699
1728
|
|
1700
|
-
header_params = {
|
1701
|
-
|
1702
|
-
|
1729
|
+
header_params = {}
|
1730
|
+
if request.name
|
1731
|
+
header_params["name"] = request.name
|
1732
|
+
end
|
1733
|
+
|
1703
1734
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1704
1735
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1705
1736
|
|
@@ -1788,9 +1819,11 @@ module Google
|
|
1788
1819
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1789
1820
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1790
1821
|
|
1791
|
-
header_params = {
|
1792
|
-
|
1793
|
-
|
1822
|
+
header_params = {}
|
1823
|
+
if request.name
|
1824
|
+
header_params["name"] = request.name
|
1825
|
+
end
|
1826
|
+
|
1794
1827
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1795
1828
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1796
1829
|
|
@@ -1890,9 +1923,11 @@ module Google
|
|
1890
1923
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1891
1924
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1892
1925
|
|
1893
|
-
header_params = {
|
1894
|
-
|
1895
|
-
|
1926
|
+
header_params = {}
|
1927
|
+
if request.name
|
1928
|
+
header_params["name"] = request.name
|
1929
|
+
end
|
1930
|
+
|
1896
1931
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1897
1932
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1898
1933
|
|
@@ -1995,9 +2030,11 @@ module Google
|
|
1995
2030
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
1996
2031
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1997
2032
|
|
1998
|
-
header_params = {
|
1999
|
-
|
2000
|
-
|
2033
|
+
header_params = {}
|
2034
|
+
if request.parent
|
2035
|
+
header_params["parent"] = request.parent
|
2036
|
+
end
|
2037
|
+
|
2001
2038
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2002
2039
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2003
2040
|
|
@@ -2119,9 +2156,11 @@ module Google
|
|
2119
2156
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
2120
2157
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2121
2158
|
|
2122
|
-
header_params = {
|
2123
|
-
|
2124
|
-
|
2159
|
+
header_params = {}
|
2160
|
+
if request.parent
|
2161
|
+
header_params["parent"] = request.parent
|
2162
|
+
end
|
2163
|
+
|
2125
2164
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2126
2165
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2127
2166
|
|
@@ -181,9 +181,11 @@ module Google
|
|
181
181
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
182
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
183
183
|
|
184
|
-
header_params = {
|
185
|
-
|
186
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
187
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
188
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
189
191
|
|
@@ -275,9 +277,11 @@ module Google
|
|
275
277
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
276
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
277
279
|
|
278
|
-
header_params = {
|
279
|
-
|
280
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
281
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
282
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
283
287
|
|
@@ -362,9 +366,11 @@ module Google
|
|
362
366
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
363
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
364
368
|
|
365
|
-
header_params = {
|
366
|
-
|
367
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
368
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
369
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
370
376
|
|
@@ -454,9 +460,11 @@ module Google
|
|
454
460
|
gapic_version: ::Google::Cloud::Vision::V1::VERSION
|
455
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
456
462
|
|
457
|
-
header_params = {
|
458
|
-
|
459
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
460
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
461
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
462
470
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/product_search.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/cloud/vision/v1/geometry_pb'
|
8
6
|
require 'google/cloud/vision/v1/product_search_service_pb'
|
9
7
|
require 'google/protobuf/timestamp_pb'
|
10
8
|
require 'google/api/annotations_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
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,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/product_search_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -13,6 +11,8 @@ require 'google/protobuf/empty_pb'
|
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
14
12
|
require 'google/protobuf/timestamp_pb'
|
15
13
|
require 'google/rpc/status_pb'
|
14
|
+
require 'google/protobuf'
|
15
|
+
|
16
16
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
17
|
add_file("google/cloud/vision/v1/product_search_service.proto", :syntax => :proto3) do
|
18
18
|
add_message "google.cloud.vision.v1.Product" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/text_annotation.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/vision/v1/geometry_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/vision/v1/text_annotation.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.vision.v1.TextAnnotation" do
|
@@ -1,9 +1,9 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/vision/v1/web_detection.proto
|
3
3
|
|
4
|
+
require 'google/api/annotations_pb'
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
require 'google/api/annotations_pb'
|
7
7
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
8
8
|
add_file("google/cloud/vision/v1/web_detection.proto", :syntax => :proto3) do
|
9
9
|
add_message "google.cloud.vision.v1.WebDetection" do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
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.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -231,7 +231,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
231
231
|
- !ruby/object:Gem::Version
|
232
232
|
version: '0'
|
233
233
|
requirements: []
|
234
|
-
rubygems_version: 3.
|
234
|
+
rubygems_version: 3.3.4
|
235
235
|
signing_key:
|
236
236
|
specification_version: 4
|
237
237
|
summary: API Client library for the Cloud Vision V1 API
|