BUILD.bazel 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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 = "data_proto",
  50. srcs = [
  51. "analytics_data_api.proto",
  52. "data.proto",
  53. ],
  54. deps = [
  55. "//google/api:annotations_proto",
  56. "//google/api:client_proto",
  57. "@com_google_protobuf//:duration_proto",
  58. ],
  59. )
  60. proto_library_with_info(
  61. name = "data_proto_with_info",
  62. deps = [
  63. ":data_proto",
  64. "//google/cloud:common_resources_proto",
  65. ],
  66. )
  67. java_proto_library(
  68. name = "data_java_proto",
  69. deps = [":data_proto"],
  70. )
  71. java_grpc_library(
  72. name = "data_java_grpc",
  73. srcs = [":data_proto"],
  74. deps = [":data_java_proto"],
  75. )
  76. java_gapic_library(
  77. name = "data_java_gapic",
  78. srcs = [":data_proto_with_info"],
  79. gapic_yaml = None,
  80. grpc_service_config = "analytics_data_grpc_service_config.json",
  81. rest_numeric_enums = False,
  82. service_yaml = "analyticsdata_v1alpha.yaml",
  83. test_deps = [
  84. ":data_java_grpc",
  85. ],
  86. transport = "grpc+rest",
  87. deps = [
  88. ":data_java_proto",
  89. "//google/api:api_java_proto",
  90. ],
  91. )
  92. java_gapic_test(
  93. name = "data_java_gapic_test_suite",
  94. test_classes = [
  95. "com.google.analytics.data.v1alpha.AlphaAnalyticsDataClientHttpJsonTest",
  96. "com.google.analytics.data.v1alpha.AlphaAnalyticsDataClientTest",
  97. ],
  98. runtime_deps = [":data_java_gapic_test"],
  99. )
  100. # Open Source Packages
  101. java_gapic_assembly_gradle_pkg(
  102. name = "google-cloud-analytics-data-v1alpha-java",
  103. include_samples = True,
  104. transport = "grpc+rest",
  105. deps = [
  106. ":data_java_gapic",
  107. ":data_java_grpc",
  108. ":data_java_proto",
  109. ":data_proto",
  110. ],
  111. )
  112. go_proto_library(
  113. name = "data_go_proto",
  114. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  115. importpath = "google.golang.org/genproto/googleapis/analytics/data/v1alpha",
  116. protos = [":data_proto"],
  117. deps = [
  118. "//google/api:annotations_go_proto",
  119. ],
  120. )
  121. go_gapic_library(
  122. name = "data_go_gapic",
  123. srcs = [":data_proto_with_info"],
  124. grpc_service_config = "analytics_data_grpc_service_config.json",
  125. importpath = "google.golang.org/google/analytics/data/v1alpha;data",
  126. metadata = True,
  127. rest_numeric_enums = False,
  128. service_yaml = "analyticsdata_v1alpha.yaml",
  129. transport = "grpc+rest",
  130. deps = [
  131. ":data_go_proto",
  132. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  133. ],
  134. )
  135. go_test(
  136. name = "data_go_gapic_test",
  137. srcs = [":data_go_gapic_srcjar_test"],
  138. embed = [":data_go_gapic"],
  139. importpath = "google.golang.org/google/analytics/data/v1alpha",
  140. )
  141. # Open Source Packages
  142. go_gapic_assembly_pkg(
  143. name = "gapi-cloud-analytics-data-v1alpha-go",
  144. deps = [
  145. ":data_go_gapic",
  146. ":data_go_gapic_srcjar-metadata.srcjar",
  147. ":data_go_gapic_srcjar-test.srcjar",
  148. ":data_go_proto",
  149. ],
  150. )
  151. py_gapic_library(
  152. name = "data_py_gapic",
  153. srcs = [":data_proto"],
  154. grpc_service_config = "analytics_data_grpc_service_config.json",
  155. rest_numeric_enums = False,
  156. service_yaml = "analyticsdata_v1alpha.yaml",
  157. transport = "grpc+rest",
  158. )
  159. py_test(
  160. name = "data_py_gapic_test",
  161. srcs = [
  162. "data_py_gapic_pytest.py",
  163. "data_py_gapic_test.py",
  164. ],
  165. legacy_create_init = False,
  166. deps = [":data_py_gapic"],
  167. )
  168. # Open Source Packages
  169. py_gapic_assembly_pkg(
  170. name = "analytics-data-v1alpha-py",
  171. deps = [
  172. ":data_py_gapic",
  173. ],
  174. )
  175. php_proto_library(
  176. name = "data_php_proto",
  177. deps = [":data_proto"],
  178. )
  179. php_grpc_library(
  180. name = "data_php_grpc",
  181. srcs = [":data_proto"],
  182. deps = [":data_php_proto"],
  183. )
  184. php_gapic_library(
  185. name = "data_php_gapic",
  186. srcs = [":data_proto_with_info"],
  187. grpc_service_config = "analytics_data_grpc_service_config.json",
  188. rest_numeric_enums = False,
  189. service_yaml = "analyticsdata_v1alpha.yaml",
  190. transport = "grpc+rest",
  191. deps = [
  192. ":data_php_grpc",
  193. ":data_php_proto",
  194. ],
  195. )
  196. # Open Source Packages
  197. php_gapic_assembly_pkg(
  198. name = "google-cloud-analytics-data-v1alpha-php",
  199. deps = [
  200. ":data_php_gapic",
  201. ":data_php_grpc",
  202. ":data_php_proto",
  203. ],
  204. )
  205. nodejs_gapic_library(
  206. name = "data_nodejs_gapic",
  207. package_name = "@google-cloud/data",
  208. src = ":data_proto_with_info",
  209. extra_protoc_parameters = ["metadata"],
  210. grpc_service_config = "analytics_data_grpc_service_config.json",
  211. package = "google.analytics.data.v1alpha",
  212. rest_numeric_enums = False,
  213. service_yaml = "analyticsdata_v1alpha.yaml",
  214. transport = "grpc+rest",
  215. deps = [],
  216. )
  217. nodejs_gapic_assembly_pkg(
  218. name = "analytics-data-v1alpha-nodejs",
  219. deps = [
  220. ":data_nodejs_gapic",
  221. ":data_proto",
  222. ],
  223. )
  224. ruby_proto_library(
  225. name = "data_ruby_proto",
  226. deps = [":data_proto"],
  227. )
  228. ruby_grpc_library(
  229. name = "data_ruby_grpc",
  230. srcs = [":data_proto"],
  231. deps = [":data_ruby_proto"],
  232. )
  233. ruby_cloud_gapic_library(
  234. name = "data_ruby_gapic",
  235. srcs = [":data_proto_with_info"],
  236. extra_protoc_parameters = [
  237. "ruby-cloud-gem-name=google-cloud-analytics-data-v1alpha",
  238. ],
  239. grpc_service_config = "analytics_data_grpc_service_config.json",
  240. rest_numeric_enums = False,
  241. deps = [
  242. ":data_ruby_grpc",
  243. ":data_ruby_proto",
  244. ],
  245. )
  246. # Open Source Packages
  247. ruby_gapic_assembly_pkg(
  248. name = "google-cloud-analytics-data-v1alpha-ruby",
  249. deps = [
  250. ":data_ruby_gapic",
  251. ":data_ruby_grpc",
  252. ":data_ruby_proto",
  253. ],
  254. )
  255. csharp_proto_library(
  256. name = "data_csharp_proto",
  257. deps = [":data_proto"],
  258. )
  259. csharp_grpc_library(
  260. name = "data_csharp_grpc",
  261. srcs = [":data_proto"],
  262. deps = [":data_csharp_proto"],
  263. )
  264. csharp_gapic_library(
  265. name = "data_csharp_gapic",
  266. srcs = [":data_proto_with_info"],
  267. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  268. grpc_service_config = "analytics_data_grpc_service_config.json",
  269. rest_numeric_enums = False,
  270. service_yaml = "analyticsdata_v1alpha.yaml",
  271. deps = [
  272. ":data_csharp_grpc",
  273. ":data_csharp_proto",
  274. ],
  275. )
  276. # Open Source Packages
  277. csharp_gapic_assembly_pkg(
  278. name = "google-cloud-analytics-data-v1alpha-csharp",
  279. deps = [
  280. ":data_csharp_gapic",
  281. ":data_csharp_grpc",
  282. ":data_csharp_proto",
  283. ],
  284. )
  285. cc_proto_library(
  286. name = "data_cc_proto",
  287. deps = [":data_proto"],
  288. )
  289. cc_grpc_library(
  290. name = "data_cc_grpc",
  291. srcs = [":data_proto"],
  292. grpc_only = True,
  293. deps = [":data_cc_proto"],
  294. )