BUILD.bazel 10 KB

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