BUILD.bazel 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  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 = "dataflow_proto",
  50. srcs = [
  51. "environment.proto",
  52. "jobs.proto",
  53. "messages.proto",
  54. "metrics.proto",
  55. "snapshots.proto",
  56. "streaming.proto",
  57. "templates.proto",
  58. ],
  59. deps = [
  60. "//google/api:annotations_proto",
  61. "//google/api:client_proto",
  62. "//google/api:field_behavior_proto",
  63. "//google/rpc:status_proto",
  64. "@com_google_protobuf//:any_proto",
  65. "@com_google_protobuf//:duration_proto",
  66. "@com_google_protobuf//:struct_proto",
  67. "@com_google_protobuf//:timestamp_proto",
  68. ],
  69. )
  70. proto_library_with_info(
  71. name = "dataflow_proto_with_info",
  72. deps = [
  73. ":dataflow_proto",
  74. "//google/cloud:common_resources_proto",
  75. ],
  76. )
  77. java_proto_library(
  78. name = "dataflow_java_proto",
  79. deps = [":dataflow_proto"],
  80. )
  81. java_grpc_library(
  82. name = "dataflow_java_grpc",
  83. srcs = [":dataflow_proto"],
  84. deps = [":dataflow_java_proto"],
  85. )
  86. java_gapic_library(
  87. name = "dataflow_java_gapic",
  88. srcs = [":dataflow_proto_with_info"],
  89. gapic_yaml = None,
  90. grpc_service_config = "dataflow_grpc_service_config.json",
  91. rest_numeric_enums = False,
  92. service_yaml = "dataflow_v1beta3.yaml",
  93. test_deps = [
  94. ":dataflow_java_grpc",
  95. ],
  96. transport = "grpc+rest",
  97. deps = [
  98. ":dataflow_java_proto",
  99. "//google/api:api_java_proto",
  100. ],
  101. )
  102. java_gapic_test(
  103. name = "dataflow_java_gapic_test_suite",
  104. test_classes = [
  105. "com.google.dataflow.v1beta3.FlexTemplatesServiceClientHttpJsonTest",
  106. "com.google.dataflow.v1beta3.FlexTemplatesServiceClientTest",
  107. "com.google.dataflow.v1beta3.JobsV1Beta3ClientHttpJsonTest",
  108. "com.google.dataflow.v1beta3.JobsV1Beta3ClientTest",
  109. "com.google.dataflow.v1beta3.MessagesV1Beta3ClientHttpJsonTest",
  110. "com.google.dataflow.v1beta3.MessagesV1Beta3ClientTest",
  111. "com.google.dataflow.v1beta3.MetricsV1Beta3ClientHttpJsonTest",
  112. "com.google.dataflow.v1beta3.MetricsV1Beta3ClientTest",
  113. "com.google.dataflow.v1beta3.SnapshotsV1Beta3ClientHttpJsonTest",
  114. "com.google.dataflow.v1beta3.SnapshotsV1Beta3ClientTest",
  115. "com.google.dataflow.v1beta3.TemplatesServiceClientHttpJsonTest",
  116. "com.google.dataflow.v1beta3.TemplatesServiceClientTest",
  117. ],
  118. runtime_deps = [":dataflow_java_gapic_test"],
  119. )
  120. # Open Source Packages
  121. java_gapic_assembly_gradle_pkg(
  122. name = "google-cloud-dataflow-v1beta3-java",
  123. include_samples = True,
  124. transport = "grpc+rest",
  125. deps = [
  126. ":dataflow_java_gapic",
  127. ":dataflow_java_grpc",
  128. ":dataflow_java_proto",
  129. ":dataflow_proto",
  130. ],
  131. )
  132. go_proto_library(
  133. name = "dataflow_go_proto",
  134. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  135. importpath = "google.golang.org/genproto/googleapis/dataflow/v1beta3",
  136. protos = [":dataflow_proto"],
  137. deps = [
  138. "//google/api:annotations_go_proto",
  139. "//google/rpc:status_go_proto",
  140. ],
  141. )
  142. go_gapic_library(
  143. name = "dataflow_go_gapic",
  144. srcs = [":dataflow_proto_with_info"],
  145. grpc_service_config = "dataflow_grpc_service_config.json",
  146. importpath = "cloud.google.com/go/dataflow/apiv1beta3;dataflow",
  147. metadata = True,
  148. rest_numeric_enums = False,
  149. service_yaml = "dataflow_v1beta3.yaml",
  150. transport = "grpc+rest",
  151. deps = [
  152. ":dataflow_go_proto",
  153. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  154. ],
  155. )
  156. go_test(
  157. name = "dataflow_go_gapic_test",
  158. srcs = [":dataflow_go_gapic_srcjar_test"],
  159. embed = [":dataflow_go_gapic"],
  160. importpath = "cloud.google.com/go/dataflow/apiv1beta3",
  161. )
  162. # Open Source Packages
  163. go_gapic_assembly_pkg(
  164. name = "gapi-cloud-dataflow-v1beta3-go",
  165. deps = [
  166. ":dataflow_go_gapic",
  167. ":dataflow_go_gapic_srcjar-metadata.srcjar",
  168. ":dataflow_go_gapic_srcjar-test.srcjar",
  169. ":dataflow_go_proto",
  170. ],
  171. )
  172. py_gapic_library(
  173. name = "dataflow_py_gapic",
  174. srcs = [":dataflow_proto"],
  175. grpc_service_config = "dataflow_grpc_service_config.json",
  176. opt_args = [
  177. "python-gapic-name=dataflow",
  178. "python-gapic-namespace=google.cloud",
  179. "warehouse-package-name=google-cloud-dataflow-client",
  180. ],
  181. rest_numeric_enums = False,
  182. transport = "grpc+rest",
  183. )
  184. py_test(
  185. name = "dataflow_py_gapic_test",
  186. srcs = [
  187. "dataflow_py_gapic_pytest.py",
  188. "dataflow_py_gapic_test.py",
  189. ],
  190. legacy_create_init = False,
  191. deps = [":dataflow_py_gapic"],
  192. )
  193. # Open Source Packages
  194. py_gapic_assembly_pkg(
  195. name = "dataflow-v1beta3-py",
  196. deps = [
  197. ":dataflow_py_gapic",
  198. ],
  199. )
  200. php_proto_library(
  201. name = "dataflow_php_proto",
  202. deps = [":dataflow_proto"],
  203. )
  204. php_grpc_library(
  205. name = "dataflow_php_grpc",
  206. srcs = [":dataflow_proto"],
  207. deps = [":dataflow_php_proto"],
  208. )
  209. php_gapic_library(
  210. name = "dataflow_php_gapic",
  211. srcs = [":dataflow_proto_with_info"],
  212. grpc_service_config = "dataflow_grpc_service_config.json",
  213. rest_numeric_enums = False,
  214. service_yaml = "dataflow_v1beta3.yaml",
  215. transport = "grpc+rest",
  216. deps = [
  217. ":dataflow_php_grpc",
  218. ":dataflow_php_proto",
  219. ],
  220. )
  221. # Open Source Packages
  222. php_gapic_assembly_pkg(
  223. name = "google-cloud-dataflow-v1beta3-php",
  224. deps = [
  225. ":dataflow_php_gapic",
  226. ":dataflow_php_grpc",
  227. ":dataflow_php_proto",
  228. ],
  229. )
  230. nodejs_gapic_library(
  231. name = "dataflow_nodejs_gapic",
  232. package_name = "@google-cloud/dataflow",
  233. src = ":dataflow_proto_with_info",
  234. extra_protoc_parameters = ["metadata"],
  235. grpc_service_config = "dataflow_grpc_service_config.json",
  236. package = "google.dataflow.v1beta3",
  237. rest_numeric_enums = False,
  238. service_yaml = "dataflow_v1beta3.yaml",
  239. transport = "grpc+rest",
  240. deps = [],
  241. )
  242. nodejs_gapic_assembly_pkg(
  243. name = "dataflow-v1beta3-nodejs",
  244. deps = [
  245. ":dataflow_nodejs_gapic",
  246. ":dataflow_proto",
  247. ],
  248. )
  249. ruby_proto_library(
  250. name = "dataflow_ruby_proto",
  251. deps = [":dataflow_proto"],
  252. )
  253. ruby_grpc_library(
  254. name = "dataflow_ruby_grpc",
  255. srcs = [":dataflow_proto"],
  256. deps = [":dataflow_ruby_proto"],
  257. )
  258. ruby_cloud_gapic_library(
  259. name = "dataflow_ruby_gapic",
  260. srcs = [":dataflow_proto_with_info"],
  261. extra_protoc_parameters = [
  262. "ruby-cloud-api-id=dataflow.googleapis.com",
  263. "ruby-cloud-api-shortname=dataflow",
  264. "ruby-cloud-env-prefix=DATAFLOW",
  265. "ruby-cloud-gem-name=google-cloud-dataflow-v1beta3",
  266. "ruby-cloud-product-url=https://cloud.google.com/dataflow",
  267. "ruby-cloud-service-override=JobsV1Beta3=Jobs;MessagesV1Beta3=Messages;MetricsV1Beta3=Metrics;SnapshotsV1Beta3=Snapshots",
  268. ],
  269. grpc_service_config = "dataflow_grpc_service_config.json",
  270. rest_numeric_enums = False,
  271. ruby_cloud_description = "Dataflow is a managed service for executing a wide variety of data processing patterns.",
  272. ruby_cloud_title = "Dataflow V1beta3",
  273. deps = [
  274. ":dataflow_ruby_grpc",
  275. ":dataflow_ruby_proto",
  276. ],
  277. )
  278. # Open Source Packages
  279. ruby_gapic_assembly_pkg(
  280. name = "google-cloud-dataflow-v1beta3-ruby",
  281. deps = [
  282. ":dataflow_ruby_gapic",
  283. ":dataflow_ruby_grpc",
  284. ":dataflow_ruby_proto",
  285. ],
  286. )
  287. csharp_proto_library(
  288. name = "dataflow_csharp_proto",
  289. deps = [":dataflow_proto"],
  290. )
  291. csharp_grpc_library(
  292. name = "dataflow_csharp_grpc",
  293. srcs = [":dataflow_proto"],
  294. deps = [":dataflow_csharp_proto"],
  295. )
  296. csharp_gapic_library(
  297. name = "dataflow_csharp_gapic",
  298. srcs = [":dataflow_proto_with_info"],
  299. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  300. grpc_service_config = "dataflow_grpc_service_config.json",
  301. rest_numeric_enums = False,
  302. service_yaml = "dataflow_v1beta3.yaml",
  303. deps = [
  304. ":dataflow_csharp_grpc",
  305. ":dataflow_csharp_proto",
  306. ],
  307. )
  308. # Open Source Packages
  309. csharp_gapic_assembly_pkg(
  310. name = "google-cloud-dataflow-v1beta3-csharp",
  311. deps = [
  312. ":dataflow_csharp_gapic",
  313. ":dataflow_csharp_grpc",
  314. ":dataflow_csharp_proto",
  315. ],
  316. )
  317. cc_proto_library(
  318. name = "dataflow_cc_proto",
  319. deps = [":dataflow_proto"],
  320. )
  321. cc_grpc_library(
  322. name = "dataflow_cc_grpc",
  323. srcs = [":dataflow_proto"],
  324. grpc_only = True,
  325. deps = [":dataflow_cc_proto"],
  326. )