BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "phishingprotection_proto",
  11. srcs = [
  12. "phishingprotection.proto",
  13. ],
  14. deps = [
  15. "//google/api:annotations_proto",
  16. "//google/api:client_proto",
  17. "//google/api:field_behavior_proto",
  18. "//google/api:resource_proto",
  19. ],
  20. )
  21. proto_library_with_info(
  22. name = "phishingprotection_proto_with_info",
  23. deps = [
  24. ":phishingprotection_proto",
  25. "//google/cloud:common_resources_proto",
  26. ],
  27. )
  28. ##############################################################################
  29. # Java
  30. ##############################################################################
  31. load(
  32. "@com_google_googleapis_imports//:imports.bzl",
  33. "java_gapic_assembly_gradle_pkg",
  34. "java_gapic_library",
  35. "java_gapic_test",
  36. "java_grpc_library",
  37. "java_proto_library",
  38. )
  39. java_proto_library(
  40. name = "phishingprotection_java_proto",
  41. deps = [":phishingprotection_proto"],
  42. )
  43. java_grpc_library(
  44. name = "phishingprotection_java_grpc",
  45. srcs = [":phishingprotection_proto"],
  46. deps = [":phishingprotection_java_proto"],
  47. )
  48. java_gapic_library(
  49. name = "phishingprotection_java_gapic",
  50. srcs = [":phishingprotection_proto_with_info"],
  51. gapic_yaml = "phishingprotection_gapic.yaml",
  52. grpc_service_config = "phishingprotection_grpc_service_config.json",
  53. rest_numeric_enums = False,
  54. test_deps = [
  55. ":phishingprotection_java_grpc",
  56. ],
  57. transport = "grpc+rest",
  58. deps = [
  59. ":phishingprotection_java_proto",
  60. ],
  61. )
  62. java_gapic_test(
  63. name = "phishingprotection_java_gapic_test_suite",
  64. test_classes = [
  65. "com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1ClientHttpJsonTest",
  66. "com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1ClientTest",
  67. ],
  68. runtime_deps = [":phishingprotection_java_gapic_test"],
  69. )
  70. # Open Source Packages
  71. java_gapic_assembly_gradle_pkg(
  72. name = "google-cloud-phishingprotection-v1beta1-java",
  73. include_samples = True,
  74. transport = "grpc+rest",
  75. deps = [
  76. ":phishingprotection_java_gapic",
  77. ":phishingprotection_java_grpc",
  78. ":phishingprotection_java_proto",
  79. ":phishingprotection_proto",
  80. ],
  81. )
  82. ##############################################################################
  83. # Go
  84. ##############################################################################
  85. load(
  86. "@com_google_googleapis_imports//:imports.bzl",
  87. "go_gapic_assembly_pkg",
  88. "go_gapic_library",
  89. "go_proto_library",
  90. "go_test",
  91. )
  92. go_proto_library(
  93. name = "phishingprotection_go_proto",
  94. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  95. importpath = "google.golang.org/genproto/googleapis/cloud/phishingprotection/v1beta1",
  96. protos = [":phishingprotection_proto"],
  97. deps = [
  98. "//google/api:annotations_go_proto",
  99. ],
  100. )
  101. go_gapic_library(
  102. name = "phishingprotection_go_gapic",
  103. srcs = [":phishingprotection_proto_with_info"],
  104. grpc_service_config = "phishingprotection_grpc_service_config.json",
  105. importpath = "cloud.google.com/go/phishingprotection/apiv1beta1;phishingprotection",
  106. rest_numeric_enums = False,
  107. service_yaml = "phishingprotection_v1beta1.yaml",
  108. transport = "grpc+rest",
  109. deps = [
  110. ":phishingprotection_go_proto",
  111. ],
  112. )
  113. go_test(
  114. name = "phishingprotection_go_gapic_test",
  115. srcs = [":phishingprotection_go_gapic_srcjar_test"],
  116. embed = [":phishingprotection_go_gapic"],
  117. importpath = "cloud.google.com/go/phishingprotection/apiv1beta1",
  118. )
  119. # Open Source Packages
  120. go_gapic_assembly_pkg(
  121. name = "gapi-cloud-phishingprotection-v1beta1-go",
  122. deps = [
  123. ":phishingprotection_go_gapic",
  124. ":phishingprotection_go_gapic_srcjar-test.srcjar",
  125. ":phishingprotection_go_proto",
  126. ],
  127. )
  128. ##############################################################################
  129. # Python
  130. ##############################################################################
  131. load(
  132. "@com_google_googleapis_imports//:imports.bzl",
  133. "py_gapic_assembly_pkg",
  134. "py_gapic_library",
  135. "py_test",
  136. )
  137. py_gapic_library(
  138. name = "phishingprotection_py_gapic",
  139. srcs = [":phishingprotection_proto"],
  140. grpc_service_config = "phishingprotection_grpc_service_config.json",
  141. rest_numeric_enums = False,
  142. transport = "grpc",
  143. opt_args = [
  144. "warehouse-package-name=google-cloud-phishing-protection",
  145. ],
  146. )
  147. py_test(
  148. name = "phishingprotection_py_gapic_test",
  149. srcs = [
  150. "phishingprotection_py_gapic_pytest.py",
  151. "phishingprotection_py_gapic_test.py",
  152. ],
  153. legacy_create_init = False,
  154. deps = [":phishingprotection_py_gapic"],
  155. )
  156. py_gapic_assembly_pkg(
  157. name = "phishingprotection-v1beta1-py",
  158. deps = [
  159. ":phishingprotection_py_gapic",
  160. ],
  161. )
  162. ##############################################################################
  163. # PHP
  164. ##############################################################################
  165. load(
  166. "@com_google_googleapis_imports//:imports.bzl",
  167. "php_gapic_assembly_pkg",
  168. "php_gapic_library",
  169. "php_grpc_library",
  170. "php_proto_library",
  171. )
  172. php_proto_library(
  173. name = "phishingprotection_php_proto",
  174. deps = [":phishingprotection_proto"],
  175. )
  176. php_grpc_library(
  177. name = "phishingprotection_php_grpc",
  178. srcs = [":phishingprotection_proto"],
  179. deps = [":phishingprotection_php_proto"],
  180. )
  181. php_gapic_library(
  182. name = "phishingprotection_php_gapic",
  183. srcs = [":phishingprotection_proto_with_info"],
  184. grpc_service_config = "phishingprotection_grpc_service_config.json",
  185. rest_numeric_enums = False,
  186. transport = "grpc+rest",
  187. deps = [
  188. ":phishingprotection_php_grpc",
  189. ":phishingprotection_php_proto",
  190. ],
  191. )
  192. # Open Source Packages
  193. php_gapic_assembly_pkg(
  194. name = "google-cloud-phishingprotection-v1beta1-php",
  195. deps = [
  196. ":phishingprotection_php_gapic",
  197. ":phishingprotection_php_grpc",
  198. ":phishingprotection_php_proto",
  199. ],
  200. )
  201. ##############################################################################
  202. # Node.js
  203. ##############################################################################
  204. load(
  205. "@com_google_googleapis_imports//:imports.bzl",
  206. "nodejs_gapic_assembly_pkg",
  207. "nodejs_gapic_library",
  208. )
  209. nodejs_gapic_library(
  210. name = "phishingprotection_nodejs_gapic",
  211. package_name = "@google-cloud/phishing-protection",
  212. src = ":phishingprotection_proto_with_info",
  213. extra_protoc_parameters = ["metadata"],
  214. grpc_service_config = "phishingprotection_grpc_service_config.json",
  215. package = "google.cloud.phishingprotection.v1beta1",
  216. rest_numeric_enums = False,
  217. service_yaml = "phishingprotection_v1beta1.yaml",
  218. transport = "grpc+rest",
  219. deps = [],
  220. )
  221. nodejs_gapic_assembly_pkg(
  222. name = "phishingprotection-v1beta1-nodejs",
  223. deps = [
  224. ":phishingprotection_nodejs_gapic",
  225. ":phishingprotection_proto",
  226. ],
  227. )
  228. ##############################################################################
  229. # Ruby
  230. ##############################################################################
  231. load(
  232. "@com_google_googleapis_imports//:imports.bzl",
  233. "ruby_cloud_gapic_library",
  234. "ruby_gapic_assembly_pkg",
  235. "ruby_grpc_library",
  236. "ruby_proto_library",
  237. )
  238. ruby_proto_library(
  239. name = "phishingprotection_ruby_proto",
  240. deps = [":phishingprotection_proto"],
  241. )
  242. ruby_grpc_library(
  243. name = "phishingprotection_ruby_grpc",
  244. srcs = [":phishingprotection_proto"],
  245. deps = [":phishingprotection_ruby_proto"],
  246. )
  247. ruby_cloud_gapic_library(
  248. name = "phishingprotection_ruby_gapic",
  249. srcs = [":phishingprotection_proto_with_info"],
  250. extra_protoc_parameters = [
  251. "ruby-cloud-gem-name=google-cloud-phishing_protection-v1beta1",
  252. "ruby-cloud-env-prefix=PHISHING_PROTECTION",
  253. "ruby-cloud-product-url=https://cloud.google.com/phishing-protection",
  254. "ruby-cloud-api-id=phishingprotection.googleapis.com",
  255. "ruby-cloud-api-shortname=phishingprotection",
  256. "ruby-cloud-service-override=PhishingProtectionServiceV1Beta1=PhishingProtectionService",
  257. ],
  258. grpc_service_config = "phishingprotection_grpc_service_config.json",
  259. rest_numeric_enums = False,
  260. ruby_cloud_description = "Phishing Protection helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing.",
  261. ruby_cloud_title = "Phishing Protection V1beta1",
  262. deps = [
  263. ":phishingprotection_ruby_grpc",
  264. ":phishingprotection_ruby_proto",
  265. ],
  266. )
  267. # Open Source Packages
  268. ruby_gapic_assembly_pkg(
  269. name = "google-cloud-phishingprotection-v1beta1-ruby",
  270. deps = [
  271. ":phishingprotection_ruby_gapic",
  272. ":phishingprotection_ruby_grpc",
  273. ":phishingprotection_ruby_proto",
  274. ],
  275. )
  276. ##############################################################################
  277. # C#
  278. ##############################################################################
  279. load(
  280. "@com_google_googleapis_imports//:imports.bzl",
  281. "csharp_gapic_assembly_pkg",
  282. "csharp_gapic_library",
  283. "csharp_grpc_library",
  284. "csharp_proto_library",
  285. )
  286. csharp_proto_library(
  287. name = "phishingprotection_csharp_proto",
  288. deps = [":phishingprotection_proto"],
  289. )
  290. csharp_grpc_library(
  291. name = "phishingprotection_csharp_grpc",
  292. srcs = [":phishingprotection_proto"],
  293. deps = [":phishingprotection_csharp_proto"],
  294. )
  295. csharp_gapic_library(
  296. name = "phishingprotection_csharp_gapic",
  297. srcs = [":phishingprotection_proto_with_info"],
  298. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  299. grpc_service_config = "phishingprotection_grpc_service_config.json",
  300. rest_numeric_enums = False,
  301. service_yaml = "phishingprotection_v1beta1.yaml",
  302. deps = [
  303. ":phishingprotection_csharp_grpc",
  304. ":phishingprotection_csharp_proto",
  305. ],
  306. )
  307. # Open Source Packages
  308. csharp_gapic_assembly_pkg(
  309. name = "google-cloud-phishingprotection-v1beta1-csharp",
  310. deps = [
  311. ":phishingprotection_csharp_gapic",
  312. ":phishingprotection_csharp_grpc",
  313. ":phishingprotection_csharp_proto",
  314. ],
  315. )
  316. ##############################################################################
  317. # C++
  318. ##############################################################################
  319. # Put your C++ rules here