BUILD.bazel 11 KB

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