BUILD.bazel 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337
  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 = "firestore_proto",
  11. srcs = [
  12. "common.proto",
  13. "document.proto",
  14. "firestore.proto",
  15. "query.proto",
  16. "write.proto",
  17. ],
  18. deps = [
  19. "//google/api:annotations_proto",
  20. "//google/api:client_proto",
  21. "//google/api:field_behavior_proto",
  22. "//google/rpc:status_proto",
  23. "//google/type:latlng_proto",
  24. "@com_google_protobuf//:empty_proto",
  25. "@com_google_protobuf//:struct_proto",
  26. "@com_google_protobuf//:timestamp_proto",
  27. "@com_google_protobuf//:wrappers_proto",
  28. ],
  29. )
  30. proto_library_with_info(
  31. name = "firestore_proto_with_info",
  32. deps = [
  33. ":firestore_proto",
  34. "//google/cloud:common_resources_proto",
  35. ],
  36. )
  37. ##############################################################################
  38. # Java
  39. ##############################################################################
  40. load(
  41. "@com_google_googleapis_imports//:imports.bzl",
  42. "java_gapic_assembly_gradle_pkg",
  43. "java_gapic_library",
  44. "java_gapic_test",
  45. "java_grpc_library",
  46. "java_proto_library",
  47. )
  48. java_proto_library(
  49. name = "firestore_java_proto",
  50. deps = [":firestore_proto"],
  51. )
  52. java_grpc_library(
  53. name = "firestore_java_grpc",
  54. srcs = [":firestore_proto"],
  55. deps = [":firestore_java_proto"],
  56. )
  57. java_gapic_library(
  58. name = "firestore_java_gapic",
  59. srcs = [":firestore_proto_with_info"],
  60. gapic_yaml = "firestore_gapic.yaml",
  61. grpc_service_config = "firestore_grpc_service_config.json",
  62. test_deps = [
  63. ":firestore_java_grpc",
  64. ],
  65. deps = [
  66. ":firestore_java_proto",
  67. ],
  68. )
  69. java_gapic_test(
  70. name = "firestore_java_gapic_test_suite",
  71. test_classes = [
  72. "com.google.cloud.firestore.v1.FirestoreClientTest",
  73. ],
  74. runtime_deps = [":firestore_java_gapic_test"],
  75. )
  76. # Open Source Packages
  77. java_gapic_assembly_gradle_pkg(
  78. name = "google-cloud-firestore-v1-java",
  79. deps = [
  80. ":firestore_java_gapic",
  81. ":firestore_java_grpc",
  82. ":firestore_java_proto",
  83. ":firestore_proto",
  84. ],
  85. )
  86. ##############################################################################
  87. # Go
  88. ##############################################################################
  89. load(
  90. "@com_google_googleapis_imports//:imports.bzl",
  91. "go_gapic_assembly_pkg",
  92. "go_gapic_library",
  93. "go_proto_library",
  94. "go_test",
  95. )
  96. go_proto_library(
  97. name = "firestore_go_proto",
  98. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  99. importpath = "google.golang.org/genproto/googleapis/firestore/v1",
  100. protos = [":firestore_proto"],
  101. deps = [
  102. "//google/api:annotations_go_proto",
  103. "//google/rpc:status_go_proto",
  104. "//google/type:latlng_go_proto",
  105. ],
  106. )
  107. go_gapic_library(
  108. name = "firestore_go_gapic",
  109. srcs = [":firestore_proto_with_info"],
  110. grpc_service_config = "firestore_grpc_service_config.json",
  111. importpath = "cloud.google.com/go/firestore/apiv1;firestore",
  112. service_yaml = "//google/firestore:firestore_v1.yaml",
  113. deps = [
  114. ":firestore_go_proto",
  115. ],
  116. )
  117. go_test(
  118. name = "firestore_go_gapic_test",
  119. srcs = [":firestore_go_gapic_srcjar_test"],
  120. embed = [":firestore_go_gapic"],
  121. importpath = "cloud.google.com/go/firestore/apiv1",
  122. )
  123. # Open Source Packages
  124. go_gapic_assembly_pkg(
  125. name = "gapi-cloud-firestore-v1-go",
  126. deps = [
  127. ":firestore_go_gapic",
  128. ":firestore_go_gapic_srcjar-test.srcjar",
  129. ":firestore_go_proto",
  130. ],
  131. )
  132. ##############################################################################
  133. # Python
  134. ##############################################################################
  135. load(
  136. "@com_google_googleapis_imports//:imports.bzl",
  137. "py_gapic_assembly_pkg",
  138. "py_gapic_library",
  139. )
  140. py_gapic_library(
  141. name = "firestore_py_gapic",
  142. srcs = [":firestore_proto"],
  143. grpc_service_config = "firestore_grpc_service_config.json",
  144. opt_args = ["python-gapic-namespace=google.cloud"],
  145. )
  146. py_gapic_assembly_pkg(
  147. name = "firestore-v1-py",
  148. deps = [
  149. ":firestore_py_gapic",
  150. ],
  151. )
  152. ##############################################################################
  153. # PHP
  154. ##############################################################################
  155. load(
  156. "@com_google_googleapis_imports//:imports.bzl",
  157. "php_gapic_assembly_pkg",
  158. "php_gapic_library",
  159. "php_grpc_library",
  160. "php_proto_library",
  161. )
  162. php_proto_library(
  163. name = "firestore_php_proto",
  164. deps = [":firestore_proto"],
  165. )
  166. php_grpc_library(
  167. name = "firestore_php_grpc",
  168. srcs = [":firestore_proto"],
  169. deps = [":firestore_php_proto"],
  170. )
  171. php_gapic_library(
  172. name = "firestore_php_gapic",
  173. srcs = [":firestore_proto_with_info"],
  174. deps = [
  175. ":firestore_php_grpc",
  176. ":firestore_php_proto",
  177. ],
  178. )
  179. # Open Source Packages
  180. php_gapic_assembly_pkg(
  181. name = "google-cloud-firestore-v1-php",
  182. deps = [
  183. ":firestore_php_gapic",
  184. ":firestore_php_grpc",
  185. ":firestore_php_proto",
  186. ],
  187. )
  188. ##############################################################################
  189. # Node.js
  190. ##############################################################################
  191. load(
  192. "@com_google_googleapis_imports//:imports.bzl",
  193. "nodejs_gapic_assembly_pkg",
  194. "nodejs_gapic_library",
  195. )
  196. nodejs_gapic_library(
  197. name = "firestore_nodejs_gapic",
  198. package_name = "@google-cloud/firestore",
  199. src = ":firestore_proto_with_info",
  200. extra_protoc_parameters = ["metadata"],
  201. grpc_service_config = "firestore_grpc_service_config.json",
  202. package = "google.firestore.v1",
  203. service_yaml = "//google/firestore:firestore_v1.yaml",
  204. deps = [],
  205. )
  206. nodejs_gapic_assembly_pkg(
  207. name = "firestore-v1-nodejs",
  208. deps = [
  209. ":firestore_nodejs_gapic",
  210. ":firestore_proto",
  211. ],
  212. )
  213. ##############################################################################
  214. # Ruby
  215. ##############################################################################
  216. load(
  217. "@com_google_googleapis_imports//:imports.bzl",
  218. "ruby_cloud_gapic_library",
  219. "ruby_gapic_assembly_pkg",
  220. "ruby_grpc_library",
  221. "ruby_proto_library",
  222. )
  223. ruby_proto_library(
  224. name = "firestore_ruby_proto",
  225. deps = [":firestore_proto"],
  226. )
  227. ruby_grpc_library(
  228. name = "firestore_ruby_grpc",
  229. srcs = [":firestore_proto"],
  230. deps = [":firestore_ruby_proto"],
  231. )
  232. ruby_cloud_gapic_library(
  233. name = "firestore_ruby_gapic",
  234. srcs = [":firestore_proto_with_info"],
  235. extra_protoc_parameters = [
  236. "ruby-cloud-gem-name=google-cloud-firestore-v1",
  237. "ruby-cloud-env-prefix=FIRESTORE",
  238. "ruby-cloud-product-url=https://cloud.google.com/firestore",
  239. "ruby-cloud-api-id=firestore.googleapis.com",
  240. "ruby-cloud-api-shortname=firestore",
  241. ],
  242. grpc_service_config = "firestore_grpc_service_config.json",
  243. ruby_cloud_description = "Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.",
  244. ruby_cloud_title = "Cloud Firestore V1",
  245. deps = [
  246. ":firestore_ruby_grpc",
  247. ":firestore_ruby_proto",
  248. ],
  249. )
  250. # Open Source Packages
  251. ruby_gapic_assembly_pkg(
  252. name = "google-cloud-firestore-v1-ruby",
  253. deps = [
  254. ":firestore_ruby_gapic",
  255. ":firestore_ruby_grpc",
  256. ":firestore_ruby_proto",
  257. ],
  258. )
  259. ##############################################################################
  260. # C#
  261. ##############################################################################
  262. load(
  263. "@com_google_googleapis_imports//:imports.bzl",
  264. "csharp_gapic_assembly_pkg",
  265. "csharp_gapic_library",
  266. "csharp_grpc_library",
  267. "csharp_proto_library",
  268. )
  269. csharp_proto_library(
  270. name = "firestore_csharp_proto",
  271. deps = [":firestore_proto"],
  272. )
  273. csharp_grpc_library(
  274. name = "firestore_csharp_grpc",
  275. srcs = [":firestore_proto"],
  276. deps = [":firestore_csharp_proto"],
  277. )
  278. csharp_gapic_library(
  279. name = "firestore_csharp_gapic",
  280. srcs = [":firestore_proto_with_info"],
  281. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  282. grpc_service_config = "firestore_grpc_service_config.json",
  283. deps = [
  284. ":firestore_csharp_grpc",
  285. ":firestore_csharp_proto",
  286. ],
  287. )
  288. # Open Source Packages
  289. csharp_gapic_assembly_pkg(
  290. name = "google-cloud-firestore-v1-csharp",
  291. deps = [
  292. ":firestore_csharp_gapic",
  293. ":firestore_csharp_grpc",
  294. ":firestore_csharp_proto",
  295. ],
  296. )
  297. ##############################################################################
  298. # C++
  299. ##############################################################################
  300. # Put your C++ rules here