BUILD.bazel 8.5 KB

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