BUILD.bazel 11 KB

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