BUILD.bazel 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  9. proto_library(
  10. name = "gaming_proto",
  11. srcs = [
  12. "common.proto",
  13. "game_server_clusters.proto",
  14. "game_server_clusters_service.proto",
  15. "game_server_configs.proto",
  16. "game_server_configs_service.proto",
  17. "game_server_deployments.proto",
  18. "game_server_deployments_service.proto",
  19. "realms.proto",
  20. "realms_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/longrunning:operations_proto",
  28. "@com_google_protobuf//:duration_proto",
  29. "@com_google_protobuf//:field_mask_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "gaming_proto_with_info",
  35. deps = [
  36. ":gaming_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 = "gaming_java_proto",
  53. deps = [":gaming_proto"],
  54. )
  55. java_grpc_library(
  56. name = "gaming_java_grpc",
  57. srcs = [":gaming_proto"],
  58. deps = [":gaming_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "gaming_java_gapic",
  62. srcs = [":gaming_proto_with_info"],
  63. grpc_service_config = "gaming_grpc_service_config.json",
  64. rest_numeric_enums = False,
  65. test_deps = [
  66. ":gaming_java_grpc",
  67. ],
  68. transport = "grpc+rest",
  69. deps = [
  70. ":gaming_java_proto",
  71. ],
  72. )
  73. java_gapic_test(
  74. name = "gaming_java_gapic_test_suite",
  75. test_classes = [
  76. "com.google.cloud.gaming.v1beta.GameServerClustersServiceClientHttpJsonTest",
  77. "com.google.cloud.gaming.v1beta.GameServerClustersServiceClientTest",
  78. "com.google.cloud.gaming.v1beta.GameServerConfigsServiceClientHttpJsonTest",
  79. "com.google.cloud.gaming.v1beta.GameServerConfigsServiceClientTest",
  80. "com.google.cloud.gaming.v1beta.GameServerDeploymentsServiceClientHttpJsonTest",
  81. "com.google.cloud.gaming.v1beta.GameServerDeploymentsServiceClientTest",
  82. "com.google.cloud.gaming.v1beta.RealmsServiceClientHttpJsonTest",
  83. "com.google.cloud.gaming.v1beta.RealmsServiceClientTest",
  84. ],
  85. runtime_deps = [":gaming_java_gapic_test"],
  86. )
  87. # Open Source Packages
  88. java_gapic_assembly_gradle_pkg(
  89. name = "google-cloud-gaming-v1beta-java",
  90. include_samples = True,
  91. transport = "grpc+rest",
  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/v1beta",
  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/apiv1beta;gaming",
  124. rest_numeric_enums = False,
  125. service_yaml = "gameservices_v1beta.yaml",
  126. transport = "grpc+rest",
  127. deps = [
  128. ":gaming_go_proto",
  129. "//google/longrunning:longrunning_go_proto",
  130. "@com_google_cloud_go//longrunning:go_default_library",
  131. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  132. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  133. ],
  134. )
  135. go_test(
  136. name = "gaming_go_gapic_test",
  137. srcs = [":gaming_go_gapic_srcjar_test"],
  138. embed = [":gaming_go_gapic"],
  139. importpath = "cloud.google.com/go/gaming/apiv1beta",
  140. )
  141. # Open Source Packages
  142. go_gapic_assembly_pkg(
  143. name = "gapi-cloud-gaming-v1beta-go",
  144. deps = [
  145. ":gaming_go_gapic",
  146. ":gaming_go_gapic_srcjar-test.srcjar",
  147. ":gaming_go_proto",
  148. ],
  149. )
  150. ##############################################################################
  151. # Python
  152. ##############################################################################
  153. load(
  154. "@com_google_googleapis_imports//:imports.bzl",
  155. "py_gapic_assembly_pkg",
  156. "py_gapic_library",
  157. "py_test",
  158. )
  159. py_gapic_library(
  160. name = "gaming_py_gapic",
  161. srcs = [":gaming_proto"],
  162. grpc_service_config = "gaming_grpc_service_config.json",
  163. opt_args = [
  164. "warehouse-package-name=google-cloud-game-servers",
  165. ],
  166. rest_numeric_enums = False,
  167. transport = "grpc",
  168. )
  169. py_test(
  170. name = "gaming_py_gapic_test",
  171. srcs = [
  172. "gaming_py_gapic_pytest.py",
  173. "gaming_py_gapic_test.py",
  174. ],
  175. legacy_create_init = False,
  176. deps = [":gaming_py_gapic"],
  177. )
  178. # Open Source Packages
  179. py_gapic_assembly_pkg(
  180. name = "gaming-v1beta-py",
  181. deps = [
  182. ":gaming_py_gapic",
  183. ],
  184. )
  185. ##############################################################################
  186. # PHP
  187. ##############################################################################
  188. load(
  189. "@com_google_googleapis_imports//:imports.bzl",
  190. "php_gapic_assembly_pkg",
  191. "php_gapic_library",
  192. "php_grpc_library",
  193. "php_proto_library",
  194. )
  195. php_proto_library(
  196. name = "gaming_php_proto",
  197. deps = [":gaming_proto"],
  198. )
  199. php_grpc_library(
  200. name = "gaming_php_grpc",
  201. srcs = [":gaming_proto"],
  202. deps = [":gaming_php_proto"],
  203. )
  204. php_gapic_library(
  205. name = "gaming_php_gapic",
  206. srcs = [":gaming_proto_with_info"],
  207. grpc_service_config = "gaming_grpc_service_config.json",
  208. rest_numeric_enums = False,
  209. transport = "grpc+rest",
  210. deps = [
  211. ":gaming_php_grpc",
  212. ":gaming_php_proto",
  213. ],
  214. )
  215. # Open Source Packages
  216. php_gapic_assembly_pkg(
  217. name = "google-cloud-gaming-v1beta-php",
  218. deps = [
  219. ":gaming_php_gapic",
  220. ":gaming_php_grpc",
  221. ":gaming_php_proto",
  222. ],
  223. )
  224. ##############################################################################
  225. # Node.js
  226. ##############################################################################
  227. load(
  228. "@com_google_googleapis_imports//:imports.bzl",
  229. "nodejs_gapic_assembly_pkg",
  230. "nodejs_gapic_library",
  231. )
  232. nodejs_gapic_library(
  233. name = "gaming_nodejs_gapic",
  234. package_name = "@google-cloud/game-servers",
  235. src = ":gaming_proto_with_info",
  236. extra_protoc_parameters = ["metadata"],
  237. grpc_service_config = "gaming_grpc_service_config.json",
  238. package = "google.cloud.gaming.v1beta",
  239. rest_numeric_enums = False,
  240. service_yaml = "gameservices_v1beta.yaml",
  241. transport = "grpc+rest",
  242. deps = [],
  243. )
  244. nodejs_gapic_assembly_pkg(
  245. name = "gaming-v1beta-nodejs",
  246. deps = [
  247. ":gaming_nodejs_gapic",
  248. ":gaming_proto",
  249. ],
  250. )
  251. ##############################################################################
  252. # Ruby
  253. ##############################################################################
  254. load(
  255. "@com_google_googleapis_imports//:imports.bzl",
  256. "ruby_cloud_gapic_library",
  257. "ruby_gapic_assembly_pkg",
  258. "ruby_grpc_library",
  259. "ruby_proto_library",
  260. )
  261. ruby_proto_library(
  262. name = "gaming_ruby_proto",
  263. deps = [":gaming_proto"],
  264. )
  265. ruby_grpc_library(
  266. name = "gaming_ruby_grpc",
  267. srcs = [":gaming_proto"],
  268. deps = [":gaming_ruby_proto"],
  269. )
  270. ruby_cloud_gapic_library(
  271. name = "gaming_ruby_gapic",
  272. srcs = [":gaming_proto_with_info"],
  273. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-gaming-v1beta"],
  274. rest_numeric_enums = False,
  275. deps = [
  276. ":gaming_ruby_grpc",
  277. ":gaming_ruby_proto",
  278. ],
  279. )
  280. # Open Source Packages
  281. ruby_gapic_assembly_pkg(
  282. name = "google-cloud-gaming-v1beta-ruby",
  283. deps = [
  284. ":gaming_ruby_gapic",
  285. ":gaming_ruby_grpc",
  286. ":gaming_ruby_proto",
  287. ],
  288. )
  289. ##############################################################################
  290. # C#
  291. ##############################################################################
  292. load(
  293. "@com_google_googleapis_imports//:imports.bzl",
  294. "csharp_gapic_assembly_pkg",
  295. "csharp_gapic_library",
  296. "csharp_grpc_library",
  297. "csharp_proto_library",
  298. )
  299. csharp_proto_library(
  300. name = "gaming_csharp_proto",
  301. deps = [":gaming_proto"],
  302. )
  303. csharp_grpc_library(
  304. name = "gaming_csharp_grpc",
  305. srcs = [":gaming_proto"],
  306. deps = [":gaming_csharp_proto"],
  307. )
  308. csharp_gapic_library(
  309. name = "gaming_csharp_gapic",
  310. srcs = [":gaming_proto_with_info"],
  311. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  312. grpc_service_config = "gaming_grpc_service_config.json",
  313. rest_numeric_enums = False,
  314. service_yaml = "gameservices_v1beta.yaml",
  315. deps = [
  316. ":gaming_csharp_grpc",
  317. ":gaming_csharp_proto",
  318. ],
  319. )
  320. # Open Source Packages
  321. csharp_gapic_assembly_pkg(
  322. name = "google-cloud-gaming-v1beta-csharp",
  323. deps = [
  324. ":gaming_csharp_gapic",
  325. ":gaming_csharp_grpc",
  326. ":gaming_csharp_proto",
  327. ],
  328. )
  329. ##############################################################################
  330. # C++
  331. ##############################################################################
  332. # Put your C++ rules here