Skip to content

Commit d225326

Browse files
committed
chore: preserve original owlbot exclude of src/index.ts
1 parent d51ca43 commit d225326

2 files changed

Lines changed: 39 additions & 27 deletions

File tree

handwritten/bigquery-storage/owlbot.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
"""This script is used to synthesize generated parts of this library."""
1515
import synthtool.languages.node_mono_repo as node
1616

17-
node.owlbot_main(relative_dir="handwritten/bigquery-storage", templates_excludes=["README.md"])
17+
node.owlbot_main(relative_dir="handwritten/bigquery-storage",
18+
templates_excludes=['src/index.ts', 'README.md']
19+
)
Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.
@@ -12,50 +12,60 @@
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';
2419
import * as v1 from './v1';
20+
import * as v1beta1 from './v1beta1';
2521
import * as v1alpha from './v1alpha';
2622
import * as v1beta from './v1beta';
27-
import * as v1beta1 from './v1beta1';
28-
23+
import * as managedwriter from './managedwriter';
24+
import * as reader from './reader';
2925
const BigQueryReadClient = v1.BigQueryReadClient;
3026
type BigQueryReadClient = v1.BigQueryReadClient;
3127
const BigQueryWriteClient = v1.BigQueryWriteClient;
3228
type 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;
3435
export {
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
};
6059
import * as protos from '../protos/protos';
6160
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

Comments
 (0)