BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363
  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. ##############################################################################
  11. # Common
  12. ##############################################################################
  13. load("@rules_proto//proto:defs.bzl", "proto_library")
  14. load(
  15. "@com_google_googleapis_imports//:imports.bzl",
  16. "cc_grpc_library",
  17. "cc_proto_library",
  18. "csharp_gapic_assembly_pkg",
  19. "csharp_gapic_library",
  20. "csharp_grpc_library",
  21. "csharp_proto_library",
  22. "go_proto_library",
  23. "java_gapic_assembly_gradle_pkg",
  24. "java_gapic_library",
  25. "java_gapic_test",
  26. "java_grpc_library",
  27. "java_proto_library",
  28. "nodejs_gapic_assembly_pkg",
  29. "nodejs_gapic_library",
  30. "php_gapic_assembly_pkg",
  31. "php_gapic_library",
  32. "php_grpc_library",
  33. "php_proto_library",
  34. "proto_library_with_info",
  35. "py_gapic_assembly_pkg",
  36. "py_gapic_library",
  37. "py_test",
  38. "ruby_cloud_gapic_library",
  39. "ruby_gapic_assembly_pkg",
  40. "ruby_grpc_library",
  41. "ruby_proto_library",
  42. )
  43. # This is an API workspace, having public visibility by default makes perfect sense.
  44. package(default_visibility = ["//visibility:public"])
  45. proto_library(
  46. name = "containeranalysis_proto",
  47. srcs = [
  48. "containeranalysis.proto",
  49. ],
  50. deps = [
  51. "//google/api:annotations_proto",
  52. "//google/api:client_proto",
  53. "//google/api:field_behavior_proto",
  54. "//google/api:resource_proto",
  55. "//google/iam/v1:iam_policy_proto",
  56. "//google/iam/v1:policy_proto",
  57. "//grafeas/v1:grafeas_proto",
  58. "@com_google_protobuf//:timestamp_proto",
  59. ],
  60. )
  61. proto_library_with_info(
  62. name = "containeranalysis_proto_with_info",
  63. deps = [
  64. ":containeranalysis_proto",
  65. "//google/cloud:common_resources_proto",
  66. ],
  67. )
  68. ## DO NOT REMOVE
  69. ## Node.js library must be built based on both ContainerAnalysis v1 and
  70. ## Grafeas v1 protos.
  71. proto_library_with_info(
  72. name = "containeranalysis_grafeas_proto_with_info",
  73. deps = [
  74. ":containeranalysis_proto",
  75. "//google/cloud:common_resources_proto",
  76. "//grafeas/v1:grafeas_proto",
  77. ],
  78. )
  79. java_proto_library(
  80. name = "containeranalysis_java_proto",
  81. deps = [":containeranalysis_proto"],
  82. )
  83. java_grpc_library(
  84. name = "containeranalysis_java_grpc",
  85. srcs = [":containeranalysis_proto"],
  86. deps = [":containeranalysis_java_proto"],
  87. )
  88. java_gapic_library(
  89. name = "containeranalysis_java_gapic",
  90. srcs = [":containeranalysis_proto_with_info"],
  91. gapic_yaml = "containeranalysis_gapic.yaml",
  92. grpc_service_config = "containeranalysis_grpc_service_config.json",
  93. rest_numeric_enums = False,
  94. service_yaml = "containeranalysis_v1.yaml",
  95. test_deps = [
  96. ":containeranalysis_java_grpc",
  97. "//google/iam/v1:iam_java_grpc",
  98. ],
  99. transport = "grpc+rest",
  100. deps = [
  101. ":containeranalysis_java_proto",
  102. "//google/api:api_java_proto",
  103. "//google/iam/v1:iam_java_proto",
  104. "//grafeas/v1:common_java_proto",
  105. ],
  106. )
  107. java_gapic_test(
  108. name = "containeranalysis_java_gapic_test_suite",
  109. test_classes = [
  110. "com.google.cloud.devtools.containeranalysis.v1.ContainerAnalysisClientHttpJsonTest",
  111. "com.google.cloud.devtools.containeranalysis.v1.ContainerAnalysisClientTest",
  112. ],
  113. runtime_deps = [":containeranalysis_java_gapic_test"],
  114. )
  115. # Open Source Packages
  116. java_gapic_assembly_gradle_pkg(
  117. name = "google-cloud-devtools-containeranalysis-v1-java",
  118. include_samples = True,
  119. transport = "grpc+rest",
  120. deps = [
  121. ":containeranalysis_java_gapic",
  122. ":containeranalysis_java_grpc",
  123. ":containeranalysis_java_proto",
  124. ":containeranalysis_proto",
  125. ],
  126. )
  127. go_proto_library(
  128. name = "containeranalysis_go_proto",
  129. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  130. importpath = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1",
  131. protos = [":containeranalysis_proto"],
  132. deps = [
  133. "//google/api:annotations_go_proto",
  134. "//google/iam/v1:iam_go_proto",
  135. "//grafeas/v1:grafeas_go_proto",
  136. ],
  137. )
  138. # go_gapic_library(
  139. # name = "containeranalysis_go_gapic",
  140. # srcs = [":containeranalysis_proto_with_info"],
  141. # grpc_service_config = "containeranalysis_grpc_service_config.json",
  142. # importpath = "cloud.google.com/go/devtools/containeranalysis/apiv1;containeranalysis",
  143. # metadata = True,
  144. # service_yaml = "containeranalysis_v1.yaml",
  145. # deps = [
  146. # ":containeranalysis_go_proto",
  147. # "//google/iam/v1:iam_go_proto",
  148. # "//grafeas/v1:common_go_proto",
  149. # ],
  150. # )
  151. # go_test(
  152. # name = "containeranalysis_go_gapic_test",
  153. # srcs = [":containeranalysis_go_gapic_srcjar_test"],
  154. # embed = [":containeranalysis_go_gapic"],
  155. # importpath = "cloud.google.com/go/devtools/containeranalysis/apiv1",
  156. # )
  157. # # Open Source Packages
  158. # go_gapic_assembly_pkg(
  159. # name = "gapi-cloud-devtools-containeranalysis-v1-go",
  160. # deps = [
  161. # ":containeranalysis_go_gapic",
  162. # ":containeranalysis_go_gapic_srcjar-metadata.srcjar",
  163. # ":containeranalysis_go_gapic_srcjar-test.srcjar",
  164. # ":containeranalysis_go_proto",
  165. # ],
  166. # )
  167. py_gapic_library(
  168. name = "containeranalysis_py_gapic",
  169. srcs = [":containeranalysis_proto"],
  170. grpc_service_config = "containeranalysis_grpc_service_config.json",
  171. opt_args = [
  172. "python-gapic-namespace=google.cloud.devtools",
  173. "warehouse-package-name=google-cloud-containeranalysis",
  174. ],
  175. rest_numeric_enums = False,
  176. transport = "grpc",
  177. deps = [
  178. "//google/iam/v1:iam_policy_py_proto",
  179. "//google/iam/v1:policy_py_proto",
  180. "//grafeas/v1:grafeas_py_proto",
  181. ],
  182. )
  183. py_test(
  184. name = "containeranalysis_py_gapic_test",
  185. srcs = [
  186. "containeranalysis_py_gapic_pytest.py",
  187. "containeranalysis_py_gapic_test.py",
  188. ],
  189. legacy_create_init = False,
  190. deps = [":containeranalysis_py_gapic"],
  191. )
  192. # Open Source Packages
  193. py_gapic_assembly_pkg(
  194. name = "devtools-containeranalysis-v1-py",
  195. deps = [
  196. ":containeranalysis_py_gapic",
  197. ],
  198. )
  199. php_proto_library(
  200. name = "containeranalysis_php_proto",
  201. deps = [":containeranalysis_proto"],
  202. )
  203. php_grpc_library(
  204. name = "containeranalysis_php_grpc",
  205. srcs = [":containeranalysis_proto"],
  206. deps = [":containeranalysis_php_proto"],
  207. )
  208. php_gapic_library(
  209. name = "containeranalysis_php_gapic",
  210. srcs = [":containeranalysis_proto_with_info"],
  211. grpc_service_config = "containeranalysis_grpc_service_config.json",
  212. rest_numeric_enums = False,
  213. service_yaml = "containeranalysis_v1.yaml",
  214. transport = "grpc+rest",
  215. deps = [
  216. ":containeranalysis_php_grpc",
  217. ":containeranalysis_php_proto",
  218. ],
  219. )
  220. # Open Source Packages
  221. php_gapic_assembly_pkg(
  222. name = "google-cloud-devtools-containeranalysis-v1-php",
  223. deps = [
  224. ":containeranalysis_php_gapic",
  225. ":containeranalysis_php_grpc",
  226. ":containeranalysis_php_proto",
  227. ],
  228. )
  229. nodejs_gapic_library(
  230. name = "containeranalysis_nodejs_gapic",
  231. package_name = "@google-cloud/containeranalysis",
  232. ## DO NOT CHANGE: src must point to a combined proto target
  233. src = ":containeranalysis_grafeas_proto_with_info",
  234. extra_protoc_parameters = ["metadata"],
  235. grpc_service_config = "containeranalysis_grpc_service_config.json",
  236. main_service = "containeranalysis",
  237. package = "google.devtools.containeranalysis.v1",
  238. rest_numeric_enums = False,
  239. service_yaml = "containeranalysis_v1.yaml",
  240. transport = "grpc+rest",
  241. deps = [],
  242. )
  243. nodejs_gapic_assembly_pkg(
  244. name = "devtools-containeranalysis-v1-nodejs",
  245. deps = [
  246. ":containeranalysis_nodejs_gapic",
  247. ":containeranalysis_proto",
  248. ## DO NOT CHANGE: must include Grafeas protos
  249. "//grafeas/v1:grafeas_proto",
  250. ],
  251. )
  252. ruby_proto_library(
  253. name = "containeranalysis_ruby_proto",
  254. deps = [":containeranalysis_proto"],
  255. )
  256. ruby_grpc_library(
  257. name = "containeranalysis_ruby_grpc",
  258. srcs = [":containeranalysis_proto"],
  259. deps = [":containeranalysis_ruby_proto"],
  260. )
  261. ruby_cloud_gapic_library(
  262. name = "containeranalysis_ruby_gapic",
  263. srcs = [":containeranalysis_proto_with_info"],
  264. extra_protoc_parameters = [
  265. "ruby-cloud-gem-name=google-cloud-container_analysis-v1",
  266. "ruby-cloud-env-prefix=CONTAINER_ANALYSIS",
  267. "ruby-cloud-product-url=https://cloud.google.com/container-registry/docs/container-analysis",
  268. "ruby-cloud-api-id=containeranalysis.googleapis.com",
  269. "ruby-cloud-api-shortname=containeranalysis",
  270. "ruby-cloud-extra-dependencies=grafeas-v1=>= 0.4|< 2.a",
  271. ],
  272. grpc_service_config = "containeranalysis_grpc_service_config.json",
  273. rest_numeric_enums = False,
  274. ruby_cloud_description = "The Container Analysis API is an implementation of Grafeas. It stores, and enables querying and retrieval of, critical metadata about all of your software artifacts.",
  275. ruby_cloud_title = "Container Analysis V1",
  276. deps = [
  277. ":containeranalysis_ruby_grpc",
  278. ":containeranalysis_ruby_proto",
  279. ],
  280. )
  281. # Open Source Packages
  282. ruby_gapic_assembly_pkg(
  283. name = "google-cloud-devtools-containeranalysis-v1-ruby",
  284. deps = [
  285. ":containeranalysis_ruby_gapic",
  286. ":containeranalysis_ruby_grpc",
  287. ":containeranalysis_ruby_proto",
  288. ],
  289. )
  290. csharp_proto_library(
  291. name = "containeranalysis_csharp_proto",
  292. deps = [":containeranalysis_proto"],
  293. )
  294. csharp_grpc_library(
  295. name = "containeranalysis_csharp_grpc",
  296. srcs = [":containeranalysis_proto"],
  297. deps = [":containeranalysis_csharp_proto"],
  298. )
  299. csharp_gapic_library(
  300. name = "containeranalysis_csharp_gapic",
  301. srcs = [":containeranalysis_proto_with_info"],
  302. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  303. grpc_service_config = "containeranalysis_grpc_service_config.json",
  304. rest_numeric_enums = False,
  305. service_yaml = "containeranalysis_v1.yaml",
  306. deps = [
  307. ":containeranalysis_csharp_grpc",
  308. ":containeranalysis_csharp_proto",
  309. ],
  310. )
  311. # Open Source Packages
  312. csharp_gapic_assembly_pkg(
  313. name = "google-cloud-devtools-containeranalysis-v1-csharp",
  314. deps = [
  315. ":containeranalysis_csharp_gapic",
  316. ":containeranalysis_csharp_grpc",
  317. ":containeranalysis_csharp_proto",
  318. ],
  319. )
  320. cc_proto_library(
  321. name = "containeranalysis_cc_proto",
  322. deps = [":containeranalysis_proto"],
  323. )
  324. cc_grpc_library(
  325. name = "containeranalysis_cc_grpc",
  326. srcs = [":containeranalysis_proto"],
  327. grpc_only = True,
  328. deps = [":containeranalysis_cc_proto"],
  329. )