Skip to content

Commit 722e062

Browse files
build: use gapic-generator-typescript v1.0.7. (#573)
This new generator will bring some changes to the generated code across all libraries, but the behavior will only change for nodejs-logging and nodejs-pubsub (those two libraries that use request batching). For other libraries, the changes should be minor (the createApiCall call is simplified) and it should be safe to merge them. Please talk to @alexander-fenster if you have any questions. PiperOrigin-RevId: 325949033 Source-Author: Google APIs <[email protected]> Source-Date: Mon Aug 10 21:11:13 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 94006b3cb8d2fb44703cf535da15608eed6bf7db Source-Link: googleapis/googleapis@94006b3
1 parent 2545b70 commit 722e062

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

packages/google-cloud-translate/src/v3/translation_service_client.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,14 @@ export class TranslationServiceClient {
303303
}
304304
);
305305

306+
const descriptor =
307+
this.descriptors.page[methodName] ||
308+
this.descriptors.longrunning[methodName] ||
309+
undefined;
306310
const apiCall = this._gaxModule.createApiCall(
307311
callPromise,
308312
this._defaults[methodName],
309-
this.descriptors.page[methodName] ||
310-
this.descriptors.stream[methodName] ||
311-
this.descriptors.longrunning[methodName]
313+
descriptor
312314
);
313315

314316
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-translate/src/v3beta1/translation_service_client.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -304,12 +304,14 @@ export class TranslationServiceClient {
304304
}
305305
);
306306

307+
const descriptor =
308+
this.descriptors.page[methodName] ||
309+
this.descriptors.longrunning[methodName] ||
310+
undefined;
307311
const apiCall = this._gaxModule.createApiCall(
308312
callPromise,
309313
this._defaults[methodName],
310-
this.descriptors.page[methodName] ||
311-
this.descriptors.stream[methodName] ||
312-
this.descriptors.longrunning[methodName]
314+
descriptor
313315
);
314316

315317
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-translate/synth.metadata

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-translate.git",
7-
"sha": "ca8a591e02aa21f0b1a0e7b7e98335a059e7decd"
7+
"sha": "6ff6bb22320ac21c4c553f01cf22ae0afbf0acd2"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "d399c754bdea83297877ab49e5f66b257a957a78",
15-
"internalRef": "323860336"
14+
"sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db",
15+
"internalRef": "325949033"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)