BUILD.bazel 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  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 = "gaming_proto",
  19. srcs = [
  20. "common.proto",
  21. "game_server_clusters.proto",
  22. "game_server_clusters_service.proto",
  23. "game_server_configs.proto",
  24. "game_server_configs_service.proto",
  25. "game_server_deployments.proto",
  26. "game_server_deployments_service.proto",
  27. "realms.proto",
  28. "realms_service.proto",
  29. ],
  30. deps = [
  31. "//google/api:annotations_proto",
  32. "//google/api:client_proto",
  33. "//google/api:field_behavior_proto",
  34. "//google/api:resource_proto",
  35. "//google/longrunning:operations_proto",
  36. "@com_google_protobuf//:duration_proto",
  37. "@com_google_protobuf//:field_mask_proto",
  38. "@com_google_protobuf//:timestamp_proto",
  39. ],
  40. )
  41. proto_library_with_info(
  42. name = "gaming_proto_with_info",
  43. deps = [
  44. ":gaming_proto",
  45. "//google/cloud:common_resources_proto",
  46. ],
  47. )
  48. ##############################################################################
  49. # Java
  50. ##############################################################################
  51. load(
  52. "@com_google_googleapis_imports//:imports.bzl",
  53. "java_gapic_assembly_gradle_pkg",
  54. "java_gapic_library",
  55. "java_gapic_test",
  56. "java_grpc_library",
  57. "java_proto_library",
  58. )
  59. java_proto_library(
  60. name = "gaming_java_proto",
  61. deps = [":gaming_proto"],
  62. )
  63. java_grpc_library(
  64. name = "gaming_java_grpc",
  65. srcs = [":gaming_proto"],
  66. deps = [":gaming_java_proto"],
  67. )
  68. java_gapic_library(
  69. name = "gaming_java_gapic",
  70. srcs = [":gaming_proto_with_info"],
  71. grpc_service_config = "gaming_grpc_service_config.json",
  72. test_deps = [
  73. ":gaming_java_grpc",
  74. ],
  75. deps = [
  76. ":gaming_java_proto",
  77. ],
  78. )
  79. java_gapic_test(
  80. name = "gaming_java_gapic_test_suite",
  81. test_classes = [
  82. "com.google.cloud.gaming.v1.GameServerClustersServiceClientTest",
  83. "com.google.cloud.gaming.v1.GameServerConfigsServiceClientTest",
  84. "com.google.cloud.gaming.v1.GameServerDeploymentsServiceClientTest",
  85. "com.google.cloud.gaming.v1.RealmsServiceClientTest",
  86. ],
  87. runtime_deps = [":gaming_java_gapic_test"],
  88. )
  89. # Open Source Packages
  90. java_gapic_assembly_gradle_pkg(
  91. name = "google-cloud-gaming-v1-java",
  92. deps = [
  93. ":gaming_java_gapic",
  94. ":gaming_java_grpc",
  95. ":gaming_java_proto",
  96. ":gaming_proto",
  97. ],
  98. )
  99. ##############################################################################
  100. # Go
  101. ##############################################################################
  102. load(
  103. "@com_google_googleapis_imports//:imports.bzl",
  104. "go_gapic_assembly_pkg",
  105. "go_gapic_library",
  106. "go_proto_library",
  107. "go_test",
  108. )
  109. go_proto_library(
  110. name = "gaming_go_proto",
  111. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  112. importpath = "google.golang.org/genproto/googleapis/cloud/gaming/v1",
  113. protos = [":gaming_proto"],
  114. deps = [
  115. "//google/api:annotations_go_proto",
  116. "//google/longrunning:longrunning_go_proto",
  117. ],
  118. )
  119. go_gapic_library(
  120. name = "gaming_go_gapic",
  121. srcs = [":gaming_proto_with_info"],
  122. grpc_service_config = "gaming_grpc_service_config.json",
  123. importpath = "cloud.google.com/go/gaming/apiv1;gaming",
  124. service_yaml = "gameservices_v1.yaml",
  125. deps = [
  126. ":gaming_go_proto",
  127. "//google/longrunning:longrunning_go_proto",
  128. "@com_google_cloud_go//longrunning:go_default_library",
  129. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  130. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  131. ],
  132. )
  133. go_test(
  134. name = "gaming_go_gapic_test",
  135. srcs = [":gaming_go_gapic_srcjar_test"],
  136. embed = [":gaming_go_gapic"],
  137. importpath = "cloud.google.com/go/gaming/apiv1",
  138. )
  139. # Open Source Packages
  140. go_gapic_assembly_pkg(
  141. name = "gapi-cloud-gaming-v1-go",
  142. deps = [
  143. ":gaming_go_gapic",
  144. ":gaming_go_gapic_srcjar-test.srcjar",
  145. ":gaming_go_proto",
  146. ],
  147. )
  148. ##############################################################################
  149. # Python
  150. ##############################################################################
  151. load(
  152. "@com_google_googleapis_imports//:imports.bzl",
  153. "py_gapic_assembly_pkg",
  154. "py_gapic_library",
  155. )
  156. py_gapic_library(
  157. name = "gaming_py_gapic",
  158. srcs = [":gaming_proto"],
  159. grpc_service_config = "gaming_grpc_service_config.json",
  160. )
  161. # Open Source Packages
  162. py_gapic_assembly_pkg(
  163. name = "gaming-v1-py",
  164. deps = [
  165. ":gaming_py_gapic",
  166. ],
  167. )
  168. ##############################################################################
  169. # PHP
  170. ##############################################################################
  171. load(
  172. "@com_google_googleapis_imports//:imports.bzl",
  173. "php_gapic_assembly_pkg",
  174. "php_gapic_library",
  175. "php_grpc_library",
  176. "php_proto_library",
  177. )
  178. php_proto_library(
  179. name = "gaming_php_proto",
  180. deps = [":gaming_proto"],
  181. )
  182. php_grpc_library(
  183. name = "gaming_php_grpc",
  184. srcs = [":gaming_proto"],
  185. deps = [":gaming_php_proto"],
  186. )
  187. php_gapic_library(
  188. name = "gaming_php_gapic",
  189. srcs = [":gaming_proto_with_info"],
  190. grpc_service_config = "gaming_grpc_service_config.json",
  191. deps = [
  192. ":gaming_php_grpc",
  193. ":gaming_php_proto",
  194. ],
  195. )
  196. # Open Source Packages
  197. php_gapic_assembly_pkg(
  198. name = "google-cloud-gaming-v1-php",
  199. deps = [
  200. ":gaming_php_gapic",
  201. ":gaming_php_grpc",
  202. ":gaming_php_proto",
  203. ],
  204. )
  205. ##############################################################################
  206. # Node.js
  207. ##############################################################################
  208. load(
  209. "@com_google_googleapis_imports//:imports.bzl",
  210. "nodejs_gapic_assembly_pkg",
  211. "nodejs_gapic_library",
  212. )
  213. nodejs_gapic_library(
  214. name = "gaming_nodejs_gapic",
  215. package_name = "@google-cloud/game-servers",
  216. src = ":gaming_proto_with_info",
  217. extra_protoc_parameters = ["metadata"],
  218. grpc_service_config = "gaming_grpc_service_config.json",
  219. package = "google.cloud.gaming.v1",
  220. service_yaml = "gameservices_v1.yaml",
  221. deps = [],
  222. )
  223. nodejs_gapic_assembly_pkg(
  224. name = "gaming-v1-nodejs",
  225. deps = [
  226. ":gaming_nodejs_gapic",
  227. ":gaming_proto",
  228. ],
  229. )
  230. ##############################################################################
  231. # Ruby
  232. ##############################################################################
  233. load(
  234. "@com_google_googleapis_imports//:imports.bzl",
  235. "ruby_cloud_gapic_library",
  236. "ruby_gapic_assembly_pkg",
  237. "ruby_grpc_library",
  238. "ruby_proto_library",
  239. )
  240. ruby_proto_library(
  241. name = "gaming_ruby_proto",
  242. deps = [":gaming_proto"],
  243. )
  244. ruby_grpc_library(
  245. name = "gaming_ruby_grpc",
  246. srcs = [":gaming_proto"],
  247. deps = [":gaming_ruby_proto"],
  248. )
  249. ruby_cloud_gapic_library(
  250. name = "gaming_ruby_gapic",
  251. srcs = [":gaming_proto_with_info"],
  252. extra_protoc_parameters = [
  253. "ruby-cloud-gem-name=google-cloud-gaming-v1",
  254. "ruby-cloud-env-prefix=GAMING",
  255. "ruby-cloud-product-url=https://cloud.google.com/game-servers",
  256. "ruby-cloud-api-id=gameservices.googleapis.com",
  257. "ruby-cloud-api-shortname=gameservices",
  258. ],
  259. grpc_service_config = "gaming_grpc_service_config.json",
  260. ruby_cloud_description = "With Game Servers, studios and publishers can deploy and manage their game server infrastructure hosted on multiple Agones clusters around the world through a single interface.",
  261. ruby_cloud_title = "Cloud Gaming V1",
  262. deps = [
  263. ":gaming_ruby_grpc",
  264. ":gaming_ruby_proto",
  265. ],
  266. )
  267. # Open Source Packages
  268. ruby_gapic_assembly_pkg(
  269. name = "google-cloud-gaming-v1-ruby",
  270. deps = [
  271. ":gaming_ruby_gapic",
  272. ":gaming_ruby_grpc",
  273. ":gaming_ruby_proto",
  274. ],
  275. )
  276. ##############################################################################
  277. # C#
  278. ##############################################################################
  279. load(
  280. "@com_google_googleapis_imports//:imports.bzl",
  281. "csharp_gapic_assembly_pkg",
  282. "csharp_gapic_library",
  283. "csharp_grpc_library",
  284. "csharp_proto_library",
  285. )
  286. csharp_proto_library(
  287. name = "gaming_csharp_proto",
  288. deps = [":gaming_proto"],
  289. )
  290. csharp_grpc_library(
  291. name = "gaming_csharp_grpc",
  292. srcs = [":gaming_proto"],
  293. deps = [":gaming_csharp_proto"],
  294. )
  295. csharp_gapic_library(
  296. name = "gaming_csharp_gapic",
  297. srcs = [":gaming_proto_with_info"],
  298. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  299. grpc_service_config = "gaming_grpc_service_config.json",
  300. deps = [
  301. ":gaming_csharp_grpc",
  302. ":gaming_csharp_proto",
  303. ],
  304. )
  305. # Open Source Packages
  306. csharp_gapic_assembly_pkg(
  307. name = "google-cloud-gaming-v1-csharp",
  308. deps = [
  309. ":gaming_csharp_gapic",
  310. ":gaming_csharp_grpc",
  311. ":gaming_csharp_proto",
  312. ],
  313. )
  314. ##############################################################################
  315. # C++
  316. ##############################################################################
  317. # Put your C++ rules here