Skip to content

Commit

Permalink
chore: new owl bot post processor docker image (#546)
Browse files Browse the repository at this point in the history
gcr.io/repo-automation-bots/owlbot-nodejs:latest@sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
  • Loading branch information
gcf-owl-bot[bot] committed May 10, 2021
1 parent f6d0d43 commit 6ca5f9b
Show file tree
Hide file tree
Showing 16 changed files with 521 additions and 489 deletions.
16 changes: 8 additions & 8 deletions packages/google-cloud-videointelligence/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions packages/google-cloud-videointelligence/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export class VideoIntelligenceServiceClient {
const videoIntelligenceServiceStubMethods = ['annotateVideo'];
for (const methodName of videoIntelligenceServiceStubMethods) {
const callPromise = this.videoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export class VideoIntelligenceServiceClient {
const videoIntelligenceServiceStubMethods = ['annotateVideo'];
for (const methodName of videoIntelligenceServiceStubMethods) {
const callPromise = this.videoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export class VideoIntelligenceServiceClient {
const videoIntelligenceServiceStubMethods = ['annotateVideo'];
for (const methodName of videoIntelligenceServiceStubMethods) {
const callPromise = this.videoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export class VideoIntelligenceServiceClient {
const videoIntelligenceServiceStubMethods = ['annotateVideo'];
for (const methodName of videoIntelligenceServiceStubMethods) {
const callPromise = this.videoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,14 @@ export class StreamingVideoIntelligenceServiceClient {
];
for (const methodName of streamingVideoIntelligenceServiceStubMethods) {
const callPromise = this.streamingVideoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,13 +240,14 @@ export class VideoIntelligenceServiceClient {
const videoIntelligenceServiceStubMethods = ['annotateVideo'];
for (const methodName of videoIntelligenceServiceStubMethods) {
const callPromise = this.videoIntelligenceServiceStub.then(
stub => (...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
stub =>
(...args: Array<{}>) => {
if (this._terminated) {
return Promise.reject('The client has already been closed.');
}
const func = stub[methodName];
return func.apply(stub, args);
},
(err: Error | null | undefined) => () => {
throw err;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
const videointelligence = require('@google-cloud/video-intelligence');

function main() {
const videoIntelligenceServiceClient = new videointelligence.VideoIntelligenceServiceClient();
const videoIntelligenceServiceClient =
new videointelligence.VideoIntelligenceServiceClient();
}

main();
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ const videoIntelligence = require('../src');

describe('VideoIntelligenceServiceSmokeTest', () => {
it('successfully makes a call to the service', done => {
const client = new videoIntelligence.v1p1beta1.VideoIntelligenceServiceClient(
{
const client =
new videoIntelligence.v1p1beta1.VideoIntelligenceServiceClient({
// optional auth parameters.
}
);
});

const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
const featuresElement = 'LABEL_DETECTION';
Expand Down Expand Up @@ -64,11 +63,10 @@ describe('VideoIntelligenceServiceSmokeTest', () => {
});

it('successfully makes a call to the service', done => {
const client = new videoIntelligence.v1p1beta1.VideoIntelligenceServiceClient(
{
const client =
new videoIntelligence.v1p1beta1.VideoIntelligenceServiceClient({
// optional auth parameters.
}
);
});

const inputUri = 'gs://cloud-samples-data/video/cat.mp4';
const featuresElement = 'LABEL_DETECTION';
Expand Down
Loading

0 comments on commit 6ca5f9b

Please sign in to comment.