BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  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 = "datafusion_proto",
  19. srcs = [
  20. "v1beta1.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/iam/v1:policy_proto",
  28. "//google/longrunning:operations_proto",
  29. "//google/rpc:status_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. "@com_google_protobuf//:timestamp_proto",
  32. ],
  33. )
  34. proto_library_with_info(
  35. name = "datafusion_proto_with_info",
  36. deps = [
  37. ":datafusion_proto",
  38. "//google/cloud:common_resources_proto",
  39. ],
  40. )
  41. ##############################################################################
  42. # Java
  43. ##############################################################################
  44. load(
  45. "@com_google_googleapis_imports//:imports.bzl",
  46. "java_gapic_assembly_gradle_pkg",
  47. "java_gapic_library",
  48. "java_gapic_test",
  49. "java_grpc_library",
  50. "java_proto_library",
  51. )
  52. java_proto_library(
  53. name = "datafusion_java_proto",
  54. deps = [":datafusion_proto"],
  55. )
  56. java_grpc_library(
  57. name = "datafusion_java_grpc",
  58. srcs = [":datafusion_proto"],
  59. deps = [":datafusion_java_proto"],
  60. )
  61. java_gapic_library(
  62. name = "datafusion_java_gapic",
  63. srcs = [":datafusion_proto_with_info"],
  64. grpc_service_config = "datafusion_grpc_service_config.json",
  65. rest_numeric_enums = False,
  66. test_deps = [
  67. ":datafusion_java_grpc",
  68. "//google/iam/v1:iam_java_grpc",
  69. ],
  70. transport = "grpc+rest",
  71. deps = [
  72. ":datafusion_java_proto",
  73. "//google/iam/v1:iam_java_proto",
  74. ],
  75. )
  76. java_gapic_test(
  77. name = "datafusion_java_gapic_test_suite",
  78. test_classes = [
  79. "com.google.cloud.datafusion.v1beta1.DataFusionClientHttpJsonTest",
  80. "com.google.cloud.datafusion.v1beta1.DataFusionClientTest",
  81. ],
  82. runtime_deps = [":datafusion_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-datafusion-v1beta1-java",
  87. include_samples = True,
  88. transport = "grpc+rest",
  89. deps = [
  90. ":datafusion_java_gapic",
  91. ":datafusion_java_grpc",
  92. ":datafusion_java_proto",
  93. ":datafusion_proto",
  94. ],
  95. )
  96. ##############################################################################
  97. # Go
  98. ##############################################################################
  99. load(
  100. "@com_google_googleapis_imports//:imports.bzl",
  101. "go_gapic_assembly_pkg",
  102. "go_gapic_library",
  103. "go_proto_library",
  104. "go_test",
  105. )
  106. go_proto_library(
  107. name = "datafusion_go_proto",
  108. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  109. importpath = "google.golang.org/genproto/googleapis/cloud/datafusion/v1beta1",
  110. protos = [":datafusion_proto"],
  111. deps = [
  112. "//google/api:annotations_go_proto",
  113. "//google/iam/v1:iam_go_proto",
  114. "//google/longrunning:longrunning_go_proto",
  115. "//google/rpc:status_go_proto",
  116. ],
  117. )
  118. go_gapic_library(
  119. name = "datafusion_go_gapic",
  120. srcs = [":datafusion_proto_with_info"],
  121. grpc_service_config = "datafusion_grpc_service_config.json",
  122. importpath = "cloud.google.com/go/datafusion/apiv1beta1;datafusion",
  123. metadata = True,
  124. rest_numeric_enums = False,
  125. service_yaml = "datafusion_v1beta1.yaml",
  126. transport = "grpc+rest",
  127. deps = [
  128. ":datafusion_go_proto",
  129. "//google/iam/v1:iam_go_proto",
  130. "//google/longrunning:longrunning_go_proto",
  131. "@com_google_cloud_go//longrunning:go_default_library",
  132. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  133. ],
  134. )
  135. go_test(
  136. name = "datafusion_go_gapic_test",
  137. srcs = [":datafusion_go_gapic_srcjar_test"],
  138. embed = [":datafusion_go_gapic"],
  139. importpath = "cloud.google.com/go/datafusion/apiv1beta1",
  140. )
  141. # Open Source Packages
  142. go_gapic_assembly_pkg(
  143. name = "gapi-cloud-datafusion-v1beta1-go",
  144. deps = [
  145. ":datafusion_go_gapic",
  146. ":datafusion_go_gapic_srcjar-metadata.srcjar",
  147. ":datafusion_go_gapic_srcjar-test.srcjar",
  148. ":datafusion_go_proto",
  149. ],
  150. )
  151. ##############################################################################
  152. # Python
  153. ##############################################################################
  154. load(
  155. "@com_google_googleapis_imports//:imports.bzl",
  156. "py_gapic_assembly_pkg",
  157. "py_gapic_library",
  158. "py_test",
  159. )
  160. py_gapic_library(
  161. name = "datafusion_py_gapic",
  162. srcs = [":datafusion_proto"],
  163. grpc_service_config = "datafusion_grpc_service_config.json",
  164. rest_numeric_enums = False,
  165. transport = "grpc",
  166. deps = [
  167. "//google/iam/v1:iam_policy_py_proto",
  168. ],
  169. )
  170. py_test(
  171. name = "datafusion_py_gapic_test",
  172. srcs = [
  173. "datafusion_py_gapic_pytest.py",
  174. "datafusion_py_gapic_test.py",
  175. ],
  176. legacy_create_init = False,
  177. deps = [":datafusion_py_gapic"],
  178. )
  179. # Open Source Packages
  180. py_gapic_assembly_pkg(
  181. name = "datafusion-v1beta1-py",
  182. deps = [
  183. ":datafusion_py_gapic",
  184. ],
  185. )
  186. ##############################################################################
  187. # PHP
  188. ##############################################################################
  189. load(
  190. "@com_google_googleapis_imports//:imports.bzl",
  191. "php_gapic_assembly_pkg",
  192. "php_gapic_library",
  193. "php_grpc_library",
  194. "php_proto_library",
  195. )
  196. php_proto_library(
  197. name = "datafusion_php_proto",
  198. deps = [":datafusion_proto"],
  199. )
  200. php_grpc_library(
  201. name = "datafusion_php_grpc",
  202. srcs = [":datafusion_proto"],
  203. deps = [":datafusion_php_proto"],
  204. )
  205. php_gapic_library(
  206. name = "datafusion_php_gapic",
  207. srcs = [":datafusion_proto_with_info"],
  208. grpc_service_config = "datafusion_grpc_service_config.json",
  209. rest_numeric_enums = False,
  210. service_yaml = "datafusion_v1beta1.yaml",
  211. transport = "grpc+rest",
  212. deps = [
  213. ":datafusion_php_grpc",
  214. ":datafusion_php_proto",
  215. ],
  216. )
  217. # Open Source Packages
  218. php_gapic_assembly_pkg(
  219. name = "google-cloud-datafusion-v1beta1-php",
  220. deps = [
  221. ":datafusion_php_gapic",
  222. ":datafusion_php_grpc",
  223. ":datafusion_php_proto",
  224. ],
  225. )
  226. ##############################################################################
  227. # Node.js
  228. ##############################################################################
  229. load(
  230. "@com_google_googleapis_imports//:imports.bzl",
  231. "nodejs_gapic_assembly_pkg",
  232. "nodejs_gapic_library",
  233. )
  234. nodejs_gapic_library(
  235. name = "datafusion_nodejs_gapic",
  236. package_name = "@google-cloud/data-fusion",
  237. src = ":datafusion_proto_with_info",
  238. extra_protoc_parameters = ["metadata"],
  239. grpc_service_config = "datafusion_grpc_service_config.json",
  240. package = "google.cloud.datafusion.v1beta1",
  241. rest_numeric_enums = False,
  242. service_yaml = "datafusion_v1beta1.yaml",
  243. transport = "grpc+rest",
  244. deps = [],
  245. )
  246. nodejs_gapic_assembly_pkg(
  247. name = "datafusion-v1beta1-nodejs",
  248. deps = [
  249. ":datafusion_nodejs_gapic",
  250. ":datafusion_proto",
  251. ],
  252. )
  253. ##############################################################################
  254. # Ruby
  255. ##############################################################################
  256. load(
  257. "@com_google_googleapis_imports//:imports.bzl",
  258. "ruby_cloud_gapic_library",
  259. "ruby_gapic_assembly_pkg",
  260. "ruby_grpc_library",
  261. "ruby_proto_library",
  262. )
  263. ruby_proto_library(
  264. name = "datafusion_ruby_proto",
  265. deps = [":datafusion_proto"],
  266. )
  267. ruby_grpc_library(
  268. name = "datafusion_ruby_grpc",
  269. srcs = [":datafusion_proto"],
  270. deps = [":datafusion_ruby_proto"],
  271. )
  272. ruby_cloud_gapic_library(
  273. name = "datafusion_ruby_gapic",
  274. srcs = [":datafusion_proto_with_info"],
  275. extra_protoc_parameters = [
  276. "ruby-cloud-gem-name=google-cloud-data_fusion-v1beta1",
  277. "ruby-cloud-api-shortname=datafusion",
  278. "ruby-cloud-api-id=datafusion.googleapis.com",
  279. "ruby-cloud-product-url=https://cloud.google.com/data-fusion",
  280. ],
  281. grpc_service_config = "datafusion_grpc_service_config.json",
  282. rest_numeric_enums = False,
  283. ruby_cloud_description = "Cloud Data Fusion is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines.",
  284. ruby_cloud_title = "Cloud Data Fusion V1beta1",
  285. deps = [
  286. ":datafusion_ruby_grpc",
  287. ":datafusion_ruby_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. ruby_gapic_assembly_pkg(
  292. name = "google-cloud-datafusion-v1beta1-ruby",
  293. deps = [
  294. ":datafusion_ruby_gapic",
  295. ":datafusion_ruby_grpc",
  296. ":datafusion_ruby_proto",
  297. ],
  298. )
  299. ##############################################################################
  300. # C#
  301. ##############################################################################
  302. load(
  303. "@com_google_googleapis_imports//:imports.bzl",
  304. "csharp_gapic_assembly_pkg",
  305. "csharp_gapic_library",
  306. "csharp_grpc_library",
  307. "csharp_proto_library",
  308. )
  309. csharp_proto_library(
  310. name = "datafusion_csharp_proto",
  311. deps = [":datafusion_proto"],
  312. )
  313. csharp_grpc_library(
  314. name = "datafusion_csharp_grpc",
  315. srcs = [":datafusion_proto"],
  316. deps = [":datafusion_csharp_proto"],
  317. )
  318. csharp_gapic_library(
  319. name = "datafusion_csharp_gapic",
  320. srcs = [":datafusion_proto_with_info"],
  321. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  322. grpc_service_config = "datafusion_grpc_service_config.json",
  323. rest_numeric_enums = False,
  324. service_yaml = "datafusion_v1beta1.yaml",
  325. deps = [
  326. ":datafusion_csharp_grpc",
  327. ":datafusion_csharp_proto",
  328. ],
  329. )
  330. # Open Source Packages
  331. csharp_gapic_assembly_pkg(
  332. name = "google-cloud-datafusion-v1beta1-csharp",
  333. deps = [
  334. ":datafusion_csharp_gapic",
  335. ":datafusion_csharp_grpc",
  336. ":datafusion_csharp_proto",
  337. ],
  338. )
  339. ##############################################################################
  340. # C++
  341. ##############################################################################
  342. # Put your C++ rules here