BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  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_resources_proto",
  39. ],
  40. )
  41. ##############################################################################
  42. # Java
  43. ##############################################################################
  44. load(
  45. "@com_google_googleapis_imports//:imports.bzl",
  46. "java_gapic_assembly_gradle_pkg",
  47. "java_gapic_library",
  48. "java_gapic_test",
  49. "java_grpc_library",
  50. "java_proto_library",
  51. )
  52. java_proto_library(
  53. name = "filestore_java_proto",
  54. deps = [":filestore_proto"],
  55. )
  56. java_grpc_library(
  57. name = "filestore_java_grpc",
  58. srcs = [":filestore_proto"],
  59. deps = [":filestore_java_proto"],
  60. )
  61. java_gapic_library(
  62. name = "filestore_java_gapic",
  63. srcs = [":filestore_proto_with_info"],
  64. gapic_yaml = None,
  65. grpc_service_config = "file_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. service_yaml = "file_v1.yaml",
  68. test_deps = [
  69. ":filestore_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":filestore_java_proto",
  74. "//google/cloud/common:common_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "filestore_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.filestore.v1.CloudFilestoreManagerClientHttpJsonTest",
  81. "com.google.cloud.filestore.v1.CloudFilestoreManagerClientTest",
  82. ],
  83. runtime_deps = [":filestore_java_gapic_test"],
  84. )
  85. # Open Source Packages
  86. java_gapic_assembly_gradle_pkg(
  87. name = "google-cloud-filestore-v1-java",
  88. include_samples = True,
  89. transport = "grpc+rest",
  90. deps = [
  91. ":filestore_java_gapic",
  92. ":filestore_java_grpc",
  93. ":filestore_java_proto",
  94. ":filestore_proto",
  95. "//google/cloud/common:common_java_proto",
  96. ],
  97. )
  98. ##############################################################################
  99. # Go
  100. ##############################################################################
  101. load(
  102. "@com_google_googleapis_imports//:imports.bzl",
  103. "go_gapic_assembly_pkg",
  104. "go_gapic_library",
  105. "go_proto_library",
  106. "go_test",
  107. )
  108. go_proto_library(
  109. name = "filestore_go_proto",
  110. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  111. importpath = "google.golang.org/genproto/googleapis/cloud/filestore/v1",
  112. protos = [":filestore_proto"],
  113. deps = [
  114. "//google/api:annotations_go_proto",
  115. "//google/cloud/common:common_go_proto",
  116. "//google/longrunning:longrunning_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "filestore_go_gapic",
  121. srcs = [":filestore_proto_with_info"],
  122. grpc_service_config = "file_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/filestore/apiv1;filestore",
  124. metadata = True,
  125. rest_numeric_enums = False,
  126. service_yaml = "file_v1.yaml",
  127. transport = "grpc+rest",
  128. deps = [
  129. ":filestore_go_proto",
  130. "//google/cloud/common:common_go_proto",
  131. "//google/longrunning:longrunning_go_proto",
  132. "@com_google_cloud_go//longrunning:go_default_library",
  133. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  134. ],
  135. )
  136. go_test(
  137. name = "filestore_go_gapic_test",
  138. srcs = [":filestore_go_gapic_srcjar_test"],
  139. embed = [":filestore_go_gapic"],
  140. importpath = "cloud.google.com/go/filestore/apiv1",
  141. )
  142. # Open Source Packages
  143. go_gapic_assembly_pkg(
  144. name = "gapi-cloud-filestore-v1-go",
  145. deps = [
  146. ":filestore_go_gapic",
  147. ":filestore_go_gapic_srcjar-metadata.srcjar",
  148. ":filestore_go_gapic_srcjar-test.srcjar",
  149. ":filestore_go_proto",
  150. ],
  151. )
  152. ##############################################################################
  153. # Python
  154. ##############################################################################
  155. load(
  156. "@com_google_googleapis_imports//:imports.bzl",
  157. "py_gapic_assembly_pkg",
  158. "py_gapic_library",
  159. "py_test",
  160. )
  161. py_gapic_library(
  162. name = "filestore_py_gapic",
  163. srcs = [":filestore_proto"],
  164. grpc_service_config = "file_grpc_service_config.json",
  165. rest_numeric_enums = False,
  166. transport = "grpc",
  167. deps = [
  168. "//google/cloud/common:common_py_proto",
  169. ],
  170. )
  171. py_test(
  172. name = "filestore_py_gapic_test",
  173. srcs = [
  174. "filestore_py_gapic_pytest.py",
  175. "filestore_py_gapic_test.py",
  176. ],
  177. legacy_create_init = False,
  178. deps = [":filestore_py_gapic"],
  179. )
  180. # Open Source Packages
  181. py_gapic_assembly_pkg(
  182. name = "filestore-v1-py",
  183. deps = [
  184. ":filestore_py_gapic",
  185. ],
  186. )
  187. ##############################################################################
  188. # PHP
  189. ##############################################################################
  190. load(
  191. "@com_google_googleapis_imports//:imports.bzl",
  192. "php_gapic_assembly_pkg",
  193. "php_gapic_library",
  194. "php_grpc_library",
  195. "php_proto_library",
  196. )
  197. php_proto_library(
  198. name = "filestore_php_proto",
  199. deps = [":filestore_proto"],
  200. )
  201. php_grpc_library(
  202. name = "filestore_php_grpc",
  203. srcs = [":filestore_proto"],
  204. deps = [":filestore_php_proto"],
  205. )
  206. php_gapic_library(
  207. name = "filestore_php_gapic",
  208. srcs = [":filestore_proto_with_info"],
  209. grpc_service_config = "file_grpc_service_config.json",
  210. rest_numeric_enums = False,
  211. service_yaml = "file_v1.yaml",
  212. transport = "grpc+rest",
  213. deps = [
  214. ":filestore_php_grpc",
  215. ":filestore_php_proto",
  216. ],
  217. )
  218. # Open Source Packages
  219. php_gapic_assembly_pkg(
  220. name = "google-cloud-filestore-v1-php",
  221. deps = [
  222. ":filestore_php_gapic",
  223. ":filestore_php_grpc",
  224. ":filestore_php_proto",
  225. ],
  226. )
  227. ##############################################################################
  228. # Node.js
  229. ##############################################################################
  230. load(
  231. "@com_google_googleapis_imports//:imports.bzl",
  232. "nodejs_gapic_assembly_pkg",
  233. "nodejs_gapic_library",
  234. )
  235. nodejs_gapic_library(
  236. name = "filestore_nodejs_gapic",
  237. package_name = "@google-cloud/filestore",
  238. src = ":filestore_proto_with_info",
  239. extra_protoc_parameters = ["metadata"],
  240. grpc_service_config = "file_grpc_service_config.json",
  241. package = "google.cloud.filestore.v1",
  242. rest_numeric_enums = False,
  243. service_yaml = "file_v1.yaml",
  244. transport = "grpc+rest",
  245. deps = [],
  246. )
  247. nodejs_gapic_assembly_pkg(
  248. name = "filestore-v1-nodejs",
  249. deps = [
  250. ":filestore_nodejs_gapic",
  251. ":filestore_proto",
  252. "//google/cloud/common:common_proto",
  253. ],
  254. )
  255. ##############################################################################
  256. # Ruby
  257. ##############################################################################
  258. load(
  259. "@com_google_googleapis_imports//:imports.bzl",
  260. "ruby_cloud_gapic_library",
  261. "ruby_gapic_assembly_pkg",
  262. "ruby_grpc_library",
  263. "ruby_proto_library",
  264. )
  265. ruby_proto_library(
  266. name = "filestore_ruby_proto",
  267. deps = [":filestore_proto"],
  268. )
  269. ruby_grpc_library(
  270. name = "filestore_ruby_grpc",
  271. srcs = [":filestore_proto"],
  272. deps = [":filestore_ruby_proto"],
  273. )
  274. ruby_cloud_gapic_library(
  275. name = "filestore_ruby_gapic",
  276. srcs = [":filestore_proto_with_info"],
  277. extra_protoc_parameters = [
  278. "ruby-cloud-api-id=file.googleapis.com",
  279. "ruby-cloud-api-shortname=file",
  280. "ruby-cloud-gem-name=google-cloud-filestore-v1",
  281. "ruby-cloud-product-url=https://cloud.google.com/filestore/",
  282. "ruby-cloud-extra-dependencies=google-cloud-common=~> 1.0",
  283. ],
  284. grpc_service_config = "file_grpc_service_config.json",
  285. rest_numeric_enums = False,
  286. 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.",
  287. ruby_cloud_title = "Filestore V1",
  288. deps = [
  289. ":filestore_ruby_grpc",
  290. ":filestore_ruby_proto",
  291. ],
  292. )
  293. # Open Source Packages
  294. ruby_gapic_assembly_pkg(
  295. name = "google-cloud-filestore-v1-ruby",
  296. deps = [
  297. ":filestore_ruby_gapic",
  298. ":filestore_ruby_grpc",
  299. ":filestore_ruby_proto",
  300. ],
  301. )
  302. ##############################################################################
  303. # C#
  304. ##############################################################################
  305. load(
  306. "@com_google_googleapis_imports//:imports.bzl",
  307. "csharp_gapic_assembly_pkg",
  308. "csharp_gapic_library",
  309. "csharp_grpc_library",
  310. "csharp_proto_library",
  311. )
  312. csharp_proto_library(
  313. name = "filestore_csharp_proto",
  314. deps = [":filestore_proto"],
  315. )
  316. csharp_grpc_library(
  317. name = "filestore_csharp_grpc",
  318. srcs = [":filestore_proto"],
  319. deps = [":filestore_csharp_proto"],
  320. )
  321. csharp_gapic_library(
  322. name = "filestore_csharp_gapic",
  323. srcs = [":filestore_proto_with_info"],
  324. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  325. grpc_service_config = "file_grpc_service_config.json",
  326. rest_numeric_enums = False,
  327. service_yaml = "file_v1.yaml",
  328. deps = [
  329. ":filestore_csharp_grpc",
  330. ":filestore_csharp_proto",
  331. ],
  332. )
  333. # Open Source Packages
  334. csharp_gapic_assembly_pkg(
  335. name = "google-cloud-filestore-v1-csharp",
  336. deps = [
  337. ":filestore_csharp_gapic",
  338. ":filestore_csharp_grpc",
  339. ":filestore_csharp_proto",
  340. ],
  341. )
  342. ##############################################################################
  343. # C++
  344. ##############################################################################
  345. load(
  346. "@com_google_googleapis_imports//:imports.bzl",
  347. "cc_grpc_library",
  348. "cc_proto_library",
  349. )
  350. cc_proto_library(
  351. name = "filestore_cc_proto",
  352. deps = [":filestore_proto"],
  353. )
  354. cc_grpc_library(
  355. name = "filestore_cc_grpc",
  356. srcs = [":filestore_proto"],
  357. grpc_only = True,
  358. deps = [":filestore_cc_proto"],
  359. )