BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "connection_proto",
  11. srcs = [
  12. "connection.proto",
  13. ],
  14. deps = [
  15. "//google/api:annotations_proto",
  16. "//google/api:client_proto",
  17. "//google/api:field_behavior_proto",
  18. "//google/api:resource_proto",
  19. "//google/iam/v1:iam_policy_proto",
  20. "//google/iam/v1:policy_proto",
  21. "@com_google_protobuf//:empty_proto",
  22. "@com_google_protobuf//:field_mask_proto",
  23. "@com_google_protobuf//:wrappers_proto",
  24. ],
  25. )
  26. proto_library_with_info(
  27. name = "connection_proto_with_info",
  28. deps = [
  29. ":connection_proto",
  30. "//google/cloud:common_resources_proto",
  31. ],
  32. )
  33. ##############################################################################
  34. # Java
  35. ##############################################################################
  36. load(
  37. "@com_google_googleapis_imports//:imports.bzl",
  38. "java_gapic_assembly_gradle_pkg",
  39. "java_gapic_library",
  40. "java_gapic_test",
  41. "java_grpc_library",
  42. "java_proto_library",
  43. )
  44. java_proto_library(
  45. name = "connection_java_proto",
  46. deps = [":connection_proto"],
  47. )
  48. java_grpc_library(
  49. name = "connection_java_grpc",
  50. srcs = [":connection_proto"],
  51. deps = [":connection_java_proto"],
  52. )
  53. java_gapic_library(
  54. name = "connection_java_gapic",
  55. srcs = [":connection_proto_with_info"],
  56. gapic_yaml = "connection_gapic.yaml",
  57. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  58. rest_numeric_enums = False,
  59. test_deps = [
  60. ":connection_java_grpc",
  61. "//google/iam/v1:iam_java_grpc",
  62. ],
  63. transport = "grpc+rest",
  64. deps = [
  65. ":connection_java_proto",
  66. "//google/iam/v1:iam_java_proto",
  67. ],
  68. )
  69. java_gapic_test(
  70. name = "connection_java_gapic_test_suite",
  71. test_classes = [
  72. "com.google.cloud.bigqueryconnection.v1.ConnectionServiceClientHttpJsonTest",
  73. "com.google.cloud.bigqueryconnection.v1.ConnectionServiceClientTest",
  74. ],
  75. runtime_deps = [":connection_java_gapic_test"],
  76. )
  77. # Open Source Packages
  78. java_gapic_assembly_gradle_pkg(
  79. name = "google-cloud-bigquery-connection-v1-java",
  80. include_samples = True,
  81. transport = "grpc+rest",
  82. deps = [
  83. ":connection_java_gapic",
  84. ":connection_java_grpc",
  85. ":connection_java_proto",
  86. ":connection_proto",
  87. ],
  88. )
  89. ##############################################################################
  90. # Go
  91. ##############################################################################
  92. load(
  93. "@com_google_googleapis_imports//:imports.bzl",
  94. "go_gapic_assembly_pkg",
  95. "go_gapic_library",
  96. "go_proto_library",
  97. "go_test",
  98. )
  99. go_proto_library(
  100. name = "connection_go_proto",
  101. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  102. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/connection/v1",
  103. protos = [":connection_proto"],
  104. deps = [
  105. "//google/api:annotations_go_proto",
  106. "//google/iam/v1:iam_go_proto",
  107. ],
  108. )
  109. go_gapic_library(
  110. name = "connection_go_gapic",
  111. srcs = [":connection_proto_with_info"],
  112. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  113. importpath = "cloud.google.com/go/bigquery/connection/apiv1;connection",
  114. rest_numeric_enums = False,
  115. service_yaml = "bigqueryconnection_v1.yaml",
  116. transport = "grpc+rest",
  117. deps = [
  118. ":connection_go_proto",
  119. "//google/iam/v1:iam_go_proto",
  120. ],
  121. )
  122. go_test(
  123. name = "connection_go_gapic_test",
  124. srcs = [":connection_go_gapic_srcjar_test"],
  125. embed = [":connection_go_gapic"],
  126. importpath = "cloud.google.com/go/bigquery/connection/apiv1",
  127. )
  128. # Open Source Packages
  129. go_gapic_assembly_pkg(
  130. name = "gapi-cloud-bigquery-connection-v1-go",
  131. deps = [
  132. ":connection_go_gapic",
  133. ":connection_go_gapic_srcjar-test.srcjar",
  134. ":connection_go_proto",
  135. ],
  136. )
  137. ##############################################################################
  138. # Python
  139. ##############################################################################
  140. load(
  141. "@com_google_googleapis_imports//:imports.bzl",
  142. "py_gapic_assembly_pkg",
  143. "py_gapic_library",
  144. "py_test",
  145. )
  146. py_gapic_library(
  147. name = "connection_py_gapic",
  148. srcs = [":connection_proto"],
  149. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  150. opt_args = [
  151. "python-gapic-namespace=google.cloud",
  152. "python-gapic-name=bigquery_connection",
  153. ],
  154. rest_numeric_enums = False,
  155. transport = "grpc",
  156. deps = [
  157. "//google/iam/v1:iam_policy_py_proto",
  158. ],
  159. )
  160. py_test(
  161. name = "connection_py_gapic_test",
  162. srcs = [
  163. "connection_py_gapic_pytest.py",
  164. "connection_py_gapic_test.py",
  165. ],
  166. legacy_create_init = False,
  167. deps = [":connection_py_gapic"],
  168. )
  169. # Open Source Packages
  170. py_gapic_assembly_pkg(
  171. name = "bigquery-connection-v1-py",
  172. deps = [
  173. ":connection_py_gapic",
  174. ],
  175. )
  176. ##############################################################################
  177. # PHP
  178. ##############################################################################
  179. load(
  180. "@com_google_googleapis_imports//:imports.bzl",
  181. "php_gapic_assembly_pkg",
  182. "php_gapic_library",
  183. "php_grpc_library",
  184. "php_proto_library",
  185. )
  186. php_proto_library(
  187. name = "connection_php_proto",
  188. deps = [":connection_proto"],
  189. )
  190. php_grpc_library(
  191. name = "connection_php_grpc",
  192. srcs = [":connection_proto"],
  193. deps = [":connection_php_proto"],
  194. )
  195. php_gapic_library(
  196. name = "connection_php_gapic",
  197. srcs = [":connection_proto_with_info"],
  198. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  199. rest_numeric_enums = False,
  200. transport = "grpc+rest",
  201. deps = [
  202. ":connection_php_grpc",
  203. ":connection_php_proto",
  204. ],
  205. )
  206. # Open Source Packages
  207. php_gapic_assembly_pkg(
  208. name = "google-cloud-bigquery-connection-v1-php",
  209. deps = [
  210. ":connection_php_gapic",
  211. ":connection_php_grpc",
  212. ":connection_php_proto",
  213. ],
  214. )
  215. ##############################################################################
  216. # Node.js
  217. ##############################################################################
  218. load(
  219. "@com_google_googleapis_imports//:imports.bzl",
  220. "nodejs_gapic_assembly_pkg",
  221. "nodejs_gapic_library",
  222. )
  223. nodejs_gapic_library(
  224. name = "connection_nodejs_gapic",
  225. package_name = "@google-cloud/bigquery-connection",
  226. src = ":connection_proto_with_info",
  227. extra_protoc_parameters = ["metadata"],
  228. gapic_yaml = "connection_gapic.yaml",
  229. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  230. package = "google.cloud.bigquery.connection.v1",
  231. rest_numeric_enums = False,
  232. service_yaml = "bigqueryconnection_v1.yaml",
  233. transport = "grpc+rest",
  234. deps = [],
  235. )
  236. nodejs_gapic_assembly_pkg(
  237. name = "bigquery-connection-v1-nodejs",
  238. deps = [
  239. ":connection_nodejs_gapic",
  240. ":connection_proto",
  241. ],
  242. )
  243. ##############################################################################
  244. # Ruby
  245. ##############################################################################
  246. load(
  247. "@com_google_googleapis_imports//:imports.bzl",
  248. "ruby_cloud_gapic_library",
  249. "ruby_gapic_assembly_pkg",
  250. "ruby_grpc_library",
  251. "ruby_proto_library",
  252. )
  253. ruby_proto_library(
  254. name = "connection_ruby_proto",
  255. deps = [":connection_proto"],
  256. )
  257. ruby_grpc_library(
  258. name = "connection_ruby_grpc",
  259. srcs = [":connection_proto"],
  260. deps = [":connection_ruby_proto"],
  261. )
  262. ruby_cloud_gapic_library(
  263. name = "connection_ruby_gapic",
  264. srcs = [":connection_proto_with_info"],
  265. extra_protoc_parameters = [
  266. "ruby-cloud-gem-name=google-cloud-bigquery-connection-v1",
  267. "ruby-cloud-env-prefix=BIGQUERY_CONNECTION",
  268. "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs/reference/bigqueryconnection",
  269. "ruby-cloud-api-id=bigqueryconnection.googleapis.com",
  270. "ruby-cloud-api-shortname=bigqueryconnection",
  271. ],
  272. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  273. rest_numeric_enums = False,
  274. ruby_cloud_description = "The BigQuery Connection API allows users to manage BigQuery connections to external data sources.",
  275. ruby_cloud_title = "BigQuery Connection V1",
  276. deps = [
  277. ":connection_ruby_grpc",
  278. ":connection_ruby_proto",
  279. ],
  280. )
  281. # Open Source Packages
  282. ruby_gapic_assembly_pkg(
  283. name = "google-cloud-bigquery-connection-v1-ruby",
  284. deps = [
  285. ":connection_ruby_gapic",
  286. ":connection_ruby_grpc",
  287. ":connection_ruby_proto",
  288. ],
  289. )
  290. ##############################################################################
  291. # C#
  292. ##############################################################################
  293. load(
  294. "@com_google_googleapis_imports//:imports.bzl",
  295. "csharp_gapic_assembly_pkg",
  296. "csharp_gapic_library",
  297. "csharp_grpc_library",
  298. "csharp_proto_library",
  299. )
  300. csharp_proto_library(
  301. name = "connection_csharp_proto",
  302. deps = [":connection_proto"],
  303. )
  304. csharp_grpc_library(
  305. name = "connection_csharp_grpc",
  306. srcs = [":connection_proto"],
  307. deps = [":connection_csharp_proto"],
  308. )
  309. csharp_gapic_library(
  310. name = "connection_csharp_gapic",
  311. srcs = [":connection_proto_with_info"],
  312. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  313. grpc_service_config = "bigqueryconnection_grpc_service_config.json",
  314. rest_numeric_enums = False,
  315. service_yaml = "bigqueryconnection_v1.yaml",
  316. deps = [
  317. ":connection_csharp_grpc",
  318. ":connection_csharp_proto",
  319. ],
  320. )
  321. # Open Source Packages
  322. csharp_gapic_assembly_pkg(
  323. name = "google-cloud-bigquery-connection-v1-csharp",
  324. deps = [
  325. ":connection_csharp_gapic",
  326. ":connection_csharp_grpc",
  327. ":connection_csharp_proto",
  328. ],
  329. )
  330. ##############################################################################
  331. # C++
  332. ##############################################################################
  333. load(
  334. "@com_google_googleapis_imports//:imports.bzl",
  335. "cc_grpc_library",
  336. "cc_proto_library",
  337. )
  338. cc_proto_library(
  339. name = "connection_cc_proto",
  340. deps = [":connection_proto"],
  341. )
  342. cc_grpc_library(
  343. name = "connection_cc_grpc",
  344. srcs = [":connection_proto"],
  345. grpc_only = True,
  346. deps = [":connection_cc_proto"],
  347. )