BUILD.bazel 12 KB

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