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

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] authored May 10, 2021
1 parent da8698f commit 8d2707b
Show file tree
Hide file tree
Showing 27 changed files with 552 additions and 511 deletions.
2 changes: 1 addition & 1 deletion .github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
docker:
digest: sha256:c3eae37a355402067b97cbeb6f5a7d2dd87aecfd064aeb2d2ea0bde40778cf68
image: gcr.io/repo-automation-bots/owlbot-nodejs:latest
digest: sha256:f93bb861d6f12574437bb9aee426b71eafd63b419669ff0ed029f4b7e7162e3f
13 changes: 13 additions & 0 deletions .github/generated-files-bot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
generatedFiles:
- path: '.kokoro/**'
message: '`.kokoro` files are templated and should be updated in [`synthtool`](https://github.com/googleapis/synthtool)'
- path: '.github/CODEOWNERS'
message: 'CODEOWNERS should instead be modified via the `codeowner_team` property in .repo-metadata.json'
- path: '.github/workflows/**'
message: '`.github/workflows` (GitHub Actions) should be updated in [`synthtool`](https://github.com/googleapis/synthtool)'
- path: '.github/generated-files-bot.+(yml|yaml)'
message: '`.github/generated-files-bot.(yml|yaml)` should be updated in [`synthtool`](https://github.com/googleapis/synthtool)'
- path: 'README.md'
message: '`README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml'
- path: 'samples/README.md'
message: '`samples/README.md` is managed by [`synthtool`](https://github.com/googleapis/synthtool). However, a partials file can be used to update the README, e.g.: https://github.com/googleapis/nodejs-storage/blob/master/.readme-partials.yaml'
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- $default-branch
- master
pull_request:
name: ci
jobs:
Expand Down
16 changes: 8 additions & 8 deletions 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 protos/protos.js

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

5 changes: 2 additions & 3 deletions samples/analyze-streaming-annotation-to-storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ async function main(path = 'YOUR_LOCAL_FILE', outputUri = 'PATH_TO_OUTPUT') {
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
// const outputUri = 'Path to output, e.g. gs://path_to_output';

const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
5 changes: 2 additions & 3 deletions samples/analyze-streaming-automl-classification.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ async function main(
// const modelId = 'autoMl model'
// const projectId = 'Your GCP Project'

const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
5 changes: 2 additions & 3 deletions samples/analyze-streaming-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ async function main(path = 'YOUR_LOCAL_FILE') {
* TODO(developer): Uncomment these variables before running the sample.
*/
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
5 changes: 2 additions & 3 deletions samples/analyze-streaming-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ async function main(path = 'YOUR_LOCAL_FILE') {
* TODO(developer): Uncomment these variables before running the sample.
*/
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
5 changes: 2 additions & 3 deletions samples/analyze-streaming-safe-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ async function main(path = 'YOUR_LOCAL_FILE') {
* TODO(developer): Uncomment these variables before running the sample.
*/
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
5 changes: 2 additions & 3 deletions samples/analyze-streaming-shot-change.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ async function main(path = 'YOUR_LOCAL_FILE') {
* TODO(developer): Uncomment these variables before running the sample.
*/
// const path = 'Local file to analyze, e.g. ./my-file.mp4';
const {
StreamingVideoIntelligenceServiceClient,
} = require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const fs = require('fs');

// Instantiates a client
Expand Down
3 changes: 2 additions & 1 deletion samples/system-test/analyze.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const cmd = 'node analyze.js';
const catUrl = 'gs://cloud-samples-data/video/cat.mp4';
const file = 'resources/googlework_short.mp4';
const file2 = 'resources/googlework_short.mp4';
const possibleTexts = /Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;
const possibleTexts =
/Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;

describe('analyze samples', () => {
// analyze_labels_local
Expand Down
3 changes: 2 additions & 1 deletion samples/system-test/analyze.v1p2beta1.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ const cmd = 'node analyze.v1p2beta1.js';
const url = 'gs://cloud-samples-data/video/cat.mp4';
const file1 = 'resources/googlework_short.mp4';
const file2 = 'resources/googlework_short.mp4';
const possibleTexts = /Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;
const possibleTexts =
/Google|GOOGLE|SUR|OMAR|ROTO|Vice President|58oo9|LONDRES|PARIS|METRO|RUE|CARLO/;

describe('analyze v1p2beta1 samples', () => {
it('should detect text in a local file', async () => {
Expand Down
15 changes: 8 additions & 7 deletions src/v1/video_intelligence_service_client.ts
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
15 changes: 8 additions & 7 deletions src/v1beta2/video_intelligence_service_client.ts
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
15 changes: 8 additions & 7 deletions src/v1p1beta1/video_intelligence_service_client.ts
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
15 changes: 8 additions & 7 deletions src/v1p2beta1/video_intelligence_service_client.ts
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
15 changes: 8 additions & 7 deletions src/v1p3beta1/streaming_video_intelligence_service_client.ts
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
15 changes: 8 additions & 7 deletions src/v1p3beta1/video_intelligence_service_client.ts
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
Loading

0 comments on commit 8d2707b

Please sign in to comment.