BUILD.bazel 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  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. ##############################################################################
  11. # Common
  12. ##############################################################################
  13. load("@rules_proto//proto:defs.bzl", "proto_library")
  14. load(
  15. "@com_google_googleapis_imports//:imports.bzl",
  16. "cc_grpc_library",
  17. "cc_proto_library",
  18. "csharp_gapic_assembly_pkg",
  19. "csharp_gapic_library",
  20. "csharp_grpc_library",
  21. "csharp_proto_library",
  22. "go_gapic_assembly_pkg",
  23. "go_gapic_library",
  24. "go_proto_library",
  25. "go_test",
  26. "java_gapic_assembly_gradle_pkg",
  27. "java_gapic_library",
  28. "java_gapic_test",
  29. "java_grpc_library",
  30. "java_proto_library",
  31. "nodejs_gapic_assembly_pkg",
  32. "nodejs_gapic_library",
  33. "php_gapic_assembly_pkg",
  34. "php_gapic_library",
  35. "php_grpc_library",
  36. "php_proto_library",
  37. "proto_library_with_info",
  38. "py_gapic_assembly_pkg",
  39. "py_gapic_library",
  40. "py_test",
  41. "ruby_cloud_gapic_library",
  42. "ruby_gapic_assembly_pkg",
  43. "ruby_grpc_library",
  44. "ruby_proto_library",
  45. )
  46. # This is an API workspace, having public visibility by default makes perfect sense.
  47. package(default_visibility = ["//visibility:public"])
  48. proto_library(
  49. name = "container_proto",
  50. srcs = [
  51. "cluster_service.proto",
  52. ],
  53. deps = [
  54. "//google/api:annotations_proto",
  55. "//google/api:client_proto",
  56. "//google/api:field_behavior_proto",
  57. "//google/api:resource_proto",
  58. "//google/rpc:code_proto",
  59. "//google/rpc:status_proto",
  60. "@com_google_protobuf//:duration_proto",
  61. "@com_google_protobuf//:empty_proto",
  62. "@com_google_protobuf//:timestamp_proto",
  63. "@com_google_protobuf//:wrappers_proto",
  64. ],
  65. )
  66. proto_library_with_info(
  67. name = "container_proto_with_info",
  68. deps = [
  69. ":container_proto",
  70. "//google/cloud:common_resources_proto",
  71. ],
  72. )
  73. java_proto_library(
  74. name = "container_java_proto",
  75. deps = [":container_proto"],
  76. )
  77. java_grpc_library(
  78. name = "container_java_grpc",
  79. srcs = [":container_proto"],
  80. deps = [":container_java_proto"],
  81. )
  82. java_gapic_library(
  83. name = "container_java_gapic",
  84. srcs = [":container_proto_with_info"],
  85. gapic_yaml = "container_gapic.yaml",
  86. grpc_service_config = "container_grpc_service_config.json",
  87. rest_numeric_enums = False,
  88. service_yaml = "container_v1.yaml",
  89. test_deps = [
  90. ":container_java_grpc",
  91. ],
  92. transport = "grpc",
  93. deps = [
  94. ":container_java_proto",
  95. "//google/api:api_java_proto",
  96. ],
  97. )
  98. java_gapic_test(
  99. name = "container_java_gapic_test_suite",
  100. test_classes = [
  101. "com.google.cloud.container.v1.ClusterManagerClientTest",
  102. ],
  103. runtime_deps = [":container_java_gapic_test"],
  104. )
  105. # Open Source Packages
  106. java_gapic_assembly_gradle_pkg(
  107. name = "google-cloud-container-v1-java",
  108. include_samples = True,
  109. transport = "grpc",
  110. deps = [
  111. ":container_java_gapic",
  112. ":container_java_grpc",
  113. ":container_java_proto",
  114. ":container_proto",
  115. ],
  116. )
  117. go_proto_library(
  118. name = "container_go_proto",
  119. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  120. importpath = "google.golang.org/genproto/googleapis/container/v1",
  121. protos = [":container_proto"],
  122. deps = [
  123. "//google/api:annotations_go_proto",
  124. "//google/rpc:code_go_proto",
  125. "//google/rpc:status_go_proto",
  126. ],
  127. )
  128. go_gapic_library(
  129. name = "container_go_gapic",
  130. srcs = [":container_proto_with_info"],
  131. grpc_service_config = "container_grpc_service_config.json",
  132. importpath = "cloud.google.com/go/container/apiv1;container",
  133. metadata = True,
  134. rest_numeric_enums = False,
  135. service_yaml = "container_v1.yaml",
  136. deps = [
  137. ":container_go_proto",
  138. ],
  139. )
  140. go_test(
  141. name = "container_go_gapic_test",
  142. srcs = [":container_go_gapic_srcjar_test"],
  143. embed = [":container_go_gapic"],
  144. importpath = "cloud.google.com/go/container/apiv1",
  145. )
  146. # Open Source Packages
  147. go_gapic_assembly_pkg(
  148. name = "gapi-cloud-container-v1-go",
  149. deps = [
  150. ":container_go_gapic",
  151. ":container_go_gapic_srcjar-metadata.srcjar",
  152. ":container_go_gapic_srcjar-test.srcjar",
  153. ":container_go_proto",
  154. ],
  155. )
  156. py_gapic_library(
  157. name = "container_py_gapic",
  158. srcs = [":container_proto"],
  159. grpc_service_config = "container_grpc_service_config.json",
  160. opt_args = [
  161. "python-gapic-namespace=google.cloud",
  162. "warehouse-package-name=google-cloud-container",
  163. ],
  164. rest_numeric_enums = False,
  165. transport = "grpc",
  166. )
  167. py_test(
  168. name = "container_py_gapic_test",
  169. srcs = [
  170. "container_py_gapic_pytest.py",
  171. "container_py_gapic_test.py",
  172. ],
  173. legacy_create_init = False,
  174. deps = [":container_py_gapic"],
  175. )
  176. # Open Source Packages
  177. py_gapic_assembly_pkg(
  178. name = "container-v1-py",
  179. deps = [
  180. ":container_py_gapic",
  181. ],
  182. )
  183. php_proto_library(
  184. name = "container_php_proto",
  185. deps = [":container_proto"],
  186. )
  187. php_grpc_library(
  188. name = "container_php_grpc",
  189. srcs = [":container_proto"],
  190. deps = [":container_php_proto"],
  191. )
  192. php_gapic_library(
  193. name = "container_php_gapic",
  194. srcs = [":container_proto_with_info"],
  195. grpc_service_config = "container_grpc_service_config.json",
  196. rest_numeric_enums = False,
  197. service_yaml = "container_v1.yaml",
  198. transport = "grpc+rest",
  199. deps = [
  200. ":container_php_grpc",
  201. ":container_php_proto",
  202. ],
  203. )
  204. # Open Source Packages
  205. php_gapic_assembly_pkg(
  206. name = "google-cloud-container-v1-php",
  207. deps = [
  208. ":container_php_gapic",
  209. ":container_php_grpc",
  210. ":container_php_proto",
  211. ],
  212. )
  213. nodejs_gapic_library(
  214. name = "container_nodejs_gapic",
  215. package_name = "@google-cloud/container",
  216. src = ":container_proto_with_info",
  217. extra_protoc_parameters = ["metadata"],
  218. grpc_service_config = "container_grpc_service_config.json",
  219. package = "google.container.v1",
  220. rest_numeric_enums = False,
  221. service_yaml = "container_v1.yaml",
  222. transport = "grpc+rest",
  223. deps = [],
  224. )
  225. nodejs_gapic_assembly_pkg(
  226. name = "container-v1-nodejs",
  227. deps = [
  228. ":container_nodejs_gapic",
  229. ":container_proto",
  230. ],
  231. )
  232. ruby_proto_library(
  233. name = "container_ruby_proto",
  234. deps = [":container_proto"],
  235. )
  236. ruby_grpc_library(
  237. name = "container_ruby_grpc",
  238. srcs = [":container_proto"],
  239. deps = [":container_ruby_proto"],
  240. )
  241. ruby_cloud_gapic_library(
  242. name = "container_ruby_gapic",
  243. srcs = [":container_proto_with_info"],
  244. extra_protoc_parameters = [
  245. "ruby-cloud-api-id=container.googleapis.com",
  246. "ruby-cloud-api-shortname=container",
  247. "ruby-cloud-env-prefix=CONTAINER",
  248. "ruby-cloud-gem-name=google-cloud-container-v1",
  249. "ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine",
  250. ],
  251. grpc_service_config = "container_grpc_service_config.json",
  252. rest_numeric_enums = False,
  253. ruby_cloud_description = "Builds and manages container-based applications, powered by the open source Kubernetes technology.",
  254. ruby_cloud_title = "Kubernetes Engine V1",
  255. deps = [
  256. ":container_ruby_grpc",
  257. ":container_ruby_proto",
  258. ],
  259. )
  260. # Open Source Packages
  261. ruby_gapic_assembly_pkg(
  262. name = "google-cloud-container-v1-ruby",
  263. deps = [
  264. ":container_ruby_gapic",
  265. ":container_ruby_grpc",
  266. ":container_ruby_proto",
  267. ],
  268. )
  269. csharp_proto_library(
  270. name = "container_csharp_proto",
  271. deps = [":container_proto"],
  272. )
  273. csharp_grpc_library(
  274. name = "container_csharp_grpc",
  275. srcs = [":container_proto"],
  276. deps = [":container_csharp_proto"],
  277. )
  278. csharp_gapic_library(
  279. name = "container_csharp_gapic",
  280. srcs = [":container_proto_with_info"],
  281. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  282. grpc_service_config = "container_grpc_service_config.json",
  283. rest_numeric_enums = False,
  284. service_yaml = "container_v1.yaml",
  285. deps = [
  286. ":container_csharp_grpc",
  287. ":container_csharp_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. csharp_gapic_assembly_pkg(
  292. name = "google-cloud-container-v1-csharp",
  293. deps = [
  294. ":container_csharp_gapic",
  295. ":container_csharp_grpc",
  296. ":container_csharp_proto",
  297. ],
  298. )
  299. cc_proto_library(
  300. name = "container_cc_proto",
  301. deps = [":container_proto"],
  302. )
  303. cc_grpc_library(
  304. name = "container_cc_grpc",
  305. srcs = [":container_proto"],
  306. grpc_only = True,
  307. deps = [":container_cc_proto"],
  308. )