Skip to content

Commit 84762fa

Browse files
Google APIscopybara-github
authored andcommitted
feat!: Add bigquerymigration v2 client library
PiperOrigin-RevId: 438598826
1 parent 727f08b commit 84762fa

8 files changed

Lines changed: 1311 additions & 0 deletions
Lines changed: 366 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,366 @@
1+
# This file was automatically generated by BuildFileGenerator
2+
# https://github.com/googleapis/rules_gapic/tree/master/bazel
3+
4+
# Most of the manual changes to this file will be overwritten.
5+
# It's **only** allowed to change the following rule attribute values:
6+
# - names of *_gapic_assembly_* rules
7+
# - certain parameters of *_gapic_library rules, including but not limited to:
8+
# * extra_protoc_parameters
9+
# * extra_protoc_file_parameters
10+
# The complete list of preserved parameters can be found in the source code.
11+
12+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_library(
22+
name = "migration_proto",
23+
srcs = [
24+
"migration_entities.proto",
25+
"migration_error_details.proto",
26+
"migration_metrics.proto",
27+
"migration_service.proto",
28+
"translation_config.proto",
29+
],
30+
deps = [
31+
"//google/api:annotations_proto",
32+
"//google/api:client_proto",
33+
"//google/api:distribution_proto",
34+
"//google/api:field_behavior_proto",
35+
"//google/api:metric_proto",
36+
"//google/api:resource_proto",
37+
"//google/rpc:error_details_proto",
38+
"@com_google_protobuf//:empty_proto",
39+
"@com_google_protobuf//:field_mask_proto",
40+
"@com_google_protobuf//:timestamp_proto",
41+
],
42+
)
43+
44+
proto_library_with_info(
45+
name = "migration_proto_with_info",
46+
deps = [
47+
":migration_proto",
48+
"//google/cloud:common_resources_proto",
49+
],
50+
)
51+
52+
##############################################################################
53+
# Java
54+
##############################################################################
55+
load(
56+
"@com_google_googleapis_imports//:imports.bzl",
57+
"java_gapic_assembly_gradle_pkg",
58+
"java_gapic_library",
59+
"java_gapic_test",
60+
"java_grpc_library",
61+
"java_proto_library",
62+
)
63+
64+
java_proto_library(
65+
name = "migration_java_proto",
66+
deps = [":migration_proto"],
67+
)
68+
69+
java_grpc_library(
70+
name = "migration_java_grpc",
71+
srcs = [":migration_proto"],
72+
deps = [":migration_java_proto"],
73+
)
74+
75+
java_gapic_library(
76+
name = "migration_java_gapic",
77+
srcs = [":migration_proto_with_info"],
78+
gapic_yaml = None,
79+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
80+
service_yaml = "bigquerymigration_v2.yaml",
81+
test_deps = [
82+
":migration_java_grpc",
83+
],
84+
deps = [
85+
":migration_java_proto",
86+
"//google/api:api_java_proto",
87+
],
88+
)
89+
90+
java_gapic_test(
91+
name = "migration_java_gapic_test_suite",
92+
test_classes = [
93+
"com.google.cloud.bigquery.migration.v2.MigrationServiceClientTest",
94+
],
95+
runtime_deps = [":migration_java_gapic_test"],
96+
)
97+
98+
# Open Source Packages
99+
java_gapic_assembly_gradle_pkg(
100+
name = "google-cloud-bigquery-migration-v2-java",
101+
deps = [
102+
":migration_java_gapic",
103+
":migration_java_grpc",
104+
":migration_java_proto",
105+
":migration_proto",
106+
],
107+
)
108+
109+
##############################################################################
110+
# Go
111+
##############################################################################
112+
load(
113+
"@com_google_googleapis_imports//:imports.bzl",
114+
"go_gapic_assembly_pkg",
115+
"go_gapic_library",
116+
"go_proto_library",
117+
"go_test",
118+
)
119+
120+
go_proto_library(
121+
name = "migration_go_proto",
122+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
123+
importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2",
124+
protos = [":migration_proto"],
125+
deps = [
126+
"//google/api:annotations_go_proto",
127+
"//google/api:distribution_go_proto",
128+
"//google/api:metric_go_proto",
129+
"//google/rpc:errdetails_go_proto",
130+
],
131+
)
132+
133+
go_gapic_library(
134+
name = "migration_go_gapic",
135+
srcs = [":migration_proto_with_info"],
136+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
137+
importpath = "cloud.google.com/go/bigquery/migration/apiv2;migration",
138+
service_yaml = "bigquerymigration_v2.yaml",
139+
metadata = True,
140+
deps = [
141+
":migration_go_proto",
142+
"//google/api:metric_go_proto",
143+
],
144+
)
145+
146+
go_test(
147+
name = "migration_go_gapic_test",
148+
srcs = [":migration_go_gapic_srcjar_test"],
149+
embed = [":migration_go_gapic"],
150+
importpath = "cloud.google.com/go/bigquery/migration/apiv2",
151+
)
152+
153+
# Open Source Packages
154+
go_gapic_assembly_pkg(
155+
name = "gapi-cloud-bigquery-migration-v2-go",
156+
deps = [
157+
":migration_go_gapic",
158+
":migration_go_gapic_srcjar-test.srcjar",
159+
":migration_go_gapic_srcjar-metadata.srcjar",
160+
":migration_go_proto",
161+
],
162+
)
163+
164+
##############################################################################
165+
# Python
166+
##############################################################################
167+
load(
168+
"@com_google_googleapis_imports//:imports.bzl",
169+
"py_gapic_assembly_pkg",
170+
"py_gapic_library",
171+
)
172+
173+
py_gapic_library(
174+
name = "migration_py_gapic",
175+
srcs = [":migration_proto"],
176+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
177+
)
178+
179+
# Open Source Packages
180+
py_gapic_assembly_pkg(
181+
name = "bigquery-migration-v2-py",
182+
deps = [
183+
":migration_py_gapic",
184+
],
185+
)
186+
187+
##############################################################################
188+
# PHP
189+
##############################################################################
190+
load(
191+
"@com_google_googleapis_imports//:imports.bzl",
192+
"php_gapic_assembly_pkg",
193+
"php_gapic_library",
194+
"php_grpc_library",
195+
"php_proto_library",
196+
)
197+
198+
php_proto_library(
199+
name = "migration_php_proto",
200+
deps = [":migration_proto"],
201+
)
202+
203+
php_grpc_library(
204+
name = "migration_php_grpc",
205+
srcs = [":migration_proto"],
206+
deps = [":migration_php_proto"],
207+
)
208+
209+
php_gapic_library(
210+
name = "migration_php_gapic",
211+
srcs = [":migration_proto_with_info"],
212+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
213+
service_yaml = "bigquerymigration_v2.yaml",
214+
deps = [
215+
":migration_php_grpc",
216+
":migration_php_proto",
217+
],
218+
)
219+
220+
# Open Source Packages
221+
php_gapic_assembly_pkg(
222+
name = "google-cloud-bigquery-migration-v2-php",
223+
deps = [
224+
":migration_php_gapic",
225+
":migration_php_grpc",
226+
":migration_php_proto",
227+
],
228+
)
229+
230+
##############################################################################
231+
# Node.js
232+
##############################################################################
233+
load(
234+
"@com_google_googleapis_imports//:imports.bzl",
235+
"nodejs_gapic_assembly_pkg",
236+
"nodejs_gapic_library",
237+
)
238+
239+
nodejs_gapic_library(
240+
name = "migration_nodejs_gapic",
241+
package_name = "@google-cloud/migration",
242+
src = ":migration_proto_with_info",
243+
extra_protoc_parameters = ["metadata"],
244+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
245+
package = "google.cloud.bigquery.migration.v2",
246+
service_yaml = "bigquerymigration_v2.yaml",
247+
deps = [],
248+
)
249+
250+
nodejs_gapic_assembly_pkg(
251+
name = "bigquery-migration-v2-nodejs",
252+
deps = [
253+
":migration_nodejs_gapic",
254+
":migration_proto",
255+
],
256+
)
257+
258+
##############################################################################
259+
# Ruby
260+
##############################################################################
261+
load(
262+
"@com_google_googleapis_imports//:imports.bzl",
263+
"ruby_gapic_assembly_pkg",
264+
"ruby_cloud_gapic_library",
265+
"ruby_grpc_library",
266+
"ruby_proto_library",
267+
)
268+
269+
ruby_proto_library(
270+
name = "migration_ruby_proto",
271+
deps = [":migration_proto"],
272+
)
273+
274+
ruby_grpc_library(
275+
name = "migration_ruby_grpc",
276+
srcs = [":migration_proto"],
277+
deps = [":migration_ruby_proto"],
278+
)
279+
280+
ruby_cloud_gapic_library(
281+
name = "migration_ruby_gapic",
282+
srcs = [":migration_proto_with_info"],
283+
extra_protoc_parameters = [
284+
"ruby-cloud-gem-name=google-cloud-bigquery-migration-v2",
285+
],
286+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
287+
deps = [
288+
":migration_ruby_grpc",
289+
":migration_ruby_proto",
290+
],
291+
)
292+
293+
# Open Source Packages
294+
ruby_gapic_assembly_pkg(
295+
name = "google-cloud-bigquery-migration-v2-ruby",
296+
deps = [
297+
":migration_ruby_gapic",
298+
":migration_ruby_grpc",
299+
":migration_ruby_proto",
300+
],
301+
)
302+
303+
##############################################################################
304+
# C#
305+
##############################################################################
306+
load(
307+
"@com_google_googleapis_imports//:imports.bzl",
308+
"csharp_gapic_assembly_pkg",
309+
"csharp_gapic_library",
310+
"csharp_grpc_library",
311+
"csharp_proto_library",
312+
)
313+
314+
csharp_proto_library(
315+
name = "migration_csharp_proto",
316+
deps = [":migration_proto"],
317+
)
318+
319+
csharp_grpc_library(
320+
name = "migration_csharp_grpc",
321+
srcs = [":migration_proto"],
322+
deps = [":migration_csharp_proto"],
323+
)
324+
325+
csharp_gapic_library(
326+
name = "migration_csharp_gapic",
327+
srcs = [":migration_proto_with_info"],
328+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
329+
grpc_service_config = "bigquerymigration_grpc_service_config.json",
330+
service_yaml = "bigquerymigration_v2.yaml",
331+
deps = [
332+
":migration_csharp_grpc",
333+
":migration_csharp_proto",
334+
],
335+
)
336+
337+
# Open Source Packages
338+
csharp_gapic_assembly_pkg(
339+
name = "google-cloud-bigquery-migration-v2-csharp",
340+
deps = [
341+
":migration_csharp_gapic",
342+
":migration_csharp_grpc",
343+
":migration_csharp_proto",
344+
],
345+
)
346+
347+
##############################################################################
348+
# C++
349+
##############################################################################
350+
load(
351+
"@com_google_googleapis_imports//:imports.bzl",
352+
"cc_grpc_library",
353+
"cc_proto_library",
354+
)
355+
356+
cc_proto_library(
357+
name = "migration_cc_proto",
358+
deps = [":migration_proto"],
359+
)
360+
361+
cc_grpc_library(
362+
name = "migration_cc_grpc",
363+
srcs = [":migration_proto"],
364+
grpc_only = True,
365+
deps = [":migration_cc_proto"],
366+
)

0 commit comments

Comments
 (0)