Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 55c0380

Browse files
yoshi-automationalexander-fenster
authored andcommitted
fix: allow calls with no request, add JSON proto
1 parent d2d41b3 commit 55c0380

11 files changed

Lines changed: 3184 additions & 5 deletions

protos/protos.json

Lines changed: 3111 additions & 0 deletions
Large diffs are not rendered by default.

src/service_proto_list.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["../protos/google/cloud/vision/v1p4beta1/web_detection.proto", "../protos/google/cloud/vision/v1p4beta1/image_annotator.proto", "../protos/google/cloud/vision/v1p4beta1/product_search.proto", "../protos/google/cloud/vision/v1p4beta1/product_search_service.proto", "../protos/google/cloud/vision/v1p4beta1/geometry.proto", "../protos/google/cloud/vision/v1p4beta1/text_annotation.proto"]

src/v1/image_annotator_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ class ImageAnnotatorClient {
288288
callback = options;
289289
options = {};
290290
}
291+
request = request || {};
291292
options = options || {};
292293

293294
return this._innerApiCalls.batchAnnotateImages(request, options, callback);
@@ -343,6 +344,7 @@ class ImageAnnotatorClient {
343344
callback = options;
344345
options = {};
345346
}
347+
request = request || {};
346348
options = options || {};
347349

348350
return this._innerApiCalls.batchAnnotateFiles(request, options, callback);
@@ -462,6 +464,7 @@ class ImageAnnotatorClient {
462464
callback = options;
463465
options = {};
464466
}
467+
request = request || {};
465468
options = options || {};
466469

467470
return this._innerApiCalls.asyncBatchAnnotateImages(
@@ -563,6 +566,7 @@ class ImageAnnotatorClient {
563566
callback = options;
564567
options = {};
565568
}
569+
request = request || {};
566570
options = options || {};
567571

568572
return this._innerApiCalls.asyncBatchAnnotateFiles(

src/v1/product_search_client.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ class ProductSearchClient {
360360
callback = options;
361361
options = {};
362362
}
363+
request = request || {};
363364
options = options || {};
364365
options.otherArgs = options.otherArgs || {};
365366
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -468,6 +469,7 @@ class ProductSearchClient {
468469
callback = options;
469470
options = {};
470471
}
472+
request = request || {};
471473
options = options || {};
472474
options.otherArgs = options.otherArgs || {};
473475
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -585,6 +587,7 @@ class ProductSearchClient {
585587
callback = options;
586588
options = {};
587589
}
590+
request = request || {};
588591
options = options || {};
589592
options.otherArgs = options.otherArgs || {};
590593
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -654,6 +657,7 @@ class ProductSearchClient {
654657
callback = options;
655658
options = {};
656659
}
660+
request = request || {};
657661
options = options || {};
658662
options.otherArgs = options.otherArgs || {};
659663
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -705,6 +709,7 @@ class ProductSearchClient {
705709
callback = options;
706710
options = {};
707711
}
712+
request = request || {};
708713
options = options || {};
709714
options.otherArgs = options.otherArgs || {};
710715
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -782,6 +787,7 @@ class ProductSearchClient {
782787
callback = options;
783788
options = {};
784789
}
790+
request = request || {};
785791
options = options || {};
786792
options.otherArgs = options.otherArgs || {};
787793
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -890,6 +896,7 @@ class ProductSearchClient {
890896
callback = options;
891897
options = {};
892898
}
899+
request = request || {};
893900
options = options || {};
894901
options.otherArgs = options.otherArgs || {};
895902
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1008,6 +1015,7 @@ class ProductSearchClient {
10081015
callback = options;
10091016
options = {};
10101017
}
1018+
request = request || {};
10111019
options = options || {};
10121020
options.otherArgs = options.otherArgs || {};
10131021
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1086,6 +1094,7 @@ class ProductSearchClient {
10861094
callback = options;
10871095
options = {};
10881096
}
1097+
request = request || {};
10891098
options = options || {};
10901099
options.otherArgs = options.otherArgs || {};
10911100
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1138,6 +1147,7 @@ class ProductSearchClient {
11381147
callback = options;
11391148
options = {};
11401149
}
1150+
request = request || {};
11411151
options = options || {};
11421152
options.otherArgs = options.otherArgs || {};
11431153
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1227,6 +1237,7 @@ class ProductSearchClient {
12271237
callback = options;
12281238
options = {};
12291239
}
1240+
request = request || {};
12301241
options = options || {};
12311242
options.otherArgs = options.otherArgs || {};
12321243
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1282,6 +1293,7 @@ class ProductSearchClient {
12821293
callback = options;
12831294
options = {};
12841295
}
1296+
request = request || {};
12851297
options = options || {};
12861298
options.otherArgs = options.otherArgs || {};
12871299
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1392,6 +1404,7 @@ class ProductSearchClient {
13921404
callback = options;
13931405
options = {};
13941406
}
1407+
request = request || {};
13951408
options = options || {};
13961409
options.otherArgs = options.otherArgs || {};
13971410
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1511,6 +1524,7 @@ class ProductSearchClient {
15111524
callback = options;
15121525
options = {};
15131526
}
1527+
request = request || {};
15141528
options = options || {};
15151529
options.otherArgs = options.otherArgs || {};
15161530
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1576,6 +1590,7 @@ class ProductSearchClient {
15761590
callback = options;
15771591
options = {};
15781592
}
1593+
request = request || {};
15791594
options = options || {};
15801595
options.otherArgs = options.otherArgs || {};
15811596
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1638,6 +1653,7 @@ class ProductSearchClient {
16381653
callback = options;
16391654
options = {};
16401655
}
1656+
request = request || {};
16411657
options = options || {};
16421658
options.otherArgs = options.otherArgs || {};
16431659
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1752,6 +1768,7 @@ class ProductSearchClient {
17521768
callback = options;
17531769
options = {};
17541770
}
1771+
request = request || {};
17551772
options = options || {};
17561773
options.otherArgs = options.otherArgs || {};
17571774
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1942,6 +1959,7 @@ class ProductSearchClient {
19421959
callback = options;
19431960
options = {};
19441961
}
1962+
request = request || {};
19451963
options = options || {};
19461964
options.otherArgs = options.otherArgs || {};
19471965
options.otherArgs.headers = options.otherArgs.headers || {};

src/v1p1beta1/image_annotator_client.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ class ImageAnnotatorClient {
229229
callback = options;
230230
options = {};
231231
}
232+
request = request || {};
232233
options = options || {};
233234

234235
return this._innerApiCalls.batchAnnotateImages(request, options, callback);

src/v1p2beta1/image_annotator_client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class ImageAnnotatorClient {
271271
callback = options;
272272
options = {};
273273
}
274+
request = request || {};
274275
options = options || {};
275276

276277
return this._innerApiCalls.batchAnnotateImages(request, options, callback);
@@ -368,6 +369,7 @@ class ImageAnnotatorClient {
368369
callback = options;
369370
options = {};
370371
}
372+
request = request || {};
371373
options = options || {};
372374

373375
return this._innerApiCalls.asyncBatchAnnotateFiles(

src/v1p3beta1/image_annotator_client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ class ImageAnnotatorClient {
271271
callback = options;
272272
options = {};
273273
}
274+
request = request || {};
274275
options = options || {};
275276

276277
return this._innerApiCalls.batchAnnotateImages(request, options, callback);
@@ -368,6 +369,7 @@ class ImageAnnotatorClient {
368369
callback = options;
369370
options = {};
370371
}
372+
request = request || {};
371373
options = options || {};
372374

373375
return this._innerApiCalls.asyncBatchAnnotateFiles(

src/v1p3beta1/product_search_client.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ class ProductSearchClient {
364364
callback = options;
365365
options = {};
366366
}
367+
request = request || {};
367368
options = options || {};
368369
options.otherArgs = options.otherArgs || {};
369370
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -472,6 +473,7 @@ class ProductSearchClient {
472473
callback = options;
473474
options = {};
474475
}
476+
request = request || {};
475477
options = options || {};
476478
options.otherArgs = options.otherArgs || {};
477479
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -589,6 +591,7 @@ class ProductSearchClient {
589591
callback = options;
590592
options = {};
591593
}
594+
request = request || {};
592595
options = options || {};
593596
options.otherArgs = options.otherArgs || {};
594597
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -663,6 +666,7 @@ class ProductSearchClient {
663666
callback = options;
664667
options = {};
665668
}
669+
request = request || {};
666670
options = options || {};
667671
options.otherArgs = options.otherArgs || {};
668672
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -718,6 +722,7 @@ class ProductSearchClient {
718722
callback = options;
719723
options = {};
720724
}
725+
request = request || {};
721726
options = options || {};
722727
options.otherArgs = options.otherArgs || {};
723728
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -797,6 +802,7 @@ class ProductSearchClient {
797802
callback = options;
798803
options = {};
799804
}
805+
request = request || {};
800806
options = options || {};
801807
options.otherArgs = options.otherArgs || {};
802808
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -905,6 +911,7 @@ class ProductSearchClient {
905911
callback = options;
906912
options = {};
907913
}
914+
request = request || {};
908915
options = options || {};
909916
options.otherArgs = options.otherArgs || {};
910917
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1023,6 +1030,7 @@ class ProductSearchClient {
10231030
callback = options;
10241031
options = {};
10251032
}
1033+
request = request || {};
10261034
options = options || {};
10271035
options.otherArgs = options.otherArgs || {};
10281036
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1105,6 +1113,7 @@ class ProductSearchClient {
11051113
callback = options;
11061114
options = {};
11071115
}
1116+
request = request || {};
11081117
options = options || {};
11091118
options.otherArgs = options.otherArgs || {};
11101119
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1161,6 +1170,7 @@ class ProductSearchClient {
11611170
callback = options;
11621171
options = {};
11631172
}
1173+
request = request || {};
11641174
options = options || {};
11651175
options.otherArgs = options.otherArgs || {};
11661176
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1252,6 +1262,7 @@ class ProductSearchClient {
12521262
callback = options;
12531263
options = {};
12541264
}
1265+
request = request || {};
12551266
options = options || {};
12561267
options.otherArgs = options.otherArgs || {};
12571268
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1311,6 +1322,7 @@ class ProductSearchClient {
13111322
callback = options;
13121323
options = {};
13131324
}
1325+
request = request || {};
13141326
options = options || {};
13151327
options.otherArgs = options.otherArgs || {};
13161328
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1421,6 +1433,7 @@ class ProductSearchClient {
14211433
callback = options;
14221434
options = {};
14231435
}
1436+
request = request || {};
14241437
options = options || {};
14251438
options.otherArgs = options.otherArgs || {};
14261439
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1540,6 +1553,7 @@ class ProductSearchClient {
15401553
callback = options;
15411554
options = {};
15421555
}
1556+
request = request || {};
15431557
options = options || {};
15441558
options.otherArgs = options.otherArgs || {};
15451559
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1605,6 +1619,7 @@ class ProductSearchClient {
16051619
callback = options;
16061620
options = {};
16071621
}
1622+
request = request || {};
16081623
options = options || {};
16091624
options.otherArgs = options.otherArgs || {};
16101625
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1671,6 +1686,7 @@ class ProductSearchClient {
16711686
callback = options;
16721687
options = {};
16731688
}
1689+
request = request || {};
16741690
options = options || {};
16751691
options.otherArgs = options.otherArgs || {};
16761692
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1785,6 +1801,7 @@ class ProductSearchClient {
17851801
callback = options;
17861802
options = {};
17871803
}
1804+
request = request || {};
17881805
options = options || {};
17891806
options.otherArgs = options.otherArgs || {};
17901807
options.otherArgs.headers = options.otherArgs.headers || {};
@@ -1975,6 +1992,7 @@ class ProductSearchClient {
19751992
callback = options;
19761993
options = {};
19771994
}
1995+
request = request || {};
19781996
options = options || {};
19791997
options.otherArgs = options.otherArgs || {};
19801998
options.otherArgs.headers = options.otherArgs.headers || {};

src/v1p4beta1/image_annotator_client.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ class ImageAnnotatorClient {
288288
callback = options;
289289
options = {};
290290
}
291+
request = request || {};
291292
options = options || {};
292293

293294
return this._innerApiCalls.batchAnnotateImages(request, options, callback);
@@ -342,6 +343,7 @@ class ImageAnnotatorClient {
342343
callback = options;
343344
options = {};
344345
}
346+
request = request || {};
345347
options = options || {};
346348

347349
return this._innerApiCalls.batchAnnotateFiles(request, options, callback);
@@ -461,6 +463,7 @@ class ImageAnnotatorClient {
461463
callback = options;
462464
options = {};
463465
}
466+
request = request || {};
464467
options = options || {};
465468

466469
return this._innerApiCalls.asyncBatchAnnotateImages(
@@ -562,6 +565,7 @@ class ImageAnnotatorClient {
562565
callback = options;
563566
options = {};
564567
}
568+
request = request || {};
565569
options = options || {};
566570

567571
return this._innerApiCalls.asyncBatchAnnotateFiles(

0 commit comments

Comments
 (0)