diff --git a/packages/google-cloud-node/.jsdoc.js b/packages/google-cloud-node/.jsdoc.js index 16f6a79eee5..d2a7104e0ad 100644 --- a/packages/google-cloud-node/.jsdoc.js +++ b/packages/google-cloud-node/.jsdoc.js @@ -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. @@ -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/speech', diff --git a/packages/google-cloud-node/samples/generated/v1/speech.long_running_recognize.js b/packages/google-cloud-node/samples/generated/v1/speech.long_running_recognize.js index 55d93ced7b0..3020055b3cf 100644 --- a/packages/google-cloud-node/samples/generated/v1/speech.long_running_recognize.js +++ b/packages/google-cloud-node/samples/generated/v1/speech.long_running_recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(config, audio) { diff --git a/packages/google-cloud-node/samples/generated/v1/speech.recognize.js b/packages/google-cloud-node/samples/generated/v1/speech.recognize.js index a89d32aaf50..b9c84c70f9d 100644 --- a/packages/google-cloud-node/samples/generated/v1/speech.recognize.js +++ b/packages/google-cloud-node/samples/generated/v1/speech.recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(config, audio) { diff --git a/packages/google-cloud-node/samples/generated/v1/speech.streaming_recognize.js b/packages/google-cloud-node/samples/generated/v1/speech.streaming_recognize.js index 6cab58621af..7750dfae4f3 100644 --- a/packages/google-cloud-node/samples/generated/v1/speech.streaming_recognize.js +++ b/packages/google-cloud-node/samples/generated/v1/speech.streaming_recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -45,21 +46,16 @@ function main() { async function callStreamingRecognize() { // Construct request - const request = {}; + const request = { + }; // Run request const stream = await speechClient.streamingRecognize(); - 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(); } callStreamingRecognize(); diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_custom_class.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_custom_class.js index ea2089d3151..05424dbcb11 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_custom_class.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_custom_class.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, customClassId, customClass) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_phrase_set.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_phrase_set.js index 01f43fb0162..d61be266017 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_phrase_set.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.create_phrase_set.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent, phraseSetId, phraseSet) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_custom_class.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_custom_class.js index 5d1ba77e57a..4770e9788ce 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_custom_class.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_custom_class.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js index 6293e74ad1e..5bb468097c7 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.delete_phrase_set.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_custom_class.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_custom_class.js index db210c7f615..b62a1bc9084 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_custom_class.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_custom_class.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_phrase_set.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_phrase_set.js index e301252835e..a2c5475273c 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_phrase_set.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.get_phrase_set.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(name) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_custom_classes.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_custom_classes.js index 373cbe12a87..2a908a619b0 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_custom_classes.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_custom_classes.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -59,7 +60,7 @@ function main(parent) { // Run request const iterable = await speechClient.listCustomClassesAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_phrase_set.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_phrase_set.js index 8607d828df1..dd48b7e9b23 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_phrase_set.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.list_phrase_set.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(parent) { @@ -59,7 +60,7 @@ function main(parent) { // Run request const iterable = await speechClient.listPhraseSetAsync(request); for await (const response of iterable) { - console.log(response); + console.log(response); } } diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_custom_class.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_custom_class.js index abeaef82f27..4043e2a5d0e 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_custom_class.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_custom_class.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(customClass) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_phrase_set.js b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_phrase_set.js index 7b2686cc0a9..9ac9fb07597 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_phrase_set.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/adaptation.update_phrase_set.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(phraseSet) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.long_running_recognize.js b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.long_running_recognize.js index ebb03a9c471..2a4d4888b83 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.long_running_recognize.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.long_running_recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(config, audio) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.recognize.js b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.recognize.js index 79daf60be41..e562f9f4d06 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.recognize.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main(config, audio) { diff --git a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.streaming_recognize.js b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.streaming_recognize.js index 4843fc8267b..a14f3ab7e6d 100644 --- a/packages/google-cloud-node/samples/generated/v1p1beta1/speech.streaming_recognize.js +++ b/packages/google-cloud-node/samples/generated/v1p1beta1/speech.streaming_recognize.js @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. + 'use strict'; function main() { @@ -45,21 +46,16 @@ function main() { async function callStreamingRecognize() { // Construct request - const request = {}; + const request = { + }; // Run request const stream = await speechClient.streamingRecognize(); - 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(); } callStreamingRecognize(); diff --git a/packages/google-cloud-node/src/v1/index.ts b/packages/google-cloud-node/src/v1/index.ts index b96f5883a93..9e550a1acbb 100644 --- a/packages/google-cloud-node/src/v1/index.ts +++ b/packages/google-cloud-node/src/v1/index.ts @@ -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. diff --git a/packages/google-cloud-node/src/v1/speech_client.ts b/packages/google-cloud-node/src/v1/speech_client.ts index aeb1fedfab0..594a345c986 100644 --- a/packages/google-cloud-node/src/v1/speech_client.ts +++ b/packages/google-cloud-node/src/v1/speech_client.ts @@ -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. diff --git a/packages/google-cloud-node/src/v1p1beta1/adaptation_client.ts b/packages/google-cloud-node/src/v1p1beta1/adaptation_client.ts index 336a8894605..bc8a5b4fc04 100644 --- a/packages/google-cloud-node/src/v1p1beta1/adaptation_client.ts +++ b/packages/google-cloud-node/src/v1p1beta1/adaptation_client.ts @@ -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. diff --git a/packages/google-cloud-node/src/v1p1beta1/index.ts b/packages/google-cloud-node/src/v1p1beta1/index.ts index ae3ec95d395..5b4cfbf40e8 100644 --- a/packages/google-cloud-node/src/v1p1beta1/index.ts +++ b/packages/google-cloud-node/src/v1p1beta1/index.ts @@ -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. diff --git a/packages/google-cloud-node/src/v1p1beta1/speech_client.ts b/packages/google-cloud-node/src/v1p1beta1/speech_client.ts index 175aee15df8..0e64178015f 100644 --- a/packages/google-cloud-node/src/v1p1beta1/speech_client.ts +++ b/packages/google-cloud-node/src/v1p1beta1/speech_client.ts @@ -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. diff --git a/packages/google-cloud-node/system-test/fixtures/sample/src/index.js b/packages/google-cloud-node/system-test/fixtures/sample/src/index.js index 6714780969c..e5bfc6e17d4 100644 --- a/packages/google-cloud-node/system-test/fixtures/sample/src/index.js +++ b/packages/google-cloud-node/system-test/fixtures/sample/src/index.js @@ -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. diff --git a/packages/google-cloud-node/system-test/fixtures/sample/src/index.ts b/packages/google-cloud-node/system-test/fixtures/sample/src/index.ts index c3cc59e1ede..ed700135d41 100644 --- a/packages/google-cloud-node/system-test/fixtures/sample/src/index.ts +++ b/packages/google-cloud-node/system-test/fixtures/sample/src/index.ts @@ -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. diff --git a/packages/google-cloud-node/system-test/install.ts b/packages/google-cloud-node/system-test/install.ts index d2d61c0396f..6dd1eaadafa 100644 --- a/packages/google-cloud-node/system-test/install.ts +++ b/packages/google-cloud-node/system-test/install.ts @@ -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. diff --git a/packages/google-cloud-node/test/gapic_adaptation_v1p1beta1.ts b/packages/google-cloud-node/test/gapic_adaptation_v1p1beta1.ts index 584721fc7ff..24e35f57ca7 100644 --- a/packages/google-cloud-node/test/gapic_adaptation_v1p1beta1.ts +++ b/packages/google-cloud-node/test/gapic_adaptation_v1p1beta1.ts @@ -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. diff --git a/packages/google-cloud-node/test/gapic_speech_v1.ts b/packages/google-cloud-node/test/gapic_speech_v1.ts index 80fafbfce15..43bafab414b 100644 --- a/packages/google-cloud-node/test/gapic_speech_v1.ts +++ b/packages/google-cloud-node/test/gapic_speech_v1.ts @@ -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. diff --git a/packages/google-cloud-node/test/gapic_speech_v1p1beta1.ts b/packages/google-cloud-node/test/gapic_speech_v1p1beta1.ts index edb7d2b82d3..e80c6a32f3c 100644 --- a/packages/google-cloud-node/test/gapic_speech_v1p1beta1.ts +++ b/packages/google-cloud-node/test/gapic_speech_v1p1beta1.ts @@ -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.