BUILD.bazel 11 KB

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