BUILD.bazel 9.1 KB

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