1- // Copyright 2026 Google LLC
1+ // Copyright 2020 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.
1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414//
15- // ** This file is automatically generated by synthtool . **
16- // ** https://github.com/googleapis/synthtool **
15+ // ** This file is automatically generated by gapic-generator-typescript . **
16+ // ** https://github.com/googleapis/gapic-generator-typescript **
1717// ** All changes to this file may be overwritten. **
1818
19- import * as adapt from './adapt' ;
20- import * as managedwriter from './managedwriter' ;
21- import * as protobuf from './protobuf' ;
22- import * as reader from './reader' ;
23- import * as util from './util' ;
2419import * as v1 from './v1' ;
20+ import * as v1beta1 from './v1beta1' ;
2521import * as v1alpha from './v1alpha' ;
2622import * as v1beta from './v1beta' ;
27- import * as v1beta1 from './v1beta1 ' ;
28-
23+ import * as managedwriter from './managedwriter ' ;
24+ import * as reader from './reader' ;
2925const BigQueryReadClient = v1 . BigQueryReadClient ;
3026type BigQueryReadClient = v1 . BigQueryReadClient ;
3127const BigQueryWriteClient = v1 . BigQueryWriteClient ;
3228type BigQueryWriteClient = v1 . BigQueryWriteClient ;
33-
29+ const BigQueryStorageClient = v1beta1 . BigQueryStorageClient ;
30+ type BigQueryStorageClient = v1beta1 . BigQueryStorageClient ;
31+ const WriterClient = managedwriter . WriterClient ;
32+ type WriterClient = managedwriter . WriterClient ;
33+ const ReadClient = reader . ReadClient ;
34+ type ReadClient = reader . ReadClient ;
3435export {
35- adapt ,
36- managedwriter ,
37- protobuf ,
38- reader ,
39- util ,
4036 v1 ,
37+ BigQueryReadClient ,
38+ v1beta1 ,
4139 v1alpha ,
4240 v1beta ,
43- v1beta1 ,
44- BigQueryReadClient ,
41+ BigQueryStorageClient ,
4542 BigQueryWriteClient ,
46- } ;
47- export default {
48- adapt,
4943 managedwriter ,
50- protobuf ,
44+ WriterClient ,
5145 reader ,
52- util,
46+ ReadClient ,
47+ } ;
48+ // For compatibility with JavaScript libraries we need to provide this default export:
49+ // tslint:disable-next-line no-default-export
50+ export default {
5351 v1,
54- v1alpha,
55- v1beta,
56- v1beta1,
5752 BigQueryReadClient,
5853 BigQueryWriteClient,
54+ managedwriter,
55+ WriterClient,
56+ reader,
57+ ReadClient,
5958} ;
6059import * as protos from '../protos/protos' ;
6160export { protos } ;
61+ import * as adapt from './adapt' ;
62+ export { adapt } ;
63+
64+ // Add extra protobufjs definitions.
65+ // When importing protobufjs/ext/descriptor package, it monkey patches some methods
66+ // that we use in this package. We need to manually declare some of those
67+ // methods that we use to make the Typescript compiler happy.
68+ // There are some open issues around that. After they are fixed, we can remove this:
69+ // * https://github.com/protobufjs/protobuf.js/issues/1499
70+ // * https://github.com/protobufjs/protobuf.js/issues/1149
71+ import './protobuf' ;
0 commit comments