BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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 = "apigateway_proto",
  19. srcs = [
  20. "apigateway.proto",
  21. "apigateway_service.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/longrunning:operations_proto",
  29. "@com_google_protobuf//:field_mask_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "apigateway_proto_with_info",
  35. deps = [
  36. ":apigateway_proto",
  37. "//google/cloud:common_resources_proto",
  38. ],
  39. )
  40. ##############################################################################
  41. # Java
  42. ##############################################################################
  43. load(
  44. "@com_google_googleapis_imports//:imports.bzl",
  45. "java_gapic_assembly_gradle_pkg",
  46. "java_gapic_library",
  47. "java_gapic_test",
  48. "java_grpc_library",
  49. "java_proto_library",
  50. )
  51. java_proto_library(
  52. name = "apigateway_java_proto",
  53. deps = [":apigateway_proto"],
  54. )
  55. java_grpc_library(
  56. name = "apigateway_java_grpc",
  57. srcs = [":apigateway_proto"],
  58. deps = [":apigateway_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "apigateway_java_gapic",
  62. srcs = [":apigateway_proto_with_info"],
  63. grpc_service_config = "apigateway_grpc_service_config.json",
  64. test_deps = [
  65. ":apigateway_java_grpc",
  66. ],
  67. deps = [
  68. ":apigateway_java_proto",
  69. ],
  70. )
  71. java_gapic_test(
  72. name = "apigateway_java_gapic_test_suite",
  73. test_classes = [
  74. "com.google.cloud.apigateway.v1.ApiGatewayServiceClientTest",
  75. ],
  76. runtime_deps = [":apigateway_java_gapic_test"],
  77. )
  78. # Open Source Packages
  79. java_gapic_assembly_gradle_pkg(
  80. name = "google-cloud-apigateway-v1-java",
  81. deps = [
  82. ":apigateway_java_gapic",
  83. ":apigateway_java_grpc",
  84. ":apigateway_java_proto",
  85. ":apigateway_proto",
  86. ],
  87. )
  88. ##############################################################################
  89. # Go
  90. ##############################################################################
  91. load(
  92. "@com_google_googleapis_imports//:imports.bzl",
  93. "go_gapic_assembly_pkg",
  94. "go_gapic_library",
  95. "go_proto_library",
  96. "go_test",
  97. )
  98. go_proto_library(
  99. name = "apigateway_go_proto",
  100. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  101. importpath = "google.golang.org/genproto/googleapis/cloud/apigateway/v1",
  102. protos = [":apigateway_proto"],
  103. deps = [
  104. "//google/api:annotations_go_proto",
  105. "//google/longrunning:longrunning_go_proto",
  106. ],
  107. )
  108. go_gapic_library(
  109. name = "apigateway_go_gapic",
  110. srcs = [":apigateway_proto_with_info"],
  111. grpc_service_config = "apigateway_grpc_service_config.json",
  112. importpath = "cloud.google.com/go/apigateway/apiv1;apigateway",
  113. metadata = True,
  114. service_yaml = "apigateway_v1.yaml",
  115. deps = [
  116. ":apigateway_go_proto",
  117. "//google/longrunning:longrunning_go_proto",
  118. "@com_google_cloud_go//longrunning:go_default_library",
  119. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  120. ],
  121. )
  122. go_test(
  123. name = "apigateway_go_gapic_test",
  124. srcs = [":apigateway_go_gapic_srcjar_test"],
  125. embed = [":apigateway_go_gapic"],
  126. importpath = "cloud.google.com/go/apigateway/apiv1",
  127. )
  128. # Open Source Packages
  129. go_gapic_assembly_pkg(
  130. name = "gapi-cloud-apigateway-v1-go",
  131. deps = [
  132. ":apigateway_go_gapic",
  133. ":apigateway_go_gapic_srcjar-metadata.srcjar",
  134. ":apigateway_go_gapic_srcjar-test.srcjar",
  135. ":apigateway_go_proto",
  136. ],
  137. )
  138. ##############################################################################
  139. # Python
  140. ##############################################################################
  141. load(
  142. "@com_google_googleapis_imports//:imports.bzl",
  143. "py_gapic_assembly_pkg",
  144. "py_gapic_library",
  145. )
  146. py_gapic_library(
  147. name = "apigateway_py_gapic",
  148. srcs = [":apigateway_proto"],
  149. grpc_service_config = "apigateway_grpc_service_config.json",
  150. opt_args = ["warehouse-package-name=google-cloud-api-gateway"],
  151. )
  152. # Open Source Packages
  153. py_gapic_assembly_pkg(
  154. name = "google-cloud-apigateway-v1-py",
  155. deps = [
  156. ":apigateway_py_gapic",
  157. ],
  158. )
  159. ##############################################################################
  160. # PHP
  161. ##############################################################################
  162. load(
  163. "@com_google_googleapis_imports//:imports.bzl",
  164. "php_gapic_assembly_pkg",
  165. "php_gapic_library",
  166. "php_grpc_library",
  167. "php_proto_library",
  168. )
  169. php_proto_library(
  170. name = "apigateway_php_proto",
  171. deps = [":apigateway_proto"],
  172. )
  173. php_grpc_library(
  174. name = "apigateway_php_grpc",
  175. srcs = [":apigateway_proto"],
  176. deps = [":apigateway_php_proto"],
  177. )
  178. php_gapic_library(
  179. name = "apigateway_php_gapic",
  180. srcs = [":apigateway_proto_with_info"],
  181. grpc_service_config = "apigateway_grpc_service_config.json",
  182. service_yaml = "apigateway_v1.yaml",
  183. deps = [
  184. ":apigateway_php_grpc",
  185. ":apigateway_php_proto",
  186. ],
  187. )
  188. # Open Source Packages
  189. php_gapic_assembly_pkg(
  190. name = "google-cloud-apigateway-v1-php",
  191. deps = [
  192. ":apigateway_php_gapic",
  193. ":apigateway_php_grpc",
  194. ":apigateway_php_proto",
  195. ],
  196. )
  197. ##############################################################################
  198. # Node.js
  199. ##############################################################################
  200. load(
  201. "@com_google_googleapis_imports//:imports.bzl",
  202. "nodejs_gapic_assembly_pkg",
  203. "nodejs_gapic_library",
  204. )
  205. nodejs_gapic_library(
  206. name = "apigateway_nodejs_gapic",
  207. package_name = "@google-cloud/api-gateway",
  208. src = ":apigateway_proto_with_info",
  209. extra_protoc_parameters = ["metadata"],
  210. grpc_service_config = "apigateway_grpc_service_config.json",
  211. package = "google.cloud.apigateway.v1",
  212. service_yaml = "apigateway_v1.yaml",
  213. deps = [],
  214. )
  215. nodejs_gapic_assembly_pkg(
  216. name = "apigateway-v1-nodejs",
  217. deps = [
  218. ":apigateway_nodejs_gapic",
  219. ":apigateway_proto",
  220. ],
  221. )
  222. ##############################################################################
  223. # Ruby
  224. ##############################################################################
  225. load(
  226. "@com_google_googleapis_imports//:imports.bzl",
  227. "ruby_gapic_assembly_pkg",
  228. "ruby_cloud_gapic_library",
  229. "ruby_grpc_library",
  230. "ruby_proto_library",
  231. )
  232. ruby_proto_library(
  233. name = "apigateway_ruby_proto",
  234. deps = [":apigateway_proto"],
  235. )
  236. ruby_grpc_library(
  237. name = "apigateway_ruby_grpc",
  238. srcs = [":apigateway_proto"],
  239. deps = [":apigateway_ruby_proto"],
  240. )
  241. ruby_cloud_gapic_library(
  242. name = "apigateway_ruby_gapic",
  243. srcs = [":apigateway_proto_with_info"],
  244. extra_protoc_parameters = [
  245. "ruby-cloud-gem-name=google-cloud-api_gateway-v1",
  246. "ruby-cloud-env-prefix=API_GATEWAY",
  247. "ruby-cloud-product-url=https://cloud.google.com/api-gateway/",
  248. "ruby-cloud-api-id=apigateway.googleapis.com",
  249. "ruby-cloud-api-shortname=apigateway",
  250. ],
  251. grpc_service_config = "apigateway_grpc_service_config.json",
  252. ruby_cloud_description = "API Gateway enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint.",
  253. ruby_cloud_title = "API Gateway V1",
  254. deps = [
  255. ":apigateway_ruby_grpc",
  256. ":apigateway_ruby_proto",
  257. ],
  258. )
  259. # Open Source Packages
  260. ruby_gapic_assembly_pkg(
  261. name = "google-cloud-apigateway-v1-ruby",
  262. deps = [
  263. ":apigateway_ruby_gapic",
  264. ":apigateway_ruby_grpc",
  265. ":apigateway_ruby_proto",
  266. ],
  267. )
  268. ##############################################################################
  269. # C#
  270. ##############################################################################
  271. load(
  272. "@com_google_googleapis_imports//:imports.bzl",
  273. "csharp_gapic_assembly_pkg",
  274. "csharp_gapic_library",
  275. "csharp_grpc_library",
  276. "csharp_proto_library",
  277. )
  278. csharp_proto_library(
  279. name = "apigateway_csharp_proto",
  280. deps = [":apigateway_proto"],
  281. )
  282. csharp_grpc_library(
  283. name = "apigateway_csharp_grpc",
  284. srcs = [":apigateway_proto"],
  285. deps = [":apigateway_csharp_proto"],
  286. )
  287. csharp_gapic_library(
  288. name = "apigateway_csharp_gapic",
  289. srcs = [":apigateway_proto_with_info"],
  290. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  291. grpc_service_config = "apigateway_grpc_service_config.json",
  292. deps = [
  293. ":apigateway_csharp_grpc",
  294. ":apigateway_csharp_proto",
  295. ],
  296. )
  297. # Open Source Packages
  298. csharp_gapic_assembly_pkg(
  299. name = "google-cloud-apigateway-v1-csharp",
  300. deps = [
  301. ":apigateway_csharp_gapic",
  302. ":apigateway_csharp_grpc",
  303. ":apigateway_csharp_proto",
  304. ],
  305. )
  306. ##############################################################################
  307. # C++
  308. ##############################################################################
  309. # Put your C++ rules here