BUILD.bazel 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  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. "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 = "marketplace_proto",
  48. srcs = [
  49. "resources.proto",
  50. "services.proto",
  51. ],
  52. deps = [
  53. "//google/api:annotations_proto",
  54. "//google/api:client_proto",
  55. ],
  56. )
  57. proto_library_with_info(
  58. name = "marketplace_proto_with_info",
  59. deps = [
  60. ":marketplace_proto",
  61. "//google/cloud:common_resources_proto",
  62. ],
  63. )
  64. java_proto_library(
  65. name = "marketplace_java_proto",
  66. deps = [":marketplace_proto"],
  67. )
  68. java_grpc_library(
  69. name = "marketplace_java_grpc",
  70. srcs = [":marketplace_proto"],
  71. deps = [":marketplace_java_proto"],
  72. )
  73. java_gapic_library(
  74. name = "marketplace_java_gapic",
  75. srcs = [":marketplace_proto_with_info"],
  76. grpc_service_config = "service_grpc_service_config.json",
  77. rest_numeric_enums = False,
  78. test_deps = [
  79. ":marketplace_java_grpc",
  80. ],
  81. transport = "grpc+rest",
  82. deps = [
  83. ":marketplace_java_proto",
  84. ],
  85. )
  86. java_gapic_test(
  87. name = "marketplace_java_gapic_test_suite",
  88. test_classes = [
  89. "com.google.ccc.hosted.marketplace.v2.CustomerLicenseServiceClientHttpJsonTest",
  90. "com.google.ccc.hosted.marketplace.v2.CustomerLicenseServiceClientTest",
  91. "com.google.ccc.hosted.marketplace.v2.LicenseNotificationServiceClientHttpJsonTest",
  92. "com.google.ccc.hosted.marketplace.v2.LicenseNotificationServiceClientTest",
  93. "com.google.ccc.hosted.marketplace.v2.UserLicenseServiceClientHttpJsonTest",
  94. "com.google.ccc.hosted.marketplace.v2.UserLicenseServiceClientTest",
  95. ],
  96. runtime_deps = [":marketplace_java_gapic_test"],
  97. )
  98. # Open Source Packages
  99. java_gapic_assembly_gradle_pkg(
  100. name = "google-cloud-hosted-marketplace-v2-java",
  101. include_samples = True,
  102. transport = "grpc+rest",
  103. deps = [
  104. ":marketplace_java_gapic",
  105. ":marketplace_java_grpc",
  106. ":marketplace_java_proto",
  107. ":marketplace_proto",
  108. ],
  109. )
  110. go_proto_library(
  111. name = "marketplace_go_proto",
  112. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  113. importpath = "google.golang.org/genproto/googleapis/ccc/hosted/marketplace/v2",
  114. protos = [":marketplace_proto"],
  115. deps = [
  116. "//google/api:annotations_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "marketplace_go_gapic",
  121. srcs = [":marketplace_proto_with_info"],
  122. grpc_service_config = "service_grpc_service_config.json",
  123. importpath = "google.golang.org/ccc/hosted/marketplace/v2;marketplace",
  124. metadata = True,
  125. rest_numeric_enums = False,
  126. service_yaml = "appsmarket_v2.yaml",
  127. deps = [
  128. ":marketplace_go_proto",
  129. ],
  130. )
  131. go_test(
  132. name = "marketplace_go_gapic_test",
  133. srcs = [":marketplace_go_gapic_srcjar_test"],
  134. embed = [":marketplace_go_gapic"],
  135. importpath = "google.golang.org/ccc/hosted/marketplace/v2",
  136. )
  137. # Open Source Packages
  138. go_gapic_assembly_pkg(
  139. name = "gapi-cloud-hosted-marketplace-v2-go",
  140. deps = [
  141. ":marketplace_go_gapic",
  142. ":marketplace_go_gapic_srcjar-metadata.srcjar",
  143. ":marketplace_go_gapic_srcjar-test.srcjar",
  144. ":marketplace_go_proto",
  145. ],
  146. )
  147. py_gapic_library(
  148. name = "marketplace_py_gapic",
  149. srcs = [":marketplace_proto"],
  150. grpc_service_config = "service_grpc_service_config.json",
  151. rest_numeric_enums = False,
  152. transport = "grpc",
  153. )
  154. py_test(
  155. name = "marketplace_py_gapic_test",
  156. srcs = [
  157. "marketplace_py_gapic_pytest.py",
  158. "marketplace_py_gapic_test.py",
  159. ],
  160. legacy_create_init = False,
  161. deps = [":marketplace_py_gapic"],
  162. )
  163. # Open Source Packages
  164. py_gapic_assembly_pkg(
  165. name = "hosted-marketplace-v2-py",
  166. deps = [
  167. ":marketplace_py_gapic",
  168. ],
  169. )
  170. php_proto_library(
  171. name = "marketplace_php_proto",
  172. deps = [":marketplace_proto"],
  173. )
  174. php_grpc_library(
  175. name = "marketplace_php_grpc",
  176. srcs = [":marketplace_proto"],
  177. deps = [":marketplace_php_proto"],
  178. )
  179. php_gapic_library(
  180. name = "marketplace_php_gapic",
  181. srcs = [":marketplace_proto_with_info"],
  182. grpc_service_config = "service_grpc_service_config.json",
  183. rest_numeric_enums = False,
  184. transport = "grpc+rest",
  185. deps = [
  186. ":marketplace_php_grpc",
  187. ":marketplace_php_proto",
  188. ],
  189. )
  190. # Open Source Packages
  191. php_gapic_assembly_pkg(
  192. name = "google-cloud-hosted-marketplace-v2-php",
  193. deps = [
  194. ":marketplace_php_gapic",
  195. ":marketplace_php_grpc",
  196. ":marketplace_php_proto",
  197. ],
  198. )
  199. nodejs_gapic_library(
  200. name = "marketplace_nodejs_gapic",
  201. package_name = "@google-cloud/marketplace",
  202. src = ":marketplace_proto_with_info",
  203. extra_protoc_parameters = ["metadata"],
  204. grpc_service_config = "service_grpc_service_config.json",
  205. package = "ccc.hosted.marketplace.v2",
  206. rest_numeric_enums = False,
  207. service_yaml = "appsmarket_v2.yaml",
  208. transport = "grpc+rest",
  209. deps = [],
  210. )
  211. nodejs_gapic_assembly_pkg(
  212. name = "hosted-marketplace-v2-nodejs",
  213. deps = [
  214. ":marketplace_nodejs_gapic",
  215. ":marketplace_proto",
  216. ],
  217. )
  218. ruby_proto_library(
  219. name = "marketplace_ruby_proto",
  220. deps = [":marketplace_proto"],
  221. )
  222. ruby_grpc_library(
  223. name = "marketplace_ruby_grpc",
  224. srcs = [":marketplace_proto"],
  225. deps = [":marketplace_ruby_proto"],
  226. )
  227. ruby_cloud_gapic_library(
  228. name = "marketplace_ruby_gapic",
  229. srcs = [":marketplace_proto_with_info"],
  230. extra_protoc_parameters = [
  231. "ruby-cloud-gem-name=google-cloud-hosted-marketplace-v2",
  232. ],
  233. grpc_service_config = "service_grpc_service_config.json",
  234. rest_numeric_enums = False,
  235. deps = [
  236. ":marketplace_ruby_grpc",
  237. ":marketplace_ruby_proto",
  238. ],
  239. )
  240. # Open Source Packages
  241. ruby_gapic_assembly_pkg(
  242. name = "google-cloud-hosted-marketplace-v2-ruby",
  243. deps = [
  244. ":marketplace_ruby_gapic",
  245. ":marketplace_ruby_grpc",
  246. ":marketplace_ruby_proto",
  247. ],
  248. )
  249. csharp_proto_library(
  250. name = "marketplace_csharp_proto",
  251. deps = [":marketplace_proto"],
  252. )
  253. csharp_grpc_library(
  254. name = "marketplace_csharp_grpc",
  255. srcs = [":marketplace_proto"],
  256. deps = [":marketplace_csharp_proto"],
  257. )
  258. csharp_gapic_library(
  259. name = "marketplace_csharp_gapic",
  260. srcs = [":marketplace_proto_with_info"],
  261. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  262. grpc_service_config = "service_grpc_service_config.json",
  263. rest_numeric_enums = False,
  264. service_yaml = "appsmarket_v2.yaml",
  265. deps = [
  266. ":marketplace_csharp_grpc",
  267. ":marketplace_csharp_proto",
  268. ],
  269. )
  270. # Open Source Packages
  271. csharp_gapic_assembly_pkg(
  272. name = "google-cloud-hosted-marketplace-v2-csharp",
  273. deps = [
  274. ":marketplace_csharp_gapic",
  275. ":marketplace_csharp_grpc",
  276. ":marketplace_csharp_proto",
  277. ],
  278. )
  279. ##############################################################################
  280. # C++
  281. ##############################################################################
  282. # Put your C++ rules here