From 5c5729c2cab89e7cf6c758c2ebe2424be4c2457c Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Tue, 16 Jun 2026 10:55:39 +0000 Subject: [PATCH 1/2] chore: handwritten migration for bigquery-storage --- librarian.yaml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/librarian.yaml b/librarian.yaml index 00b71e76dce..6419a0f856a 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -21,12 +21,10 @@ sources: default: keep: - librarian.js - - package.json - samples/package.json - samples/quickstart.js - samples/test/quickstart.js - samples/README.md - - README.md - CHANGELOG.md - .readme-partials.yaml output: packages @@ -421,6 +419,17 @@ libraries: copyright_year: "2026" nodejs: default_version: v1 + - name: google-cloud-bigquery-storage + output: handwritten/bigquery-storage + apis: + - path: google/cloud/bigquery/storage/v1 + - path: google/cloud/bigquery/storage/v1alpha + - path: google/cloud/bigquery/storage/v1beta + - path: google/cloud/bigquery/storage/v1beta1 + - path: google/cloud/bigquery/storage/v1beta2 + copyright_year: "2026" + nodejs: + default_version: v1 - name: google-cloud-billing version: 5.1.2 apis: From a8298dfe71f22b33007669d4acccbd37c5b32f89 Mon Sep 17 00:00:00 2001 From: Jon Skeet Date: Tue, 16 Jun 2026 11:17:25 +0000 Subject: [PATCH 2/2] prototype of bigquery-storage migration --- handwritten/bigquery-storage/.eslintignore | 7 - handwritten/bigquery-storage/.eslintrc.json | 3 - handwritten/bigquery-storage/.mocharc.js | 29 ---- handwritten/bigquery-storage/.nycrc | 2 +- handwritten/bigquery-storage/.prettierignore | 6 - handwritten/bigquery-storage/.prettierrc.js | 17 -- .../bigquery-storage/.repo-metadata.json | 30 ++-- handwritten/bigquery-storage/README.md | 149 +++++++++++++++++- handwritten/bigquery-storage/package.json | 82 ++++------ ...rvice.batch_create_metastore_partitions.js | 2 +- ...rvice.batch_delete_metastore_partitions.js | 2 +- ...rvice.batch_update_metastore_partitions.js | 2 +- ...ition_service.list_metastore_partitions.js | 2 +- ...ion_service.stream_metastore_partitions.js | 2 +- ...rvice.batch_create_metastore_partitions.js | 2 +- ...rvice.batch_delete_metastore_partitions.js | 2 +- ...rvice.batch_update_metastore_partitions.js | 2 +- ...ition_service.list_metastore_partitions.js | 2 +- ...ion_service.stream_metastore_partitions.js | 2 +- .../big_query_read.create_read_session.js | 2 +- .../v1beta2/big_query_read.read_rows.js | 2 +- .../big_query_read.split_read_stream.js | 2 +- .../v1beta2/big_query_write.append_rows.js | 2 +- ..._query_write.batch_commit_write_streams.js | 2 +- .../big_query_write.create_write_stream.js | 2 +- .../big_query_write.finalize_write_stream.js | 2 +- .../v1beta2/big_query_write.flush_rows.js | 2 +- .../big_query_write.get_write_stream.js | 2 +- .../bigquery-storage/src/adapt/index.ts | 2 +- .../bigquery-storage/src/adapt/options.ts | 2 +- .../bigquery-storage/src/adapt/proto.ts | 2 +- .../src/adapt/proto_mappings.ts | 2 +- .../bigquery-storage/src/adapt/schema.ts | 2 +- .../src/adapt/schema_mappings.ts | 2 +- handwritten/bigquery-storage/src/index.ts | 56 +------ .../src/managedwriter/encoder.ts | 2 +- .../src/managedwriter/error.ts | 2 +- .../src/managedwriter/index.ts | 2 +- .../src/managedwriter/json_writer.ts | 2 +- .../src/managedwriter/pending_write.ts | 2 +- .../src/managedwriter/stream_connection.ts | 2 +- .../src/managedwriter/stream_types.ts | 2 +- .../src/managedwriter/writer.ts | 2 +- .../src/managedwriter/writer_client.ts | 2 +- .../bigquery-storage/src/protobuf/index.ts | 2 +- .../src/reader/arrow_reader.ts | 2 +- .../src/reader/arrow_transform.ts | 2 +- .../src/reader/data_format.ts | 2 +- .../bigquery-storage/src/reader/index.ts | 2 +- .../src/reader/read_client.ts | 2 +- .../src/reader/read_session.ts | 2 +- .../src/reader/read_stream.ts | 2 +- .../src/reader/table_reader.ts | 2 +- .../bigquery-storage/src/util/logger.ts | 2 +- .../src/v1alpha/gapic_metadata.json | 2 +- .../metastore_partition_service_client.ts | 2 +- .../src/v1beta/gapic_metadata.json | 2 +- .../metastore_partition_service_client.ts | 2 +- .../src/v1beta2/big_query_read_client.ts | 2 +- .../src/v1beta2/big_query_write_client.ts | 2 +- .../src/v1beta2/gapic_metadata.json | 2 +- .../bigquery-storage/test/adapt/proto.ts | 2 +- .../bigquery-storage/test/adapt/schema.ts | 2 +- .../test/reader/arrow_transform.ts | 2 +- handwritten/bigquery-storage/tsconfig.json | 2 - 65 files changed, 257 insertions(+), 234 deletions(-) delete mode 100644 handwritten/bigquery-storage/.eslintignore delete mode 100644 handwritten/bigquery-storage/.eslintrc.json delete mode 100644 handwritten/bigquery-storage/.mocharc.js delete mode 100644 handwritten/bigquery-storage/.prettierignore delete mode 100644 handwritten/bigquery-storage/.prettierrc.js diff --git a/handwritten/bigquery-storage/.eslintignore b/handwritten/bigquery-storage/.eslintignore deleted file mode 100644 index ea5b04aebe6..00000000000 --- a/handwritten/bigquery-storage/.eslintignore +++ /dev/null @@ -1,7 +0,0 @@ -**/node_modules -**/coverage -test/fixtures -build/ -docs/ -protos/ -samples/generated/ diff --git a/handwritten/bigquery-storage/.eslintrc.json b/handwritten/bigquery-storage/.eslintrc.json deleted file mode 100644 index 78215349546..00000000000 --- a/handwritten/bigquery-storage/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "./node_modules/gts" -} diff --git a/handwritten/bigquery-storage/.mocharc.js b/handwritten/bigquery-storage/.mocharc.js deleted file mode 100644 index 2431859019f..00000000000 --- a/handwritten/bigquery-storage/.mocharc.js +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -const config = { - "enable-source-maps": true, - "throw-deprecation": true, - "timeout": 10000, - "recursive": true -} -if (process.env.MOCHA_THROW_DEPRECATION === 'false') { - delete config['throw-deprecation']; -} -if (process.env.MOCHA_REPORTER) { - config.reporter = process.env.MOCHA_REPORTER; -} -if (process.env.MOCHA_REPORTER_OUTPUT) { - config['reporter-option'] = `output=${process.env.MOCHA_REPORTER_OUTPUT}`; -} -module.exports = config diff --git a/handwritten/bigquery-storage/.nycrc b/handwritten/bigquery-storage/.nycrc index b18d5472b62..81a95fc94b0 100644 --- a/handwritten/bigquery-storage/.nycrc +++ b/handwritten/bigquery-storage/.nycrc @@ -21,4 +21,4 @@ ], "exclude-after-remap": false, "all": true -} +} \ No newline at end of file diff --git a/handwritten/bigquery-storage/.prettierignore b/handwritten/bigquery-storage/.prettierignore deleted file mode 100644 index 9340ad9b86d..00000000000 --- a/handwritten/bigquery-storage/.prettierignore +++ /dev/null @@ -1,6 +0,0 @@ -**/node_modules -**/coverage -test/fixtures -build/ -docs/ -protos/ diff --git a/handwritten/bigquery-storage/.prettierrc.js b/handwritten/bigquery-storage/.prettierrc.js deleted file mode 100644 index d2eddc2ed89..00000000000 --- a/handwritten/bigquery-storage/.prettierrc.js +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// https://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -module.exports = { - ...require('gts/.prettierrc.json') -} diff --git a/handwritten/bigquery-storage/.repo-metadata.json b/handwritten/bigquery-storage/.repo-metadata.json index 9efcadddc93..15ff379ca59 100644 --- a/handwritten/bigquery-storage/.repo-metadata.json +++ b/handwritten/bigquery-storage/.repo-metadata.json @@ -1,17 +1,15 @@ { - "distribution_name": "@google-cloud/bigquery-storage", - "release_level": "stable", - "product_documentation": "https://cloud.google.com/bigquery/docs/reference/storage", - "repo": "googleapis/google-cloud-node", - "default_version": "v1", - "language": "nodejs", - "requires_billing": true, - "issue_tracker": "https://b.corp.google.com/savedsearches/559654", - "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-storage/latest", - "name": "bigquerystorage", - "name_pretty": "Google BigQuery Storage", - "api_id": "bigquerystorage.googleapis.com", - "codeowner_team": "@googleapis/bigquery-team @googleapis/cloud-sdk-nodejs-team", - "api_shortname": "bigquerystorage", - "library_type": "GAPIC_AUTO" -} + "api_id": "bigquerystorage.googleapis.com", + "api_shortname": "bigquerystorage", + "client_documentation": "https://cloud.google.com/nodejs/docs/reference/bigquery-storage/latest", + "default_version": "v1", + "distribution_name": "@google-cloud/bigquery-storage", + "issue_tracker": "https://issuetracker.google.com/issues/new?component=187149&template=1162659", + "language": "nodejs", + "library_type": "GAPIC_AUTO", + "name": "bigquerystorage", + "name_pretty": "BigQuery Storage", + "product_documentation": "https://cloud.google.com/bigquery/docs", + "release_level": "stable", + "repo": "googleapis/google-cloud-node" +} \ No newline at end of file diff --git a/handwritten/bigquery-storage/README.md b/handwritten/bigquery-storage/README.md index bfe59af0b8f..c11610148a6 100644 --- a/handwritten/bigquery-storage/README.md +++ b/handwritten/bigquery-storage/README.md @@ -4,13 +4,121 @@ # [BigQuery Storage API: Nodejs Client][homepage] -[//]: # "releaseLevel" +This library is considered to be **stable**. The code surface will not change in backwards-incompatible ways +unless absolutely necessary (e.g. because of critical security issues) or with +an extensive deprecation period. Issues and requests against **stable** libraries +are addressed with the highest priority [![npm version](https://img.shields.io/npm/v/@google-cloud/bigquery-storage.svg)](https://www.npmjs.org/package/@google-cloud/bigquery-storage) BigQuery Storage API client for Node.js -[//]: # "partials.introduction" +> Node.js idiomatic client for [BigQuery Storage](https://cloud.google.com/bigquery). + +The BigQuery Storage product is divided into two major APIs: Write and Read API. +BigQuery Storage API does not provide functionality related to managing BigQuery +resources such as datasets, jobs, or tables. + +The BigQuery Storage Write API is a unified data-ingestion API for BigQuery. +It combines streaming ingestion and batch loading into a single high-performance API. +You can use the Storage Write API to stream records into BigQuery in real time or +to batch process an arbitrarily large number of records and commit them in a single +atomic operation. + +Read more in our [introduction guide](https://cloud.google.com/bigquery/docs/write-api). + +Using a system provided default stream, this code sample demonstrates using the +schema of a destination stream/table to construct a writer, and send several +batches of row data to the table. + +```javascript +const {adapt, managedwriter} = require('@google-cloud/bigquery-storage'); +const {WriterClient, JSONWriter} = managedwriter; + +async function appendJSONRowsDefaultStream() { + const projectId = 'my_project'; + const datasetId = 'my_dataset'; + const tableId = 'my_table'; + + const destinationTable = `projects/${projectId}/datasets/${datasetId}/tables/${tableId}`; + const writeClient = new WriterClient({projectId}); + + try { + const writeStream = await writeClient.getWriteStream({ + streamId: `${destinationTable}/streams/_default`, + view: 'FULL' + }); + const protoDescriptor = adapt.convertStorageSchemaToProto2Descriptor( + writeStream.tableSchema, + 'root' + ); + + const connection = await writeClient.createStreamConnection({ + streamId: managedwriter.DefaultStream, + destinationTable, + }); + const streamId = connection.getStreamId(); + + const writer = new JSONWriter({ + streamId, + connection, + protoDescriptor, + }); + + let rows = []; + const pendingWrites = []; + + // Row 1 + let row = { + row_num: 1, + customer_name: 'Octavia', + }; + rows.push(row); + + // Row 2 + row = { + row_num: 2, + customer_name: 'Turing', + }; + rows.push(row); + + // Send batch. + let pw = writer.appendRows(rows); + pendingWrites.push(pw); + + rows = []; + + // Row 3 + row = { + row_num: 3, + customer_name: 'Bell', + }; + rows.push(row); + + // Send batch. + pw = writer.appendRows(rows); + pendingWrites.push(pw); + + const results = await Promise.all( + pendingWrites.map(pw => pw.getResult()) + ); + console.log('Write results:', results); + } catch (err) { + console.log(err); + } finally { + writeClient.close(); + } +} +``` + +The BigQuery Storage Read API provides fast access to BigQuery-managed storage by +using an gRPC based protocol. When you use the Storage Read API, structured data is +sent over the wire in a binary serialization format. This allows for additional +parallelism among multiple consumers for a set of results. + +Read more how to [use the BigQuery Storage Read API](https://cloud.google.com/bigquery/docs/reference/storage). + +See sample code on the [Quickstart section](#quickstart). A comprehensive list of changes in each version may be found in [the CHANGELOG][homepage_changelog]. @@ -53,7 +161,42 @@ npm install @google-cloud/bigquery-storage Samples are in the [`samples/`][homepage_samples] directory. Each sample's `README.md` has instructions for running its sample. -[//]: # "samples" +| Sample | Source Code | +| --------------------------- | --------------------------------- | +| create read session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_read.create_read_session.js) | +| read rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_read.read_rows.js) | +| split read stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_read.split_read_stream.js) | +| append rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.append_rows.js) | +| batch commit write streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.batch_commit_write_streams.js) | +| create write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.create_write_stream.js) | +| finalize write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.finalize_write_stream.js) | +| flush rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.flush_rows.js) | +| get write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1/big_query_write.get_write_stream.js) | +| batch create metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_create_metastore_partitions.js) | +| batch delete metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_delete_metastore_partitions.js) | +| batch update metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_update_metastore_partitions.js) | +| list metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.list_metastore_partitions.js) | +| stream metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.stream_metastore_partitions.js) | +| batch create metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_create_metastore_partitions.js) | +| batch delete metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_delete_metastore_partitions.js) | +| batch update metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_update_metastore_partitions.js) | +| list metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta/metastore_partition_service.list_metastore_partitions.js) | +| stream metastore partitions | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta/metastore_partition_service.stream_metastore_partitions.js) | +| batch create read session streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta1/big_query_storage.batch_create_read_session_streams.js) | +| create read session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta1/big_query_storage.create_read_session.js) | +| finalize stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta1/big_query_storage.finalize_stream.js) | +| read rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta1/big_query_storage.read_rows.js) | +| split read stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta1/big_query_storage.split_read_stream.js) | +| create read session | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_read.create_read_session.js) | +| read rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_read.read_rows.js) | +| split read stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_read.split_read_stream.js) | +| append rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.append_rows.js) | +| batch commit write streams | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.batch_commit_write_streams.js) | +| create write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.create_write_stream.js) | +| finalize write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.finalize_write_stream.js) | +| flush rows | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.flush_rows.js) | +| get write stream | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/bigquery-storage/samples/generated/v1beta2/big_query_write.get_write_stream.js) | + ## Supported Node.js Versions diff --git a/handwritten/bigquery-storage/package.json b/handwritten/bigquery-storage/package.json index 7ba1612d2aa..1c9f7ed5f04 100644 --- a/handwritten/bigquery-storage/package.json +++ b/handwritten/bigquery-storage/package.json @@ -1,73 +1,59 @@ { "name": "@google-cloud/bigquery-storage", - "version": "5.1.1", - "description": "Client for the BigQuery Storage API", - "repository": { - "type": "git", - "directory": "handwritten/bigquery-storage", - "url": "https://github.com/googleapis/google-cloud-node.git" - }, + "version": "0.1.0", + "description": "Storage client for Node.js", + "repository": "googleapis/nodejs-storage", "license": "Apache-2.0", "author": "Google LLC", + "main": "build/src/index.js", "files": [ "build/src", "build/protos" ], - "main": "build/src/index.js", + "keywords": [ + "google apis client", + "google api client", + "google apis", + "google api", + "google", + "google cloud platform", + "google cloud", + "cloud", + "google storage", + "storage", + "big query read", + "big query write" + ], "scripts": { "clean": "gts clean", - "compile": "tsc -p . && cp -r protos build/", + "compile": "tsc -p . && cp -r protos build/ && minifyProtoJson", "compile-protos": "compileProtos src", "docs": "jsdoc -c .jsdoc.js", "fix": "gts fix", - "prelint": "cd samples; npm link ../; npm install", "lint": "gts check", "prepare": "npm run compile-protos && npm run compile", - "system-test": "c8 mocha build/system-test", - "test": "c8 mocha build/test", - "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", - "precompile": "gts clean" + "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test", + "test": "c8 mocha --config ../../.mocharc.cjs build/test" }, "dependencies": { - "@google-cloud/paginator": "^6.0.0", - "@google-cloud/precise-date": "^5.0.0", - "apache-arrow": "^21.0.0", - "core-js": "^3.41.0", - "extend": "^3.0.2", - "google-auth-library": "^10.0.0", - "google-gax": "^5.0.0", - "long": "^5.2.0", - "protobufjs": "^7.5.5" - }, - "peerDependencies": { - "protobufjs": "~7.5.5" + "google-gax": "^5.1.1-rc.1" }, "devDependencies": { - "@google-cloud/bigquery": "^8.0.0", - "@types/extend": "^3.0.4", "@types/mocha": "^10.0.10", - "@types/node": "^22.13.14", - "@types/sinon": "^21.0.0", - "avsc": "^5.7.9", + "@types/node": "^22.18.12", + "@types/sinon": "^20.0.0", "c8": "^10.1.3", - "gapic-tools": "^1.0.1", + "gapic-tools": "^1.0.3", "gts": "^6.0.2", - "jsdoc": "^4.0.4", - "jsdoc-fresh": "^4.0.0", - "jsdoc-region-tag": "^3.0.0", - "mocha": "^11.1.0", - "nise": "^6.1.1", - "null-loader": "^4.0.1", - "pack-n-play": "^4.0.0", - "path-to-regexp": "^8.2.0", - "sinon": "21.0.3", - "ts-loader": "^9.5.2", - "typescript": "^5.8.2", - "webpack": "^5.98.0", - "webpack-cli": "^6.0.1" + "jsdoc": "^4.0.5", + "jsdoc-fresh": "^5.0.2", + "jsdoc-region-tag": "^4.0.1", + "mocha": "^11.7.4", + "pack-n-play": "^4.2.1", + "typescript": "5.8.3", + "sinon": "^20.0.0" }, "engines": { - "node": ">=18" - }, - "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/handwritten/bigquery-storage" + "node": ">=v18" + } } diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_create_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_create_metastore_partitions.js index 912f110b99d..31fd362fe1e 100644 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_create_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_create_metastore_partitions.js @@ -56,7 +56,7 @@ function main(parent, requests) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1alpha; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1alpha; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_delete_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_delete_metastore_partitions.js index 89d8e0efb0d..daee43dd3aa 100644 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_delete_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_delete_metastore_partitions.js @@ -49,7 +49,7 @@ function main(parent, partitionValues) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1alpha; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1alpha; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_update_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_update_metastore_partitions.js index d330a5dcb0b..9c5213c8766 100644 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_update_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.batch_update_metastore_partitions.js @@ -48,7 +48,7 @@ function main(parent, requests) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1alpha; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1alpha; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.list_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.list_metastore_partitions.js index d076f31e69f..c2450d1ae3b 100644 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.list_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.list_metastore_partitions.js @@ -56,7 +56,7 @@ function main(parent) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1alpha; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1alpha; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.stream_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.stream_metastore_partitions.js index 49ad7f13cc6..e0bc16df0c3 100644 --- a/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.stream_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1alpha/metastore_partition_service.stream_metastore_partitions.js @@ -51,7 +51,7 @@ function main(parent) { // const skipExistingPartitions = true // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1alpha; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1alpha; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_create_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_create_metastore_partitions.js index e3360292d0f..1cc059d9601 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_create_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_create_metastore_partitions.js @@ -56,7 +56,7 @@ function main(parent, requests) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1beta; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1beta; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_delete_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_delete_metastore_partitions.js index 77c7e30cac8..dc913c6cc28 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_delete_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_delete_metastore_partitions.js @@ -49,7 +49,7 @@ function main(parent, partitionValues) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1beta; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1beta; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_update_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_update_metastore_partitions.js index 86cb412b34f..fee9e9a2a05 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_update_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.batch_update_metastore_partitions.js @@ -48,7 +48,7 @@ function main(parent, requests) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1beta; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1beta; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.list_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.list_metastore_partitions.js index 7c2ed318f04..26bff9bad38 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.list_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.list_metastore_partitions.js @@ -57,7 +57,7 @@ function main(parent) { // const traceId = 'abc123' // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1beta; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1beta; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.stream_metastore_partitions.js b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.stream_metastore_partitions.js index 74d9060c4c0..ccc86aec981 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.stream_metastore_partitions.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta/metastore_partition_service.stream_metastore_partitions.js @@ -51,7 +51,7 @@ function main(parent) { // const skipExistingPartitions = true // Imports the Storage library - const {MetastorePartitionServiceClient} = require('@google-cloud/storage').v1beta; + const {MetastorePartitionServiceClient} = require('@google-cloud/bigquery-storage').v1beta; // Instantiates a client const storageClient = new MetastorePartitionServiceClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.create_read_session.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.create_read_session.js index bbf8b2a7ab2..b312a6e679b 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.create_read_session.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.create_read_session.js @@ -49,7 +49,7 @@ function main(parent, readSession) { // const maxStreamCount = 1234 // Imports the Storage library - const {BigQueryReadClient} = require('storage').v1beta2; + const {BigQueryReadClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryReadClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.read_rows.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.read_rows.js index 51de056a378..4db4983a47e 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.read_rows.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.read_rows.js @@ -40,7 +40,7 @@ function main(readStream) { // const offset = 1234 // Imports the Storage library - const {BigQueryReadClient} = require('storage').v1beta2; + const {BigQueryReadClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryReadClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.split_read_stream.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.split_read_stream.js index 409453802a7..47b36e4b1fc 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.split_read_stream.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_read.split_read_stream.js @@ -44,7 +44,7 @@ function main(name) { // const fraction = 1234 // Imports the Storage library - const {BigQueryReadClient} = require('storage').v1beta2; + const {BigQueryReadClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryReadClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.append_rows.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.append_rows.js index 800d70bb339..0350d1f7770 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.append_rows.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.append_rows.js @@ -54,7 +54,7 @@ function main(writeStream) { // const traceId = 'abc123' // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.batch_commit_write_streams.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.batch_commit_write_streams.js index ac93d4d78f4..9804a6101f4 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.batch_commit_write_streams.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.batch_commit_write_streams.js @@ -39,7 +39,7 @@ function main(parent, writeStreams) { // const writeStreams = ['abc','def'] // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.create_write_stream.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.create_write_stream.js index 0c97464b5fd..261346914d1 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.create_write_stream.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.create_write_stream.js @@ -39,7 +39,7 @@ function main(parent, writeStream) { // const writeStream = {} // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.finalize_write_stream.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.finalize_write_stream.js index ccc8e99f924..04883851fac 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.finalize_write_stream.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.finalize_write_stream.js @@ -35,7 +35,7 @@ function main(name) { // const name = 'abc123' // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.flush_rows.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.flush_rows.js index 859953c76b0..cb2dfdc96c1 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.flush_rows.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.flush_rows.js @@ -39,7 +39,7 @@ function main(writeStream) { // const offset = {} // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.get_write_stream.js b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.get_write_stream.js index a4f5f67f130..53e6a2cbbb5 100644 --- a/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.get_write_stream.js +++ b/handwritten/bigquery-storage/samples/generated/v1beta2/big_query_write.get_write_stream.js @@ -35,7 +35,7 @@ function main(name) { // const name = 'abc123' // Imports the Storage library - const {BigQueryWriteClient} = require('storage').v1beta2; + const {BigQueryWriteClient} = require('@google-cloud/bigquery-storage').v1beta2; // Instantiates a client const storageClient = new BigQueryWriteClient(); diff --git a/handwritten/bigquery-storage/src/adapt/index.ts b/handwritten/bigquery-storage/src/adapt/index.ts index 9afc0bdd5f3..68ff0d5869f 100644 --- a/handwritten/bigquery-storage/src/adapt/index.ts +++ b/handwritten/bigquery-storage/src/adapt/index.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/adapt/options.ts b/handwritten/bigquery-storage/src/adapt/options.ts index d87c5ae2fe7..06711d6e206 100644 --- a/handwritten/bigquery-storage/src/adapt/options.ts +++ b/handwritten/bigquery-storage/src/adapt/options.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/adapt/proto.ts b/handwritten/bigquery-storage/src/adapt/proto.ts index c0636e1554c..0f34a8b2698 100644 --- a/handwritten/bigquery-storage/src/adapt/proto.ts +++ b/handwritten/bigquery-storage/src/adapt/proto.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/adapt/proto_mappings.ts b/handwritten/bigquery-storage/src/adapt/proto_mappings.ts index d6e7e103790..3ae7028ded8 100644 --- a/handwritten/bigquery-storage/src/adapt/proto_mappings.ts +++ b/handwritten/bigquery-storage/src/adapt/proto_mappings.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/adapt/schema.ts b/handwritten/bigquery-storage/src/adapt/schema.ts index bd2a7d989bc..c0bb0d69399 100644 --- a/handwritten/bigquery-storage/src/adapt/schema.ts +++ b/handwritten/bigquery-storage/src/adapt/schema.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/adapt/schema_mappings.ts b/handwritten/bigquery-storage/src/adapt/schema_mappings.ts index 631010e1533..42ed09a4cb2 100644 --- a/handwritten/bigquery-storage/src/adapt/schema_mappings.ts +++ b/handwritten/bigquery-storage/src/adapt/schema_mappings.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/index.ts b/handwritten/bigquery-storage/src/index.ts index 6028f6dbbc2..ad260b721de 100644 --- a/handwritten/bigquery-storage/src/index.ts +++ b/handwritten/bigquery-storage/src/index.ts @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -12,62 +12,22 @@ // See the License for the specific language governing permissions and // limitations under the License. // -// ** This file is automatically generated by gapic-generator-typescript. ** -// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** This file is automatically generated by synthtool. ** +// ** https://github.com/googleapis/synthtool ** // ** All changes to this file may be overwritten. ** import * as v1 from './v1'; -import * as v1beta1 from './v1beta1'; import * as v1alpha from './v1alpha'; import * as v1beta from './v1beta'; +import * as v1beta1 from './v1beta1'; import * as v1beta2 from './v1beta2'; -import * as managedwriter from './managedwriter'; -import * as reader from './reader'; + const BigQueryReadClient = v1.BigQueryReadClient; type BigQueryReadClient = v1.BigQueryReadClient; const BigQueryWriteClient = v1.BigQueryWriteClient; type BigQueryWriteClient = v1.BigQueryWriteClient; -const BigQueryStorageClient = v1beta1.BigQueryStorageClient; -type BigQueryStorageClient = v1beta1.BigQueryStorageClient; -const WriterClient = managedwriter.WriterClient; -type WriterClient = managedwriter.WriterClient; -const ReadClient = reader.ReadClient; -type ReadClient = reader.ReadClient; -export { - v1, - BigQueryReadClient, - v1beta1, - v1alpha, - v1beta, - v1beta2, - BigQueryStorageClient, - BigQueryWriteClient, - managedwriter, - WriterClient, - reader, - ReadClient, -}; -// For compatibility with JavaScript libraries we need to provide this default export: -// tslint:disable-next-line no-default-export -export default { - v1, - BigQueryReadClient, - BigQueryWriteClient, - managedwriter, - WriterClient, - reader, - ReadClient, -}; + +export {v1, v1alpha, v1beta, v1beta1, v1beta2, BigQueryReadClient, BigQueryWriteClient}; +export default {v1, v1alpha, v1beta, v1beta1, v1beta2, BigQueryReadClient, BigQueryWriteClient}; import * as protos from '../protos/protos'; export {protos}; -import * as adapt from './adapt'; -export {adapt}; - -// Add extra protobufjs definitions. -// When importing protobufjs/ext/descriptor package, it monkey patches some methods -// that we use in this package. We need to manually declare some of those -// methods that we use to make the Typescript compiler happy. -// There are some open issues around that. After they are fixed, we can remove this: -// * https://github.com/protobufjs/protobuf.js/issues/1499 -// * https://github.com/protobufjs/protobuf.js/issues/1149 -import './protobuf'; diff --git a/handwritten/bigquery-storage/src/managedwriter/encoder.ts b/handwritten/bigquery-storage/src/managedwriter/encoder.ts index f3172339eda..4e99639f709 100644 --- a/handwritten/bigquery-storage/src/managedwriter/encoder.ts +++ b/handwritten/bigquery-storage/src/managedwriter/encoder.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/error.ts b/handwritten/bigquery-storage/src/managedwriter/error.ts index 50249d11711..f938d3e7821 100644 --- a/handwritten/bigquery-storage/src/managedwriter/error.ts +++ b/handwritten/bigquery-storage/src/managedwriter/error.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/index.ts b/handwritten/bigquery-storage/src/managedwriter/index.ts index fd33b53d640..bd057e1eee1 100644 --- a/handwritten/bigquery-storage/src/managedwriter/index.ts +++ b/handwritten/bigquery-storage/src/managedwriter/index.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/json_writer.ts b/handwritten/bigquery-storage/src/managedwriter/json_writer.ts index 27fc6070a93..51aef70030c 100644 --- a/handwritten/bigquery-storage/src/managedwriter/json_writer.ts +++ b/handwritten/bigquery-storage/src/managedwriter/json_writer.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/pending_write.ts b/handwritten/bigquery-storage/src/managedwriter/pending_write.ts index 699e133dd9f..f063ecd7249 100644 --- a/handwritten/bigquery-storage/src/managedwriter/pending_write.ts +++ b/handwritten/bigquery-storage/src/managedwriter/pending_write.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/stream_connection.ts b/handwritten/bigquery-storage/src/managedwriter/stream_connection.ts index fea550d2321..789811aa6ac 100644 --- a/handwritten/bigquery-storage/src/managedwriter/stream_connection.ts +++ b/handwritten/bigquery-storage/src/managedwriter/stream_connection.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/stream_types.ts b/handwritten/bigquery-storage/src/managedwriter/stream_types.ts index a47c896a191..4fdbb863e14 100644 --- a/handwritten/bigquery-storage/src/managedwriter/stream_types.ts +++ b/handwritten/bigquery-storage/src/managedwriter/stream_types.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/writer.ts b/handwritten/bigquery-storage/src/managedwriter/writer.ts index 187e6fd9695..596114d0a75 100644 --- a/handwritten/bigquery-storage/src/managedwriter/writer.ts +++ b/handwritten/bigquery-storage/src/managedwriter/writer.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/managedwriter/writer_client.ts b/handwritten/bigquery-storage/src/managedwriter/writer_client.ts index ce59e55084f..4326b71a22e 100644 --- a/handwritten/bigquery-storage/src/managedwriter/writer_client.ts +++ b/handwritten/bigquery-storage/src/managedwriter/writer_client.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/protobuf/index.ts b/handwritten/bigquery-storage/src/protobuf/index.ts index d8488eda36b..2bb03bfeaf4 100644 --- a/handwritten/bigquery-storage/src/protobuf/index.ts +++ b/handwritten/bigquery-storage/src/protobuf/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/arrow_reader.ts b/handwritten/bigquery-storage/src/reader/arrow_reader.ts index fb7139f7610..6590d90bac0 100644 --- a/handwritten/bigquery-storage/src/reader/arrow_reader.ts +++ b/handwritten/bigquery-storage/src/reader/arrow_reader.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/arrow_transform.ts b/handwritten/bigquery-storage/src/reader/arrow_transform.ts index 2d871fa87d6..b31671e861c 100644 --- a/handwritten/bigquery-storage/src/reader/arrow_transform.ts +++ b/handwritten/bigquery-storage/src/reader/arrow_transform.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/data_format.ts b/handwritten/bigquery-storage/src/reader/data_format.ts index d599c471a36..86d23607b3b 100644 --- a/handwritten/bigquery-storage/src/reader/data_format.ts +++ b/handwritten/bigquery-storage/src/reader/data_format.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/index.ts b/handwritten/bigquery-storage/src/reader/index.ts index 280011fc023..612a9da3ee9 100644 --- a/handwritten/bigquery-storage/src/reader/index.ts +++ b/handwritten/bigquery-storage/src/reader/index.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/read_client.ts b/handwritten/bigquery-storage/src/reader/read_client.ts index fc94d188deb..ce924e3c53f 100644 --- a/handwritten/bigquery-storage/src/reader/read_client.ts +++ b/handwritten/bigquery-storage/src/reader/read_client.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/read_session.ts b/handwritten/bigquery-storage/src/reader/read_session.ts index 5a4deded95c..25248553a67 100644 --- a/handwritten/bigquery-storage/src/reader/read_session.ts +++ b/handwritten/bigquery-storage/src/reader/read_session.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/read_stream.ts b/handwritten/bigquery-storage/src/reader/read_stream.ts index ac2a5842bb8..de4617358bd 100644 --- a/handwritten/bigquery-storage/src/reader/read_stream.ts +++ b/handwritten/bigquery-storage/src/reader/read_stream.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/reader/table_reader.ts b/handwritten/bigquery-storage/src/reader/table_reader.ts index 9edf5a095cd..1f758d1738e 100644 --- a/handwritten/bigquery-storage/src/reader/table_reader.ts +++ b/handwritten/bigquery-storage/src/reader/table_reader.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/util/logger.ts b/handwritten/bigquery-storage/src/util/logger.ts index f0f5e912278..383f1c16ed7 100644 --- a/handwritten/bigquery-storage/src/util/logger.ts +++ b/handwritten/bigquery-storage/src/util/logger.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/src/v1alpha/gapic_metadata.json b/handwritten/bigquery-storage/src/v1alpha/gapic_metadata.json index 5ff06498148..8e47e248d80 100644 --- a/handwritten/bigquery-storage/src/v1alpha/gapic_metadata.json +++ b/handwritten/bigquery-storage/src/v1alpha/gapic_metadata.json @@ -3,7 +3,7 @@ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", "language": "typescript", "protoPackage": "google.cloud.bigquery.storage.v1alpha", - "libraryPackage": "@google-cloud/storage", + "libraryPackage": "@google-cloud/bigquery-storage", "services": { "MetastorePartitionService": { "clients": { diff --git a/handwritten/bigquery-storage/src/v1alpha/metastore_partition_service_client.ts b/handwritten/bigquery-storage/src/v1alpha/metastore_partition_service_client.ts index 85285871760..0a11276c6d7 100644 --- a/handwritten/bigquery-storage/src/v1alpha/metastore_partition_service_client.ts +++ b/handwritten/bigquery-storage/src/v1alpha/metastore_partition_service_client.ts @@ -54,7 +54,7 @@ export class MetastorePartitionServiceClient { private _defaults: { [method: string]: gax.CallSettings }; private _universeDomain: string; private _servicePath: string; - private _log = logging.log('storage'); + private _log = logging.log('bigquery-storage'); auth: gax.GoogleAuth; descriptors: Descriptors = { diff --git a/handwritten/bigquery-storage/src/v1beta/gapic_metadata.json b/handwritten/bigquery-storage/src/v1beta/gapic_metadata.json index 3d1addb8607..b023d0a66c8 100644 --- a/handwritten/bigquery-storage/src/v1beta/gapic_metadata.json +++ b/handwritten/bigquery-storage/src/v1beta/gapic_metadata.json @@ -3,7 +3,7 @@ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", "language": "typescript", "protoPackage": "google.cloud.bigquery.storage.v1beta", - "libraryPackage": "@google-cloud/storage", + "libraryPackage": "@google-cloud/bigquery-storage", "services": { "MetastorePartitionService": { "clients": { diff --git a/handwritten/bigquery-storage/src/v1beta/metastore_partition_service_client.ts b/handwritten/bigquery-storage/src/v1beta/metastore_partition_service_client.ts index cf2ddf5aafe..5eff707eafd 100644 --- a/handwritten/bigquery-storage/src/v1beta/metastore_partition_service_client.ts +++ b/handwritten/bigquery-storage/src/v1beta/metastore_partition_service_client.ts @@ -54,7 +54,7 @@ export class MetastorePartitionServiceClient { private _defaults: { [method: string]: gax.CallSettings }; private _universeDomain: string; private _servicePath: string; - private _log = logging.log('storage'); + private _log = logging.log('bigquery-storage'); auth: gax.GoogleAuth; descriptors: Descriptors = { diff --git a/handwritten/bigquery-storage/src/v1beta2/big_query_read_client.ts b/handwritten/bigquery-storage/src/v1beta2/big_query_read_client.ts index bf07163430c..f5a781aefc7 100644 --- a/handwritten/bigquery-storage/src/v1beta2/big_query_read_client.ts +++ b/handwritten/bigquery-storage/src/v1beta2/big_query_read_client.ts @@ -57,7 +57,7 @@ export class BigQueryReadClient { private _defaults: { [method: string]: gax.CallSettings }; private _universeDomain: string; private _servicePath: string; - private _log = logging.log('storage'); + private _log = logging.log('bigquery-storage'); auth: gax.GoogleAuth; descriptors: Descriptors = { diff --git a/handwritten/bigquery-storage/src/v1beta2/big_query_write_client.ts b/handwritten/bigquery-storage/src/v1beta2/big_query_write_client.ts index 340810142f4..4b9a6648042 100644 --- a/handwritten/bigquery-storage/src/v1beta2/big_query_write_client.ts +++ b/handwritten/bigquery-storage/src/v1beta2/big_query_write_client.ts @@ -60,7 +60,7 @@ export class BigQueryWriteClient { private _defaults: { [method: string]: gax.CallSettings }; private _universeDomain: string; private _servicePath: string; - private _log = logging.log('storage'); + private _log = logging.log('bigquery-storage'); auth: gax.GoogleAuth; descriptors: Descriptors = { diff --git a/handwritten/bigquery-storage/src/v1beta2/gapic_metadata.json b/handwritten/bigquery-storage/src/v1beta2/gapic_metadata.json index d360825be2d..0969953cb00 100644 --- a/handwritten/bigquery-storage/src/v1beta2/gapic_metadata.json +++ b/handwritten/bigquery-storage/src/v1beta2/gapic_metadata.json @@ -3,7 +3,7 @@ "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", "language": "typescript", "protoPackage": "google.cloud.bigquery.storage.v1beta2", - "libraryPackage": "storage", + "libraryPackage": "@google-cloud/bigquery-storage", "services": { "BigQueryRead": { "clients": { diff --git a/handwritten/bigquery-storage/test/adapt/proto.ts b/handwritten/bigquery-storage/test/adapt/proto.ts index 3a871624c56..20942a75d6d 100644 --- a/handwritten/bigquery-storage/test/adapt/proto.ts +++ b/handwritten/bigquery-storage/test/adapt/proto.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/test/adapt/schema.ts b/handwritten/bigquery-storage/test/adapt/schema.ts index 52560372fc3..6e77b517395 100644 --- a/handwritten/bigquery-storage/test/adapt/schema.ts +++ b/handwritten/bigquery-storage/test/adapt/schema.ts @@ -1,4 +1,4 @@ -// Copyright 2023 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/test/reader/arrow_transform.ts b/handwritten/bigquery-storage/test/reader/arrow_transform.ts index e8081b40acd..be8832241a4 100644 --- a/handwritten/bigquery-storage/test/reader/arrow_transform.ts +++ b/handwritten/bigquery-storage/test/reader/arrow_transform.ts @@ -1,4 +1,4 @@ -// Copyright 2024 Google LLC +// Copyright 2026 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/handwritten/bigquery-storage/tsconfig.json b/handwritten/bigquery-storage/tsconfig.json index ee0702dcdef..ca73e7bfc82 100644 --- a/handwritten/bigquery-storage/tsconfig.json +++ b/handwritten/bigquery-storage/tsconfig.json @@ -14,9 +14,7 @@ "src/**/*.ts", "test/*.ts", "test/**/*.ts", - "test/testdata/message.json", "system-test/*.ts", - "system-test/fixtures/customer_record.json", "src/**/*.json", "samples/**/*.json", "protos/protos.json"