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

Commit

Permalink
fix: allow calls with no request, add JSON proto
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored and alexander-fenster committed Aug 2, 2019
1 parent d2d41b3 commit 55c0380
Show file tree
Hide file tree
Showing 11 changed files with 3,184 additions and 5 deletions.
3,111 changes: 3,111 additions & 0 deletions protos/protos.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/service_proto_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +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"]
4 changes: 4 additions & 0 deletions src/v1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateImages(request, options, callback);
Expand Down Expand Up @@ -343,6 +344,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateFiles(request, options, callback);
Expand Down Expand Up @@ -462,6 +464,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateImages(
Expand Down Expand Up @@ -563,6 +566,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateFiles(
Expand Down
18 changes: 18 additions & 0 deletions src/v1/product_search_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -468,6 +469,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -585,6 +587,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -654,6 +657,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -705,6 +709,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -782,6 +787,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -890,6 +896,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1008,6 +1015,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1086,6 +1094,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1138,6 +1147,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1227,6 +1237,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1282,6 +1293,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1392,6 +1404,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1511,6 +1524,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1576,6 +1590,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1638,6 +1653,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1752,6 +1768,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1942,6 +1959,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down
1 change: 1 addition & 0 deletions src/v1p1beta1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateImages(request, options, callback);
Expand Down
2 changes: 2 additions & 0 deletions src/v1p2beta1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateImages(request, options, callback);
Expand Down Expand Up @@ -368,6 +369,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateFiles(
Expand Down
2 changes: 2 additions & 0 deletions src/v1p3beta1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateImages(request, options, callback);
Expand Down Expand Up @@ -368,6 +369,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateFiles(
Expand Down
18 changes: 18 additions & 0 deletions src/v1p3beta1/product_search_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -472,6 +473,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -589,6 +591,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -663,6 +666,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -718,6 +722,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -797,6 +802,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -905,6 +911,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1023,6 +1030,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1105,6 +1113,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1161,6 +1170,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1252,6 +1262,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1311,6 +1322,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1421,6 +1433,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1540,6 +1553,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1605,6 +1619,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1671,6 +1686,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1785,6 +1801,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down Expand Up @@ -1975,6 +1992,7 @@ class ProductSearchClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};
options.otherArgs = options.otherArgs || {};
options.otherArgs.headers = options.otherArgs.headers || {};
Expand Down
4 changes: 4 additions & 0 deletions src/v1p4beta1/image_annotator_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateImages(request, options, callback);
Expand Down Expand Up @@ -342,6 +343,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.batchAnnotateFiles(request, options, callback);
Expand Down Expand Up @@ -461,6 +463,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateImages(
Expand Down Expand Up @@ -562,6 +565,7 @@ class ImageAnnotatorClient {
callback = options;
options = {};
}
request = request || {};
options = options || {};

return this._innerApiCalls.asyncBatchAnnotateFiles(
Expand Down
Loading

0 comments on commit 55c0380

Please sign in to comment.