BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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 = "networksecurity_proto",
  19. srcs = [
  20. "authorization_policy.proto",
  21. "client_tls_policy.proto",
  22. "common.proto",
  23. "network_security.proto",
  24. "server_tls_policy.proto",
  25. "tls.proto",
  26. ],
  27. deps = [
  28. "//google/api:annotations_proto",
  29. "//google/api:client_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "//google/longrunning:operations_proto",
  33. "@com_google_protobuf//:field_mask_proto",
  34. "@com_google_protobuf//:timestamp_proto",
  35. ],
  36. )
  37. proto_library_with_info(
  38. name = "networksecurity_proto_with_info",
  39. deps = [
  40. ":networksecurity_proto",
  41. "//google/cloud:common_resources_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 = "networksecurity_java_proto",
  57. deps = [":networksecurity_proto"],
  58. )
  59. java_grpc_library(
  60. name = "networksecurity_java_grpc",
  61. srcs = [":networksecurity_proto"],
  62. deps = [":networksecurity_java_proto"],
  63. )
  64. java_gapic_library(
  65. name = "networksecurity_java_gapic",
  66. srcs = [":networksecurity_proto_with_info"],
  67. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  68. test_deps = [
  69. ":networksecurity_java_grpc",
  70. ],
  71. deps = [
  72. ":networksecurity_java_proto",
  73. ],
  74. )
  75. java_gapic_test(
  76. name = "networksecurity_java_gapic_test_suite",
  77. test_classes = [
  78. "com.google.cloud.networksecurity.v1beta1.NetworkSecurityClientTest",
  79. ],
  80. runtime_deps = [":networksecurity_java_gapic_test"],
  81. )
  82. # Open Source Packages
  83. java_gapic_assembly_gradle_pkg(
  84. name = "google-cloud-networksecurity-v1beta1-java",
  85. deps = [
  86. ":networksecurity_java_gapic",
  87. ":networksecurity_java_grpc",
  88. ":networksecurity_java_proto",
  89. ":networksecurity_proto",
  90. ],
  91. )
  92. ##############################################################################
  93. # Go
  94. ##############################################################################
  95. load(
  96. "@com_google_googleapis_imports//:imports.bzl",
  97. "go_gapic_assembly_pkg",
  98. "go_gapic_library",
  99. "go_proto_library",
  100. "go_test",
  101. )
  102. go_proto_library(
  103. name = "networksecurity_go_proto",
  104. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  105. importpath = "google.golang.org/genproto/googleapis/cloud/networksecurity/v1beta1",
  106. protos = [":networksecurity_proto"],
  107. deps = [
  108. "//google/api:annotations_go_proto",
  109. "//google/longrunning:longrunning_go_proto",
  110. ],
  111. )
  112. go_gapic_library(
  113. name = "networksecurity_go_gapic",
  114. srcs = [":networksecurity_proto_with_info"],
  115. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  116. importpath = "cloud.google.com/go/networksecurity/apiv1beta1;networksecurity",
  117. metadata = True,
  118. service_yaml = "networksecurity_v1beta1.yaml",
  119. deps = [
  120. ":networksecurity_go_proto",
  121. "//google/longrunning:longrunning_go_proto",
  122. "@com_google_cloud_go//longrunning:go_default_library",
  123. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  124. ],
  125. )
  126. go_test(
  127. name = "networksecurity_go_gapic_test",
  128. srcs = [":networksecurity_go_gapic_srcjar_test"],
  129. embed = [":networksecurity_go_gapic"],
  130. importpath = "cloud.google.com/go/networksecurity/apiv1beta1",
  131. )
  132. # Open Source Packages
  133. go_gapic_assembly_pkg(
  134. name = "gapi-cloud-networksecurity-v1beta1-go",
  135. deps = [
  136. ":networksecurity_go_gapic",
  137. ":networksecurity_go_gapic_srcjar-metadata.srcjar",
  138. ":networksecurity_go_gapic_srcjar-test.srcjar",
  139. ":networksecurity_go_proto",
  140. ],
  141. )
  142. ##############################################################################
  143. # Python
  144. ##############################################################################
  145. load(
  146. "@com_google_googleapis_imports//:imports.bzl",
  147. "py_gapic_assembly_pkg",
  148. "py_gapic_library",
  149. )
  150. py_gapic_library(
  151. name = "networksecurity_py_gapic",
  152. srcs = [":networksecurity_proto"],
  153. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  154. opt_args = [
  155. "warehouse-package-name=google-cloud-network-security",
  156. "python-gapic-namespace=google.cloud",
  157. "python-gapic-name=network-security",
  158. ],
  159. )
  160. # Open Source Packages
  161. py_gapic_assembly_pkg(
  162. name = "networksecurity-v1beta1-py",
  163. deps = [
  164. ":networksecurity_py_gapic",
  165. ],
  166. )
  167. ##############################################################################
  168. # PHP
  169. ##############################################################################
  170. load(
  171. "@com_google_googleapis_imports//:imports.bzl",
  172. "php_gapic_assembly_pkg",
  173. "php_gapic_library",
  174. "php_grpc_library",
  175. "php_proto_library",
  176. )
  177. php_proto_library(
  178. name = "networksecurity_php_proto",
  179. deps = [":networksecurity_proto"],
  180. )
  181. php_grpc_library(
  182. name = "networksecurity_php_grpc",
  183. srcs = [":networksecurity_proto"],
  184. deps = [":networksecurity_php_proto"],
  185. )
  186. php_gapic_library(
  187. name = "networksecurity_php_gapic",
  188. srcs = [":networksecurity_proto_with_info"],
  189. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  190. service_yaml = "networksecurity_v1beta1.yaml",
  191. deps = [
  192. ":networksecurity_php_grpc",
  193. ":networksecurity_php_proto",
  194. ],
  195. )
  196. # Open Source Packages
  197. php_gapic_assembly_pkg(
  198. name = "google-cloud-networksecurity-v1beta1-php",
  199. deps = [
  200. ":networksecurity_php_gapic",
  201. ":networksecurity_php_grpc",
  202. ":networksecurity_php_proto",
  203. ],
  204. )
  205. ##############################################################################
  206. # Node.js
  207. ##############################################################################
  208. load(
  209. "@com_google_googleapis_imports//:imports.bzl",
  210. "nodejs_gapic_assembly_pkg",
  211. "nodejs_gapic_library",
  212. )
  213. nodejs_gapic_library(
  214. name = "networksecurity_nodejs_gapic",
  215. package_name = "@google-cloud/networksecurity",
  216. src = ":networksecurity_proto_with_info",
  217. extra_protoc_parameters = ["metadata"],
  218. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  219. package = "google.cloud.networksecurity.v1beta1",
  220. service_yaml = "networksecurity_v1beta1.yaml",
  221. deps = [],
  222. )
  223. nodejs_gapic_assembly_pkg(
  224. name = "networksecurity-v1beta1-nodejs",
  225. deps = [
  226. ":networksecurity_nodejs_gapic",
  227. ":networksecurity_proto",
  228. ],
  229. )
  230. ##############################################################################
  231. # Ruby
  232. ##############################################################################
  233. load(
  234. "@com_google_googleapis_imports//:imports.bzl",
  235. "ruby_cloud_gapic_library",
  236. "ruby_gapic_assembly_pkg",
  237. "ruby_grpc_library",
  238. "ruby_proto_library",
  239. )
  240. ruby_proto_library(
  241. name = "networksecurity_ruby_proto",
  242. deps = [":networksecurity_proto"],
  243. )
  244. ruby_grpc_library(
  245. name = "networksecurity_ruby_grpc",
  246. srcs = [":networksecurity_proto"],
  247. deps = [":networksecurity_ruby_proto"],
  248. )
  249. ruby_cloud_gapic_library(
  250. name = "networksecurity_ruby_gapic",
  251. srcs = [":networksecurity_proto_with_info"],
  252. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-networksecurity-v1beta1"],
  253. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  254. deps = [
  255. ":networksecurity_ruby_grpc",
  256. ":networksecurity_ruby_proto",
  257. ],
  258. )
  259. # Open Source Packages
  260. ruby_gapic_assembly_pkg(
  261. name = "google-cloud-networksecurity-v1beta1-ruby",
  262. deps = [
  263. ":networksecurity_ruby_gapic",
  264. ":networksecurity_ruby_grpc",
  265. ":networksecurity_ruby_proto",
  266. ],
  267. )
  268. ##############################################################################
  269. # C#
  270. ##############################################################################
  271. load(
  272. "@com_google_googleapis_imports//:imports.bzl",
  273. "csharp_gapic_assembly_pkg",
  274. "csharp_gapic_library",
  275. "csharp_grpc_library",
  276. "csharp_proto_library",
  277. )
  278. csharp_proto_library(
  279. name = "networksecurity_csharp_proto",
  280. deps = [":networksecurity_proto"],
  281. )
  282. csharp_grpc_library(
  283. name = "networksecurity_csharp_grpc",
  284. srcs = [":networksecurity_proto"],
  285. deps = [":networksecurity_csharp_proto"],
  286. )
  287. csharp_gapic_library(
  288. name = "networksecurity_csharp_gapic",
  289. srcs = [":networksecurity_proto_with_info"],
  290. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  291. grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json",
  292. deps = [
  293. ":networksecurity_csharp_grpc",
  294. ":networksecurity_csharp_proto",
  295. ],
  296. )
  297. # Open Source Packages
  298. csharp_gapic_assembly_pkg(
  299. name = "google-cloud-networksecurity-v1beta1-csharp",
  300. deps = [
  301. ":networksecurity_csharp_gapic",
  302. ":networksecurity_csharp_grpc",
  303. ":networksecurity_csharp_proto",
  304. ],
  305. )
  306. ##############################################################################
  307. # C++
  308. ##############################################################################
  309. # Put your C++ rules here