BUILD.bazel 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  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 = "testing_proto",
  19. srcs = [
  20. "application_details.proto",
  21. "test_environment_discovery.proto",
  22. "test_execution.proto",
  23. ],
  24. deps = [
  25. "//google/api:annotations_proto",
  26. "//google/api:client_proto",
  27. "//google/api:field_behavior_proto",
  28. "//google/type:date_proto",
  29. "@com_google_protobuf//:duration_proto",
  30. "@com_google_protobuf//:timestamp_proto",
  31. ],
  32. )
  33. proto_library_with_info(
  34. name = "testing_proto_with_info",
  35. deps = [
  36. ":testing_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 = "testing_java_proto",
  53. deps = [":testing_proto"],
  54. )
  55. java_grpc_library(
  56. name = "testing_java_grpc",
  57. srcs = [":testing_proto"],
  58. deps = [":testing_java_proto"],
  59. )
  60. java_gapic_library(
  61. name = "testing_java_gapic",
  62. srcs = [":testing_proto_with_info"],
  63. grpc_service_config = "testing_grpc_service_config.json",
  64. test_deps = [
  65. ":testing_java_grpc",
  66. ],
  67. deps = [
  68. ":testing_java_proto",
  69. ],
  70. )
  71. java_gapic_test(
  72. name = "testing_java_gapic_test_suite",
  73. test_classes = [
  74. "com.google.devtools.testing.v1.ApplicationDetailServiceClientTest",
  75. "com.google.devtools.testing.v1.TestEnvironmentDiscoveryServiceClientTest",
  76. "com.google.devtools.testing.v1.TestExecutionServiceClientTest",
  77. ],
  78. runtime_deps = [":testing_java_gapic_test"],
  79. )
  80. # Open Source Packages
  81. java_gapic_assembly_gradle_pkg(
  82. name = "google-cloud-devtools-testing-v1-java",
  83. deps = [
  84. ":testing_java_gapic",
  85. ":testing_java_grpc",
  86. ":testing_java_proto",
  87. ":testing_proto",
  88. ],
  89. )
  90. ##############################################################################
  91. # Go
  92. ##############################################################################
  93. #
  94. # Commented out because of a build failure:
  95. # bazel-out/k8-fastbuild/bin/google/devtools/testing/v1/testing_go_gapic_srcjar_main.go/cloud.google.com/go/devtools/testing/apiv1/test_environment_discovery_client.go:23:2: imported and not used: "net/url"
  96. # compilepkg: error running subcommand external/go_sdk/pkg/tool/linux_amd64/compile: exit status 2
  97. #
  98. # load(
  99. # "@com_google_googleapis_imports//:imports.bzl",
  100. # "go_gapic_assembly_pkg",
  101. # "go_gapic_library",
  102. # "go_proto_library",
  103. # "go_test",
  104. # )
  105. # go_proto_library(
  106. # name = "testing_go_proto",
  107. # compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  108. # importpath = "google.golang.org/genproto/googleapis/devtools/testing/v1",
  109. # protos = [":testing_proto"],
  110. # deps = [
  111. # "//google/api:annotations_go_proto",
  112. # "//google/type:date_go_proto",
  113. # ],
  114. # )
  115. # go_gapic_library(
  116. # name = "testing_go_gapic",
  117. # srcs = [":testing_proto_with_info"],
  118. # grpc_service_config = "testing_grpc_service_config.json",
  119. # importpath = "cloud.google.com/go/devtools/testing/apiv1;testing",
  120. # service_yaml = "testing_v1.yaml",
  121. # metadata = True,
  122. # deps = [
  123. # ":testing_go_proto",
  124. # "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  125. # ],
  126. # )
  127. # go_test(
  128. # name = "testing_go_gapic_test",
  129. # srcs = [":testing_go_gapic_srcjar_test"],
  130. # embed = [":testing_go_gapic"],
  131. # importpath = "cloud.google.com/go/devtools/testing/apiv1",
  132. # )
  133. # # Open Source Packages
  134. # go_gapic_assembly_pkg(
  135. # name = "gapi-cloud-devtools-testing-v1-go",
  136. # deps = [
  137. # ":testing_go_gapic",
  138. # ":testing_go_gapic_srcjar-test.srcjar",
  139. # ":testing_go_gapic_srcjar-metadata.srcjar",
  140. # ":testing_go_proto",
  141. # ],
  142. # )
  143. ##############################################################################
  144. # Python
  145. ##############################################################################
  146. load(
  147. "@com_google_googleapis_imports//:imports.bzl",
  148. "py_gapic_assembly_pkg",
  149. "py_gapic_library",
  150. )
  151. py_gapic_library(
  152. name = "testing_py_gapic",
  153. srcs = [":testing_proto"],
  154. grpc_service_config = "testing_grpc_service_config.json",
  155. )
  156. # Open Source Packages
  157. py_gapic_assembly_pkg(
  158. name = "devtools-testing-v1-py",
  159. deps = [
  160. ":testing_py_gapic",
  161. ],
  162. )
  163. ##############################################################################
  164. # PHP
  165. ##############################################################################
  166. load(
  167. "@com_google_googleapis_imports//:imports.bzl",
  168. "php_gapic_assembly_pkg",
  169. "php_gapic_library",
  170. "php_grpc_library",
  171. "php_proto_library",
  172. )
  173. php_proto_library(
  174. name = "testing_php_proto",
  175. deps = [":testing_proto"],
  176. )
  177. php_grpc_library(
  178. name = "testing_php_grpc",
  179. srcs = [":testing_proto"],
  180. deps = [":testing_php_proto"],
  181. )
  182. php_gapic_library(
  183. name = "testing_php_gapic",
  184. srcs = [":testing_proto_with_info"],
  185. grpc_service_config = "testing_grpc_service_config.json",
  186. service_yaml = "testing_v1.yaml",
  187. deps = [
  188. ":testing_php_grpc",
  189. ":testing_php_proto",
  190. ],
  191. )
  192. # Open Source Packages
  193. php_gapic_assembly_pkg(
  194. name = "google-cloud-devtools-testing-v1-php",
  195. deps = [
  196. ":testing_php_gapic",
  197. ":testing_php_grpc",
  198. ":testing_php_proto",
  199. ],
  200. )
  201. ##############################################################################
  202. # Node.js
  203. ##############################################################################
  204. load(
  205. "@com_google_googleapis_imports//:imports.bzl",
  206. "nodejs_gapic_assembly_pkg",
  207. "nodejs_gapic_library",
  208. )
  209. nodejs_gapic_library(
  210. name = "testing_nodejs_gapic",
  211. package_name = "@google-cloud/testing",
  212. src = ":testing_proto_with_info",
  213. extra_protoc_parameters = ["metadata"],
  214. grpc_service_config = "testing_grpc_service_config.json",
  215. package = "google.devtools.testing.v1",
  216. service_yaml = "testing_v1.yaml",
  217. deps = [],
  218. )
  219. nodejs_gapic_assembly_pkg(
  220. name = "devtools-testing-v1-nodejs",
  221. deps = [
  222. ":testing_nodejs_gapic",
  223. ":testing_proto",
  224. ],
  225. )
  226. ##############################################################################
  227. # Ruby
  228. ##############################################################################
  229. load(
  230. "@com_google_googleapis_imports//:imports.bzl",
  231. "ruby_gapic_assembly_pkg",
  232. "ruby_cloud_gapic_library",
  233. "ruby_grpc_library",
  234. "ruby_proto_library",
  235. )
  236. ruby_proto_library(
  237. name = "testing_ruby_proto",
  238. deps = [":testing_proto"],
  239. )
  240. ruby_grpc_library(
  241. name = "testing_ruby_grpc",
  242. srcs = [":testing_proto"],
  243. deps = [":testing_ruby_proto"],
  244. )
  245. ruby_cloud_gapic_library(
  246. name = "testing_ruby_gapic",
  247. srcs = [":testing_proto_with_info"],
  248. extra_protoc_parameters = [
  249. "ruby-cloud-gem-name=google-cloud-devtools-testing-v1",
  250. ],
  251. grpc_service_config = "testing_grpc_service_config.json",
  252. deps = [
  253. ":testing_ruby_grpc",
  254. ":testing_ruby_proto",
  255. ],
  256. )
  257. # Open Source Packages
  258. ruby_gapic_assembly_pkg(
  259. name = "google-cloud-devtools-testing-v1-ruby",
  260. deps = [
  261. ":testing_ruby_gapic",
  262. ":testing_ruby_grpc",
  263. ":testing_ruby_proto",
  264. ],
  265. )
  266. ##############################################################################
  267. # C#
  268. ##############################################################################
  269. #
  270. # Commented out until enum path segments are supported.
  271. # --gapic_out: System.InvalidOperationException: Path in http url must resolve to a string field: 'environment_type'.
  272. #
  273. # load(
  274. # "@com_google_googleapis_imports//:imports.bzl",
  275. # "csharp_gapic_assembly_pkg",
  276. # "csharp_gapic_library",
  277. # "csharp_grpc_library",
  278. # "csharp_proto_library",
  279. # )
  280. # csharp_proto_library(
  281. # name = "testing_csharp_proto",
  282. # deps = [":testing_proto"],
  283. # )
  284. # csharp_grpc_library(
  285. # name = "testing_csharp_grpc",
  286. # srcs = [":testing_proto"],
  287. # deps = [":testing_csharp_proto"],
  288. # )
  289. # csharp_gapic_library(
  290. # name = "testing_csharp_gapic",
  291. # srcs = [":testing_proto_with_info"],
  292. # common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  293. # grpc_service_config = "testing_grpc_service_config.json",
  294. # deps = [
  295. # ":testing_csharp_grpc",
  296. # ":testing_csharp_proto",
  297. # ],
  298. # )
  299. # # Open Source Packages
  300. # csharp_gapic_assembly_pkg(
  301. # name = "google-cloud-devtools-testing-v1-csharp",
  302. # deps = [
  303. # ":testing_csharp_gapic",
  304. # ":testing_csharp_grpc",
  305. # ":testing_csharp_proto",
  306. # ],
  307. # )
  308. ##############################################################################
  309. # C++
  310. ##############################################################################
  311. # Put your C++ rules here