BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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 = "analyticshub_proto",
  19. srcs = [
  20. "analyticshub.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 = "analyticshub_proto_with_info",
  36. deps = [
  37. ":analyticshub_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 = "analyticshub_java_proto",
  54. deps = [":analyticshub_proto"],
  55. )
  56. java_grpc_library(
  57. name = "analyticshub_java_grpc",
  58. srcs = [":analyticshub_proto"],
  59. deps = [":analyticshub_java_proto"],
  60. )
  61. java_gapic_library(
  62. name = "analyticshub_java_gapic",
  63. srcs = [":analyticshub_proto_with_info"],
  64. gapic_yaml = None,
  65. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. service_yaml = "analyticshub_v1.yaml",
  68. test_deps = [
  69. ":analyticshub_java_grpc",
  70. "//google/iam/v1:iam_java_grpc",
  71. ],
  72. transport = "grpc+rest",
  73. deps = [
  74. ":analyticshub_java_proto",
  75. "//google/api:api_java_proto",
  76. "//google/iam/v1:iam_java_proto",
  77. ],
  78. )
  79. java_gapic_test(
  80. name = "analyticshub_java_gapic_test_suite",
  81. test_classes = [
  82. "com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClientHttpJsonTest",
  83. "com.google.cloud.bigquery.analyticshub.v1.AnalyticsHubServiceClientTest",
  84. ],
  85. runtime_deps = [":analyticshub_java_gapic_test"],
  86. )
  87. # Open Source Packages
  88. java_gapic_assembly_gradle_pkg(
  89. name = "google-cloud-bigquery-analyticshub-v1-java",
  90. include_samples = True,
  91. transport = "grpc+rest",
  92. deps = [
  93. ":analyticshub_java_gapic",
  94. ":analyticshub_java_grpc",
  95. ":analyticshub_java_proto",
  96. ":analyticshub_proto",
  97. ],
  98. )
  99. ##############################################################################
  100. # Go
  101. ##############################################################################
  102. load(
  103. "@com_google_googleapis_imports//:imports.bzl",
  104. "go_gapic_assembly_pkg",
  105. "go_gapic_library",
  106. "go_proto_library",
  107. "go_test",
  108. )
  109. go_proto_library(
  110. name = "analyticshub_go_proto",
  111. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  112. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/analyticshub/v1",
  113. protos = [":analyticshub_proto"],
  114. deps = [
  115. "//google/api:annotations_go_proto",
  116. "//google/iam/v1:iam_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "analyticshub_go_gapic",
  121. srcs = [":analyticshub_proto_with_info"],
  122. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/bigquery/analyticshub/apiv1;analyticshub",
  124. metadata = True,
  125. rest_numeric_enums = False,
  126. service_yaml = "analyticshub_v1.yaml",
  127. transport = "grpc+rest",
  128. deps = [
  129. ":analyticshub_go_proto",
  130. "//google/iam/v1:iam_go_proto",
  131. ],
  132. )
  133. go_test(
  134. name = "analyticshub_go_gapic_test",
  135. srcs = [":analyticshub_go_gapic_srcjar_test"],
  136. embed = [":analyticshub_go_gapic"],
  137. importpath = "cloud.google.com/go/bigquery/analyticshub/apiv1",
  138. )
  139. # Open Source Packages
  140. go_gapic_assembly_pkg(
  141. name = "gapi-cloud-bigquery-analyticshub-v1-go",
  142. deps = [
  143. ":analyticshub_go_gapic",
  144. ":analyticshub_go_gapic_srcjar-metadata.srcjar",
  145. ":analyticshub_go_gapic_srcjar-test.srcjar",
  146. ":analyticshub_go_proto",
  147. ],
  148. )
  149. ##############################################################################
  150. # Python
  151. ##############################################################################
  152. load(
  153. "@com_google_googleapis_imports//:imports.bzl",
  154. "py_gapic_assembly_pkg",
  155. "py_gapic_library",
  156. "py_test",
  157. )
  158. py_gapic_library(
  159. name = "analyticshub_py_gapic",
  160. srcs = [":analyticshub_proto"],
  161. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  162. rest_numeric_enums = False,
  163. service_yaml = "analyticshub_v1.yaml",
  164. transport = "grpc",
  165. deps = [
  166. "//google/iam/v1:iam_policy_py_proto",
  167. ],
  168. )
  169. py_test(
  170. name = "analyticshub_py_gapic_test",
  171. srcs = [
  172. "analyticshub_py_gapic_pytest.py",
  173. "analyticshub_py_gapic_test.py",
  174. ],
  175. legacy_create_init = False,
  176. deps = [":analyticshub_py_gapic"],
  177. )
  178. # Open Source Packages
  179. py_gapic_assembly_pkg(
  180. name = "bigquery-analyticshub-v1-py",
  181. deps = [
  182. ":analyticshub_py_gapic",
  183. ],
  184. )
  185. ##############################################################################
  186. # PHP
  187. ##############################################################################
  188. load(
  189. "@com_google_googleapis_imports//:imports.bzl",
  190. "php_gapic_assembly_pkg",
  191. "php_gapic_library",
  192. "php_grpc_library",
  193. "php_proto_library",
  194. )
  195. php_proto_library(
  196. name = "analyticshub_php_proto",
  197. deps = [":analyticshub_proto"],
  198. )
  199. php_grpc_library(
  200. name = "analyticshub_php_grpc",
  201. srcs = [":analyticshub_proto"],
  202. deps = [":analyticshub_php_proto"],
  203. )
  204. php_gapic_library(
  205. name = "analyticshub_php_gapic",
  206. srcs = [":analyticshub_proto_with_info"],
  207. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  208. rest_numeric_enums = False,
  209. service_yaml = "analyticshub_v1.yaml",
  210. transport = "grpc+rest",
  211. deps = [
  212. ":analyticshub_php_grpc",
  213. ":analyticshub_php_proto",
  214. ],
  215. )
  216. # Open Source Packages
  217. php_gapic_assembly_pkg(
  218. name = "google-cloud-bigquery-analyticshub-v1-php",
  219. deps = [
  220. ":analyticshub_php_gapic",
  221. ":analyticshub_php_grpc",
  222. ":analyticshub_php_proto",
  223. ],
  224. )
  225. ##############################################################################
  226. # Node.js
  227. ##############################################################################
  228. load(
  229. "@com_google_googleapis_imports//:imports.bzl",
  230. "nodejs_gapic_assembly_pkg",
  231. "nodejs_gapic_library",
  232. )
  233. nodejs_gapic_library(
  234. name = "analyticshub_nodejs_gapic",
  235. package_name = "@google-cloud/bigquery-analyticshub",
  236. src = ":analyticshub_proto_with_info",
  237. extra_protoc_parameters = ["metadata"],
  238. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  239. package = "google.cloud.bigquery.analyticshub.v1",
  240. rest_numeric_enums = False,
  241. service_yaml = "analyticshub_v1.yaml",
  242. transport = "grpc+rest",
  243. deps = [],
  244. )
  245. nodejs_gapic_assembly_pkg(
  246. name = "bigquery-analyticshub-v1-nodejs",
  247. deps = [
  248. ":analyticshub_nodejs_gapic",
  249. ":analyticshub_proto",
  250. ],
  251. )
  252. ##############################################################################
  253. # Ruby
  254. ##############################################################################
  255. load(
  256. "@com_google_googleapis_imports//:imports.bzl",
  257. "ruby_cloud_gapic_library",
  258. "ruby_gapic_assembly_pkg",
  259. "ruby_grpc_library",
  260. "ruby_proto_library",
  261. )
  262. ruby_proto_library(
  263. name = "analyticshub_ruby_proto",
  264. deps = [":analyticshub_proto"],
  265. )
  266. ruby_grpc_library(
  267. name = "analyticshub_ruby_grpc",
  268. srcs = [":analyticshub_proto"],
  269. deps = [":analyticshub_ruby_proto"],
  270. )
  271. ruby_cloud_gapic_library(
  272. name = "analyticshub_ruby_gapic",
  273. srcs = [":analyticshub_proto_with_info"],
  274. extra_protoc_parameters = [
  275. "ruby-cloud-api-id=analyticshub.googleapis.com",
  276. "ruby-cloud-api-shortname=analyticshub",
  277. "ruby-cloud-gem-name=google-cloud-bigquery-analytics_hub-v1",
  278. "ruby-cloud-product-url=https://cloud.google.com/bigquery/docs",
  279. ],
  280. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  281. rest_numeric_enums = False,
  282. ruby_cloud_description = "Analytics Hub is a data exchange platform that enables you to share data and insights at scale across organizational boundaries with a robust security and privacy framework. With Analytics Hub, you can discover and access a data library curated by various data providers.",
  283. ruby_cloud_title = "Analytics Hub V1",
  284. service_yaml = "analyticshub_v1.yaml",
  285. deps = [
  286. ":analyticshub_ruby_grpc",
  287. ":analyticshub_ruby_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. ruby_gapic_assembly_pkg(
  292. name = "google-cloud-bigquery-analyticshub-v1-ruby",
  293. deps = [
  294. ":analyticshub_ruby_gapic",
  295. ":analyticshub_ruby_grpc",
  296. ":analyticshub_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 = "analyticshub_csharp_proto",
  311. deps = [":analyticshub_proto"],
  312. )
  313. csharp_grpc_library(
  314. name = "analyticshub_csharp_grpc",
  315. srcs = [":analyticshub_proto"],
  316. deps = [":analyticshub_csharp_proto"],
  317. )
  318. csharp_gapic_library(
  319. name = "analyticshub_csharp_gapic",
  320. srcs = [":analyticshub_proto_with_info"],
  321. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  322. grpc_service_config = "analyticshub_v1_grpc_service_config.json",
  323. rest_numeric_enums = False,
  324. service_yaml = "analyticshub_v1.yaml",
  325. deps = [
  326. ":analyticshub_csharp_grpc",
  327. ":analyticshub_csharp_proto",
  328. ],
  329. )
  330. # Open Source Packages
  331. csharp_gapic_assembly_pkg(
  332. name = "google-cloud-bigquery-analyticshub-v1-csharp",
  333. deps = [
  334. ":analyticshub_csharp_gapic",
  335. ":analyticshub_csharp_grpc",
  336. ":analyticshub_csharp_proto",
  337. ],
  338. )
  339. ##############################################################################
  340. # C++
  341. ##############################################################################
  342. load(
  343. "@com_google_googleapis_imports//:imports.bzl",
  344. "cc_grpc_library",
  345. "cc_proto_library",
  346. )
  347. cc_proto_library(
  348. name = "analyticshub_cc_proto",
  349. deps = [":analyticshub_proto"],
  350. )
  351. cc_grpc_library(
  352. name = "analyticshub_cc_grpc",
  353. srcs = [":analyticshub_proto"],
  354. grpc_only = True,
  355. deps = [":analyticshub_cc_proto"],
  356. )