Skip to content

Commit 276d104

Browse files
chore(deps): upgrade gapic-generator-java to 2.4.1 (#242)
* chore(deps): upgrade gapic-generator-java to 2.4.1 PiperOrigin-RevId: 422607515 Source-Link: googleapis/googleapis@ba2ffd6 Source-Link: googleapis/googleapis-gen@73ba4ad Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzNiYTRhZGQyMzlhNjE5ZGE1NjdmZmJkNGU1NzMwZmRkNmRlMDRkMyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Steffany Brown <[email protected]>
1 parent 96fdd53 commit 276d104

26 files changed

+42
-51
lines changed

packages/google-cloud-bigquery-storage/.jsdoc.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ module.exports = {
4040
includePattern: '\\.js$'
4141
},
4242
templates: {
43-
copyright: 'Copyright 2021 Google LLC',
43+
copyright: 'Copyright 2022 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
4646
systemName: '@google-cloud/bigquery-storage',

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_read.create_read_session.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(parent, readSession) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_read.read_rows.js

+4-9
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(readStream) {
@@ -44,15 +45,9 @@ function main(readStream) {
4445

4546
// Run request
4647
const stream = await storageClient.readRows(request);
47-
stream.on('data', response => {
48-
console.log(response);
49-
});
50-
stream.on('error', err => {
51-
throw err;
52-
});
53-
stream.on('end', () => {
54-
/* API call completed */
55-
});
48+
stream.on('data', (response) => { console.log(response) });
49+
stream.on('error', (err) => { throw(err) });
50+
stream.on('end', () => { /* API call completed */ });
5651
}
5752

5853
callReadRows();

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_read.split_read_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(name) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.append_rows.js

+5-10
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(writeStream) {
@@ -61,17 +62,11 @@ function main(writeStream) {
6162

6263
// Run request
6364
const stream = await storageClient.appendRows();
64-
stream.on('data', response => {
65-
console.log(response);
66-
});
67-
stream.on('error', err => {
68-
throw err;
69-
});
70-
stream.on('end', () => {
71-
/* API call completed */
72-
});
65+
stream.on('data', (response) => { console.log(response) });
66+
stream.on('error', (err) => { throw(err) });
67+
stream.on('end', () => { /* API call completed */ });
7368
stream.write(request);
74-
stream.end();
69+
stream.end();
7570
}
7671

7772
callAppendRows();

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.batch_commit_write_streams.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(parent, writeStreams) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.create_write_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(parent, writeStream) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.finalize_write_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(name) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.flush_rows.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(writeStream) {

packages/google-cloud-bigquery-storage/samples/generated/v1/big_query_write.get_write_stream.js

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(name) {

packages/google-cloud-bigquery-storage/samples/generated/v1beta1/big_query_storage.batch_create_read_session_streams.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(session, requestedStreams) {
@@ -32,8 +33,7 @@ function main(session, requestedStreams) {
3233
// const requestedStreams = 1234
3334

3435
// Imports the Storage library
35-
const {BigQueryStorageClient} =
36-
require('@google-cloud/bigquery-storage').v1beta1;
36+
const {BigQueryStorageClient} = require('@google-cloud/bigquery-storage').v1beta1;
3737

3838
// Instantiates a client
3939
const storageClient = new BigQueryStorageClient();

packages/google-cloud-bigquery-storage/samples/generated/v1beta1/big_query_storage.create_read_session.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(tableReference, parent) {
@@ -57,8 +58,7 @@ function main(tableReference, parent) {
5758
// const shardingStrategy = {}
5859

5960
// Imports the Storage library
60-
const {BigQueryStorageClient} =
61-
require('@google-cloud/bigquery-storage').v1beta1;
61+
const {BigQueryStorageClient} = require('@google-cloud/bigquery-storage').v1beta1;
6262

6363
// Instantiates a client
6464
const storageClient = new BigQueryStorageClient();

packages/google-cloud-bigquery-storage/samples/generated/v1beta1/big_query_storage.finalize_stream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(stream) {
@@ -25,8 +26,7 @@ function main(stream) {
2526
// const stream = {}
2627

2728
// Imports the Storage library
28-
const {BigQueryStorageClient} =
29-
require('@google-cloud/bigquery-storage').v1beta1;
29+
const {BigQueryStorageClient} = require('@google-cloud/bigquery-storage').v1beta1;
3030

3131
// Instantiates a client
3232
const storageClient = new BigQueryStorageClient();

packages/google-cloud-bigquery-storage/samples/generated/v1beta1/big_query_storage.read_rows.js

+5-11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(readPosition) {
@@ -27,8 +28,7 @@ function main(readPosition) {
2728
// const readPosition = {}
2829

2930
// Imports the Storage library
30-
const {BigQueryStorageClient} =
31-
require('@google-cloud/bigquery-storage').v1beta1;
31+
const {BigQueryStorageClient} = require('@google-cloud/bigquery-storage').v1beta1;
3232

3333
// Instantiates a client
3434
const storageClient = new BigQueryStorageClient();
@@ -41,15 +41,9 @@ function main(readPosition) {
4141

4242
// Run request
4343
const stream = await storageClient.readRows(request);
44-
stream.on('data', response => {
45-
console.log(response);
46-
});
47-
stream.on('error', err => {
48-
throw err;
49-
});
50-
stream.on('end', () => {
51-
/* API call completed */
52-
});
44+
stream.on('data', (response) => { console.log(response) });
45+
stream.on('error', (err) => { throw(err) });
46+
stream.on('end', () => { /* API call completed */ });
5347
}
5448

5549
callReadRows();

packages/google-cloud-bigquery-storage/samples/generated/v1beta1/big_query_storage.split_read_stream.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15+
1516
'use strict';
1617

1718
function main(originalStream) {
@@ -35,8 +36,7 @@ function main(originalStream) {
3536
// const fraction = 1234
3637

3738
// Imports the Storage library
38-
const {BigQueryStorageClient} =
39-
require('@google-cloud/bigquery-storage').v1beta1;
39+
const {BigQueryStorageClient} = require('@google-cloud/bigquery-storage').v1beta1;
4040

4141
// Instantiates a client
4242
const storageClient = new BigQueryStorageClient();

packages/google-cloud-bigquery-storage/src/v1/big_query_read_client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/src/v1/big_query_write_client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/src/v1/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/src/v1beta1/big_query_storage_client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/src/v1beta1/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/system-test/fixtures/sample/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/system-test/fixtures/sample/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/system-test/install.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/test/gapic_big_query_read_v1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/test/gapic_big_query_storage_v1beta1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-bigquery-storage/test/gapic_big_query_write_v1.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)