Skip to content

Commit 2acce82

Browse files
build: use gapic-generator-typescript v1.0.7. (#467)
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 <noreply@google.com> Source-Date: Mon Aug 10 21:11:13 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: 94006b3cb8d2fb44703cf535da15608eed6bf7db Source-Link: googleapis/googleapis@94006b3
1 parent 148b2c8 commit 2acce82

7 files changed

Lines changed: 15 additions & 21 deletions

packages/google-cloud-videointelligence/src/v1/video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
247247
}
248248
);
249249

250+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
250251
const apiCall = this._gaxModule.createApiCall(
251252
callPromise,
252253
this._defaults[methodName],
253-
this.descriptors.page[methodName] ||
254-
this.descriptors.stream[methodName] ||
255-
this.descriptors.longrunning[methodName]
254+
descriptor
256255
);
257256

258257
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/src/v1beta2/video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
247247
}
248248
);
249249

250+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
250251
const apiCall = this._gaxModule.createApiCall(
251252
callPromise,
252253
this._defaults[methodName],
253-
this.descriptors.page[methodName] ||
254-
this.descriptors.stream[methodName] ||
255-
this.descriptors.longrunning[methodName]
254+
descriptor
256255
);
257256

258257
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/src/v1p1beta1/video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
247247
}
248248
);
249249

250+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
250251
const apiCall = this._gaxModule.createApiCall(
251252
callPromise,
252253
this._defaults[methodName],
253-
this.descriptors.page[methodName] ||
254-
this.descriptors.stream[methodName] ||
255-
this.descriptors.longrunning[methodName]
254+
descriptor
256255
);
257256

258257
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/src/v1p2beta1/video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
247247
}
248248
);
249249

250+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
250251
const apiCall = this._gaxModule.createApiCall(
251252
callPromise,
252253
this._defaults[methodName],
253-
this.descriptors.page[methodName] ||
254-
this.descriptors.stream[methodName] ||
255-
this.descriptors.longrunning[methodName]
254+
descriptor
256255
);
257256

258257
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/src/v1p3beta1/streaming_video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,11 @@ export class StreamingVideoIntelligenceServiceClient {
219219
}
220220
);
221221

222+
const descriptor = this.descriptors.stream[methodName] || undefined;
222223
const apiCall = this._gaxModule.createApiCall(
223224
callPromise,
224225
this._defaults[methodName],
225-
this.descriptors.page[methodName] ||
226-
this.descriptors.stream[methodName] ||
227-
this.descriptors.longrunning[methodName]
226+
descriptor
228227
);
229228

230229
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/src/v1p3beta1/video_intelligence_service_client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
247247
}
248248
);
249249

250+
const descriptor = this.descriptors.longrunning[methodName] || undefined;
250251
const apiCall = this._gaxModule.createApiCall(
251252
callPromise,
252253
this._defaults[methodName],
253-
this.descriptors.page[methodName] ||
254-
this.descriptors.stream[methodName] ||
255-
this.descriptors.longrunning[methodName]
254+
descriptor
256255
);
257256

258257
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-videointelligence/synth.metadata

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/nodejs-video-intelligence.git",
7-
"sha": "dc10593b9f0606be967339bae54051dc8ff0adb1"
7+
"sha": "aeac641779ced9968949b5dd030bd1be0d1f1f6c"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "4f4aa3a03e470f1390758b9d89eb1aa88837a5be",
15-
"internalRef": "320300472"
14+
"sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db",
15+
"internalRef": "325949033"
1616
}
1717
},
1818
{

0 commit comments

Comments
 (0)