BUILD.bazel 9.6 KB

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