BUILD.bazel 11 KB

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