BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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 = "gkehub_proto",
  19. srcs = [
  20. "feature.proto",
  21. "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/cloud/gkehub/v1beta/configmanagement:configmanagement_proto",
  29. "//google/cloud/gkehub/v1beta/metering:metering_proto",
  30. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_proto",
  31. "//google/longrunning:operations_proto",
  32. "@com_google_protobuf//:field_mask_proto",
  33. "@com_google_protobuf//:timestamp_proto",
  34. ],
  35. )
  36. proto_library_with_info(
  37. name = "gkehub_proto_with_info",
  38. deps = [
  39. ":gkehub_proto",
  40. "//google/cloud:common_resources_proto",
  41. ],
  42. )
  43. ##############################################################################
  44. # Java
  45. ##############################################################################
  46. load(
  47. "@com_google_googleapis_imports//:imports.bzl",
  48. "java_gapic_assembly_gradle_pkg",
  49. "java_gapic_library",
  50. "java_gapic_test",
  51. "java_grpc_library",
  52. "java_proto_library",
  53. )
  54. _JAVA_PROTO_SUBPACKAGE_DEPS = [
  55. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_java_proto",
  56. "//google/cloud/gkehub/v1beta/configmanagement:configmanagement_java_proto",
  57. "//google/cloud/gkehub/v1beta/metering:metering_java_proto",
  58. ]
  59. _JAVA_GRPC_SUBPACKAGE_DEPS = [
  60. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_java_grpc",
  61. "//google/cloud/gkehub/v1beta/configmanagement:configmanagement_java_grpc",
  62. "//google/cloud/gkehub/v1beta/metering:metering_java_grpc",
  63. ]
  64. java_proto_library(
  65. name = "gkehub_java_proto",
  66. deps = [":gkehub_proto"],
  67. )
  68. java_grpc_library(
  69. name = "gkehub_java_grpc",
  70. srcs = [":gkehub_proto"],
  71. deps = [":gkehub_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  72. )
  73. java_gapic_library(
  74. name = "gkehub_java_gapic",
  75. srcs = [":gkehub_proto_with_info"],
  76. grpc_service_config = "v1beta_grpc_service_config.json",
  77. test_deps = [
  78. ":gkehub_java_grpc",
  79. ] + _JAVA_GRPC_SUBPACKAGE_DEPS,
  80. deps = [
  81. ":gkehub_java_proto",
  82. ] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  83. )
  84. java_gapic_test(
  85. name = "gkehub_java_gapic_test_suite",
  86. test_classes = [
  87. "com.google.cloud.gkehub.v1beta.GkeHubClientTest",
  88. ],
  89. runtime_deps = [":gkehub_java_gapic_test"],
  90. )
  91. # Open Source Packages
  92. java_gapic_assembly_gradle_pkg(
  93. name = "google-cloud-gkehub-v1beta-java",
  94. deps = [
  95. ":gkehub_java_gapic",
  96. ":gkehub_java_grpc",
  97. ":gkehub_java_proto",
  98. ":gkehub_proto",
  99. ] + _JAVA_PROTO_SUBPACKAGE_DEPS + _JAVA_GRPC_SUBPACKAGE_DEPS,
  100. )
  101. ##############################################################################
  102. # Go
  103. ##############################################################################
  104. load(
  105. "@com_google_googleapis_imports//:imports.bzl",
  106. "go_gapic_assembly_pkg",
  107. "go_gapic_library",
  108. "go_proto_library",
  109. "go_test",
  110. )
  111. go_proto_library(
  112. name = "gkehub_go_proto",
  113. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  114. importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/v1beta",
  115. protos = [":gkehub_proto"],
  116. deps = [
  117. "//google/api:annotations_go_proto",
  118. "//google/cloud/gkehub/v1beta/configmanagement:configmanagement_go_proto",
  119. "//google/cloud/gkehub/v1beta/metering:metering_go_proto",
  120. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_go_proto",
  121. "//google/longrunning:longrunning_go_proto",
  122. ],
  123. )
  124. go_gapic_library(
  125. name = "gkehub_go_gapic",
  126. srcs = [":gkehub_proto_with_info"],
  127. grpc_service_config = "v1beta_grpc_service_config.json",
  128. importpath = "cloud.google.com/go/gkehub/apiv1beta;gkehub",
  129. service_yaml = "gkehub_v1beta.yaml",
  130. metadata = True,
  131. deps = [
  132. ":gkehub_go_proto",
  133. "//google/longrunning:longrunning_go_proto",
  134. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  135. "@com_google_cloud_go//longrunning:go_default_library",
  136. ],
  137. )
  138. go_test(
  139. name = "gkehub_go_gapic_test",
  140. srcs = [":gkehub_go_gapic_srcjar_test"],
  141. embed = [":gkehub_go_gapic"],
  142. importpath = "cloud.google.com/go/gkehub/apiv1beta",
  143. )
  144. # Open Source Packages
  145. go_gapic_assembly_pkg(
  146. name = "gapi-cloud-gkehub-v1beta-go",
  147. deps = [
  148. ":gkehub_go_gapic",
  149. ":gkehub_go_gapic_srcjar-test.srcjar",
  150. ":gkehub_go_gapic_srcjar-metadata.srcjar",
  151. ":gkehub_go_proto",
  152. ],
  153. )
  154. ##############################################################################
  155. # Python
  156. ##############################################################################
  157. load(
  158. "@com_google_googleapis_imports//:imports.bzl",
  159. "py_gapic_assembly_pkg",
  160. "py_gapic_library",
  161. )
  162. py_gapic_library(
  163. name = "gkehub_py_gapic",
  164. srcs = [":gkehub_proto"],
  165. grpc_service_config = "v1beta_grpc_service_config.json",
  166. opt_args = [
  167. "warehouse-package-name=google-cloud-gke-hub",
  168. ],
  169. )
  170. # Open Source Packages
  171. py_gapic_assembly_pkg(
  172. name = "gkehub-v1beta-py",
  173. deps = [
  174. ":gkehub_py_gapic",
  175. "//google/cloud/gkehub/v1beta/configmanagement:configmanagement_py_gapic",
  176. "//google/cloud/gkehub/v1beta/metering:metering_py_gapic",
  177. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_py_gapic",
  178. ],
  179. )
  180. ##############################################################################
  181. # PHP
  182. ##############################################################################
  183. load(
  184. "@com_google_googleapis_imports//:imports.bzl",
  185. "php_gapic_assembly_pkg",
  186. "php_gapic_library",
  187. "php_grpc_library",
  188. "php_proto_library",
  189. )
  190. php_proto_library(
  191. name = "gkehub_php_proto",
  192. deps = [":gkehub_proto"],
  193. )
  194. php_grpc_library(
  195. name = "gkehub_php_grpc",
  196. srcs = [":gkehub_proto"],
  197. deps = [":gkehub_php_proto"],
  198. )
  199. php_gapic_library(
  200. name = "gkehub_php_gapic",
  201. srcs = [":gkehub_proto_with_info"],
  202. grpc_service_config = "v1beta_grpc_service_config.json",
  203. service_yaml = "gkehub_v1beta.yaml",
  204. deps = [
  205. ":gkehub_php_grpc",
  206. ":gkehub_php_proto",
  207. ],
  208. )
  209. # Open Source Packages
  210. php_gapic_assembly_pkg(
  211. name = "google-cloud-gkehub-v1beta-php",
  212. deps = [
  213. ":gkehub_php_gapic",
  214. ":gkehub_php_grpc",
  215. ":gkehub_php_proto",
  216. ],
  217. )
  218. ##############################################################################
  219. # Node.js
  220. ##############################################################################
  221. load(
  222. "@com_google_googleapis_imports//:imports.bzl",
  223. "nodejs_gapic_assembly_pkg",
  224. "nodejs_gapic_library",
  225. )
  226. nodejs_gapic_library(
  227. name = "gkehub_nodejs_gapic",
  228. package_name = "@google-cloud/gkehub",
  229. src = ":gkehub_proto_with_info",
  230. extra_protoc_parameters = ["metadata"],
  231. grpc_service_config = "v1beta_grpc_service_config.json",
  232. package = "google.cloud.gkehub.v1beta",
  233. service_yaml = "gkehub_v1beta.yaml",
  234. deps = [],
  235. )
  236. nodejs_gapic_assembly_pkg(
  237. name = "gkehub-v1beta-nodejs",
  238. deps = [
  239. ":gkehub_nodejs_gapic",
  240. ":gkehub_proto",
  241. "//google/cloud/gkehub/v1beta/configmanagement:configmanagement_proto",
  242. "//google/cloud/gkehub/v1beta/metering:metering_proto",
  243. "//google/cloud/gkehub/v1beta/multiclusteringress:multiclusteringress_proto",
  244. ],
  245. )
  246. ##############################################################################
  247. # Ruby
  248. ##############################################################################
  249. load(
  250. "@com_google_googleapis_imports//:imports.bzl",
  251. "ruby_gapic_assembly_pkg",
  252. "ruby_cloud_gapic_library",
  253. "ruby_grpc_library",
  254. "ruby_proto_library",
  255. )
  256. ruby_proto_library(
  257. name = "gkehub_ruby_proto",
  258. deps = [":gkehub_proto"],
  259. )
  260. ruby_grpc_library(
  261. name = "gkehub_ruby_grpc",
  262. srcs = [":gkehub_proto"],
  263. deps = [":gkehub_ruby_proto"],
  264. )
  265. ruby_cloud_gapic_library(
  266. name = "gkehub_ruby_gapic",
  267. srcs = [":gkehub_proto_with_info"],
  268. extra_protoc_parameters = [
  269. "ruby-cloud-gem-name=google-cloud-gkehub-v1beta",
  270. ],
  271. grpc_service_config = "v1beta_grpc_service_config.json",
  272. deps = [
  273. ":gkehub_ruby_grpc",
  274. ":gkehub_ruby_proto",
  275. ],
  276. )
  277. # Open Source Packages
  278. ruby_gapic_assembly_pkg(
  279. name = "google-cloud-gkehub-v1beta-ruby",
  280. deps = [
  281. ":gkehub_ruby_gapic",
  282. ":gkehub_ruby_grpc",
  283. ":gkehub_ruby_proto",
  284. ],
  285. )
  286. ##############################################################################
  287. # C#
  288. ##############################################################################
  289. load(
  290. "@com_google_googleapis_imports//:imports.bzl",
  291. "csharp_gapic_assembly_pkg",
  292. "csharp_gapic_library",
  293. "csharp_grpc_library",
  294. "csharp_proto_library",
  295. )
  296. csharp_proto_library(
  297. name = "gkehub_csharp_proto",
  298. deps = [":gkehub_proto"],
  299. )
  300. csharp_grpc_library(
  301. name = "gkehub_csharp_grpc",
  302. srcs = [":gkehub_proto"],
  303. deps = [":gkehub_csharp_proto"],
  304. )
  305. csharp_gapic_library(
  306. name = "gkehub_csharp_gapic",
  307. srcs = [":gkehub_proto_with_info"],
  308. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  309. grpc_service_config = "v1beta_grpc_service_config.json",
  310. deps = [
  311. ":gkehub_csharp_grpc",
  312. ":gkehub_csharp_proto",
  313. ],
  314. )
  315. # Open Source Packages
  316. csharp_gapic_assembly_pkg(
  317. name = "google-cloud-gkehub-v1beta-csharp",
  318. deps = [
  319. ":gkehub_csharp_gapic",
  320. ":gkehub_csharp_grpc",
  321. ":gkehub_csharp_proto",
  322. ],
  323. )
  324. ##############################################################################
  325. # C++
  326. ##############################################################################
  327. # Put your C++ rules here