BUILD.bazel 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345
  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. ],
  25. deps = [
  26. "//google/api:annotations_proto",
  27. "//google/api:client_proto",
  28. "//google/api:distribution_proto",
  29. "//google/api:field_behavior_proto",
  30. "//google/api:metric_proto",
  31. "//google/api:resource_proto",
  32. "//google/rpc:error_details_proto",
  33. "@com_google_protobuf//:any_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. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  70. test_deps = [
  71. ":migration_java_grpc",
  72. ],
  73. deps = [
  74. ":migration_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "migration_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.bigquery.migration.v2alpha.MigrationServiceClientTest",
  81. ],
  82. runtime_deps = [":migration_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-bigquery-migration-v2alpha-java",
  87. deps = [
  88. ":migration_java_gapic",
  89. ":migration_java_grpc",
  90. ":migration_java_proto",
  91. ":migration_proto",
  92. ],
  93. )
  94. ##############################################################################
  95. # Go
  96. ##############################################################################
  97. load(
  98. "@com_google_googleapis_imports//:imports.bzl",
  99. "go_gapic_assembly_pkg",
  100. "go_gapic_library",
  101. "go_proto_library",
  102. "go_test",
  103. )
  104. go_proto_library(
  105. name = "migration_go_proto",
  106. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  107. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/migration/v2alpha",
  108. protos = [":migration_proto"],
  109. deps = [
  110. "//google/api:annotations_go_proto",
  111. "//google/api:distribution_go_proto",
  112. "//google/api:metric_go_proto",
  113. "//google/rpc:errdetails_go_proto",
  114. ],
  115. )
  116. go_gapic_library(
  117. name = "migration_go_gapic",
  118. srcs = [":migration_proto_with_info"],
  119. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  120. importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha;migration",
  121. service_yaml = "bigquerymigration_v2alpha.yaml",
  122. metadata = True,
  123. deps = [
  124. ":migration_go_proto",
  125. ],
  126. )
  127. go_test(
  128. name = "migration_go_gapic_test",
  129. srcs = [":migration_go_gapic_srcjar_test"],
  130. embed = [":migration_go_gapic"],
  131. importpath = "cloud.google.com/go/bigquery/migration/apiv2alpha",
  132. )
  133. # Open Source Packages
  134. go_gapic_assembly_pkg(
  135. name = "gapi-cloud-bigquery-migration-v2alpha-go",
  136. deps = [
  137. ":migration_go_gapic",
  138. ":migration_go_gapic_srcjar-test.srcjar",
  139. ":migration_go_gapic_srcjar-metadata.srcjar",
  140. ":migration_go_proto",
  141. ],
  142. )
  143. ##############################################################################
  144. # Python
  145. ##############################################################################
  146. load(
  147. "@com_google_googleapis_imports//:imports.bzl",
  148. "py_gapic_assembly_pkg",
  149. "py_gapic_library",
  150. )
  151. py_gapic_library(
  152. name = "migration_py_gapic",
  153. srcs = [":migration_proto"],
  154. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  155. )
  156. # Open Source Packages
  157. py_gapic_assembly_pkg(
  158. name = "bigquery-migration-v2alpha-py",
  159. deps = [
  160. ":migration_py_gapic",
  161. ],
  162. )
  163. ##############################################################################
  164. # PHP
  165. ##############################################################################
  166. load(
  167. "@com_google_googleapis_imports//:imports.bzl",
  168. "php_gapic_assembly_pkg",
  169. "php_gapic_library",
  170. "php_grpc_library",
  171. "php_proto_library",
  172. )
  173. php_proto_library(
  174. name = "migration_php_proto",
  175. deps = [":migration_proto"],
  176. )
  177. php_grpc_library(
  178. name = "migration_php_grpc",
  179. srcs = [":migration_proto"],
  180. deps = [":migration_php_proto"],
  181. )
  182. php_gapic_library(
  183. name = "migration_php_gapic",
  184. srcs = [":migration_proto_with_info"],
  185. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  186. service_yaml = "bigquerymigration_v2alpha.yaml",
  187. deps = [
  188. ":migration_php_grpc",
  189. ":migration_php_proto",
  190. ],
  191. )
  192. # Open Source Packages
  193. php_gapic_assembly_pkg(
  194. name = "google-cloud-bigquery-migration-v2alpha-php",
  195. deps = [
  196. ":migration_php_gapic",
  197. ":migration_php_grpc",
  198. ":migration_php_proto",
  199. ],
  200. )
  201. ##############################################################################
  202. # Node.js
  203. ##############################################################################
  204. load(
  205. "@com_google_googleapis_imports//:imports.bzl",
  206. "nodejs_gapic_assembly_pkg",
  207. "nodejs_gapic_library",
  208. )
  209. nodejs_gapic_library(
  210. name = "migration_nodejs_gapic",
  211. package_name = "@google-cloud/migration",
  212. src = ":migration_proto_with_info",
  213. extra_protoc_parameters = ["metadata"],
  214. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  215. package = "google.cloud.bigquery.migration.v2alpha",
  216. service_yaml = "bigquerymigration_v2alpha.yaml",
  217. deps = [],
  218. )
  219. nodejs_gapic_assembly_pkg(
  220. name = "bigquery-migration-v2alpha-nodejs",
  221. deps = [
  222. ":migration_nodejs_gapic",
  223. ":migration_proto",
  224. ],
  225. )
  226. ##############################################################################
  227. # Ruby
  228. ##############################################################################
  229. load(
  230. "@com_google_googleapis_imports//:imports.bzl",
  231. "ruby_gapic_assembly_pkg",
  232. "ruby_cloud_gapic_library",
  233. "ruby_grpc_library",
  234. "ruby_proto_library",
  235. )
  236. ruby_proto_library(
  237. name = "migration_ruby_proto",
  238. deps = [":migration_proto"],
  239. )
  240. ruby_grpc_library(
  241. name = "migration_ruby_grpc",
  242. srcs = [":migration_proto"],
  243. deps = [":migration_ruby_proto"],
  244. )
  245. ruby_cloud_gapic_library(
  246. name = "migration_ruby_gapic",
  247. srcs = [":migration_proto_with_info"],
  248. extra_protoc_parameters = [
  249. "ruby-cloud-gem-name=google-cloud-bigquery-migration-v2alpha",
  250. ],
  251. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  252. deps = [
  253. ":migration_ruby_grpc",
  254. ":migration_ruby_proto",
  255. ],
  256. )
  257. # Open Source Packages
  258. ruby_gapic_assembly_pkg(
  259. name = "google-cloud-bigquery-migration-v2alpha-ruby",
  260. deps = [
  261. ":migration_ruby_gapic",
  262. ":migration_ruby_grpc",
  263. ":migration_ruby_proto",
  264. ],
  265. )
  266. ##############################################################################
  267. # C#
  268. ##############################################################################
  269. load(
  270. "@com_google_googleapis_imports//:imports.bzl",
  271. "csharp_gapic_assembly_pkg",
  272. "csharp_gapic_library",
  273. "csharp_grpc_library",
  274. "csharp_proto_library",
  275. )
  276. csharp_proto_library(
  277. name = "migration_csharp_proto",
  278. deps = [":migration_proto"],
  279. )
  280. csharp_grpc_library(
  281. name = "migration_csharp_grpc",
  282. srcs = [":migration_proto"],
  283. deps = [":migration_csharp_proto"],
  284. )
  285. csharp_gapic_library(
  286. name = "migration_csharp_gapic",
  287. srcs = [":migration_proto_with_info"],
  288. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  289. grpc_service_config = "bigquerymigration_grpc_service_config.json",
  290. deps = [
  291. ":migration_csharp_grpc",
  292. ":migration_csharp_proto",
  293. ],
  294. )
  295. # Open Source Packages
  296. csharp_gapic_assembly_pkg(
  297. name = "google-cloud-bigquery-migration-v2alpha-csharp",
  298. deps = [
  299. ":migration_csharp_gapic",
  300. ":migration_csharp_grpc",
  301. ":migration_csharp_proto",
  302. ],
  303. )
  304. ##############################################################################
  305. # C++
  306. ##############################################################################
  307. # Put your C++ rules here