BUILD.bazel 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  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 = "publishing_proto",
  50. srcs = [
  51. "publisher.proto",
  52. ],
  53. deps = [
  54. "//google/api:annotations_proto",
  55. "//google/api:client_proto",
  56. "@com_google_protobuf//:any_proto",
  57. ],
  58. )
  59. proto_library_with_info(
  60. name = "publishing_proto_with_info",
  61. deps = [
  62. ":publishing_proto",
  63. "//google/cloud:common_resources_proto",
  64. ],
  65. )
  66. java_proto_library(
  67. name = "publishing_java_proto",
  68. deps = [":publishing_proto"],
  69. )
  70. java_grpc_library(
  71. name = "publishing_java_grpc",
  72. srcs = [":publishing_proto"],
  73. deps = [":publishing_java_proto"],
  74. )
  75. java_gapic_library(
  76. name = "publishing_java_gapic",
  77. srcs = [":publishing_proto_with_info"],
  78. gapic_yaml = None,
  79. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  80. rest_numeric_enums = False,
  81. service_yaml = "eventarcpublishing_v1.yaml",
  82. test_deps = [
  83. ":publishing_java_grpc",
  84. ],
  85. transport = "grpc+rest",
  86. deps = [
  87. ":publishing_java_proto",
  88. "//google/api:api_java_proto",
  89. ],
  90. )
  91. java_gapic_test(
  92. name = "publishing_java_gapic_test_suite",
  93. test_classes = [
  94. "com.google.cloud.eventarc.publishing.v1.PublisherClientHttpJsonTest",
  95. "com.google.cloud.eventarc.publishing.v1.PublisherClientTest",
  96. ],
  97. runtime_deps = [":publishing_java_gapic_test"],
  98. )
  99. # Open Source Packages
  100. java_gapic_assembly_gradle_pkg(
  101. name = "google-cloud-eventarc-publishing-v1-java",
  102. include_samples = True,
  103. transport = "grpc+rest",
  104. deps = [
  105. ":publishing_java_gapic",
  106. ":publishing_java_grpc",
  107. ":publishing_java_proto",
  108. ":publishing_proto",
  109. ],
  110. )
  111. go_proto_library(
  112. name = "publishing_go_proto",
  113. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  114. importpath = "google.golang.org/genproto/googleapis/cloud/eventarc/publishing/v1",
  115. protos = [":publishing_proto"],
  116. deps = [
  117. "//google/api:annotations_go_proto",
  118. ],
  119. )
  120. go_gapic_library(
  121. name = "publishing_go_gapic",
  122. srcs = [":publishing_proto_with_info"],
  123. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  124. importpath = "cloud.google.com/go/eventarc/publishing/apiv1;publisher",
  125. metadata = True,
  126. rest_numeric_enums = False,
  127. service_yaml = "eventarcpublishing_v1.yaml",
  128. transport = "grpc+rest",
  129. deps = [
  130. ":publishing_go_proto",
  131. ],
  132. )
  133. go_test(
  134. name = "publishing_go_gapic_test",
  135. srcs = [":publishing_go_gapic_srcjar_test"],
  136. embed = [":publishing_go_gapic"],
  137. importpath = "cloud.google.com/go/eventarc/publishing/apiv1",
  138. )
  139. # Open Source Packages
  140. go_gapic_assembly_pkg(
  141. name = "gapi-cloud-eventarc-publishing-v1-go",
  142. deps = [
  143. ":publishing_go_gapic",
  144. ":publishing_go_gapic_srcjar-metadata.srcjar",
  145. ":publishing_go_gapic_srcjar-test.srcjar",
  146. ":publishing_go_proto",
  147. ],
  148. )
  149. py_gapic_library(
  150. name = "publishing_py_gapic",
  151. srcs = [":publishing_proto"],
  152. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  153. opt_args = [
  154. "python-gapic-name=eventarc_publishing",
  155. "python-gapic-namespace=google.cloud",
  156. "warehouse-package-name=google-cloud-eventarc-publishing",
  157. ],
  158. rest_numeric_enums = False,
  159. service_yaml = "eventarcpublishing_v1.yaml",
  160. transport = "grpc+rest",
  161. deps = [
  162. ],
  163. )
  164. py_test(
  165. name = "publishing_py_gapic_test",
  166. srcs = [
  167. "publishing_py_gapic_pytest.py",
  168. "publishing_py_gapic_test.py",
  169. ],
  170. legacy_create_init = False,
  171. deps = [":publishing_py_gapic"],
  172. )
  173. # Open Source Packages
  174. py_gapic_assembly_pkg(
  175. name = "eventarc-publishing-v1-py",
  176. deps = [
  177. ":publishing_py_gapic",
  178. ],
  179. )
  180. php_proto_library(
  181. name = "publishing_php_proto",
  182. deps = [":publishing_proto"],
  183. )
  184. php_grpc_library(
  185. name = "publishing_php_grpc",
  186. srcs = [":publishing_proto"],
  187. deps = [":publishing_php_proto"],
  188. )
  189. php_gapic_library(
  190. name = "publishing_php_gapic",
  191. srcs = [":publishing_proto_with_info"],
  192. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  193. rest_numeric_enums = False,
  194. service_yaml = "eventarcpublishing_v1.yaml",
  195. transport = "grpc+rest",
  196. deps = [
  197. ":publishing_php_grpc",
  198. ":publishing_php_proto",
  199. ],
  200. )
  201. # Open Source Packages
  202. php_gapic_assembly_pkg(
  203. name = "google-cloud-eventarc-publishing-v1-php",
  204. deps = [
  205. ":publishing_php_gapic",
  206. ":publishing_php_grpc",
  207. ":publishing_php_proto",
  208. ],
  209. )
  210. nodejs_gapic_library(
  211. name = "publishing_nodejs_gapic",
  212. package_name = "@google-cloud/eventarc-publishing",
  213. src = ":publishing_proto_with_info",
  214. extra_protoc_parameters = ["metadata"],
  215. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  216. package = "google.cloud.eventarc.publishing.v1",
  217. rest_numeric_enums = False,
  218. service_yaml = "eventarcpublishing_v1.yaml",
  219. transport = "grpc+rest",
  220. deps = [],
  221. )
  222. nodejs_gapic_assembly_pkg(
  223. name = "eventarc-publishing-v1-nodejs",
  224. deps = [
  225. ":publishing_nodejs_gapic",
  226. ":publishing_proto",
  227. ],
  228. )
  229. ruby_proto_library(
  230. name = "publishing_ruby_proto",
  231. deps = [":publishing_proto"],
  232. )
  233. ruby_grpc_library(
  234. name = "publishing_ruby_grpc",
  235. srcs = [":publishing_proto"],
  236. deps = [":publishing_ruby_proto"],
  237. )
  238. ruby_cloud_gapic_library(
  239. name = "publishing_ruby_gapic",
  240. srcs = [":publishing_proto_with_info"],
  241. extra_protoc_parameters = [
  242. "ruby-cloud-api-id=eventarcpublishing.googleapis.com",
  243. "ruby-cloud-api-shortname=eventarcpublishing",
  244. "ruby-cloud-env-prefix=EVENTARC",
  245. "ruby-cloud-gem-name=google-cloud-eventarc-publishing-v1",
  246. "ruby-cloud-product-url=https://cloud.google.com/eventarc/",
  247. ],
  248. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  249. rest_numeric_enums = False,
  250. ruby_cloud_description = "Eventarc lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management — you can optimize productivity and costs while building a modern, event-driven solution.",
  251. ruby_cloud_title = "Eventarc Publishing V1",
  252. service_yaml = "eventarcpublishing_v1.yaml",
  253. deps = [
  254. ":publishing_ruby_grpc",
  255. ":publishing_ruby_proto",
  256. ],
  257. )
  258. # Open Source Packages
  259. ruby_gapic_assembly_pkg(
  260. name = "google-cloud-eventarc-publishing-v1-ruby",
  261. deps = [
  262. ":publishing_ruby_gapic",
  263. ":publishing_ruby_grpc",
  264. ":publishing_ruby_proto",
  265. ],
  266. )
  267. csharp_proto_library(
  268. name = "publishing_csharp_proto",
  269. deps = [":publishing_proto"],
  270. )
  271. csharp_grpc_library(
  272. name = "publishing_csharp_grpc",
  273. srcs = [":publishing_proto"],
  274. deps = [":publishing_csharp_proto"],
  275. )
  276. csharp_gapic_library(
  277. name = "publishing_csharp_gapic",
  278. srcs = [":publishing_proto_with_info"],
  279. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  280. grpc_service_config = "eventarcpublishing_grpc_service_config.json",
  281. rest_numeric_enums = False,
  282. service_yaml = "eventarcpublishing_v1.yaml",
  283. deps = [
  284. ":publishing_csharp_grpc",
  285. ":publishing_csharp_proto",
  286. ],
  287. )
  288. # Open Source Packages
  289. csharp_gapic_assembly_pkg(
  290. name = "google-cloud-eventarc-publishing-v1-csharp",
  291. deps = [
  292. ":publishing_csharp_gapic",
  293. ":publishing_csharp_grpc",
  294. ":publishing_csharp_proto",
  295. ],
  296. )
  297. cc_proto_library(
  298. name = "publishing_cc_proto",
  299. deps = [":publishing_proto"],
  300. )
  301. cc_grpc_library(
  302. name = "publishing_cc_grpc",
  303. srcs = [":publishing_proto"],
  304. grpc_only = True,
  305. deps = [":publishing_cc_proto"],
  306. )