BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  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 = "filestore_proto",
  19. srcs = [
  20. "cloud_filestore_service.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/cloud/common:common_proto",
  28. "//google/longrunning:operations_proto",
  29. "@com_google_protobuf//:field_mask_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. "@com_google_protobuf//:wrappers_proto",
  32. ],
  33. )
  34. proto_library_with_info(
  35. name = "filestore_proto_with_info",
  36. deps = [
  37. ":filestore_proto",
  38. "//google/cloud/common:common_proto",
  39. "//google/cloud:common_resources_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "filestore_java_proto",
  55. deps = [
  56. ":filestore_proto",
  57. "//google/cloud/common:common_proto",
  58. ],
  59. )
  60. java_grpc_library(
  61. name = "filestore_java_grpc",
  62. srcs = [":filestore_proto"],
  63. deps = [":filestore_java_proto"],
  64. )
  65. java_gapic_library(
  66. name = "filestore_java_gapic",
  67. srcs = [":filestore_proto_with_info"],
  68. grpc_service_config = "file_grpc_service_config.json",
  69. test_deps = [
  70. ":filestore_java_grpc",
  71. ],
  72. deps = [
  73. ":filestore_java_proto",
  74. "//google/cloud/common:common_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "filestore_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.filestore.v1beta1.CloudFilestoreManagerClientTest",
  81. ],
  82. runtime_deps = [":filestore_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-filestore-v1beta1-java",
  87. deps = [
  88. ":filestore_java_gapic",
  89. ":filestore_java_grpc",
  90. ":filestore_java_proto",
  91. ":filestore_proto",
  92. ],
  93. )
  94. ##############################################################################
  95. # Go
  96. ##############################################################################
  97. load(
  98. "@com_google_googleapis_imports//:imports.bzl",
  99. "go_gapic_assembly_pkg",
  100. "go_gapic_library",
  101. "go_proto_library",
  102. "go_test",
  103. )
  104. go_proto_library(
  105. name = "filestore_go_proto",
  106. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  107. importpath = "google.golang.org/genproto/googleapis/cloud/filestore/v1beta1",
  108. protos = [":filestore_proto"],
  109. deps = [
  110. "//google/api:annotations_go_proto",
  111. "//google/cloud/common:common_go_proto",
  112. "//google/longrunning:longrunning_go_proto",
  113. ],
  114. )
  115. go_gapic_library(
  116. name = "filestore_go_gapic",
  117. srcs = [":filestore_proto_with_info"],
  118. grpc_service_config = "file_grpc_service_config.json",
  119. importpath = "cloud.google.com/go/filestore/apiv1beta1;filestore",
  120. metadata = True,
  121. service_yaml = "file_v1beta1.yaml",
  122. deps = [
  123. ":filestore_go_proto",
  124. "//google/cloud/common:common_go_proto",
  125. "//google/longrunning:longrunning_go_proto",
  126. "@com_google_cloud_go//longrunning:go_default_library",
  127. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  128. ],
  129. )
  130. go_test(
  131. name = "filestore_go_gapic_test",
  132. srcs = [":filestore_go_gapic_srcjar_test"],
  133. embed = [":filestore_go_gapic"],
  134. importpath = "cloud.google.com/go/filestore/apiv1beta1",
  135. )
  136. # Open Source Packages
  137. go_gapic_assembly_pkg(
  138. name = "gapi-cloud-filestore-v1beta1-go",
  139. deps = [
  140. ":filestore_go_gapic",
  141. ":filestore_go_gapic_srcjar-metadata.srcjar",
  142. ":filestore_go_gapic_srcjar-test.srcjar",
  143. ":filestore_go_proto",
  144. ],
  145. )
  146. ##############################################################################
  147. # Python
  148. ##############################################################################
  149. #
  150. # Commented out: Python generator cannot accept LRO metadata from a different
  151. # proto namespace.
  152. #
  153. # load(
  154. # "@com_google_googleapis_imports//:imports.bzl",
  155. # "py_gapic_assembly_pkg",
  156. # "py_gapic_library",
  157. # )
  158. # py_gapic_library(
  159. # name = "filestore_py_gapic",
  160. # srcs = [":filestore_proto_with_info"],
  161. # grpc_service_config = "file_grpc_service_config.json",
  162. # )
  163. # # Open Source Packages
  164. # py_gapic_assembly_pkg(
  165. # name = "filestore-v1beta1-py",
  166. # deps = [
  167. # ":filestore_py_gapic",
  168. # ],
  169. # )
  170. ##############################################################################
  171. # PHP
  172. ##############################################################################
  173. load(
  174. "@com_google_googleapis_imports//:imports.bzl",
  175. "php_gapic_assembly_pkg",
  176. "php_gapic_library",
  177. "php_grpc_library",
  178. "php_proto_library",
  179. )
  180. php_proto_library(
  181. name = "filestore_php_proto",
  182. deps = [":filestore_proto"],
  183. )
  184. php_grpc_library(
  185. name = "filestore_php_grpc",
  186. srcs = [":filestore_proto"],
  187. deps = [":filestore_php_proto"],
  188. )
  189. php_gapic_library(
  190. name = "filestore_php_gapic",
  191. srcs = [":filestore_proto_with_info"],
  192. grpc_service_config = "file_grpc_service_config.json",
  193. service_yaml = "file_v1beta1.yaml",
  194. deps = [
  195. ":filestore_php_grpc",
  196. ":filestore_php_proto",
  197. ],
  198. )
  199. # Open Source Packages
  200. php_gapic_assembly_pkg(
  201. name = "google-cloud-filestore-v1beta1-php",
  202. deps = [
  203. ":filestore_php_gapic",
  204. ":filestore_php_grpc",
  205. ":filestore_php_proto",
  206. ],
  207. )
  208. ##############################################################################
  209. # Node.js
  210. ##############################################################################
  211. load(
  212. "@com_google_googleapis_imports//:imports.bzl",
  213. "nodejs_gapic_assembly_pkg",
  214. "nodejs_gapic_library",
  215. )
  216. nodejs_gapic_library(
  217. name = "filestore_nodejs_gapic",
  218. package_name = "@google-cloud/filestore",
  219. src = ":filestore_proto_with_info",
  220. extra_protoc_parameters = ["metadata"],
  221. grpc_service_config = "file_grpc_service_config.json",
  222. package = "google.cloud.filestore.v1beta1",
  223. service_yaml = "file_v1beta1.yaml",
  224. deps = [],
  225. )
  226. nodejs_gapic_assembly_pkg(
  227. name = "filestore-v1beta1-nodejs",
  228. deps = [
  229. ":filestore_nodejs_gapic",
  230. ":filestore_proto",
  231. "//google/cloud/common:common_proto",
  232. ],
  233. )
  234. ##############################################################################
  235. # Ruby
  236. ##############################################################################
  237. load(
  238. "@com_google_googleapis_imports//:imports.bzl",
  239. "ruby_cloud_gapic_library",
  240. "ruby_gapic_assembly_pkg",
  241. "ruby_grpc_library",
  242. "ruby_proto_library",
  243. )
  244. ruby_proto_library(
  245. name = "filestore_ruby_proto",
  246. deps = [":filestore_proto"],
  247. )
  248. ruby_grpc_library(
  249. name = "filestore_ruby_grpc",
  250. srcs = [":filestore_proto"],
  251. deps = [":filestore_ruby_proto"],
  252. )
  253. ruby_cloud_gapic_library(
  254. name = "filestore_ruby_gapic",
  255. srcs = [":filestore_proto_with_info"],
  256. extra_protoc_parameters = [
  257. "ruby-cloud-gem-name=google-cloud-filestore-v1beta1",
  258. "ruby-cloud-api-shortname=file",
  259. "ruby-cloud-api-id=file.googleapis.com",
  260. "ruby-cloud-product-url=https://cloud.google.com/filestore/",
  261. ],
  262. grpc_service_config = "file_grpc_service_config.json",
  263. ruby_cloud_description = "Filestore instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters.",
  264. ruby_cloud_title = "Filestore V1beta1",
  265. deps = [
  266. ":filestore_ruby_grpc",
  267. ":filestore_ruby_proto",
  268. ],
  269. )
  270. # Open Source Packages
  271. ruby_gapic_assembly_pkg(
  272. name = "google-cloud-filestore-v1beta1-ruby",
  273. deps = [
  274. ":filestore_ruby_gapic",
  275. ":filestore_ruby_grpc",
  276. ":filestore_ruby_proto",
  277. ],
  278. )
  279. ##############################################################################
  280. # C#
  281. ##############################################################################
  282. load(
  283. "@com_google_googleapis_imports//:imports.bzl",
  284. "csharp_gapic_assembly_pkg",
  285. "csharp_gapic_library",
  286. "csharp_grpc_library",
  287. "csharp_proto_library",
  288. )
  289. csharp_proto_library(
  290. name = "filestore_csharp_proto",
  291. deps = [":filestore_proto"],
  292. )
  293. csharp_grpc_library(
  294. name = "filestore_csharp_grpc",
  295. srcs = [":filestore_proto"],
  296. deps = [":filestore_csharp_proto"],
  297. )
  298. csharp_gapic_library(
  299. name = "filestore_csharp_gapic",
  300. srcs = [":filestore_proto_with_info"],
  301. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  302. grpc_service_config = "file_grpc_service_config.json",
  303. deps = [
  304. ":filestore_csharp_grpc",
  305. ":filestore_csharp_proto",
  306. ],
  307. )
  308. # Open Source Packages
  309. csharp_gapic_assembly_pkg(
  310. name = "google-cloud-filestore-v1beta1-csharp",
  311. deps = [
  312. ":filestore_csharp_gapic",
  313. ":filestore_csharp_grpc",
  314. ":filestore_csharp_proto",
  315. ],
  316. )
  317. ##############################################################################
  318. # C++
  319. ##############################################################################
  320. # Put your C++ rules here