BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  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 = "artifactregistry_proto",
  19. srcs = [
  20. "file.proto",
  21. "package.proto",
  22. "repository.proto",
  23. "service.proto",
  24. "settings.proto",
  25. "tag.proto",
  26. "version.proto",
  27. ],
  28. deps = [
  29. "//google/api:annotations_proto",
  30. "//google/api:client_proto",
  31. "//google/api:field_behavior_proto",
  32. "//google/api:resource_proto",
  33. "//google/iam/v1:iam_policy_proto",
  34. "//google/iam/v1:policy_proto",
  35. "//google/longrunning:operations_proto",
  36. "@com_google_protobuf//:empty_proto",
  37. "@com_google_protobuf//:field_mask_proto",
  38. "@com_google_protobuf//:timestamp_proto",
  39. ],
  40. )
  41. proto_library_with_info(
  42. name = "artifactregistry_proto_with_info",
  43. deps = [
  44. ":artifactregistry_proto",
  45. "//google/cloud:common_resources_proto",
  46. ],
  47. )
  48. ##############################################################################
  49. # Java
  50. ##############################################################################
  51. load(
  52. "@com_google_googleapis_imports//:imports.bzl",
  53. "java_gapic_assembly_gradle_pkg",
  54. "java_gapic_library",
  55. "java_gapic_test",
  56. "java_grpc_library",
  57. "java_proto_library",
  58. )
  59. java_proto_library(
  60. name = "artifactregistry_java_proto",
  61. deps = [":artifactregistry_proto"],
  62. )
  63. java_grpc_library(
  64. name = "artifactregistry_java_grpc",
  65. srcs = [":artifactregistry_proto"],
  66. deps = [":artifactregistry_java_proto"],
  67. )
  68. java_gapic_library(
  69. name = "artifactregistry_java_gapic",
  70. srcs = [":artifactregistry_proto_with_info"],
  71. grpc_service_config = "artifactregistry_grpc_service_config.json",
  72. test_deps = [
  73. ":artifactregistry_java_grpc",
  74. "//google/iam/v1:iam_java_grpc",
  75. ],
  76. deps = [
  77. ":artifactregistry_java_proto",
  78. "//google/iam/v1:iam_java_proto",
  79. ],
  80. )
  81. java_gapic_test(
  82. name = "artifactregistry_java_gapic_test_suite",
  83. test_classes = [
  84. "com.google.devtools.artifactregistry.v1beta2.ArtifactRegistryClientTest",
  85. ],
  86. runtime_deps = [":artifactregistry_java_gapic_test"],
  87. )
  88. # Open Source Packages
  89. java_gapic_assembly_gradle_pkg(
  90. name = "google-cloud-devtools-artifactregistry-v1beta2-java",
  91. deps = [
  92. ":artifactregistry_java_gapic",
  93. ":artifactregistry_java_grpc",
  94. ":artifactregistry_java_proto",
  95. ":artifactregistry_proto",
  96. ],
  97. )
  98. ##############################################################################
  99. # Go
  100. ##############################################################################
  101. load(
  102. "@com_google_googleapis_imports//:imports.bzl",
  103. "go_gapic_assembly_pkg",
  104. "go_gapic_library",
  105. "go_proto_library",
  106. "go_test",
  107. )
  108. go_proto_library(
  109. name = "artifactregistry_go_proto",
  110. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  111. importpath = "google.golang.org/genproto/googleapis/devtools/artifactregistry/v1beta2",
  112. protos = [":artifactregistry_proto"],
  113. deps = [
  114. "//google/api:annotations_go_proto",
  115. "//google/iam/v1:iam_go_proto",
  116. "//google/longrunning:longrunning_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "artifactregistry_go_gapic",
  121. srcs = [":artifactregistry_proto_with_info"],
  122. grpc_service_config = "artifactregistry_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/devtools/artifactregistry/apiv1beta2;artifactregistry",
  124. service_yaml = "artifactregistry_v1beta2.yaml",
  125. deps = [
  126. ":artifactregistry_go_proto",
  127. "//google/iam/v1:iam_go_proto",
  128. "//google/longrunning:longrunning_go_proto",
  129. "@com_google_cloud_go//longrunning:go_default_library",
  130. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  131. ],
  132. )
  133. go_test(
  134. name = "artifactregistry_go_gapic_test",
  135. srcs = [":artifactregistry_go_gapic_srcjar_test"],
  136. embed = [":artifactregistry_go_gapic"],
  137. importpath = "cloud.google.com/go/devtools/artifactregistry/apiv1beta2",
  138. )
  139. # Open Source Packages
  140. go_gapic_assembly_pkg(
  141. name = "gapi-cloud-devtools-artifactregistry-v1beta2-go",
  142. deps = [
  143. ":artifactregistry_go_gapic",
  144. ":artifactregistry_go_gapic_srcjar-test.srcjar",
  145. ":artifactregistry_go_proto",
  146. ],
  147. )
  148. ##############################################################################
  149. # Python
  150. ##############################################################################
  151. load(
  152. "@com_google_googleapis_imports//:imports.bzl",
  153. "py_gapic_assembly_pkg",
  154. "py_gapic_library",
  155. )
  156. py_gapic_library(
  157. name = "artifactregistry_py_gapic",
  158. srcs = [":artifactregistry_proto"],
  159. grpc_service_config = "artifactregistry_grpc_service_config.json",
  160. opt_args = [
  161. "python-gapic-namespace=google.cloud",
  162. "python-gapic-name=artifactregistry",
  163. "warehouse-package-name=google-cloud-artifact-registry",
  164. ],
  165. )
  166. # Open Source Packages
  167. py_gapic_assembly_pkg(
  168. name = "google-cloud-artifactregistry-v1beta2-py",
  169. deps = [
  170. ":artifactregistry_py_gapic",
  171. ],
  172. )
  173. ##############################################################################
  174. # PHP
  175. ##############################################################################
  176. load(
  177. "@com_google_googleapis_imports//:imports.bzl",
  178. "php_gapic_assembly_pkg",
  179. "php_gapic_library",
  180. "php_grpc_library",
  181. "php_proto_library",
  182. )
  183. php_proto_library(
  184. name = "artifactregistry_php_proto",
  185. deps = [":artifactregistry_proto"],
  186. )
  187. php_grpc_library(
  188. name = "artifactregistry_php_grpc",
  189. srcs = [":artifactregistry_proto"],
  190. deps = [":artifactregistry_php_proto"],
  191. )
  192. php_gapic_library(
  193. name = "artifactregistry_php_gapic",
  194. srcs = [":artifactregistry_proto_with_info"],
  195. grpc_service_config = "artifactregistry_grpc_service_config.json",
  196. deps = [
  197. ":artifactregistry_php_grpc",
  198. ":artifactregistry_php_proto",
  199. ],
  200. )
  201. # Open Source Packages
  202. php_gapic_assembly_pkg(
  203. name = "google-cloud-devtools-artifactregistry-v1beta2-php",
  204. deps = [
  205. ":artifactregistry_php_gapic",
  206. ":artifactregistry_php_grpc",
  207. ":artifactregistry_php_proto",
  208. ],
  209. )
  210. ##############################################################################
  211. # Node.js
  212. ##############################################################################
  213. load(
  214. "@com_google_googleapis_imports//:imports.bzl",
  215. "nodejs_gapic_assembly_pkg",
  216. "nodejs_gapic_library",
  217. )
  218. nodejs_gapic_library(
  219. name = "artifactregistry_nodejs_gapic",
  220. package_name = "@google-cloud/artifact-registry",
  221. src = ":artifactregistry_proto_with_info",
  222. extra_protoc_parameters = ["metadata"],
  223. grpc_service_config = "artifactregistry_grpc_service_config.json",
  224. package = "google.devtools.artifactregistry.v1beta2",
  225. service_yaml = "artifactregistry_v1beta2.yaml",
  226. deps = [],
  227. )
  228. nodejs_gapic_assembly_pkg(
  229. name = "devtools-artifactregistry-v1beta2-nodejs",
  230. deps = [
  231. ":artifactregistry_nodejs_gapic",
  232. ":artifactregistry_proto",
  233. ],
  234. )
  235. ##############################################################################
  236. # Ruby
  237. ##############################################################################
  238. load(
  239. "@com_google_googleapis_imports//:imports.bzl",
  240. "ruby_cloud_gapic_library",
  241. "ruby_gapic_assembly_pkg",
  242. "ruby_grpc_library",
  243. "ruby_proto_library",
  244. )
  245. ruby_proto_library(
  246. name = "artifactregistry_ruby_proto",
  247. deps = [":artifactregistry_proto"],
  248. )
  249. ruby_grpc_library(
  250. name = "artifactregistry_ruby_grpc",
  251. srcs = [":artifactregistry_proto"],
  252. deps = [":artifactregistry_ruby_proto"],
  253. )
  254. ruby_cloud_gapic_library(
  255. name = "artifactregistry_ruby_gapic",
  256. srcs = [":artifactregistry_proto_with_info"],
  257. extra_protoc_parameters = [
  258. "ruby-cloud-gem-name=google-cloud-artifact_registry-v1beta2",
  259. "ruby-cloud-env-prefix=ARTIFACT_REGISTRY",
  260. "ruby-cloud-product-url=https://cloud.google.com/artifact-registry/",
  261. "ruby-cloud-api-id=artifactregistry.googleapis.com",
  262. "ruby-cloud-api-shortname=artifactregistry",
  263. ],
  264. grpc_service_config = "artifactregistry_grpc_service_config.json",
  265. ruby_cloud_description = "Artifact Registry stores and manages build artifacts in a scalable and integrated service built on Google infrastructure.",
  266. ruby_cloud_title = "Artifact Registry V1beta2",
  267. deps = [
  268. ":artifactregistry_ruby_grpc",
  269. ":artifactregistry_ruby_proto",
  270. ],
  271. )
  272. # Open Source Packages
  273. ruby_gapic_assembly_pkg(
  274. name = "google-cloud-devtools-artifactregistry-v1beta2-ruby",
  275. deps = [
  276. ":artifactregistry_ruby_gapic",
  277. ":artifactregistry_ruby_grpc",
  278. ":artifactregistry_ruby_proto",
  279. ],
  280. )
  281. ##############################################################################
  282. # C#
  283. ##############################################################################
  284. load(
  285. "@com_google_googleapis_imports//:imports.bzl",
  286. "csharp_gapic_assembly_pkg",
  287. "csharp_gapic_library",
  288. "csharp_grpc_library",
  289. "csharp_proto_library",
  290. )
  291. csharp_proto_library(
  292. name = "artifactregistry_csharp_proto",
  293. deps = [":artifactregistry_proto"],
  294. )
  295. csharp_grpc_library(
  296. name = "artifactregistry_csharp_grpc",
  297. srcs = [":artifactregistry_proto"],
  298. deps = [":artifactregistry_csharp_proto"],
  299. )
  300. csharp_gapic_library(
  301. name = "artifactregistry_csharp_gapic",
  302. srcs = [":artifactregistry_proto_with_info"],
  303. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  304. grpc_service_config = "artifactregistry_grpc_service_config.json",
  305. deps = [
  306. ":artifactregistry_csharp_grpc",
  307. ":artifactregistry_csharp_proto",
  308. ],
  309. )
  310. # Open Source Packages
  311. csharp_gapic_assembly_pkg(
  312. name = "google-cloud-devtools-artifactregistry-v1beta2-csharp",
  313. deps = [
  314. ":artifactregistry_csharp_gapic",
  315. ":artifactregistry_csharp_grpc",
  316. ":artifactregistry_csharp_proto",
  317. ],
  318. )
  319. ##############################################################################
  320. # C++
  321. ##############################################################################
  322. # Put your C++ rules here