BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  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 = "lifesciences_proto",
  19. srcs = [
  20. "workflows.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/longrunning:operations_proto",
  27. "//google/rpc:code_proto",
  28. "@com_google_protobuf//:duration_proto",
  29. "@com_google_protobuf//:timestamp_proto",
  30. ],
  31. )
  32. proto_library_with_info(
  33. name = "lifesciences_proto_with_info",
  34. deps = [
  35. ":lifesciences_proto",
  36. "//google/cloud:common_resources_proto",
  37. "//google/cloud/location:location_proto",
  38. ],
  39. )
  40. ##############################################################################
  41. # Java
  42. ##############################################################################
  43. load(
  44. "@com_google_googleapis_imports//:imports.bzl",
  45. "java_gapic_assembly_gradle_pkg",
  46. "java_gapic_library",
  47. "java_gapic_test",
  48. "java_grpc_library",
  49. "java_proto_library",
  50. )
  51. java_proto_library(
  52. name = "lifesciences_java_proto",
  53. deps = [":lifesciences_proto"],
  54. )
  55. java_grpc_library(
  56. name = "lifesciences_java_grpc",
  57. srcs = [":lifesciences_proto"],
  58. deps = [":lifesciences_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "lifesciences_java_gapic",
  62. srcs = [":lifesciences_proto_with_info"],
  63. gapic_yaml = None,
  64. grpc_service_config = "lifesciences_grpc_service_config.json",
  65. rest_numeric_enums = False,
  66. service_yaml = "lifesciences_v2beta.yaml",
  67. test_deps = [
  68. ":lifesciences_java_grpc",
  69. "//google/cloud/location:location_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":lifesciences_java_proto",
  74. "//google/api:api_java_proto",
  75. "//google/cloud/location:location_java_proto",
  76. ],
  77. )
  78. java_gapic_test(
  79. name = "lifesciences_java_gapic_test_suite",
  80. test_classes = [
  81. "com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClientHttpJsonTest",
  82. "com.google.cloud.lifesciences.v2beta.WorkflowsServiceV2BetaClientTest",
  83. ],
  84. runtime_deps = [":lifesciences_java_gapic_test"],
  85. )
  86. # Open Source Packages
  87. java_gapic_assembly_gradle_pkg(
  88. name = "google-cloud-lifesciences-v2beta-java",
  89. include_samples = True,
  90. transport = "grpc+rest",
  91. deps = [
  92. ":lifesciences_java_gapic",
  93. ":lifesciences_java_grpc",
  94. ":lifesciences_java_proto",
  95. ":lifesciences_proto",
  96. ],
  97. )
  98. ##############################################################################
  99. # Go
  100. ##############################################################################
  101. load(
  102. "@com_google_googleapis_imports//:imports.bzl",
  103. "go_gapic_assembly_pkg",
  104. "go_gapic_library",
  105. "go_proto_library",
  106. "go_test",
  107. )
  108. go_proto_library(
  109. name = "lifesciences_go_proto",
  110. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  111. importpath = "google.golang.org/genproto/googleapis/cloud/lifesciences/v2beta",
  112. protos = [":lifesciences_proto"],
  113. deps = [
  114. "//google/api:annotations_go_proto",
  115. "//google/longrunning:longrunning_go_proto",
  116. "//google/rpc:code_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "lifesciences_go_gapic",
  121. srcs = [":lifesciences_proto_with_info"],
  122. grpc_service_config = "lifesciences_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/lifesciences/apiv2beta;lifesciences",
  124. metadata = True,
  125. rest_numeric_enums = False,
  126. service_yaml = "lifesciences_v2beta.yaml",
  127. transport = "grpc+rest",
  128. deps = [
  129. ":lifesciences_go_proto",
  130. "//google/cloud/location:location_go_proto",
  131. "//google/longrunning:longrunning_go_proto",
  132. "@com_google_cloud_go//longrunning:go_default_library",
  133. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  134. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  135. ],
  136. )
  137. go_test(
  138. name = "lifesciences_go_gapic_test",
  139. srcs = [":lifesciences_go_gapic_srcjar_test"],
  140. embed = [":lifesciences_go_gapic"],
  141. importpath = "cloud.google.com/go/lifesciences/apiv2beta",
  142. )
  143. # Open Source Packages
  144. go_gapic_assembly_pkg(
  145. name = "gapi-cloud-lifesciences-v2beta-go",
  146. deps = [
  147. ":lifesciences_go_gapic",
  148. ":lifesciences_go_gapic_srcjar-metadata.srcjar",
  149. ":lifesciences_go_gapic_srcjar-test.srcjar",
  150. ":lifesciences_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 = "lifesciences_py_gapic",
  164. srcs = [":lifesciences_proto"],
  165. grpc_service_config = "lifesciences_grpc_service_config.json",
  166. opt_args = ["warehouse-package-name=google-cloud-life-sciences"],
  167. rest_numeric_enums = False,
  168. service_yaml = "lifesciences_v2beta.yaml",
  169. transport = "grpc+rest",
  170. deps = [
  171. ],
  172. )
  173. py_test(
  174. name = "lifesciences_py_gapic_test",
  175. srcs = [
  176. "lifesciences_py_gapic_pytest.py",
  177. "lifesciences_py_gapic_test.py",
  178. ],
  179. legacy_create_init = False,
  180. deps = [":lifesciences_py_gapic"],
  181. )
  182. # Open Source Packages
  183. py_gapic_assembly_pkg(
  184. name = "lifesciences-v2beta-py",
  185. deps = [
  186. ":lifesciences_py_gapic",
  187. ],
  188. )
  189. ##############################################################################
  190. # PHP
  191. ##############################################################################
  192. load(
  193. "@com_google_googleapis_imports//:imports.bzl",
  194. "php_gapic_assembly_pkg",
  195. "php_gapic_library",
  196. "php_grpc_library",
  197. "php_proto_library",
  198. )
  199. php_proto_library(
  200. name = "lifesciences_php_proto",
  201. deps = [":lifesciences_proto"],
  202. )
  203. php_grpc_library(
  204. name = "lifesciences_php_grpc",
  205. srcs = [":lifesciences_proto"],
  206. deps = [":lifesciences_php_proto"],
  207. )
  208. php_gapic_library(
  209. name = "lifesciences_php_gapic",
  210. srcs = [":lifesciences_proto_with_info"],
  211. grpc_service_config = "lifesciences_grpc_service_config.json",
  212. rest_numeric_enums = False,
  213. service_yaml = "lifesciences_v2beta.yaml",
  214. transport = "grpc+rest",
  215. deps = [
  216. ":lifesciences_php_grpc",
  217. ":lifesciences_php_proto",
  218. ],
  219. )
  220. # Open Source Packages
  221. php_gapic_assembly_pkg(
  222. name = "google-cloud-lifesciences-v2beta-php",
  223. deps = [
  224. ":lifesciences_php_gapic",
  225. ":lifesciences_php_grpc",
  226. ":lifesciences_php_proto",
  227. ],
  228. )
  229. ##############################################################################
  230. # Node.js
  231. ##############################################################################
  232. load(
  233. "@com_google_googleapis_imports//:imports.bzl",
  234. "nodejs_gapic_assembly_pkg",
  235. "nodejs_gapic_library",
  236. )
  237. nodejs_gapic_library(
  238. name = "lifesciences_nodejs_gapic",
  239. package_name = "@google-cloud/life-sciences",
  240. src = ":lifesciences_proto_with_info",
  241. extra_protoc_parameters = ["metadata"],
  242. grpc_service_config = "lifesciences_grpc_service_config.json",
  243. package = "google.cloud.lifesciences.v2beta",
  244. rest_numeric_enums = False,
  245. service_yaml = "lifesciences_v2beta.yaml",
  246. transport = "grpc+rest",
  247. deps = [],
  248. )
  249. nodejs_gapic_assembly_pkg(
  250. name = "lifesciences-v2beta-nodejs",
  251. deps = [
  252. ":lifesciences_nodejs_gapic",
  253. ":lifesciences_proto",
  254. ],
  255. )
  256. ##############################################################################
  257. # Ruby
  258. ##############################################################################
  259. load(
  260. "@com_google_googleapis_imports//:imports.bzl",
  261. "ruby_cloud_gapic_library",
  262. "ruby_gapic_assembly_pkg",
  263. "ruby_grpc_library",
  264. "ruby_proto_library",
  265. )
  266. ruby_proto_library(
  267. name = "lifesciences_ruby_proto",
  268. deps = [":lifesciences_proto"],
  269. )
  270. ruby_grpc_library(
  271. name = "lifesciences_ruby_grpc",
  272. srcs = [":lifesciences_proto"],
  273. deps = [":lifesciences_ruby_proto"],
  274. )
  275. ruby_cloud_gapic_library(
  276. name = "lifesciences_ruby_gapic",
  277. srcs = [":lifesciences_proto_with_info"],
  278. extra_protoc_parameters = [
  279. "ruby-cloud-api-id=lifesciences.googleapis.com",
  280. "ruby-cloud-api-shortname=lifesciences",
  281. "ruby-cloud-env-prefix=LIFE_SCIENCES",
  282. "ruby-cloud-gem-name=google-cloud-life_sciences-v2beta",
  283. "ruby-cloud-product-url=https://cloud.google.com/life-sciences/",
  284. "ruby-cloud-service-override=WorkflowsServiceV2Beta=WorkflowsService",
  285. ],
  286. grpc_service_config = "lifesciences_grpc_service_config.json",
  287. rest_numeric_enums = False,
  288. ruby_cloud_description = "Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. It also enables advanced insights and operational workflows using highly scalable and compliant infrastructure.",
  289. ruby_cloud_title = "Cloud Life Sciences V2beta",
  290. service_yaml = "lifesciences_v2beta.yaml",
  291. deps = [
  292. ":lifesciences_ruby_grpc",
  293. ":lifesciences_ruby_proto",
  294. ],
  295. )
  296. # Open Source Packages
  297. ruby_gapic_assembly_pkg(
  298. name = "google-cloud-lifesciences-v2beta-ruby",
  299. deps = [
  300. ":lifesciences_ruby_gapic",
  301. ":lifesciences_ruby_grpc",
  302. ":lifesciences_ruby_proto",
  303. ],
  304. )
  305. ##############################################################################
  306. # C#
  307. ##############################################################################
  308. load(
  309. "@com_google_googleapis_imports//:imports.bzl",
  310. "csharp_gapic_assembly_pkg",
  311. "csharp_gapic_library",
  312. "csharp_grpc_library",
  313. "csharp_proto_library",
  314. )
  315. csharp_proto_library(
  316. name = "lifesciences_csharp_proto",
  317. deps = [":lifesciences_proto"],
  318. )
  319. csharp_grpc_library(
  320. name = "lifesciences_csharp_grpc",
  321. srcs = [":lifesciences_proto"],
  322. deps = [":lifesciences_csharp_proto"],
  323. )
  324. csharp_gapic_library(
  325. name = "lifesciences_csharp_gapic",
  326. srcs = [":lifesciences_proto_with_info"],
  327. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  328. grpc_service_config = "lifesciences_grpc_service_config.json",
  329. rest_numeric_enums = False,
  330. service_yaml = "lifesciences_v2beta.yaml",
  331. deps = [
  332. ":lifesciences_csharp_grpc",
  333. ":lifesciences_csharp_proto",
  334. ],
  335. )
  336. # Open Source Packages
  337. csharp_gapic_assembly_pkg(
  338. name = "google-cloud-lifesciences-v2beta-csharp",
  339. deps = [
  340. ":lifesciences_csharp_gapic",
  341. ":lifesciences_csharp_grpc",
  342. ":lifesciences_csharp_proto",
  343. ],
  344. )
  345. ##############################################################################
  346. # C++
  347. ##############################################################################
  348. load(
  349. "@com_google_googleapis_imports//:imports.bzl",
  350. "cc_grpc_library",
  351. "cc_proto_library",
  352. )
  353. cc_proto_library(
  354. name = "lifesciences_cc_proto",
  355. deps = [":lifesciences_proto"],
  356. )
  357. cc_grpc_library(
  358. name = "lifesciences_cc_grpc",
  359. srcs = [":lifesciences_proto"],
  360. grpc_only = True,
  361. deps = [":lifesciences_cc_proto"],
  362. )