BUILD.bazel 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "storage_proto",
  11. srcs = [
  12. "arrow.proto",
  13. "avro.proto",
  14. "read_options.proto",
  15. "storage.proto",
  16. "table_reference.proto",
  17. ],
  18. deps = [
  19. "//google/api:annotations_proto",
  20. "//google/api:client_proto",
  21. "//google/api:field_behavior_proto",
  22. "//google/api:resource_proto",
  23. "@com_google_protobuf//:empty_proto",
  24. "@com_google_protobuf//:timestamp_proto",
  25. ],
  26. )
  27. proto_library_with_info(
  28. name = "storage_proto_with_info",
  29. deps = [
  30. ":storage_proto",
  31. "//google/cloud:common_resources_proto",
  32. ],
  33. )
  34. ##############################################################################
  35. # Java
  36. ##############################################################################
  37. load(
  38. "@com_google_googleapis_imports//:imports.bzl",
  39. "java_gapic_assembly_gradle_pkg",
  40. "java_gapic_library",
  41. "java_gapic_test",
  42. "java_grpc_library",
  43. "java_proto_library",
  44. )
  45. java_proto_library(
  46. name = "storage_java_proto",
  47. deps = [":storage_proto"],
  48. )
  49. java_grpc_library(
  50. name = "storage_java_grpc",
  51. srcs = [":storage_proto"],
  52. deps = [":storage_java_proto"],
  53. )
  54. java_gapic_library(
  55. name = "storage_java_gapic",
  56. srcs = [":storage_proto_with_info"],
  57. gapic_yaml = "bigquerystorage_gapic.yaml",
  58. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  59. test_deps = [
  60. ":storage_java_grpc",
  61. ],
  62. deps = [
  63. ":storage_java_proto",
  64. ],
  65. )
  66. java_gapic_test(
  67. name = "storage_java_gapic_test_suite",
  68. test_classes = [
  69. "com.google.cloud.bigquery.storage.v1beta1.BaseBigQueryStorageClientTest",
  70. ],
  71. runtime_deps = [":storage_java_gapic_test"],
  72. )
  73. # Open Source Packages
  74. java_gapic_assembly_gradle_pkg(
  75. name = "google-cloud-bigquery-storage-v1beta1-java",
  76. deps = [
  77. ":storage_java_gapic",
  78. ":storage_java_grpc",
  79. ":storage_java_proto",
  80. ":storage_proto",
  81. ],
  82. )
  83. ##############################################################################
  84. # Go
  85. ##############################################################################
  86. load(
  87. "@com_google_googleapis_imports//:imports.bzl",
  88. "go_gapic_assembly_pkg",
  89. "go_gapic_library",
  90. "go_proto_library",
  91. "go_test",
  92. )
  93. go_proto_library(
  94. name = "storage_go_proto",
  95. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  96. importpath = "google.golang.org/genproto/googleapis/cloud/bigquery/storage/v1beta1",
  97. protos = [":storage_proto"],
  98. deps = [
  99. "//google/api:annotations_go_proto",
  100. ],
  101. )
  102. go_gapic_library(
  103. name = "storage_go_gapic",
  104. srcs = [":storage_proto_with_info"],
  105. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  106. importpath = "cloud.google.com/go/bigquery/storage/apiv1beta1;storage",
  107. service_yaml = "bigquerystorage_v1beta1.yaml",
  108. deps = [
  109. ":storage_go_proto",
  110. ],
  111. )
  112. go_test(
  113. name = "storage_go_gapic_test",
  114. srcs = [":storage_go_gapic_srcjar_test"],
  115. embed = [":storage_go_gapic"],
  116. importpath = "cloud.google.com/go/bigquery/storage/apiv1beta1",
  117. )
  118. # Open Source Packages
  119. go_gapic_assembly_pkg(
  120. name = "gapi-cloud-bigquery-storage-v1beta1-go",
  121. deps = [
  122. ":storage_go_gapic",
  123. ":storage_go_gapic_srcjar-test.srcjar",
  124. ":storage_go_proto",
  125. ],
  126. )
  127. ##############################################################################
  128. # Python
  129. ##############################################################################
  130. load(
  131. "@com_google_googleapis_imports//:imports.bzl",
  132. "py_gapic_assembly_pkg",
  133. "py_gapic_library",
  134. )
  135. py_gapic_library(
  136. name = "storage_py_gapic",
  137. srcs = [":storage_proto"],
  138. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  139. )
  140. py_gapic_assembly_pkg(
  141. name = "bigquery-storage-v1beta1-py",
  142. deps = [
  143. ":storage_py_gapic",
  144. ],
  145. )
  146. ##############################################################################
  147. # PHP
  148. ##############################################################################
  149. load(
  150. "@com_google_googleapis_imports//:imports.bzl",
  151. "php_gapic_assembly_pkg",
  152. "php_gapic_library",
  153. "php_grpc_library",
  154. "php_proto_library",
  155. )
  156. php_proto_library(
  157. name = "storage_php_proto",
  158. deps = [":storage_proto"],
  159. )
  160. php_grpc_library(
  161. name = "storage_php_grpc",
  162. srcs = [":storage_proto"],
  163. deps = [":storage_php_proto"],
  164. )
  165. php_gapic_library(
  166. name = "storage_php_gapic",
  167. srcs = [":storage_proto_with_info"],
  168. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  169. deps = [
  170. ":storage_php_grpc",
  171. ":storage_php_proto",
  172. ],
  173. )
  174. # Open Source Packages
  175. php_gapic_assembly_pkg(
  176. name = "google-cloud-bigquery-storage-v1beta1-php",
  177. deps = [
  178. ":storage_php_gapic",
  179. ":storage_php_grpc",
  180. ":storage_php_proto",
  181. ],
  182. )
  183. ##############################################################################
  184. # Node.js
  185. ##############################################################################
  186. load(
  187. "@com_google_googleapis_imports//:imports.bzl",
  188. "nodejs_gapic_assembly_pkg",
  189. "nodejs_gapic_library",
  190. )
  191. nodejs_gapic_library(
  192. name = "storage_nodejs_gapic",
  193. package_name = "@google-cloud/bigquery-storage",
  194. src = ":storage_proto_with_info",
  195. extra_protoc_parameters = ["metadata"],
  196. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  197. package = "google.cloud.bigquery.storage.v1beta1",
  198. service_yaml = "bigquerystorage_v1beta1.yaml",
  199. deps = [],
  200. )
  201. nodejs_gapic_assembly_pkg(
  202. name = "bigquery-storage-v1beta1-nodejs",
  203. deps = [
  204. ":storage_nodejs_gapic",
  205. ":storage_proto",
  206. ],
  207. )
  208. ##############################################################################
  209. # Ruby
  210. ##############################################################################
  211. load(
  212. "@com_google_googleapis_imports//:imports.bzl",
  213. "ruby_gapic_assembly_pkg",
  214. "ruby_cloud_gapic_library",
  215. "ruby_grpc_library",
  216. "ruby_proto_library",
  217. )
  218. ruby_proto_library(
  219. name = "storage_ruby_proto",
  220. deps = [":storage_proto"],
  221. )
  222. ruby_grpc_library(
  223. name = "storage_ruby_grpc",
  224. srcs = [":storage_proto"],
  225. deps = [":storage_ruby_proto"],
  226. )
  227. ruby_cloud_gapic_library(
  228. name = "storage_ruby_gapic",
  229. srcs = [":storage_proto_with_info",],
  230. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-bigquery-storage-v1beta1"],
  231. deps = [
  232. ":storage_ruby_grpc",
  233. ":storage_ruby_proto",
  234. ],
  235. )
  236. # Open Source Packages
  237. ruby_gapic_assembly_pkg(
  238. name = "google-cloud-bigquery-storage-v1beta1-ruby",
  239. deps = [
  240. ":storage_ruby_gapic",
  241. ":storage_ruby_grpc",
  242. ":storage_ruby_proto",
  243. ],
  244. )
  245. ##############################################################################
  246. # C#
  247. ##############################################################################
  248. load(
  249. "@com_google_googleapis_imports//:imports.bzl",
  250. "csharp_gapic_assembly_pkg",
  251. "csharp_gapic_library",
  252. "csharp_grpc_library",
  253. "csharp_proto_library",
  254. )
  255. csharp_proto_library(
  256. name = "storage_csharp_proto",
  257. deps = [":storage_proto"],
  258. )
  259. csharp_grpc_library(
  260. name = "storage_csharp_grpc",
  261. srcs = [":storage_proto"],
  262. deps = [":storage_csharp_proto"],
  263. )
  264. csharp_gapic_library(
  265. name = "storage_csharp_gapic",
  266. srcs = [":storage_proto_with_info"],
  267. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  268. grpc_service_config = "bigquerystorage_grpc_service_config.json",
  269. deps = [
  270. ":storage_csharp_grpc",
  271. ":storage_csharp_proto",
  272. ],
  273. )
  274. # Open Source Packages
  275. csharp_gapic_assembly_pkg(
  276. name = "google-cloud-bigquery-storage-v1beta1-csharp",
  277. deps = [
  278. ":storage_csharp_gapic",
  279. ":storage_csharp_grpc",
  280. ":storage_csharp_proto",
  281. ],
  282. )
  283. ##############################################################################
  284. # C++
  285. ##############################################################################
  286. load(
  287. "@com_google_googleapis_imports//:imports.bzl",
  288. "cc_grpc_library",
  289. "cc_proto_library",
  290. )
  291. cc_proto_library(
  292. name = "storage_cc_proto",
  293. deps = [":storage_proto"],
  294. )
  295. cc_grpc_library(
  296. name = "storage_cc_grpc",
  297. srcs = [":storage_proto"],
  298. generate_mocks = True,
  299. grpc_only = True,
  300. deps = [":storage_cc_proto"],
  301. )