Skip to content

Commit

Permalink
chore: update v2.12.0 gapic-generator-typescript (#664)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

Committer: @summer-ji-eng
PiperOrigin-RevId: 424244721

Source-Link: googleapis/googleapis@4b6b01f

Source-Link: googleapis/googleapis-gen@8ac83fb
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOGFjODNmYmE2MDZkMDA4YzdlOGE0MmU3ZDU1YjY1OTZlYzRiZTM1ZiJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jan 26, 2022
1 parent 3a8f8b6 commit ee0e765
Show file tree
Hide file tree
Showing 28 changed files with 51 additions and 50 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-videointelligence/.jsdoc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -40,7 +40,7 @@ module.exports = {
includePattern: '\\.js$'
},
templates: {
copyright: 'Copyright 2021 Google LLC',
copyright: 'Copyright 2022 Google LLC',
includeDate: false,
sourceFiles: false,
systemName: '@google-cloud/video-intelligence',
Expand Down
10 changes: 8 additions & 2 deletions packages/google-cloud-videointelligence/linkinator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@
"skip": [
"https://codecov.io/gh/googleapis/",
"www.googleapis.com",
"img.shields.io"
"img.shields.io",
"https://console.cloud.google.com/cloudshell",
"https://support.google.com"
],
"silent": true,
"concurrency": 5
"concurrency": 5,
"retry": true,
"retryErrors": true,
"retryErrorsCount": 5,
"retryErrorsJitter": 3000
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(features) {
Expand Down Expand Up @@ -66,8 +67,7 @@ function main(features) {
// const locationId = 'abc123'

// Imports the Videointelligence library
const {VideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1;
const {VideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1;

// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(features) {
Expand Down Expand Up @@ -65,8 +66,7 @@ function main(features) {
// const locationId = 'abc123'

// Imports the Videointelligence library
const {VideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1beta2;
const {VideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1beta2;

// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(features) {
Expand Down Expand Up @@ -65,8 +66,7 @@ function main(features) {
// const locationId = 'abc123'

// Imports the Videointelligence library
const {VideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p1beta1;
const {VideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1p1beta1;

// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(features) {
Expand Down Expand Up @@ -63,8 +64,7 @@ function main(features) {
// const locationId = 'abc123'

// Imports the Videointelligence library
const {VideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p2beta1;
const {VideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1p2beta1;

// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main() {
Expand All @@ -37,29 +38,23 @@ function main() {
// const inputContent = 'Buffer.from('string')'

// Imports the Videointelligence library
const {StreamingVideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const {StreamingVideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1p3beta1;

// Instantiates a client
const videointelligenceClient = new StreamingVideoIntelligenceServiceClient();

async function callStreamingAnnotateVideo() {
// Construct request
const request = {};
const request = {
};

// Run request
const stream = await videointelligenceClient.streamingAnnotateVideo();
stream.on('data', response => {
console.log(response);
});
stream.on('error', err => {
throw err;
});
stream.on('end', () => {
/* API call completed */
});
stream.on('data', (response) => { console.log(response) });
stream.on('error', (err) => { throw(err) });
stream.on('end', () => { /* API call completed */ });
stream.write(request);
stream.end();
stream.end();
}

callStreamingAnnotateVideo();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.


'use strict';

function main(features) {
Expand Down Expand Up @@ -66,8 +67,7 @@ function main(features) {
// const locationId = 'abc123'

// Imports the Videointelligence library
const {VideoIntelligenceServiceClient} =
require('@google-cloud/video-intelligence').v1p3beta1;
const {VideoIntelligenceServiceClient} = require('@google-cloud/video-intelligence').v1p3beta1;

// Instantiates a client
const videointelligenceClient = new VideoIntelligenceServiceClient();
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-videointelligence/src/v1/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -313,7 +313,7 @@ export class StreamingVideoIntelligenceServiceClient {
*/
streamingAnnotateVideo(options?: CallOptions): gax.CancellableStream {
this.initialize();
return this.innerApiCalls.streamingAnnotateVideo(options);
return this.innerApiCalls.streamingAnnotateVideo(null, options);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -192,7 +192,7 @@ describe('v1p3beta1.StreamingVideoIntelligenceServiceClient', () => {
assert(
(client.innerApiCalls.streamingAnnotateVideo as SinonStub)
.getCall(0)
.calledWithExactly(undefined)
.calledWith(null)
);
assert.deepStrictEqual(
((stream as unknown as PassThrough)._transform as SinonStub).getCall(0)
Expand Down Expand Up @@ -238,7 +238,7 @@ describe('v1p3beta1.StreamingVideoIntelligenceServiceClient', () => {
assert(
(client.innerApiCalls.streamingAnnotateVideo as SinonStub)
.getCall(0)
.calledWithExactly(undefined)
.calledWith(null)
);
assert.deepStrictEqual(
((stream as unknown as PassThrough)._transform as SinonStub).getCall(0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit ee0e765

Please sign in to comment.