Skip to content

Commit

Permalink
build: use gapic-generator-typescript v1.0.7. (#467)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yoshi-automation authored Aug 14, 2020
1 parent 7f7ccd0 commit 0d0bfed
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.longrunning[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.longrunning[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.longrunning[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.longrunning[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,11 @@ export class StreamingVideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.stream[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,11 @@ export class VideoIntelligenceServiceClient {
}
);

const descriptor = this.descriptors.longrunning[methodName] || undefined;
const apiCall = this._gaxModule.createApiCall(
callPromise,
this._defaults[methodName],
this.descriptors.page[methodName] ||
this.descriptors.stream[methodName] ||
this.descriptors.longrunning[methodName]
descriptor
);

this.innerApiCalls[methodName] = apiCall;
Expand Down
6 changes: 3 additions & 3 deletions packages/google-cloud-videointelligence/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/nodejs-video-intelligence.git",
"sha": "dc10593b9f0606be967339bae54051dc8ff0adb1"
"sha": "aeac641779ced9968949b5dd030bd1be0d1f1f6c"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "4f4aa3a03e470f1390758b9d89eb1aa88837a5be",
"internalRef": "320300472"
"sha": "94006b3cb8d2fb44703cf535da15608eed6bf7db",
"internalRef": "325949033"
}
},
{
Expand Down

0 comments on commit 0d0bfed

Please sign in to comment.