BUILD.bazel 11 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 = "batch_proto",
  19. srcs = [
  20. "batch.proto",
  21. "job.proto",
  22. "task.proto",
  23. "volume.proto",
  24. ],
  25. deps = [
  26. "//google/api:annotations_proto",
  27. "//google/api:client_proto",
  28. "//google/api:field_behavior_proto",
  29. "//google/api:resource_proto",
  30. "//google/longrunning:operations_proto",
  31. "@com_google_protobuf//:duration_proto",
  32. "@com_google_protobuf//:timestamp_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "batch_proto_with_info",
  37. deps = [
  38. ":batch_proto",
  39. "//google/cloud:common_resources_proto",
  40. "//google/cloud/location:location_proto",
  41. "//google/iam/v1:iam_policy_proto",
  42. ],
  43. )
  44. ##############################################################################
  45. # Java
  46. ##############################################################################
  47. load(
  48. "@com_google_googleapis_imports//:imports.bzl",
  49. "java_gapic_assembly_gradle_pkg",
  50. "java_gapic_library",
  51. "java_gapic_test",
  52. "java_grpc_library",
  53. "java_proto_library",
  54. )
  55. java_proto_library(
  56. name = "batch_java_proto",
  57. deps = [":batch_proto"],
  58. )
  59. java_grpc_library(
  60. name = "batch_java_grpc",
  61. srcs = [":batch_proto"],
  62. deps = [":batch_java_proto"],
  63. )
  64. java_gapic_library(
  65. name = "batch_java_gapic",
  66. srcs = [":batch_proto_with_info"],
  67. gapic_yaml = None,
  68. grpc_service_config = "batch_v1_grpc_service_config.json",
  69. rest_numeric_enums = False,
  70. service_yaml = "batch_v1.yaml",
  71. test_deps = [
  72. ":batch_java_grpc",
  73. "//google/cloud/location:location_java_grpc",
  74. "//google/iam/v1:iam_java_grpc",
  75. ],
  76. transport = "grpc+rest",
  77. deps = [
  78. ":batch_java_proto",
  79. "//google/api:api_java_proto",
  80. "//google/cloud/location:location_java_proto",
  81. "//google/iam/v1:iam_java_proto",
  82. ],
  83. )
  84. java_gapic_test(
  85. name = "batch_java_gapic_test_suite",
  86. test_classes = [
  87. "com.google.cloud.batch.v1.BatchServiceClientHttpJsonTest",
  88. "com.google.cloud.batch.v1.BatchServiceClientTest",
  89. ],
  90. runtime_deps = [":batch_java_gapic_test"],
  91. )
  92. # Open Source Packages
  93. java_gapic_assembly_gradle_pkg(
  94. name = "google-cloud-batch-v1-java",
  95. include_samples = True,
  96. transport = "grpc+rest",
  97. deps = [
  98. ":batch_java_gapic",
  99. ":batch_java_grpc",
  100. ":batch_java_proto",
  101. ":batch_proto",
  102. ],
  103. )
  104. ##############################################################################
  105. # Go
  106. ##############################################################################
  107. load(
  108. "@com_google_googleapis_imports//:imports.bzl",
  109. "go_gapic_assembly_pkg",
  110. "go_gapic_library",
  111. "go_proto_library",
  112. "go_test",
  113. )
  114. go_proto_library(
  115. name = "batch_go_proto",
  116. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  117. importpath = "google.golang.org/genproto/googleapis/cloud/batch/v1",
  118. protos = [":batch_proto"],
  119. deps = [
  120. "//google/api:annotations_go_proto",
  121. "//google/longrunning:longrunning_go_proto",
  122. ],
  123. )
  124. go_gapic_library(
  125. name = "batch_go_gapic",
  126. srcs = [":batch_proto_with_info"],
  127. grpc_service_config = "batch_v1_grpc_service_config.json",
  128. importpath = "cloud.google.com/go/batch/apiv1;batch",
  129. metadata = True,
  130. rest_numeric_enums = False,
  131. service_yaml = "batch_v1.yaml",
  132. transport = "grpc+rest",
  133. deps = [
  134. ":batch_go_proto",
  135. "//google/cloud/location:location_go_proto",
  136. "//google/iam/v1:iam_go_proto",
  137. "//google/longrunning:longrunning_go_proto",
  138. "@com_google_cloud_go//longrunning:go_default_library",
  139. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  140. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  141. ],
  142. )
  143. go_test(
  144. name = "batch_go_gapic_test",
  145. srcs = [":batch_go_gapic_srcjar_test"],
  146. embed = [":batch_go_gapic"],
  147. importpath = "cloud.google.com/go/batch/apiv1",
  148. )
  149. # Open Source Packages
  150. go_gapic_assembly_pkg(
  151. name = "gapi-cloud-batch-v1-go",
  152. deps = [
  153. ":batch_go_gapic",
  154. ":batch_go_gapic_srcjar-metadata.srcjar",
  155. ":batch_go_gapic_srcjar-test.srcjar",
  156. ":batch_go_proto",
  157. ],
  158. )
  159. ##############################################################################
  160. # Python
  161. ##############################################################################
  162. load(
  163. "@com_google_googleapis_imports//:imports.bzl",
  164. "py_gapic_assembly_pkg",
  165. "py_gapic_library",
  166. "py_test",
  167. )
  168. py_gapic_library(
  169. name = "batch_py_gapic",
  170. srcs = [":batch_proto"],
  171. grpc_service_config = "batch_v1_grpc_service_config.json",
  172. rest_numeric_enums = False,
  173. service_yaml = "batch_v1.yaml",
  174. transport = "grpc+rest",
  175. deps = [
  176. "//google/iam/v1:iam_policy_py_proto",
  177. ],
  178. )
  179. py_test(
  180. name = "batch_py_gapic_test",
  181. srcs = [
  182. "batch_py_gapic_pytest.py",
  183. "batch_py_gapic_test.py",
  184. ],
  185. legacy_create_init = False,
  186. deps = [":batch_py_gapic"],
  187. )
  188. # Open Source Packages
  189. py_gapic_assembly_pkg(
  190. name = "batch-v1-py",
  191. deps = [
  192. ":batch_py_gapic",
  193. ],
  194. )
  195. ##############################################################################
  196. # PHP
  197. ##############################################################################
  198. load(
  199. "@com_google_googleapis_imports//:imports.bzl",
  200. "php_gapic_assembly_pkg",
  201. "php_gapic_library",
  202. "php_grpc_library",
  203. "php_proto_library",
  204. )
  205. php_proto_library(
  206. name = "batch_php_proto",
  207. deps = [":batch_proto"],
  208. )
  209. php_grpc_library(
  210. name = "batch_php_grpc",
  211. srcs = [":batch_proto"],
  212. deps = [":batch_php_proto"],
  213. )
  214. php_gapic_library(
  215. name = "batch_php_gapic",
  216. srcs = [":batch_proto_with_info"],
  217. grpc_service_config = "batch_v1_grpc_service_config.json",
  218. rest_numeric_enums = False,
  219. service_yaml = "batch_v1.yaml",
  220. transport = "grpc+rest",
  221. deps = [
  222. ":batch_php_grpc",
  223. ":batch_php_proto",
  224. ],
  225. )
  226. # Open Source Packages
  227. php_gapic_assembly_pkg(
  228. name = "google-cloud-batch-v1-php",
  229. deps = [
  230. ":batch_php_gapic",
  231. ":batch_php_grpc",
  232. ":batch_php_proto",
  233. ],
  234. )
  235. ##############################################################################
  236. # Node.js
  237. ##############################################################################
  238. load(
  239. "@com_google_googleapis_imports//:imports.bzl",
  240. "nodejs_gapic_assembly_pkg",
  241. "nodejs_gapic_library",
  242. )
  243. nodejs_gapic_library(
  244. name = "batch_nodejs_gapic",
  245. package_name = "@google-cloud/batch",
  246. src = ":batch_proto_with_info",
  247. extra_protoc_parameters = ["metadata"],
  248. grpc_service_config = "batch_v1_grpc_service_config.json",
  249. package = "google.cloud.batch.v1",
  250. rest_numeric_enums = False,
  251. service_yaml = "batch_v1.yaml",
  252. transport = "grpc+rest",
  253. deps = [],
  254. )
  255. nodejs_gapic_assembly_pkg(
  256. name = "batch-v1-nodejs",
  257. deps = [
  258. ":batch_nodejs_gapic",
  259. ":batch_proto",
  260. ],
  261. )
  262. ##############################################################################
  263. # Ruby
  264. ##############################################################################
  265. load(
  266. "@com_google_googleapis_imports//:imports.bzl",
  267. "ruby_cloud_gapic_library",
  268. "ruby_gapic_assembly_pkg",
  269. "ruby_grpc_library",
  270. "ruby_proto_library",
  271. )
  272. ruby_proto_library(
  273. name = "batch_ruby_proto",
  274. deps = [":batch_proto"],
  275. )
  276. ruby_grpc_library(
  277. name = "batch_ruby_grpc",
  278. srcs = [":batch_proto"],
  279. deps = [":batch_ruby_proto"],
  280. )
  281. ruby_cloud_gapic_library(
  282. name = "batch_ruby_gapic",
  283. srcs = [":batch_proto_with_info"],
  284. extra_protoc_parameters = [
  285. "ruby-cloud-api-id=batch.googleapis.com",
  286. "ruby-cloud-api-shortname=batch",
  287. "ruby-cloud-gem-name=google-cloud-batch-v1",
  288. ],
  289. grpc_service_config = "batch_v1_grpc_service_config.json",
  290. rest_numeric_enums = False,
  291. ruby_cloud_description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.",
  292. ruby_cloud_title = "Batch V1",
  293. service_yaml = "batch_v1.yaml",
  294. deps = [
  295. ":batch_ruby_grpc",
  296. ":batch_ruby_proto",
  297. ],
  298. )
  299. # Open Source Packages
  300. ruby_gapic_assembly_pkg(
  301. name = "google-cloud-batch-v1-ruby",
  302. deps = [
  303. ":batch_ruby_gapic",
  304. ":batch_ruby_grpc",
  305. ":batch_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 = "batch_csharp_proto",
  320. deps = [":batch_proto"],
  321. )
  322. csharp_grpc_library(
  323. name = "batch_csharp_grpc",
  324. srcs = [":batch_proto"],
  325. deps = [":batch_csharp_proto"],
  326. )
  327. csharp_gapic_library(
  328. name = "batch_csharp_gapic",
  329. srcs = [":batch_proto_with_info"],
  330. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  331. grpc_service_config = "batch_v1_grpc_service_config.json",
  332. rest_numeric_enums = False,
  333. service_yaml = "batch_v1.yaml",
  334. deps = [
  335. ":batch_csharp_grpc",
  336. ":batch_csharp_proto",
  337. ],
  338. )
  339. # Open Source Packages
  340. csharp_gapic_assembly_pkg(
  341. name = "google-cloud-batch-v1-csharp",
  342. deps = [
  343. ":batch_csharp_gapic",
  344. ":batch_csharp_grpc",
  345. ":batch_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 = "batch_cc_proto",
  358. deps = [":batch_proto"],
  359. )
  360. cc_grpc_library(
  361. name = "batch_cc_grpc",
  362. srcs = [":batch_proto"],
  363. grpc_only = True,
  364. deps = [":batch_cc_proto"],
  365. )