BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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 = "dataexchange_proto",
  19. srcs = [
  20. "dataexchange.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:iam_policy_proto",
  28. "//google/iam/v1:policy_proto",
  29. "@com_google_protobuf//:empty_proto",
  30. "@com_google_protobuf//:field_mask_proto",
  31. "@com_google_protobuf//:wrappers_proto",
  32. ],
  33. )
  34. proto_library_with_info(
  35. name = "dataexchange_proto_with_info",
  36. deps = [
  37. ":dataexchange_proto",
  38. "//google/cloud:common_resources_proto",
  39. "//google/cloud/location:location_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "dataexchange_java_proto",
  55. deps = [":dataexchange_proto"],
  56. )
  57. java_grpc_library(
  58. name = "dataexchange_java_grpc",
  59. srcs = [":dataexchange_proto"],
  60. deps = [":dataexchange_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "dataexchange_java_gapic",
  64. srcs = [":dataexchange_proto_with_info"],
  65. gapic_yaml = None,
  66. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  67. rest_numeric_enums = False,
  68. service_yaml = "analyticshub_v1beta1.yaml",
  69. test_deps = [
  70. ":dataexchange_java_grpc",
  71. "//google/cloud/location:location_java_grpc",
  72. "//google/iam/v1:iam_java_grpc",
  73. ],
  74. transport = "grpc+rest",
  75. deps = [
  76. ":dataexchange_java_proto",
  77. "//google/api:api_java_proto",
  78. "//google/cloud/location:location_java_proto",
  79. "//google/iam/v1:iam_java_proto",
  80. ],
  81. )
  82. java_gapic_test(
  83. name = "dataexchange_java_gapic_test_suite",
  84. test_classes = [
  85. "com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClientHttpJsonTest",
  86. "com.google.cloud.bigquery.dataexchange.v1beta1.AnalyticsHubServiceClientTest",
  87. ],
  88. runtime_deps = [":dataexchange_java_gapic_test"],
  89. )
  90. # Open Source Packages
  91. java_gapic_assembly_gradle_pkg(
  92. name = "google-cloud-bigquery-dataexchange-v1beta1-java",
  93. include_samples = True,
  94. transport = "grpc+rest",
  95. deps = [
  96. ":dataexchange_java_gapic",
  97. ":dataexchange_java_grpc",
  98. ":dataexchange_java_proto",
  99. ":dataexchange_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 = "dataexchange_go_proto",
  114. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  115. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/dataexchange/v1beta1",
  116. protos = [":dataexchange_proto"],
  117. deps = [
  118. "//google/api:annotations_go_proto",
  119. "//google/iam/v1:iam_go_proto",
  120. ],
  121. )
  122. go_gapic_library(
  123. name = "dataexchange_go_gapic",
  124. srcs = [":dataexchange_proto_with_info"],
  125. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  126. importpath = "cloud.google.com/go/bigquery/dataexchange/apiv1beta1;dataexchange",
  127. metadata = True,
  128. rest_numeric_enums = False,
  129. service_yaml = "analyticshub_v1beta1.yaml",
  130. transport = "grpc+rest",
  131. deps = [
  132. ":dataexchange_go_proto",
  133. "//google/cloud/location:location_go_proto",
  134. "//google/iam/v1:iam_go_proto",
  135. ],
  136. )
  137. go_test(
  138. name = "dataexchange_go_gapic_test",
  139. srcs = [":dataexchange_go_gapic_srcjar_test"],
  140. embed = [":dataexchange_go_gapic"],
  141. importpath = "cloud.google.com/go/bigquery/dataexchange/apiv1beta1",
  142. )
  143. # Open Source Packages
  144. go_gapic_assembly_pkg(
  145. name = "gapi-cloud-bigquery-dataexchange-v1beta1-go",
  146. deps = [
  147. ":dataexchange_go_gapic",
  148. ":dataexchange_go_gapic_srcjar-metadata.srcjar",
  149. ":dataexchange_go_gapic_srcjar-test.srcjar",
  150. ":dataexchange_go_proto",
  151. ],
  152. )
  153. ##############################################################################
  154. # Python
  155. ##############################################################################
  156. load(
  157. "@com_google_googleapis_imports//:imports.bzl",
  158. "py_gapic_assembly_pkg",
  159. "py_gapic_library",
  160. "py_test",
  161. )
  162. py_gapic_library(
  163. name = "dataexchange_py_gapic",
  164. srcs = [":dataexchange_proto"],
  165. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  166. opt_args = [
  167. "python-gapic-name=bigquery_data_exchange",
  168. "python-gapic-namespace=google.cloud",
  169. "warehouse-package-name=google-cloud-bigquery-data-exchange",
  170. ],
  171. rest_numeric_enums = False,
  172. service_yaml = "analyticshub_v1beta1.yaml",
  173. transport = "grpc",
  174. deps = [
  175. "//google/iam/v1:iam_policy_py_proto",
  176. ],
  177. )
  178. py_test(
  179. name = "dataexchange_py_gapic_test",
  180. srcs = [
  181. "dataexchange_py_gapic_pytest.py",
  182. "dataexchange_py_gapic_test.py",
  183. ],
  184. legacy_create_init = False,
  185. deps = [":dataexchange_py_gapic"],
  186. )
  187. # Open Source Packages
  188. py_gapic_assembly_pkg(
  189. name = "bigquery-dataexchange-v1beta1-py",
  190. deps = [
  191. ":dataexchange_py_gapic",
  192. ],
  193. )
  194. ##############################################################################
  195. # PHP
  196. ##############################################################################
  197. load(
  198. "@com_google_googleapis_imports//:imports.bzl",
  199. "php_gapic_assembly_pkg",
  200. "php_gapic_library",
  201. "php_grpc_library",
  202. "php_proto_library",
  203. )
  204. php_proto_library(
  205. name = "dataexchange_php_proto",
  206. deps = [":dataexchange_proto"],
  207. )
  208. php_grpc_library(
  209. name = "dataexchange_php_grpc",
  210. srcs = [":dataexchange_proto"],
  211. deps = [":dataexchange_php_proto"],
  212. )
  213. php_gapic_library(
  214. name = "dataexchange_php_gapic",
  215. srcs = [":dataexchange_proto_with_info"],
  216. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  217. rest_numeric_enums = False,
  218. service_yaml = "analyticshub_v1beta1.yaml",
  219. transport = "grpc+rest",
  220. deps = [
  221. ":dataexchange_php_grpc",
  222. ":dataexchange_php_proto",
  223. ],
  224. )
  225. # Open Source Packages
  226. php_gapic_assembly_pkg(
  227. name = "google-cloud-bigquery-dataexchange-v1beta1-php",
  228. deps = [
  229. ":dataexchange_php_gapic",
  230. ":dataexchange_php_grpc",
  231. ":dataexchange_php_proto",
  232. ],
  233. )
  234. ##############################################################################
  235. # Node.js
  236. ##############################################################################
  237. load(
  238. "@com_google_googleapis_imports//:imports.bzl",
  239. "nodejs_gapic_assembly_pkg",
  240. "nodejs_gapic_library",
  241. )
  242. nodejs_gapic_library(
  243. name = "dataexchange_nodejs_gapic",
  244. package_name = "@google-cloud/bigquery-data-exchange",
  245. src = ":dataexchange_proto_with_info",
  246. extra_protoc_parameters = ["metadata"],
  247. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  248. package = "google.cloud.bigquery.dataexchange.v1beta1",
  249. rest_numeric_enums = False,
  250. service_yaml = "analyticshub_v1beta1.yaml",
  251. transport = "grpc+rest",
  252. deps = [],
  253. )
  254. nodejs_gapic_assembly_pkg(
  255. name = "bigquery-dataexchange-v1beta1-nodejs",
  256. deps = [
  257. ":dataexchange_nodejs_gapic",
  258. ":dataexchange_proto",
  259. ],
  260. )
  261. ##############################################################################
  262. # Ruby
  263. ##############################################################################
  264. load(
  265. "@com_google_googleapis_imports//:imports.bzl",
  266. "ruby_cloud_gapic_library",
  267. "ruby_gapic_assembly_pkg",
  268. "ruby_grpc_library",
  269. "ruby_proto_library",
  270. )
  271. ruby_proto_library(
  272. name = "dataexchange_ruby_proto",
  273. deps = [":dataexchange_proto"],
  274. )
  275. ruby_grpc_library(
  276. name = "dataexchange_ruby_grpc",
  277. srcs = [":dataexchange_proto"],
  278. deps = [":dataexchange_ruby_proto"],
  279. )
  280. ruby_cloud_gapic_library(
  281. name = "dataexchange_ruby_gapic",
  282. srcs = [":dataexchange_proto_with_info"],
  283. extra_protoc_parameters = [
  284. "ruby-cloud-api-id=analyticshub.googleapis.com",
  285. "ruby-cloud-api-shortname=analyticshub",
  286. "ruby-cloud-gem-name=google-cloud-bigquery-data_exchange-v1beta1",
  287. "ruby-cloud-product-url=https://cloud.google.com/analytics-hub/",
  288. ],
  289. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  290. rest_numeric_enums = False,
  291. ruby_cloud_description = "Analytics Hub is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. Curate a library of internal and external assets, including unique datasets like Google Trends, backed by the power of BigQuery.",
  292. ruby_cloud_title = "Analytics Hub V1beta1",
  293. service_yaml = "analyticshub_v1beta1.yaml",
  294. deps = [
  295. ":dataexchange_ruby_grpc",
  296. ":dataexchange_ruby_proto",
  297. ],
  298. )
  299. # Open Source Packages
  300. ruby_gapic_assembly_pkg(
  301. name = "google-cloud-bigquery-dataexchange-v1beta1-ruby",
  302. deps = [
  303. ":dataexchange_ruby_gapic",
  304. ":dataexchange_ruby_grpc",
  305. ":dataexchange_ruby_proto",
  306. ],
  307. )
  308. ##############################################################################
  309. # C#
  310. ##############################################################################
  311. load(
  312. "@com_google_googleapis_imports//:imports.bzl",
  313. "csharp_gapic_assembly_pkg",
  314. "csharp_gapic_library",
  315. "csharp_grpc_library",
  316. "csharp_proto_library",
  317. )
  318. csharp_proto_library(
  319. name = "dataexchange_csharp_proto",
  320. deps = [":dataexchange_proto"],
  321. )
  322. csharp_grpc_library(
  323. name = "dataexchange_csharp_grpc",
  324. srcs = [":dataexchange_proto"],
  325. deps = [":dataexchange_csharp_proto"],
  326. )
  327. csharp_gapic_library(
  328. name = "dataexchange_csharp_gapic",
  329. srcs = [":dataexchange_proto_with_info"],
  330. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  331. grpc_service_config = "analyticshub_v1beta1_grpc_service_config.json",
  332. rest_numeric_enums = False,
  333. service_yaml = "analyticshub_v1beta1.yaml",
  334. deps = [
  335. ":dataexchange_csharp_grpc",
  336. ":dataexchange_csharp_proto",
  337. ],
  338. )
  339. # Open Source Packages
  340. csharp_gapic_assembly_pkg(
  341. name = "google-cloud-bigquery-dataexchange-v1beta1-csharp",
  342. deps = [
  343. ":dataexchange_csharp_gapic",
  344. ":dataexchange_csharp_grpc",
  345. ":dataexchange_csharp_proto",
  346. ],
  347. )
  348. ##############################################################################
  349. # C++
  350. ##############################################################################
  351. load(
  352. "@com_google_googleapis_imports//:imports.bzl",
  353. "cc_grpc_library",
  354. "cc_proto_library",
  355. )
  356. cc_proto_library(
  357. name = "dataexchange_cc_proto",
  358. deps = [":dataexchange_proto"],
  359. )
  360. cc_grpc_library(
  361. name = "dataexchange_cc_grpc",
  362. srcs = [":dataexchange_proto"],
  363. grpc_only = True,
  364. deps = [":dataexchange_cc_proto"],
  365. )