BUILD.bazel 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "functions_proto",
  19. srcs = [
  20. "functions.proto",
  21. "operations.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:client_proto",
  26. "//google/api:field_behavior_proto",
  27. "//google/api:resource_proto",
  28. "//google/iam/v1:iam_policy_proto",
  29. "//google/iam/v1:policy_proto",
  30. "//google/longrunning:operations_proto",
  31. "@com_google_protobuf//:any_proto",
  32. "@com_google_protobuf//:duration_proto",
  33. "@com_google_protobuf//:field_mask_proto",
  34. "@com_google_protobuf//:timestamp_proto",
  35. ],
  36. )
  37. proto_library_with_info(
  38. name = "functions_proto_with_info",
  39. deps = [
  40. ":functions_proto",
  41. "//google/cloud:common_resources_proto",
  42. ],
  43. )
  44. ##############################################################################
  45. # Java
  46. ##############################################################################
  47. load(
  48. "@com_google_googleapis_imports//:imports.bzl",
  49. "java_gapic_assembly_gradle_pkg",
  50. "java_gapic_library",
  51. "java_gapic_test",
  52. "java_grpc_library",
  53. "java_proto_library",
  54. )
  55. java_proto_library(
  56. name = "functions_java_proto",
  57. deps = [":functions_proto"],
  58. )
  59. java_grpc_library(
  60. name = "functions_java_grpc",
  61. srcs = [":functions_proto"],
  62. deps = [":functions_java_proto"],
  63. )
  64. java_gapic_library(
  65. name = "functions_java_gapic",
  66. srcs = [":functions_proto_with_info"],
  67. grpc_service_config = "functions_grpc_service_config.json",
  68. test_deps = [
  69. ":functions_java_grpc",
  70. "//google/iam/v1:iam_java_grpc",
  71. ],
  72. deps = [
  73. ":functions_java_proto",
  74. "//google/iam/v1:iam_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "functions_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.functions.v1.CloudFunctionsServiceClientTest",
  81. ],
  82. runtime_deps = [":functions_java_gapic_test"],
  83. )
  84. # Open Source Packages
  85. java_gapic_assembly_gradle_pkg(
  86. name = "google-cloud-functions-v1-java",
  87. deps = [
  88. ":functions_java_gapic",
  89. ":functions_java_grpc",
  90. ":functions_java_proto",
  91. ":functions_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 = "functions_go_proto",
  106. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  107. importpath = "google.golang.org/genproto/googleapis/cloud/functions/v1",
  108. protos = [":functions_proto"],
  109. deps = [
  110. "//google/api:annotations_go_proto",
  111. "//google/iam/v1:iam_go_proto",
  112. "//google/longrunning:longrunning_go_proto",
  113. ],
  114. )
  115. go_gapic_library(
  116. name = "functions_go_gapic",
  117. srcs = [":functions_proto_with_info"],
  118. grpc_service_config = "functions_grpc_service_config.json",
  119. importpath = "cloud.google.com/go/functions/apiv1;functions",
  120. service_yaml = "cloudfunctions_v1.yaml",
  121. deps = [
  122. ":functions_go_proto",
  123. "//google/iam/v1:iam_go_proto",
  124. "//google/longrunning:longrunning_go_proto",
  125. "@com_google_cloud_go//longrunning:go_default_library",
  126. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  127. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  128. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  129. ],
  130. )
  131. go_test(
  132. name = "functions_go_gapic_test",
  133. srcs = [":functions_go_gapic_srcjar_test"],
  134. embed = [":functions_go_gapic"],
  135. importpath = "cloud.google.com/go/functions/apiv1",
  136. )
  137. # Open Source Packages
  138. go_gapic_assembly_pkg(
  139. name = "gapi-cloud-functions-v1-go",
  140. deps = [
  141. ":functions_go_gapic",
  142. ":functions_go_gapic_srcjar-test.srcjar",
  143. ":functions_go_proto",
  144. ],
  145. )
  146. ##############################################################################
  147. # Python
  148. ##############################################################################
  149. load(
  150. "@com_google_googleapis_imports//:imports.bzl",
  151. "py_gapic_assembly_pkg",
  152. "py_gapic_library",
  153. )
  154. py_gapic_library(
  155. name = "functions_py_gapic",
  156. srcs = [":functions_proto"],
  157. grpc_service_config = "functions_grpc_service_config.json",
  158. )
  159. py_gapic_assembly_pkg(
  160. name = "functions-v1-py",
  161. deps = [
  162. ":functions_py_gapic",
  163. ],
  164. )
  165. ##############################################################################
  166. # PHP
  167. ##############################################################################
  168. load(
  169. "@com_google_googleapis_imports//:imports.bzl",
  170. "php_gapic_assembly_pkg",
  171. "php_gapic_library",
  172. "php_grpc_library",
  173. "php_proto_library",
  174. )
  175. php_proto_library(
  176. name = "functions_php_proto",
  177. deps = [":functions_proto"],
  178. )
  179. php_grpc_library(
  180. name = "functions_php_grpc",
  181. srcs = [":functions_proto"],
  182. deps = [":functions_php_proto"],
  183. )
  184. php_gapic_library(
  185. name = "functions_php_gapic",
  186. srcs = [":functions_proto_with_info"],
  187. grpc_service_config = "functions_grpc_service_config.json",
  188. deps = [
  189. ":functions_php_grpc",
  190. ":functions_php_proto",
  191. ],
  192. )
  193. # Open Source Packages
  194. php_gapic_assembly_pkg(
  195. name = "google-cloud-functions-v1-php",
  196. deps = [
  197. ":functions_php_gapic",
  198. ":functions_php_grpc",
  199. ":functions_php_proto",
  200. ],
  201. )
  202. ##############################################################################
  203. # Node.js
  204. ##############################################################################
  205. load(
  206. "@com_google_googleapis_imports//:imports.bzl",
  207. "nodejs_gapic_assembly_pkg",
  208. "nodejs_gapic_library",
  209. )
  210. nodejs_gapic_library(
  211. name = "functions_nodejs_gapic",
  212. package_name = "@google-cloud/functions",
  213. src = ":functions_proto_with_info",
  214. extra_protoc_parameters = ["metadata"],
  215. grpc_service_config = "functions_grpc_service_config.json",
  216. package = "google.cloud.functions.v1",
  217. service_yaml = "cloudfunctions_v1.yaml",
  218. deps = [],
  219. )
  220. nodejs_gapic_assembly_pkg(
  221. name = "functions-v1-nodejs",
  222. deps = [
  223. ":functions_nodejs_gapic",
  224. ":functions_proto",
  225. ],
  226. )
  227. ##############################################################################
  228. # Ruby
  229. ##############################################################################
  230. load(
  231. "@com_google_googleapis_imports//:imports.bzl",
  232. "ruby_cloud_gapic_library",
  233. "ruby_gapic_assembly_pkg",
  234. "ruby_grpc_library",
  235. "ruby_proto_library",
  236. )
  237. ruby_proto_library(
  238. name = "functions_ruby_proto",
  239. deps = [":functions_proto"],
  240. )
  241. ruby_grpc_library(
  242. name = "functions_ruby_grpc",
  243. srcs = [":functions_proto"],
  244. deps = [":functions_ruby_proto"],
  245. )
  246. ruby_cloud_gapic_library(
  247. name = "functions_ruby_gapic",
  248. srcs = [":functions_proto_with_info"],
  249. extra_protoc_parameters = [
  250. "ruby-cloud-gem-name=google-cloud-functions-v1",
  251. "ruby-cloud-env-prefix=FUNCTIONS",
  252. "ruby-cloud-product-url=https://cloud.google.com/functions",
  253. "ruby-cloud-api-id=cloudfunctions.googleapis.com",
  254. "ruby-cloud-api-shortname=cloudfunctions",
  255. ],
  256. grpc_service_config = "functions_grpc_service_config.json",
  257. ruby_cloud_description = "The Cloud Functions API manages lightweight user-provided functions executed in response to events.",
  258. ruby_cloud_title = "Cloud Functions V1",
  259. deps = [
  260. ":functions_ruby_grpc",
  261. ":functions_ruby_proto",
  262. ],
  263. )
  264. # Open Source Packages
  265. ruby_gapic_assembly_pkg(
  266. name = "google-cloud-functions-v1-ruby",
  267. deps = [
  268. ":functions_ruby_gapic",
  269. ":functions_ruby_grpc",
  270. ":functions_ruby_proto",
  271. ],
  272. )
  273. ##############################################################################
  274. # C#
  275. ##############################################################################
  276. load(
  277. "@com_google_googleapis_imports//:imports.bzl",
  278. "csharp_gapic_assembly_pkg",
  279. "csharp_gapic_library",
  280. "csharp_grpc_library",
  281. "csharp_proto_library",
  282. )
  283. csharp_proto_library(
  284. name = "functions_csharp_proto",
  285. deps = [":functions_proto"],
  286. )
  287. csharp_grpc_library(
  288. name = "functions_csharp_grpc",
  289. srcs = [":functions_proto"],
  290. deps = [":functions_csharp_proto"],
  291. )
  292. csharp_gapic_library(
  293. name = "functions_csharp_gapic",
  294. srcs = [":functions_proto_with_info"],
  295. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  296. grpc_service_config = "functions_grpc_service_config.json",
  297. deps = [
  298. ":functions_csharp_grpc",
  299. ":functions_csharp_proto",
  300. ],
  301. )
  302. # Open Source Packages
  303. csharp_gapic_assembly_pkg(
  304. name = "google-cloud-functions-v1-csharp",
  305. deps = [
  306. ":functions_csharp_gapic",
  307. ":functions_csharp_grpc",
  308. ":functions_csharp_proto",
  309. ],
  310. )
  311. ##############################################################################
  312. # C++
  313. ##############################################################################
  314. # Put your C++ rules here