xref: /aosp_15_r20/external/googleapis/google/cloud/bigquery/migration/v2alpha/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
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.
13package(default_visibility = ["//visibility:public"])
14
15##############################################################################
16# Common
17##############################################################################
18load("@rules_proto//proto:defs.bzl", "proto_library")
19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20
21proto_library(
22    name = "migration_proto",
23    srcs = [
24        "assessment_task.proto",
25        "migration_entities.proto",
26        "migration_error_details.proto",
27        "migration_metrics.proto",
28        "migration_service.proto",
29        "translation_service.proto",
30        "translation_task.proto",
31    ],
32    deps = [
33        "//google/api:annotations_proto",
34        "//google/api:client_proto",
35        "//google/api:distribution_proto",
36        "//google/api:field_behavior_proto",
37        "//google/api:metric_proto",
38        "//google/api:resource_proto",
39        "//google/rpc:error_details_proto",
40        "@com_google_protobuf//:any_proto",
41        "@com_google_protobuf//:empty_proto",
42        "@com_google_protobuf//:field_mask_proto",
43        "@com_google_protobuf//:timestamp_proto",
44    ],
45)
46
47proto_library_with_info(
48    name = "migration_proto_with_info",
49    deps = [
50        ":migration_proto",
51        "//google/cloud:common_resources_proto",
52    ],
53)
54
55##############################################################################
56# Java
57##############################################################################
58load(
59    "@com_google_googleapis_imports//:imports.bzl",
60    "java_gapic_assembly_gradle_pkg",
61    "java_gapic_library",
62    "java_gapic_test",
63    "java_grpc_library",
64    "java_proto_library",
65)
66
67java_proto_library(
68    name = "migration_java_proto",
69    deps = [":migration_proto"],
70)
71
72java_grpc_library(
73    name = "migration_java_grpc",
74    srcs = [":migration_proto"],
75    deps = [":migration_java_proto"],
76)
77
78java_gapic_library(
79    name = "migration_java_gapic",
80    srcs = [":migration_proto_with_info"],
81    grpc_service_config = "bigquerymigration_grpc_service_config.json",
82    rest_numeric_enums = False,
83    service_yaml = "bigquerymigration_v2alpha.yaml",
84    test_deps = [
85        ":migration_java_grpc",
86    ],
87    transport = "grpc+rest",
88    deps = [
89        ":migration_java_proto",
90    ],
91)
92
93java_gapic_test(
94    name = "migration_java_gapic_test_suite",
95    test_classes = [
96        "com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClientHttpJsonTest",
97        "com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClientTest",
98    ],
99    runtime_deps = [":migration_java_gapic_test"],
100)
101
102# Open Source Packages
103java_gapic_assembly_gradle_pkg(
104    name = "google-cloud-bigquery-migration-v2alpha-java",
105    include_samples = True,
106    transport = "grpc+rest",
107    deps = [
108        ":migration_java_gapic",
109        ":migration_java_grpc",
110        ":migration_java_proto",
111        ":migration_proto",
112    ],
113)
114
115##############################################################################
116# Go
117##############################################################################
118load(
119    "@com_google_googleapis_imports//:imports.bzl",
120    "go_gapic_assembly_pkg",
121    "go_gapic_library",
122    "go_proto_library",
123)
124
125go_proto_library(
126    name = "migration_go_proto",
127    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
128    importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha/migrationpb",
129    protos = [":migration_proto"],
130    deps = [
131        "//google/api:annotations_go_proto",
132        "//google/api:distribution_go_proto",
133        "//google/api:metric_go_proto",
134        "//google/rpc:errdetails_go_proto",
135    ],
136)
137
138go_gapic_library(
139    name = "migration_go_gapic",
140    srcs = [":migration_proto_with_info"],
141    grpc_service_config = "bigquerymigration_grpc_service_config.json",
142    importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha;migration",
143    metadata = True,
144    release_level = "alpha",
145    rest_numeric_enums = False,
146    service_yaml = "bigquerymigration_v2alpha.yaml",
147    transport = "grpc+rest",
148    deps = [
149        ":migration_go_proto",
150    ],
151)
152
153# Open Source Packages
154go_gapic_assembly_pkg(
155    name = "gapi-cloud-bigquery-migration-v2alpha-go",
156    deps = [
157        ":migration_go_gapic",
158        ":migration_go_gapic_srcjar-metadata.srcjar",
159        ":migration_go_gapic_srcjar-snippets.srcjar",
160        ":migration_go_gapic_srcjar-test.srcjar",
161        ":migration_go_proto",
162    ],
163)
164
165##############################################################################
166# Python
167##############################################################################
168load(
169    "@com_google_googleapis_imports//:imports.bzl",
170    "py_gapic_assembly_pkg",
171    "py_gapic_library",
172    "py_test",
173)
174
175py_gapic_library(
176    name = "migration_py_gapic",
177    srcs = [":migration_proto"],
178    grpc_service_config = "bigquerymigration_grpc_service_config.json",
179    opt_args = [
180        "python-gapic-name=bigquery_migration",
181        "python-gapic-namespace=google.cloud",
182    ],
183    rest_numeric_enums = False,
184    service_yaml = "bigquerymigration_v2alpha.yaml",
185    transport = "grpc",
186)
187
188py_test(
189    name = "migration_py_gapic_test",
190    srcs = [
191        "migration_py_gapic_pytest.py",
192        "migration_py_gapic_test.py",
193    ],
194    legacy_create_init = False,
195    deps = [":migration_py_gapic"],
196)
197
198# Open Source Packages
199py_gapic_assembly_pkg(
200    name = "bigquery-migration-v2alpha-py",
201    deps = [
202        ":migration_py_gapic",
203    ],
204)
205
206##############################################################################
207# PHP
208##############################################################################
209load(
210    "@com_google_googleapis_imports//:imports.bzl",
211    "php_gapic_assembly_pkg",
212    "php_gapic_library",
213    "php_proto_library",
214)
215
216php_proto_library(
217    name = "migration_php_proto",
218    deps = [":migration_proto"],
219)
220
221php_gapic_library(
222    name = "migration_php_gapic",
223    srcs = [":migration_proto_with_info"],
224    grpc_service_config = "bigquerymigration_grpc_service_config.json",
225    rest_numeric_enums = False,
226    service_yaml = "bigquerymigration_v2alpha.yaml",
227    transport = "grpc+rest",
228    deps = [":migration_php_proto"],
229)
230
231# Open Source Packages
232php_gapic_assembly_pkg(
233    name = "google-cloud-bigquery-migration-v2alpha-php",
234    deps = [
235        ":migration_php_gapic",
236        ":migration_php_proto",
237    ],
238)
239
240##############################################################################
241# Node.js
242##############################################################################
243load(
244    "@com_google_googleapis_imports//:imports.bzl",
245    "nodejs_gapic_assembly_pkg",
246    "nodejs_gapic_library",
247)
248
249nodejs_gapic_library(
250    name = "migration_nodejs_gapic",
251    package_name = "@google-cloud/bigquery-migration",
252    src = ":migration_proto_with_info",
253    extra_protoc_parameters = ["metadata"],
254    grpc_service_config = "bigquerymigration_grpc_service_config.json",
255    package = "google.cloud.bigquery.migration.v2alpha",
256    rest_numeric_enums = False,
257    service_yaml = "bigquerymigration_v2alpha.yaml",
258    transport = "grpc+rest",
259    deps = [],
260)
261
262nodejs_gapic_assembly_pkg(
263    name = "bigquery-migration-v2alpha-nodejs",
264    deps = [
265        ":migration_nodejs_gapic",
266        ":migration_proto",
267    ],
268)
269
270##############################################################################
271# Ruby
272##############################################################################
273load(
274    "@com_google_googleapis_imports//:imports.bzl",
275    "ruby_cloud_gapic_library",
276    "ruby_gapic_assembly_pkg",
277    "ruby_grpc_library",
278    "ruby_proto_library",
279)
280
281ruby_proto_library(
282    name = "migration_ruby_proto",
283    deps = [":migration_proto"],
284)
285
286ruby_grpc_library(
287    name = "migration_ruby_grpc",
288    srcs = [":migration_proto"],
289    deps = [":migration_ruby_proto"],
290)
291
292ruby_cloud_gapic_library(
293    name = "migration_ruby_gapic",
294    srcs = [":migration_proto_with_info"],
295    extra_protoc_parameters = [
296        "ruby-cloud-gem-name=google-cloud-bigquery-migration-v2alpha",
297    ],
298    grpc_service_config = "bigquerymigration_grpc_service_config.json",
299    rest_numeric_enums = False,
300    service_yaml = "bigquerymigration_v2alpha.yaml",
301    deps = [
302        ":migration_ruby_grpc",
303        ":migration_ruby_proto",
304    ],
305)
306
307# Open Source Packages
308ruby_gapic_assembly_pkg(
309    name = "google-cloud-bigquery-migration-v2alpha-ruby",
310    deps = [
311        ":migration_ruby_gapic",
312        ":migration_ruby_grpc",
313        ":migration_ruby_proto",
314    ],
315)
316
317##############################################################################
318# C#
319##############################################################################
320load(
321    "@com_google_googleapis_imports//:imports.bzl",
322    "csharp_gapic_assembly_pkg",
323    "csharp_gapic_library",
324    "csharp_grpc_library",
325    "csharp_proto_library",
326)
327
328csharp_proto_library(
329    name = "migration_csharp_proto",
330    deps = [":migration_proto"],
331)
332
333csharp_grpc_library(
334    name = "migration_csharp_grpc",
335    srcs = [":migration_proto"],
336    deps = [":migration_csharp_proto"],
337)
338
339csharp_gapic_library(
340    name = "migration_csharp_gapic",
341    srcs = [":migration_proto_with_info"],
342    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
343    grpc_service_config = "bigquerymigration_grpc_service_config.json",
344    rest_numeric_enums = False,
345    service_yaml = "bigquerymigration_v2alpha.yaml",
346    deps = [
347        ":migration_csharp_grpc",
348        ":migration_csharp_proto",
349    ],
350)
351
352# Open Source Packages
353csharp_gapic_assembly_pkg(
354    name = "google-cloud-bigquery-migration-v2alpha-csharp",
355    deps = [
356        ":migration_csharp_gapic",
357        ":migration_csharp_grpc",
358        ":migration_csharp_proto",
359    ],
360)
361
362##############################################################################
363# C++
364##############################################################################
365# Put your C++ rules here
366