BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "talent_proto",
  19. srcs = [
  20. "common.proto",
  21. "company.proto",
  22. "company_service.proto",
  23. "completion_service.proto",
  24. "event.proto",
  25. "event_service.proto",
  26. "filters.proto",
  27. "histogram.proto",
  28. "job.proto",
  29. "job_service.proto",
  30. "tenant.proto",
  31. "tenant_service.proto",
  32. ],
  33. deps = [
  34. "//google/api:annotations_proto",
  35. "//google/api:client_proto",
  36. "//google/api:field_behavior_proto",
  37. "//google/api:resource_proto",
  38. "//google/longrunning:operations_proto",
  39. "//google/rpc:status_proto",
  40. "//google/type:latlng_proto",
  41. "//google/type:money_proto",
  42. "//google/type:postal_address_proto",
  43. "//google/type:timeofday_proto",
  44. "@com_google_protobuf//:any_proto",
  45. "@com_google_protobuf//:duration_proto",
  46. "@com_google_protobuf//:empty_proto",
  47. "@com_google_protobuf//:field_mask_proto",
  48. "@com_google_protobuf//:timestamp_proto",
  49. "@com_google_protobuf//:wrappers_proto",
  50. ],
  51. )
  52. proto_library_with_info(
  53. name = "talent_proto_with_info",
  54. deps = [
  55. ":talent_proto",
  56. "//google/cloud:common_resources_proto",
  57. ],
  58. )
  59. ##############################################################################
  60. # Java
  61. ##############################################################################
  62. load(
  63. "@com_google_googleapis_imports//:imports.bzl",
  64. "java_gapic_assembly_gradle_pkg",
  65. "java_gapic_library",
  66. "java_gapic_test",
  67. "java_grpc_library",
  68. "java_proto_library",
  69. )
  70. java_proto_library(
  71. name = "talent_java_proto",
  72. deps = [":talent_proto"],
  73. )
  74. java_grpc_library(
  75. name = "talent_java_grpc",
  76. srcs = [":talent_proto"],
  77. deps = [":talent_java_proto"],
  78. )
  79. java_gapic_library(
  80. name = "talent_java_gapic",
  81. srcs = [":talent_proto_with_info"],
  82. grpc_service_config = "talent_grpc_service_config.json",
  83. rest_numeric_enums = False,
  84. test_deps = [
  85. ":talent_java_grpc",
  86. ],
  87. transport = "grpc+rest",
  88. deps = [
  89. ":talent_java_proto",
  90. ],
  91. )
  92. java_gapic_test(
  93. name = "talent_java_gapic_test_suite",
  94. test_classes = [
  95. "com.google.cloud.talent.v4.CompanyServiceClientHttpJsonTest",
  96. "com.google.cloud.talent.v4.CompanyServiceClientTest",
  97. "com.google.cloud.talent.v4.CompletionClientHttpJsonTest",
  98. "com.google.cloud.talent.v4.CompletionClientTest",
  99. "com.google.cloud.talent.v4.EventServiceClientHttpJsonTest",
  100. "com.google.cloud.talent.v4.EventServiceClientTest",
  101. "com.google.cloud.talent.v4.JobServiceClientHttpJsonTest",
  102. "com.google.cloud.talent.v4.JobServiceClientTest",
  103. "com.google.cloud.talent.v4.TenantServiceClientHttpJsonTest",
  104. "com.google.cloud.talent.v4.TenantServiceClientTest",
  105. ],
  106. runtime_deps = [":talent_java_gapic_test"],
  107. )
  108. # Open Source Packages
  109. java_gapic_assembly_gradle_pkg(
  110. name = "google-cloud-talent-v4-java",
  111. include_samples = True,
  112. transport = "grpc+rest",
  113. deps = [
  114. ":talent_java_gapic",
  115. ":talent_java_grpc",
  116. ":talent_java_proto",
  117. ":talent_proto",
  118. ],
  119. )
  120. ##############################################################################
  121. # Go
  122. ##############################################################################
  123. load(
  124. "@com_google_googleapis_imports//:imports.bzl",
  125. "go_gapic_assembly_pkg",
  126. "go_gapic_library",
  127. "go_proto_library",
  128. "go_test",
  129. )
  130. go_proto_library(
  131. name = "talent_go_proto",
  132. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  133. importpath = "google.golang.org/genproto/googleapis/cloud/talent/v4",
  134. protos = [":talent_proto"],
  135. deps = [
  136. "//google/api:annotations_go_proto",
  137. "//google/longrunning:longrunning_go_proto",
  138. "//google/rpc:status_go_proto",
  139. "//google/type:latlng_go_proto",
  140. "//google/type:money_go_proto",
  141. "//google/type:postaladdress_go_proto",
  142. "//google/type:timeofday_go_proto",
  143. ],
  144. )
  145. go_gapic_library(
  146. name = "talent_go_gapic",
  147. srcs = [":talent_proto_with_info"],
  148. grpc_service_config = "talent_grpc_service_config.json",
  149. importpath = "cloud.google.com/go/talent/apiv4;talent",
  150. rest_numeric_enums = False,
  151. service_yaml = "//google/cloud/talent:talent_v4.yaml",
  152. transport = "grpc+rest",
  153. deps = [
  154. ":talent_go_proto",
  155. "//google/longrunning:longrunning_go_proto",
  156. "@com_google_cloud_go//longrunning:go_default_library",
  157. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  158. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  159. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  160. ],
  161. )
  162. go_test(
  163. name = "talent_go_gapic_test",
  164. srcs = [":talent_go_gapic_srcjar_test"],
  165. embed = [":talent_go_gapic"],
  166. importpath = "cloud.google.com/go/talent/apiv4",
  167. )
  168. # Open Source Packages
  169. go_gapic_assembly_pkg(
  170. name = "gapi-cloud-talent-v4-go",
  171. deps = [
  172. ":talent_go_gapic",
  173. ":talent_go_gapic_srcjar-test.srcjar",
  174. ":talent_go_proto",
  175. ],
  176. )
  177. ##############################################################################
  178. # Python
  179. ##############################################################################
  180. load(
  181. "@com_google_googleapis_imports//:imports.bzl",
  182. "py_gapic_assembly_pkg",
  183. "py_gapic_library",
  184. "py_test",
  185. )
  186. py_gapic_library(
  187. name = "talent_py_gapic",
  188. srcs = [":talent_proto"],
  189. grpc_service_config = "talent_grpc_service_config.json",
  190. rest_numeric_enums = False,
  191. transport = "grpc",
  192. )
  193. py_test(
  194. name = "talent_py_gapic_test",
  195. srcs = [
  196. "talent_py_gapic_pytest.py",
  197. "talent_py_gapic_test.py",
  198. ],
  199. legacy_create_init = False,
  200. deps = [":talent_py_gapic"],
  201. )
  202. py_gapic_assembly_pkg(
  203. name = "talent-v4-py",
  204. deps = [
  205. ":talent_py_gapic",
  206. ],
  207. )
  208. ##############################################################################
  209. # PHP
  210. ##############################################################################
  211. load(
  212. "@com_google_googleapis_imports//:imports.bzl",
  213. "php_gapic_assembly_pkg",
  214. "php_gapic_library",
  215. "php_grpc_library",
  216. "php_proto_library",
  217. )
  218. php_proto_library(
  219. name = "talent_php_proto",
  220. deps = [":talent_proto"],
  221. )
  222. php_grpc_library(
  223. name = "talent_php_grpc",
  224. srcs = [":talent_proto"],
  225. deps = [":talent_php_proto"],
  226. )
  227. php_gapic_library(
  228. name = "talent_php_gapic",
  229. srcs = [":talent_proto_with_info"],
  230. grpc_service_config = "talent_grpc_service_config.json",
  231. rest_numeric_enums = False,
  232. service_yaml = "jobs_v4.yaml",
  233. transport = "grpc+rest",
  234. deps = [
  235. ":talent_php_grpc",
  236. ":talent_php_proto",
  237. ],
  238. )
  239. # Open Source Packages
  240. php_gapic_assembly_pkg(
  241. name = "google-cloud-talent-v4-php",
  242. deps = [
  243. ":talent_php_gapic",
  244. ":talent_php_grpc",
  245. ":talent_php_proto",
  246. ],
  247. )
  248. ##############################################################################
  249. # Node.js
  250. ##############################################################################
  251. load(
  252. "@com_google_googleapis_imports//:imports.bzl",
  253. "nodejs_gapic_assembly_pkg",
  254. "nodejs_gapic_library",
  255. )
  256. nodejs_gapic_library(
  257. name = "talent_nodejs_gapic",
  258. package_name = "@google-cloud/talent",
  259. src = ":talent_proto_with_info",
  260. extra_protoc_parameters = ["metadata"],
  261. grpc_service_config = "talent_grpc_service_config.json",
  262. main_service = "talent",
  263. package = "google.cloud.talent.v4",
  264. rest_numeric_enums = False,
  265. service_yaml = "//google/cloud/talent:talent_v4.yaml",
  266. transport = "grpc+rest",
  267. deps = [],
  268. )
  269. nodejs_gapic_assembly_pkg(
  270. name = "talent-v4-nodejs",
  271. deps = [
  272. ":talent_nodejs_gapic",
  273. ":talent_proto",
  274. ],
  275. )
  276. ##############################################################################
  277. # Ruby
  278. ##############################################################################
  279. load(
  280. "@com_google_googleapis_imports//:imports.bzl",
  281. "ruby_cloud_gapic_library",
  282. "ruby_gapic_assembly_pkg",
  283. "ruby_grpc_library",
  284. "ruby_proto_library",
  285. )
  286. ruby_proto_library(
  287. name = "talent_ruby_proto",
  288. deps = [":talent_proto"],
  289. )
  290. ruby_grpc_library(
  291. name = "talent_ruby_grpc",
  292. srcs = [":talent_proto"],
  293. deps = [":talent_ruby_proto"],
  294. )
  295. ruby_cloud_gapic_library(
  296. name = "talent_ruby_gapic",
  297. srcs = [":talent_proto_with_info"],
  298. extra_protoc_parameters = [
  299. "ruby-cloud-gem-name=google-cloud-talent-v4",
  300. "ruby-cloud-env-prefix=TALENT",
  301. "ruby-cloud-product-url=https://cloud.google.com/solutions/talent-solution",
  302. "ruby-cloud-api-id=jobs.googleapis.com",
  303. "ruby-cloud-api-shortname=jobs",
  304. ],
  305. grpc_service_config = "talent_grpc_service_config.json",
  306. rest_numeric_enums = False,
  307. ruby_cloud_description = "Transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search to provide candidates and employers with an enhanced talent acquisition experience.",
  308. ruby_cloud_title = "Cloud Talent Solution V4",
  309. deps = [
  310. ":talent_ruby_grpc",
  311. ":talent_ruby_proto",
  312. ],
  313. )
  314. # Open Source Packages
  315. ruby_gapic_assembly_pkg(
  316. name = "google-cloud-talent-v4-ruby",
  317. deps = [
  318. ":talent_ruby_gapic",
  319. ":talent_ruby_grpc",
  320. ":talent_ruby_proto",
  321. ],
  322. )
  323. ##############################################################################
  324. # C#
  325. ##############################################################################
  326. load(
  327. "@com_google_googleapis_imports//:imports.bzl",
  328. "csharp_gapic_assembly_pkg",
  329. "csharp_gapic_library",
  330. "csharp_grpc_library",
  331. "csharp_proto_library",
  332. )
  333. csharp_proto_library(
  334. name = "talent_csharp_proto",
  335. deps = [":talent_proto"],
  336. )
  337. csharp_grpc_library(
  338. name = "talent_csharp_grpc",
  339. srcs = [":talent_proto"],
  340. deps = [":talent_csharp_proto"],
  341. )
  342. csharp_gapic_library(
  343. name = "talent_csharp_gapic",
  344. srcs = [":talent_proto_with_info"],
  345. rest_numeric_enums = False,
  346. service_yaml = "//google/cloud/talent:talent_v4.yaml",
  347. deps = [
  348. ":talent_csharp_grpc",
  349. ":talent_csharp_proto",
  350. ],
  351. )
  352. # Open Source Packages
  353. csharp_gapic_assembly_pkg(
  354. name = "google-cloud-talent-v4-csharp",
  355. deps = [
  356. ":talent_csharp_gapic",
  357. ":talent_csharp_grpc",
  358. ":talent_csharp_proto",
  359. ],
  360. )
  361. ##############################################################################
  362. # C++
  363. ##############################################################################
  364. load(
  365. "@com_google_googleapis_imports//:imports.bzl",
  366. "cc_grpc_library",
  367. "cc_proto_library",
  368. )
  369. cc_proto_library(
  370. name = "talent_cc_proto",
  371. deps = [":talent_proto"],
  372. )
  373. cc_grpc_library(
  374. name = "talent_cc_grpc",
  375. srcs = [":talent_proto"],
  376. grpc_only = True,
  377. deps = [":talent_cc_proto"],
  378. )