BUILD.bazel 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  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. # This is an API workspace, having public visibility by default makes perfect sense.
  11. package(default_visibility = ["//visibility:public"])
  12. ##############################################################################
  13. # Common
  14. ##############################################################################
  15. load("@rules_proto//proto:defs.bzl", "proto_library")
  16. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  17. proto_library(
  18. name = "pubsublite_proto",
  19. srcs = [
  20. "admin.proto",
  21. "common.proto",
  22. "cursor.proto",
  23. "publisher.proto",
  24. "subscriber.proto",
  25. "topic_stats.proto",
  26. ],
  27. deps = [
  28. "//google/api:annotations_proto",
  29. "//google/api:client_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "//google/longrunning:operations_proto",
  33. "@com_google_protobuf//:duration_proto",
  34. "@com_google_protobuf//:empty_proto",
  35. "@com_google_protobuf//:field_mask_proto",
  36. "@com_google_protobuf//:timestamp_proto",
  37. ],
  38. )
  39. proto_library_with_info(
  40. name = "pubsublite_proto_with_info",
  41. deps = [
  42. ":pubsublite_proto",
  43. "//google/cloud:common_resources_proto",
  44. ],
  45. )
  46. ##############################################################################
  47. # Java
  48. ##############################################################################
  49. load(
  50. "@com_google_googleapis_imports//:imports.bzl",
  51. "java_gapic_assembly_gradle_pkg",
  52. "java_gapic_library",
  53. "java_gapic_test",
  54. "java_grpc_library",
  55. "java_proto_library",
  56. )
  57. java_proto_library(
  58. name = "pubsublite_java_proto",
  59. deps = [":pubsublite_proto"],
  60. )
  61. java_grpc_library(
  62. name = "pubsublite_java_grpc",
  63. srcs = [":pubsublite_proto"],
  64. deps = [":pubsublite_java_proto"],
  65. )
  66. java_gapic_library(
  67. name = "pubsublite_java_gapic",
  68. srcs = [":pubsublite_proto_with_info"],
  69. gapic_yaml = "gapic.yaml",
  70. grpc_service_config = "pubsublite_grpc_service_config.json",
  71. test_deps = [
  72. ":pubsublite_java_grpc",
  73. ],
  74. deps = [
  75. ":pubsublite_java_proto",
  76. ],
  77. )
  78. java_gapic_test(
  79. name = "pubsublite_java_gapic_test_suite",
  80. test_classes = [
  81. "com.google.cloud.pubsublite.v1.AdminServiceClientTest",
  82. "com.google.cloud.pubsublite.v1.CursorServiceClientTest",
  83. "com.google.cloud.pubsublite.v1.PartitionAssignmentServiceClientTest",
  84. "com.google.cloud.pubsublite.v1.PublisherServiceClientTest",
  85. "com.google.cloud.pubsublite.v1.SubscriberServiceClientTest",
  86. "com.google.cloud.pubsublite.v1.TopicStatsServiceClientTest",
  87. ],
  88. runtime_deps = [":pubsublite_java_gapic_test"],
  89. )
  90. # Open Source Packages
  91. java_gapic_assembly_gradle_pkg(
  92. name = "google-cloud-pubsublite-v1-java",
  93. deps = [
  94. ":pubsublite_java_gapic",
  95. ":pubsublite_java_grpc",
  96. ":pubsublite_java_proto",
  97. ":pubsublite_proto",
  98. ],
  99. )
  100. ##############################################################################
  101. # Go
  102. ##############################################################################
  103. load(
  104. "@com_google_googleapis_imports//:imports.bzl",
  105. "go_gapic_assembly_pkg",
  106. "go_gapic_library",
  107. "go_proto_library",
  108. "go_test",
  109. )
  110. go_proto_library(
  111. name = "pubsublite_go_proto",
  112. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  113. importpath = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1",
  114. protos = [":pubsublite_proto"],
  115. deps = [
  116. "//google/api:annotations_go_proto",
  117. "//google/longrunning:longrunning_go_proto",
  118. ],
  119. )
  120. go_gapic_library(
  121. name = "pubsublite_go_gapic",
  122. srcs = [":pubsublite_proto_with_info"],
  123. grpc_service_config = "pubsublite_grpc_service_config.json",
  124. importpath = "cloud.google.com/go/pubsublite/apiv1;pubsublite",
  125. service_yaml = "pubsublite_v1.yaml",
  126. deps = [
  127. ":pubsublite_go_proto",
  128. "//google/longrunning:longrunning_go_proto",
  129. "@com_google_cloud_go//longrunning:go_default_library",
  130. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  131. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  132. ],
  133. )
  134. go_test(
  135. name = "pubsublite_go_gapic_test",
  136. srcs = [":pubsublite_go_gapic_srcjar_test"],
  137. embed = [":pubsublite_go_gapic"],
  138. importpath = "cloud.google.com/go/pubsublite/apiv1",
  139. )
  140. # Open Source Packages
  141. go_gapic_assembly_pkg(
  142. name = "gapi-cloud-pubsublite-v1-go",
  143. deps = [
  144. ":pubsublite_go_gapic",
  145. ":pubsublite_go_gapic_srcjar-test.srcjar",
  146. ":pubsublite_go_proto",
  147. ],
  148. )
  149. ##############################################################################
  150. # Python
  151. ##############################################################################
  152. load(
  153. "@com_google_googleapis_imports//:imports.bzl",
  154. "py_gapic_assembly_pkg",
  155. "py_gapic_library",
  156. )
  157. py_gapic_library(
  158. name = "pubsublite_py_gapic",
  159. srcs = [":pubsublite_proto"],
  160. grpc_service_config = "pubsublite_grpc_service_config.json",
  161. )
  162. # Open Source Packages
  163. py_gapic_assembly_pkg(
  164. name = "pubsublite-v1-py",
  165. deps = [
  166. ":pubsublite_py_gapic",
  167. ],
  168. )
  169. ##############################################################################
  170. # Node.js
  171. ##############################################################################
  172. load(
  173. "@com_google_googleapis_imports//:imports.bzl",
  174. "nodejs_gapic_assembly_pkg",
  175. "nodejs_gapic_library",
  176. )
  177. nodejs_gapic_library(
  178. name = "pubsublite_nodejs_gapic",
  179. package_name = "@google-cloud/pubsublite",
  180. src = ":pubsublite_proto_with_info",
  181. extra_protoc_parameters = ["metadata"],
  182. grpc_service_config = "pubsublite_grpc_service_config.json",
  183. package = "google.cloud.pubsublite.v1",
  184. service_yaml = "pubsublite_v1.yaml",
  185. deps = [],
  186. )
  187. nodejs_gapic_assembly_pkg(
  188. name = "pubsublite-v1-nodejs",
  189. deps = [
  190. ":pubsublite_nodejs_gapic",
  191. ":pubsublite_proto",
  192. ],
  193. )
  194. ##############################################################################
  195. # Ruby
  196. ##############################################################################
  197. load(
  198. "@com_google_googleapis_imports//:imports.bzl",
  199. "ruby_gapic_assembly_pkg",
  200. "ruby_cloud_gapic_library",
  201. "ruby_grpc_library",
  202. "ruby_proto_library",
  203. )
  204. ruby_proto_library(
  205. name = "pubsublite_ruby_proto",
  206. deps = [":pubsublite_proto"],
  207. )
  208. ruby_grpc_library(
  209. name = "pubsublite_ruby_grpc",
  210. srcs = [":pubsublite_proto"],
  211. deps = [":pubsublite_ruby_proto"],
  212. )
  213. ruby_cloud_gapic_library(
  214. name = "pubsublite_ruby_gapic",
  215. srcs = [":pubsublite_proto_with_info",],
  216. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-pubsublite-v1"],
  217. grpc_service_config = "pubsublite_grpc_service_config.json",
  218. deps = [
  219. ":pubsublite_ruby_grpc",
  220. ":pubsublite_ruby_proto",
  221. ],
  222. )
  223. # Open Source Packages
  224. ruby_gapic_assembly_pkg(
  225. name = "google-cloud-pubsublite-v1-ruby",
  226. deps = [
  227. ":pubsublite_ruby_gapic",
  228. ":pubsublite_ruby_grpc",
  229. ":pubsublite_ruby_proto",
  230. ],
  231. )
  232. ##############################################################################
  233. # C#
  234. ##############################################################################
  235. load(
  236. "@com_google_googleapis_imports//:imports.bzl",
  237. "csharp_gapic_assembly_pkg",
  238. "csharp_gapic_library",
  239. "csharp_grpc_library",
  240. "csharp_proto_library",
  241. )
  242. csharp_proto_library(
  243. name = "pubsublite_csharp_proto",
  244. deps = [":pubsublite_proto"],
  245. )
  246. csharp_grpc_library(
  247. name = "pubsublite_csharp_grpc",
  248. srcs = [":pubsublite_proto"],
  249. deps = [":pubsublite_csharp_proto"],
  250. )
  251. csharp_gapic_library(
  252. name = "pubsublite_csharp_gapic",
  253. srcs = [":pubsublite_proto_with_info"],
  254. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  255. grpc_service_config = "pubsublite_grpc_service_config.json",
  256. deps = [
  257. ":pubsublite_csharp_grpc",
  258. ":pubsublite_csharp_proto",
  259. ],
  260. )
  261. # Open Source Packages
  262. csharp_gapic_assembly_pkg(
  263. name = "google-cloud-pubsublite-v1-csharp",
  264. deps = [
  265. ":pubsublite_csharp_gapic",
  266. ":pubsublite_csharp_grpc",
  267. ":pubsublite_csharp_proto",
  268. ],
  269. )
  270. ##############################################################################
  271. # C++
  272. ##############################################################################
  273. # Put your C++ rules here