BUILD.bazel 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. # This file was automatically generated by BuildFileGenerator
  2. ##############################################################################
  3. # Common
  4. ##############################################################################
  5. load("@rules_proto//proto:defs.bzl", "proto_library")
  6. load(
  7. "@com_google_googleapis_imports//:imports.bzl",
  8. "cc_grpc_library",
  9. "cc_proto_library",
  10. "csharp_gapic_assembly_pkg",
  11. "csharp_gapic_library",
  12. "csharp_grpc_library",
  13. "csharp_proto_library",
  14. "go_gapic_assembly_pkg",
  15. "go_gapic_library",
  16. "go_proto_library",
  17. "go_test",
  18. "java_gapic_assembly_gradle_pkg",
  19. "java_gapic_library",
  20. "java_gapic_test",
  21. "java_grpc_library",
  22. "java_proto_library",
  23. "nodejs_gapic_assembly_pkg",
  24. "nodejs_gapic_library",
  25. "php_gapic_assembly_pkg",
  26. "php_gapic_library",
  27. "php_grpc_library",
  28. "php_proto_library",
  29. "proto_library_with_info",
  30. "py_gapic_assembly_pkg",
  31. "py_gapic_library",
  32. "py_test",
  33. "ruby_cloud_gapic_library",
  34. "ruby_gapic_assembly_pkg",
  35. "ruby_grpc_library",
  36. "ruby_proto_library",
  37. )
  38. # This is an API workspace, having public visibility by default makes perfect sense.
  39. package(default_visibility = ["//visibility:public"])
  40. proto_library(
  41. name = "bigtable_proto",
  42. srcs = [
  43. "bigtable.proto",
  44. "data.proto",
  45. "request_stats.proto",
  46. "response_params.proto",
  47. ],
  48. deps = [
  49. "//google/api:annotations_proto",
  50. "//google/api:client_proto",
  51. "//google/api:field_behavior_proto",
  52. "//google/api:resource_proto",
  53. "//google/api:routing_proto",
  54. "//google/rpc:status_proto",
  55. "@com_google_protobuf//:duration_proto",
  56. "@com_google_protobuf//:wrappers_proto",
  57. ],
  58. )
  59. proto_library_with_info(
  60. name = "bigtable_proto_with_info",
  61. deps = [
  62. ":bigtable_proto",
  63. "//google/cloud:common_resources_proto",
  64. ],
  65. )
  66. java_proto_library(
  67. name = "bigtable_java_proto",
  68. deps = [":bigtable_proto"],
  69. )
  70. java_grpc_library(
  71. name = "bigtable_java_grpc",
  72. srcs = [":bigtable_proto"],
  73. deps = [":bigtable_java_proto"],
  74. )
  75. java_gapic_library(
  76. name = "bigtable_java_gapic",
  77. srcs = [":bigtable_proto_with_info"],
  78. gapic_yaml = "bigtable_gapic.yaml",
  79. grpc_service_config = "bigtable_grpc_service_config.json",
  80. rest_numeric_enums = False,
  81. test_deps = [
  82. ":bigtable_java_grpc",
  83. ],
  84. transport = "grpc",
  85. deps = [
  86. ":bigtable_java_proto",
  87. ],
  88. )
  89. java_gapic_test(
  90. name = "bigtable_java_gapic_test_suite",
  91. test_classes = [
  92. "com.google.cloud.bigtable.data.v2.BaseBigtableDataClientTest",
  93. ],
  94. runtime_deps = [":bigtable_java_gapic_test"],
  95. )
  96. # Open Source Packages
  97. java_gapic_assembly_gradle_pkg(
  98. name = "google-cloud-bigtable-v2-java",
  99. include_samples = True,
  100. transport = "grpc",
  101. deps = [
  102. ":bigtable_java_gapic",
  103. ":bigtable_java_grpc",
  104. ":bigtable_java_proto",
  105. ":bigtable_proto",
  106. ],
  107. )
  108. go_proto_library(
  109. name = "bigtable_go_proto",
  110. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  111. importpath = "google.golang.org/genproto/googleapis/bigtable/v2",
  112. protos = [":bigtable_proto"],
  113. deps = [
  114. "//google/api:annotations_go_proto",
  115. "//google/rpc:status_go_proto",
  116. ],
  117. )
  118. go_gapic_library(
  119. name = "bigtable_go_gapic",
  120. srcs = [":bigtable_proto_with_info"],
  121. grpc_service_config = "bigtable_grpc_service_config.json",
  122. importpath = "cloud.google.com/go/bigtable/apiv2;bigtable",
  123. rest_numeric_enums = False,
  124. service_yaml = "bigtable_v2.yaml",
  125. transport = "grpc",
  126. deps = [
  127. ":bigtable_go_proto",
  128. ],
  129. )
  130. go_test(
  131. name = "bigtable_go_gapic_test",
  132. srcs = [":bigtable_go_gapic_srcjar_test"],
  133. embed = [":bigtable_go_gapic"],
  134. importpath = "cloud.google.com/go/bigtable/apiv2",
  135. )
  136. # Open Source Packages
  137. go_gapic_assembly_pkg(
  138. name = "gapi-cloud-bigtable-v2-go",
  139. deps = [
  140. ":bigtable_go_gapic",
  141. ":bigtable_go_gapic_srcjar-test.srcjar",
  142. ":bigtable_go_proto",
  143. ],
  144. )
  145. py_gapic_library(
  146. name = "bigtable_py_gapic",
  147. srcs = [":bigtable_proto"],
  148. grpc_service_config = "bigtable_grpc_service_config.json",
  149. opt_args = [
  150. "python-gapic-namespace=google.cloud",
  151. "autogen-snippets=False",
  152. ],
  153. rest_numeric_enums = False,
  154. transport = "grpc",
  155. )
  156. py_test(
  157. name = "bigtable_py_gapic_test",
  158. srcs = [
  159. "bigtable_py_gapic_pytest.py",
  160. "bigtable_py_gapic_test.py",
  161. ],
  162. legacy_create_init = False,
  163. deps = [":bigtable_py_gapic"],
  164. )
  165. py_gapic_assembly_pkg(
  166. name = "bigtable-v2-py",
  167. deps = [
  168. ":bigtable_py_gapic",
  169. ],
  170. )
  171. php_proto_library(
  172. name = "bigtable_php_proto",
  173. deps = [":bigtable_proto"],
  174. )
  175. php_grpc_library(
  176. name = "bigtable_php_grpc",
  177. srcs = [":bigtable_proto"],
  178. deps = [":bigtable_php_proto"],
  179. )
  180. php_gapic_library(
  181. name = "bigtable_php_gapic",
  182. srcs = [":bigtable_proto_with_info"],
  183. rest_numeric_enums = False,
  184. service_yaml = "bigtable_v2.yaml",
  185. transport = "grpc+rest",
  186. deps = [
  187. ":bigtable_php_grpc",
  188. ":bigtable_php_proto",
  189. ],
  190. )
  191. # Open Source Packages
  192. php_gapic_assembly_pkg(
  193. name = "google-cloud-bigtable-v2-php",
  194. deps = [
  195. ":bigtable_php_gapic",
  196. ":bigtable_php_grpc",
  197. ":bigtable_php_proto",
  198. ],
  199. )
  200. nodejs_gapic_library(
  201. name = "bigtable_nodejs_gapic",
  202. package_name = "@google-cloud/bigtable",
  203. src = ":bigtable_proto_with_info",
  204. extra_protoc_parameters = ["metadata"],
  205. grpc_service_config = "bigtable_grpc_service_config.json",
  206. handwritten_layer = True,
  207. main_service = "bigtable",
  208. package = "google.bigtable.v2",
  209. rest_numeric_enums = False,
  210. service_yaml = "bigtable_v2.yaml",
  211. transport = "grpc+rest",
  212. deps = [],
  213. )
  214. nodejs_gapic_assembly_pkg(
  215. name = "bigtable-v2-nodejs",
  216. deps = [
  217. ":bigtable_nodejs_gapic",
  218. ":bigtable_proto",
  219. ],
  220. )
  221. ruby_proto_library(
  222. name = "bigtable_ruby_proto",
  223. deps = [":bigtable_proto"],
  224. )
  225. ruby_grpc_library(
  226. name = "bigtable_ruby_grpc",
  227. srcs = [":bigtable_proto"],
  228. deps = [":bigtable_ruby_proto"],
  229. )
  230. ruby_cloud_gapic_library(
  231. name = "bigtable_ruby_gapic",
  232. srcs = [":bigtable_proto_with_info"],
  233. extra_protoc_parameters = [
  234. "ruby-cloud-gem-name=google-cloud-bigtable-v2",
  235. "ruby-cloud-env-prefix=BIGTABLE",
  236. "ruby-cloud-product-url=https://cloud.google.com/bigtable",
  237. "ruby-cloud-api-id=bigtable.googleapis.com",
  238. "ruby-cloud-api-shortname=bigtable",
  239. ],
  240. grpc_service_config = "bigtable_grpc_service_config.json",
  241. rest_numeric_enums = False,
  242. ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
  243. ruby_cloud_title = "Cloud Bigtable V2",
  244. deps = [
  245. ":bigtable_ruby_grpc",
  246. ":bigtable_ruby_proto",
  247. ],
  248. )
  249. # Open Source Packages
  250. ruby_gapic_assembly_pkg(
  251. name = "google-cloud-bigtable-v2-ruby",
  252. deps = [
  253. ":bigtable_ruby_gapic",
  254. ":bigtable_ruby_grpc",
  255. ":bigtable_ruby_proto",
  256. ],
  257. )
  258. csharp_proto_library(
  259. name = "bigtable_csharp_proto",
  260. deps = [":bigtable_proto"],
  261. )
  262. csharp_grpc_library(
  263. name = "bigtable_csharp_grpc",
  264. srcs = [":bigtable_proto"],
  265. deps = [":bigtable_csharp_proto"],
  266. )
  267. csharp_gapic_library(
  268. name = "bigtable_csharp_gapic",
  269. srcs = [":bigtable_proto_with_info"],
  270. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  271. grpc_service_config = "bigtable_grpc_service_config.json",
  272. rest_numeric_enums = False,
  273. service_yaml = "bigtable_v2.yaml",
  274. deps = [
  275. ":bigtable_csharp_grpc",
  276. ":bigtable_csharp_proto",
  277. ],
  278. )
  279. # Open Source Packages
  280. csharp_gapic_assembly_pkg(
  281. name = "google-cloud-bigtable-v2-csharp",
  282. deps = [
  283. ":bigtable_csharp_gapic",
  284. ":bigtable_csharp_grpc",
  285. ":bigtable_csharp_proto",
  286. ],
  287. )
  288. cc_proto_library(
  289. name = "bigtable_cc_proto",
  290. deps = [":bigtable_proto"],
  291. )
  292. cc_grpc_library(
  293. name = "bigtable_cc_grpc",
  294. srcs = [":bigtable_proto"],
  295. grpc_only = True,
  296. deps = [":bigtable_cc_proto"],
  297. )