Skip to content

Commit e97e0ae

Browse files
build: use bazel build (#195)
1 parent 77cbd23 commit e97e0ae

File tree

2 files changed

+7
-24
lines changed

2 files changed

+7
-24
lines changed

packages/google-cloud-datalabeling/synth.metadata

+5-13
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,15 @@
33
{
44
"git": {
55
"name": ".",
6-
"remote": "https://github.com/googleapis/nodejs-datalabeling.git",
7-
"sha": "e6c75f5416814ff65006b62bdbea06dd2c9d270b"
8-
}
9-
},
10-
{
11-
"git": {
12-
"name": "googleapis",
13-
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "6dfd72d028a0d0a43764e060f7b15e004385c3a1",
15-
"internalRef": "310168181"
6+
"remote": "[email protected]:googleapis/nodejs-datalabeling.git",
7+
"sha": "78892f9998651690f6726520d818cf244df4793b"
168
}
179
},
1810
{
1911
"git": {
2012
"name": "synthtool",
2113
"remote": "https://github.com/googleapis/synthtool.git",
22-
"sha": "dc9caca650c77b7039e2bbc3339ffb34ae78e5b7"
14+
"sha": "303271797a360f8a439203413f13a160f2f5b3b4"
2315
}
2416
}
2517
],
@@ -29,8 +21,8 @@
2921
"source": "googleapis",
3022
"apiName": "datalabeling",
3123
"apiVersion": "v1beta1",
32-
"language": "typescript",
33-
"generator": "gapic-generator-typescript"
24+
"language": "nodejs",
25+
"generator": "bazel"
3426
}
3527
}
3628
]

packages/google-cloud-datalabeling/synth.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,10 @@
2424
AUTOSYNTH_MULTIPLE_COMMITS = True
2525

2626
# Run the gapic generator
27-
gapic = gcp.GAPICMicrogenerator()
27+
gapic = gcp.GAPICBazel()
2828
versions = ['v1beta1']
2929
for version in versions:
30-
library = gapic.typescript_library(
31-
'datalabeling', version,
32-
generator_args={
33-
"grpc-service-config": f"google/cloud/datalabeling/{version}/datalabeling_grpc_service_config.json",
34-
"package-name": "@google-cloud/datalabeling",
35-
"main-service": "datalabeling"
36-
},
37-
proto_path=f'/google/cloud/datalabeling/{version}',
38-
extra_proto_files=['google/cloud/common_resources.proto'],
39-
)
30+
library = gapic.node_library('datalabeling', version)
4031
s.copy(library, excludes=['README.md', 'package.json'])
4132

4233
# Copy common templates

0 commit comments

Comments
 (0)