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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2c77437a1643aa114692c2d45788291efe93b07eb6fc5ba60174d51c145ba90c
4
- data.tar.gz: 1ec4cca3f1ba2221f985737730eece25d0c3dc824fb87c9561354ce9ba12eedd
3
+ metadata.gz: 52910c7b44899ac515511259d2e2f8704b552366f38093ee450a5ca022c0620d
4
+ data.tar.gz: f85f6cc480ca2bd32b3f2ba3797d9425c1ff0b4641bbc113991620c882c8eefd
5
5
  SHA512:
6
- metadata.gz: 844f20d2a4d0358fb38c67736cea671921cd9fc9ee90e1d0649344e46d4319b388db36bd612b30e9cd98d244eba456cf6b9cbf516cae48035ef417ba74856c2c
7
- data.tar.gz: 71fc7560c2188fbfa889842d45f981adb964ed781f307e60e9cb6f317328b6cd49017a7ccdb8d08cfa595c00ba61b965cbd29ed29cb24480bd40c4fa3f4570b7
6
+ metadata.gz: 92c418b56b69cf0ea77df5f5a7ff9f10f7910f54e01a3424efadd62001fd68516b9b0a6fd2c1d35940da1f5e6dd8ba71ec4852449f6677b90cef6b10a205431a
7
+ data.tar.gz: 3653dac03e49851aa508479463b5f6513324e7c0a8ba42970fb4260262ed75d027db497a5f341c1fc68a357c1c6f4d9ac5e63a67cc6ed1aa64fb2f460f18d9fd
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=Cloud Vision V1 API
2
+ --title="Cloud Vision V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
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 Developers Console][dev-console].
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 slide-out navigation tray and select **API Manager**. From
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
- You should see a screen like one of the following.
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, and click "Generate
164
- new JSON key":
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
@@ -157,6 +157,7 @@ module Google
157
157
 
158
158
  @operations_client = Operations.new do |config|
159
159
  config.credentials = credentials
160
+ config.quota_project = @quota_project_id
160
161
  config.endpoint = @config.endpoint
161
162
  end
162
163
 
@@ -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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
@@ -29,7 +29,7 @@ module Google
29
29
  # ImageAnnotator service returns detected entities from the images.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
@@ -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
- "parent" => request.parent
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
- "parent" => request.parent
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
- "name" => request.name
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
- "product_set.name" => request.product_set.name
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
- "name" => request.name
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
- "parent" => request.parent
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
- "parent" => request.parent
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
- "name" => request.name
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
- "product.name" => request.product.name
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
- "name" => request.name
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
- "parent" => request.parent
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
- "name" => request.name
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
- "parent" => request.parent
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
- "parent" => request.parent
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
- "parent" => request.parent
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
- "name" => request.name
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
@@ -40,7 +40,7 @@ module Google
40
40
  # `projects/*/locations/*/products/*/referenceImages/*`
41
41
  class Service
42
42
 
43
- include GRPC::GenericService
43
+ include ::GRPC::GenericService
44
44
 
45
45
  self.marshal_class_method = :encode
46
46
  self.unmarshal_class_method = :decode
@@ -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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Vision
23
23
  module V1
24
- VERSION = "0.6.3"
24
+ VERSION = "0.6.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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
- # name_descriptor: {
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
- # name_descriptor:
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
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
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
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
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.3
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: 2021-08-11 00:00:00.000000000 Z
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.2.17
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