|
1 | | -// Copyright 2020 Google LLC |
| 1 | +// Copyright 2026 Google LLC |
2 | 2 | // |
3 | 3 | // Licensed under the Apache License, Version 2.0 (the "License"); |
4 | 4 | // you may not use this file except in compliance with the License. |
|
12 | 12 | // See the License for the specific language governing permissions and |
13 | 13 | // limitations under the License. |
14 | 14 | // |
15 | | -// ** This file is automatically generated by gapic-generator-typescript. ** |
16 | | -// ** https://github.com/googleapis/gapic-generator-typescript ** |
| 15 | +// ** This file is automatically generated by synthtool. ** |
| 16 | +// ** https://github.com/googleapis/synthtool ** |
17 | 17 | // ** All changes to this file may be overwritten. ** |
18 | 18 |
|
| 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'; |
19 | 24 | import * as v1 from './v1'; |
20 | | -import * as v1beta1 from './v1beta1'; |
21 | 25 | import * as v1alpha from './v1alpha'; |
22 | 26 | import * as v1beta from './v1beta'; |
23 | | -import * as managedwriter from './managedwriter'; |
24 | | -import * as reader from './reader'; |
| 27 | +import * as v1beta1 from './v1beta1'; |
| 28 | + |
25 | 29 | const BigQueryReadClient = v1.BigQueryReadClient; |
26 | 30 | type BigQueryReadClient = v1.BigQueryReadClient; |
27 | 31 | const BigQueryWriteClient = v1.BigQueryWriteClient; |
28 | 32 | type BigQueryWriteClient = v1.BigQueryWriteClient; |
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; |
| 33 | + |
35 | 34 | export { |
| 35 | + adapt, |
| 36 | + managedwriter, |
| 37 | + protobuf, |
| 38 | + reader, |
| 39 | + util, |
36 | 40 | v1, |
37 | | - BigQueryReadClient, |
38 | | - v1beta1, |
39 | 41 | v1alpha, |
40 | 42 | v1beta, |
41 | | - BigQueryStorageClient, |
| 43 | + v1beta1, |
| 44 | + BigQueryReadClient, |
42 | 45 | BigQueryWriteClient, |
43 | | - managedwriter, |
44 | | - WriterClient, |
45 | | - reader, |
46 | | - ReadClient, |
47 | 46 | }; |
48 | | -// For compatibility with JavaScript libraries we need to provide this default export: |
49 | | -// tslint:disable-next-line no-default-export |
50 | 47 | export default { |
| 48 | + adapt, |
| 49 | + managedwriter, |
| 50 | + protobuf, |
| 51 | + reader, |
| 52 | + util, |
51 | 53 | v1, |
| 54 | + v1alpha, |
| 55 | + v1beta, |
| 56 | + v1beta1, |
52 | 57 | BigQueryReadClient, |
53 | 58 | BigQueryWriteClient, |
54 | | - managedwriter, |
55 | | - WriterClient, |
56 | | - reader, |
57 | | - ReadClient, |
58 | 59 | }; |
59 | 60 | import * as protos from '../protos/protos'; |
60 | 61 | export {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