BUILD.bazel 10 KB

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