BUILD.bazel 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "cloudprofiler_proto",
  19. srcs = [
  20. "profiler.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "@com_google_protobuf//:duration_proto",
  26. "@com_google_protobuf//:field_mask_proto",
  27. ],
  28. )
  29. proto_library_with_info(
  30. name = "cloudprofiler_proto_with_info",
  31. deps = [
  32. ":cloudprofiler_proto",
  33. "//google/cloud:common_resources_proto",
  34. ],
  35. )
  36. ##############################################################################
  37. # Java
  38. ##############################################################################
  39. load(
  40. "@com_google_googleapis_imports//:imports.bzl",
  41. "java_gapic_assembly_gradle_pkg",
  42. "java_gapic_library",
  43. "java_gapic_test",
  44. "java_grpc_library",
  45. "java_proto_library",
  46. )
  47. java_proto_library(
  48. name = "cloudprofiler_java_proto",
  49. deps = [":cloudprofiler_proto"],
  50. )
  51. java_grpc_library(
  52. name = "cloudprofiler_java_grpc",
  53. srcs = [":cloudprofiler_proto"],
  54. deps = [":cloudprofiler_java_proto"],
  55. )
  56. java_gapic_library(
  57. name = "cloudprofiler_java_gapic",
  58. srcs = [":cloudprofiler_proto_with_info"],
  59. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  60. test_deps = [
  61. ":cloudprofiler_java_grpc",
  62. ],
  63. deps = [
  64. ":cloudprofiler_java_proto",
  65. ],
  66. )
  67. java_gapic_test(
  68. name = "cloudprofiler_java_gapic_test_suite",
  69. test_classes = [
  70. "com.google.devtools.cloudprofiler.v2.ProfilerServiceClientTest",
  71. ],
  72. runtime_deps = [":cloudprofiler_java_gapic_test"],
  73. )
  74. # Open Source Packages
  75. java_gapic_assembly_gradle_pkg(
  76. name = "google-cloud-devtools-cloudprofiler-v2-java",
  77. deps = [
  78. ":cloudprofiler_java_gapic",
  79. ":cloudprofiler_java_grpc",
  80. ":cloudprofiler_java_proto",
  81. ":cloudprofiler_proto",
  82. ],
  83. )
  84. ##############################################################################
  85. # Go
  86. ##############################################################################
  87. load(
  88. "@com_google_googleapis_imports//:imports.bzl",
  89. "go_gapic_assembly_pkg",
  90. "go_gapic_library",
  91. "go_proto_library",
  92. "go_test",
  93. )
  94. go_proto_library(
  95. name = "cloudprofiler_go_proto",
  96. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  97. importpath = "google.golang.org/genproto/googleapis/devtools/cloudprofiler/v2",
  98. protos = [":cloudprofiler_proto"],
  99. deps = [
  100. "//google/api:annotations_go_proto",
  101. ],
  102. )
  103. go_gapic_library(
  104. name = "cloudprofiler_go_gapic",
  105. srcs = [":cloudprofiler_proto_with_info"],
  106. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  107. importpath = "cloud.google.com/go/devtools/cloudprofiler/apiv2;cloudprofiler",
  108. service_yaml = "cloudprofiler_v2.yaml",
  109. deps = [
  110. ":cloudprofiler_go_proto",
  111. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  112. ],
  113. )
  114. go_test(
  115. name = "cloudprofiler_go_gapic_test",
  116. srcs = [":cloudprofiler_go_gapic_srcjar_test"],
  117. embed = [":cloudprofiler_go_gapic"],
  118. importpath = "cloud.google.com/go/devtools/cloudprofiler/apiv2",
  119. )
  120. # Open Source Packages
  121. go_gapic_assembly_pkg(
  122. name = "gapi-cloud-devtools-cloudprofiler-v2-go",
  123. deps = [
  124. ":cloudprofiler_go_gapic",
  125. ":cloudprofiler_go_gapic_srcjar-test.srcjar",
  126. ":cloudprofiler_go_proto",
  127. ],
  128. )
  129. ##############################################################################
  130. # Python
  131. ##############################################################################
  132. load(
  133. "@com_google_googleapis_imports//:imports.bzl",
  134. "py_gapic_assembly_pkg",
  135. "py_gapic_library",
  136. )
  137. py_gapic_library(
  138. name = "cloudprofiler_py_gapic",
  139. srcs = [":cloudprofiler_proto"],
  140. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  141. )
  142. # Open Source Packages
  143. py_gapic_assembly_pkg(
  144. name = "devtools-cloudprofiler-v2-py",
  145. deps = [
  146. ":cloudprofiler_py_gapic",
  147. ],
  148. )
  149. ##############################################################################
  150. # PHP
  151. ##############################################################################
  152. load(
  153. "@com_google_googleapis_imports//:imports.bzl",
  154. "php_gapic_assembly_pkg",
  155. "php_gapic_library",
  156. "php_grpc_library",
  157. "php_proto_library",
  158. )
  159. php_proto_library(
  160. name = "cloudprofiler_php_proto",
  161. deps = [":cloudprofiler_proto"],
  162. )
  163. php_grpc_library(
  164. name = "cloudprofiler_php_grpc",
  165. srcs = [":cloudprofiler_proto"],
  166. deps = [":cloudprofiler_php_proto"],
  167. )
  168. php_gapic_library(
  169. name = "cloudprofiler_php_gapic",
  170. srcs = [":cloudprofiler_proto_with_info"],
  171. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  172. deps = [
  173. ":cloudprofiler_php_grpc",
  174. ":cloudprofiler_php_proto",
  175. ],
  176. )
  177. # Open Source Packages
  178. php_gapic_assembly_pkg(
  179. name = "google-cloud-devtools-cloudprofiler-v2-php",
  180. deps = [
  181. ":cloudprofiler_php_gapic",
  182. ":cloudprofiler_php_grpc",
  183. ":cloudprofiler_php_proto",
  184. ],
  185. )
  186. ##############################################################################
  187. # Node.js
  188. ##############################################################################
  189. load(
  190. "@com_google_googleapis_imports//:imports.bzl",
  191. "nodejs_gapic_assembly_pkg",
  192. "nodejs_gapic_library",
  193. )
  194. nodejs_gapic_library(
  195. name = "cloudprofiler_nodejs_gapic",
  196. package_name = "@google-cloud/cloudprofiler",
  197. src = ":cloudprofiler_proto_with_info",
  198. extra_protoc_parameters = ["metadata"],
  199. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  200. package = "google.devtools.cloudprofiler.v2",
  201. service_yaml = "cloudprofiler_v2.yaml",
  202. deps = [],
  203. )
  204. nodejs_gapic_assembly_pkg(
  205. name = "devtools-cloudprofiler-v2-nodejs",
  206. deps = [
  207. ":cloudprofiler_nodejs_gapic",
  208. ":cloudprofiler_proto",
  209. ],
  210. )
  211. ##############################################################################
  212. # Ruby
  213. ##############################################################################
  214. load(
  215. "@com_google_googleapis_imports//:imports.bzl",
  216. "ruby_cloud_gapic_library",
  217. "ruby_gapic_assembly_pkg",
  218. "ruby_grpc_library",
  219. "ruby_proto_library",
  220. )
  221. ruby_proto_library(
  222. name = "cloudprofiler_ruby_proto",
  223. deps = [":cloudprofiler_proto"],
  224. )
  225. ruby_grpc_library(
  226. name = "cloudprofiler_ruby_grpc",
  227. srcs = [":cloudprofiler_proto"],
  228. deps = [":cloudprofiler_ruby_proto"],
  229. )
  230. ruby_cloud_gapic_library(
  231. name = "cloudprofiler_ruby_gapic",
  232. srcs = [":cloudprofiler_proto_with_info"],
  233. extra_protoc_parameters = [
  234. "ruby-cloud-gem-name=google-cloud-profiler-v2",
  235. "ruby-cloud-env-prefix=PROFILER",
  236. "ruby-cloud-product-url=https://cloud.google.com/profiler/",
  237. "ruby-cloud-api-id=cloudprofiler.googleapis.com",
  238. "ruby-cloud-api-shortname=cloudprofiler",
  239. ],
  240. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  241. ruby_cloud_description = "Cloud Profiler is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code.",
  242. ruby_cloud_title = "Cloud Profiler V2",
  243. deps = [
  244. ":cloudprofiler_ruby_grpc",
  245. ":cloudprofiler_ruby_proto",
  246. ],
  247. )
  248. # Open Source Packages
  249. ruby_gapic_assembly_pkg(
  250. name = "google-cloud-devtools-cloudprofiler-v2-ruby",
  251. deps = [
  252. ":cloudprofiler_ruby_gapic",
  253. ":cloudprofiler_ruby_grpc",
  254. ":cloudprofiler_ruby_proto",
  255. ],
  256. )
  257. ##############################################################################
  258. # C#
  259. ##############################################################################
  260. load(
  261. "@com_google_googleapis_imports//:imports.bzl",
  262. "csharp_gapic_assembly_pkg",
  263. "csharp_gapic_library",
  264. "csharp_grpc_library",
  265. "csharp_proto_library",
  266. )
  267. csharp_proto_library(
  268. name = "cloudprofiler_csharp_proto",
  269. deps = [":cloudprofiler_proto"],
  270. )
  271. csharp_grpc_library(
  272. name = "cloudprofiler_csharp_grpc",
  273. srcs = [":cloudprofiler_proto"],
  274. deps = [":cloudprofiler_csharp_proto"],
  275. )
  276. csharp_gapic_library(
  277. name = "cloudprofiler_csharp_gapic",
  278. srcs = [":cloudprofiler_proto_with_info"],
  279. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  280. grpc_service_config = "cloudprofiler_grpc_service_config.json",
  281. deps = [
  282. ":cloudprofiler_csharp_grpc",
  283. ":cloudprofiler_csharp_proto",
  284. ],
  285. )
  286. # Open Source Packages
  287. csharp_gapic_assembly_pkg(
  288. name = "google-cloud-devtools-cloudprofiler-v2-csharp",
  289. deps = [
  290. ":cloudprofiler_csharp_gapic",
  291. ":cloudprofiler_csharp_grpc",
  292. ":cloudprofiler_csharp_proto",
  293. ],
  294. )
  295. ##############################################################################
  296. # C++
  297. ##############################################################################
  298. # Put your C++ rules here