BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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 = "recaptchaenterprise_proto",
  19. srcs = [
  20. "recaptchaenterprise.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. "@com_google_protobuf//:empty_proto",
  28. "@com_google_protobuf//:field_mask_proto",
  29. "@com_google_protobuf//:timestamp_proto",
  30. ],
  31. )
  32. proto_library_with_info(
  33. name = "recaptchaenterprise_proto_with_info",
  34. deps = [
  35. ":recaptchaenterprise_proto",
  36. "//google/cloud:common_resources_proto",
  37. ],
  38. )
  39. ##############################################################################
  40. # Java
  41. ##############################################################################
  42. load(
  43. "@com_google_googleapis_imports//:imports.bzl",
  44. "java_gapic_assembly_gradle_pkg",
  45. "java_gapic_library",
  46. "java_gapic_test",
  47. "java_grpc_library",
  48. "java_proto_library",
  49. )
  50. java_proto_library(
  51. name = "recaptchaenterprise_java_proto",
  52. deps = [":recaptchaenterprise_proto"],
  53. )
  54. java_grpc_library(
  55. name = "recaptchaenterprise_java_grpc",
  56. srcs = [":recaptchaenterprise_proto"],
  57. deps = [":recaptchaenterprise_java_proto"],
  58. )
  59. java_gapic_library(
  60. name = "recaptchaenterprise_java_gapic",
  61. srcs = [":recaptchaenterprise_proto_with_info"],
  62. gapic_yaml = "recaptchaenterprise_gapic.yaml",
  63. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  64. test_deps = [
  65. ":recaptchaenterprise_java_grpc",
  66. ],
  67. deps = [
  68. ":recaptchaenterprise_java_proto",
  69. ],
  70. )
  71. java_gapic_test(
  72. name = "recaptchaenterprise_java_gapic_test_suite",
  73. test_classes = [
  74. "com.google.cloud.recaptchaenterprise.v1.RecaptchaEnterpriseServiceClientTest",
  75. ],
  76. runtime_deps = [":recaptchaenterprise_java_gapic_test"],
  77. )
  78. # Open Source Packages
  79. java_gapic_assembly_gradle_pkg(
  80. name = "google-cloud-recaptchaenterprise-v1-java",
  81. deps = [
  82. ":recaptchaenterprise_java_gapic",
  83. ":recaptchaenterprise_java_grpc",
  84. ":recaptchaenterprise_java_proto",
  85. ":recaptchaenterprise_proto",
  86. ],
  87. )
  88. ##############################################################################
  89. # Go
  90. ##############################################################################
  91. load(
  92. "@com_google_googleapis_imports//:imports.bzl",
  93. "go_gapic_assembly_pkg",
  94. "go_gapic_library",
  95. "go_proto_library",
  96. "go_test",
  97. )
  98. go_proto_library(
  99. name = "recaptchaenterprise_go_proto",
  100. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  101. importpath = "google.golang.org/genproto/googleapis/cloud/recaptchaenterprise/v1",
  102. protos = [":recaptchaenterprise_proto"],
  103. deps = [
  104. "//google/api:annotations_go_proto",
  105. ],
  106. )
  107. go_gapic_library(
  108. name = "recaptchaenterprise_go_gapic",
  109. srcs = [":recaptchaenterprise_proto_with_info"],
  110. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  111. importpath = "cloud.google.com/go/recaptchaenterprise/apiv1;recaptchaenterprise",
  112. service_yaml = "recaptchaenterprise_v1.yaml",
  113. deps = [
  114. ":recaptchaenterprise_go_proto",
  115. ],
  116. )
  117. go_test(
  118. name = "recaptchaenterprise_go_gapic_test",
  119. srcs = [":recaptchaenterprise_go_gapic_srcjar_test"],
  120. embed = [":recaptchaenterprise_go_gapic"],
  121. importpath = "cloud.google.com/go/recaptchaenterprise/apiv1",
  122. )
  123. # Open Source Packages
  124. go_gapic_assembly_pkg(
  125. name = "gapi-cloud-recaptchaenterprise-v1-go",
  126. deps = [
  127. ":recaptchaenterprise_go_gapic",
  128. ":recaptchaenterprise_go_gapic_srcjar-test.srcjar",
  129. ":recaptchaenterprise_go_proto",
  130. ],
  131. )
  132. ##############################################################################
  133. # Python
  134. ##############################################################################
  135. load(
  136. "@com_google_googleapis_imports//:imports.bzl",
  137. "py_gapic_assembly_pkg",
  138. "py_gapic_library",
  139. )
  140. py_gapic_library(
  141. name = "recaptchaenterprise_py_gapic",
  142. srcs = [":recaptchaenterprise_proto"],
  143. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  144. )
  145. # Open Source Packages
  146. py_gapic_assembly_pkg(
  147. name = "recaptchaenterprise-v1-py",
  148. deps = [
  149. ":recaptchaenterprise_py_gapic",
  150. ],
  151. )
  152. ##############################################################################
  153. # PHP
  154. ##############################################################################
  155. load(
  156. "@com_google_googleapis_imports//:imports.bzl",
  157. "php_gapic_assembly_pkg",
  158. "php_gapic_library",
  159. "php_grpc_library",
  160. "php_proto_library",
  161. )
  162. php_proto_library(
  163. name = "recaptchaenterprise_php_proto",
  164. deps = [":recaptchaenterprise_proto"],
  165. )
  166. php_grpc_library(
  167. name = "recaptchaenterprise_php_grpc",
  168. srcs = [":recaptchaenterprise_proto"],
  169. deps = [":recaptchaenterprise_php_proto"],
  170. )
  171. php_gapic_library(
  172. name = "recaptchaenterprise_php_gapic",
  173. srcs = [":recaptchaenterprise_proto_with_info"],
  174. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  175. deps = [
  176. ":recaptchaenterprise_php_grpc",
  177. ":recaptchaenterprise_php_proto",
  178. ],
  179. )
  180. # Open Source Packages
  181. php_gapic_assembly_pkg(
  182. name = "google-cloud-recaptchaenterprise-v1-php",
  183. deps = [
  184. ":recaptchaenterprise_php_gapic",
  185. ":recaptchaenterprise_php_grpc",
  186. ":recaptchaenterprise_php_proto",
  187. ],
  188. )
  189. ##############################################################################
  190. # Node.js
  191. ##############################################################################
  192. load(
  193. "@com_google_googleapis_imports//:imports.bzl",
  194. "nodejs_gapic_assembly_pkg",
  195. "nodejs_gapic_library",
  196. )
  197. nodejs_gapic_library(
  198. name = "recaptchaenterprise_nodejs_gapic",
  199. package_name = "@google-cloud/recaptcha-enterprise",
  200. src = ":recaptchaenterprise_proto_with_info",
  201. extra_protoc_parameters = ["metadata"],
  202. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  203. package = "google.cloud.recaptchaenterprise.v1",
  204. service_yaml = "recaptchaenterprise_v1.yaml",
  205. deps = [],
  206. )
  207. nodejs_gapic_assembly_pkg(
  208. name = "recaptchaenterprise-v1-nodejs",
  209. deps = [
  210. ":recaptchaenterprise_nodejs_gapic",
  211. ":recaptchaenterprise_proto",
  212. ],
  213. )
  214. ##############################################################################
  215. # Ruby
  216. ##############################################################################
  217. load(
  218. "@com_google_googleapis_imports//:imports.bzl",
  219. "ruby_cloud_gapic_library",
  220. "ruby_gapic_assembly_pkg",
  221. "ruby_grpc_library",
  222. "ruby_proto_library",
  223. )
  224. ruby_proto_library(
  225. name = "recaptchaenterprise_ruby_proto",
  226. deps = [":recaptchaenterprise_proto"],
  227. )
  228. ruby_grpc_library(
  229. name = "recaptchaenterprise_ruby_grpc",
  230. srcs = [":recaptchaenterprise_proto"],
  231. deps = [":recaptchaenterprise_ruby_proto"],
  232. )
  233. ruby_cloud_gapic_library(
  234. name = "recaptchaenterprise_ruby_gapic",
  235. srcs = [":recaptchaenterprise_proto_with_info"],
  236. extra_protoc_parameters = [
  237. "ruby-cloud-gem-name=google-cloud-recaptcha_enterprise-v1",
  238. "ruby-cloud-env-prefix=RECAPTCHA_ENTERPRISE",
  239. "ruby-cloud-product-url=https://cloud.google.com/recaptcha-enterprise",
  240. "ruby-cloud-api-id=recaptchaenterprise.googleapis.com",
  241. "ruby-cloud-api-shortname=recaptchaenterprise",
  242. ],
  243. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  244. ruby_cloud_description = "reCAPTCHA Enterprise is a service that protects your site from spam and abuse.",
  245. ruby_cloud_title = "reCAPTCHA Enterprise V1",
  246. deps = [
  247. ":recaptchaenterprise_ruby_grpc",
  248. ":recaptchaenterprise_ruby_proto",
  249. ],
  250. )
  251. # Open Source Packages
  252. ruby_gapic_assembly_pkg(
  253. name = "google-cloud-recaptchaenterprise-v1-ruby",
  254. deps = [
  255. ":recaptchaenterprise_ruby_gapic",
  256. ":recaptchaenterprise_ruby_grpc",
  257. ":recaptchaenterprise_ruby_proto",
  258. ],
  259. )
  260. ##############################################################################
  261. # C#
  262. ##############################################################################
  263. load(
  264. "@com_google_googleapis_imports//:imports.bzl",
  265. "csharp_gapic_assembly_pkg",
  266. "csharp_gapic_library",
  267. "csharp_grpc_library",
  268. "csharp_proto_library",
  269. )
  270. csharp_proto_library(
  271. name = "recaptchaenterprise_csharp_proto",
  272. deps = [":recaptchaenterprise_proto"],
  273. )
  274. csharp_grpc_library(
  275. name = "recaptchaenterprise_csharp_grpc",
  276. srcs = [":recaptchaenterprise_proto"],
  277. deps = [":recaptchaenterprise_csharp_proto"],
  278. )
  279. csharp_gapic_library(
  280. name = "recaptchaenterprise_csharp_gapic",
  281. srcs = [":recaptchaenterprise_proto_with_info"],
  282. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  283. grpc_service_config = "recaptchaenterprise_grpc_service_config.json",
  284. deps = [
  285. ":recaptchaenterprise_csharp_grpc",
  286. ":recaptchaenterprise_csharp_proto",
  287. ],
  288. )
  289. # Open Source Packages
  290. csharp_gapic_assembly_pkg(
  291. name = "google-cloud-recaptchaenterprise-v1-csharp",
  292. deps = [
  293. ":recaptchaenterprise_csharp_gapic",
  294. ":recaptchaenterprise_csharp_grpc",
  295. ":recaptchaenterprise_csharp_proto",
  296. ],
  297. )
  298. ##############################################################################
  299. # C++
  300. ##############################################################################
  301. # Put your C++ rules here