BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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 = "storageinsights_proto",
  19. srcs = [
  20. "storageinsights.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/rpc:status_proto",
  28. "//google/type:date_proto",
  29. "//google/type:datetime_proto",
  30. "@com_google_protobuf//:empty_proto",
  31. "@com_google_protobuf//:field_mask_proto",
  32. "@com_google_protobuf//:timestamp_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "storageinsights_proto_with_info",
  37. deps = [
  38. ":storageinsights_proto",
  39. "//google/cloud:common_resources_proto",
  40. "//google/cloud/location:location_proto",
  41. ],
  42. )
  43. ##############################################################################
  44. # Java
  45. ##############################################################################
  46. load(
  47. "@com_google_googleapis_imports//:imports.bzl",
  48. "java_gapic_assembly_gradle_pkg",
  49. "java_gapic_library",
  50. "java_gapic_test",
  51. "java_grpc_library",
  52. "java_proto_library",
  53. )
  54. java_proto_library(
  55. name = "storageinsights_java_proto",
  56. deps = [":storageinsights_proto"],
  57. )
  58. java_grpc_library(
  59. name = "storageinsights_java_grpc",
  60. srcs = [":storageinsights_proto"],
  61. deps = [":storageinsights_java_proto"],
  62. )
  63. java_gapic_library(
  64. name = "storageinsights_java_gapic",
  65. srcs = [":storageinsights_proto_with_info"],
  66. gapic_yaml = None,
  67. grpc_service_config = "storageinsights_grpc_service_config.json",
  68. rest_numeric_enums = False,
  69. service_yaml = "storageinsights_v1.yaml",
  70. test_deps = [
  71. ":storageinsights_java_grpc",
  72. "//google/cloud/location:location_java_grpc",
  73. ],
  74. transport = "grpc+rest",
  75. deps = [
  76. ":storageinsights_java_proto",
  77. "//google/api:api_java_proto",
  78. "//google/cloud/location:location_java_proto",
  79. ],
  80. )
  81. java_gapic_test(
  82. name = "storageinsights_java_gapic_test_suite",
  83. test_classes = [
  84. "com.google.cloud.storageinsights.v1.StorageInsightsClientHttpJsonTest",
  85. "com.google.cloud.storageinsights.v1.StorageInsightsClientTest",
  86. ],
  87. runtime_deps = [":storageinsights_java_gapic_test"],
  88. )
  89. # Open Source Packages
  90. java_gapic_assembly_gradle_pkg(
  91. name = "google-cloud-storageinsights-v1-java",
  92. include_samples = True,
  93. transport = "grpc+rest",
  94. deps = [
  95. ":storageinsights_java_gapic",
  96. ":storageinsights_java_grpc",
  97. ":storageinsights_java_proto",
  98. ":storageinsights_proto",
  99. ],
  100. )
  101. ##############################################################################
  102. # Go
  103. ##############################################################################
  104. load(
  105. "@com_google_googleapis_imports//:imports.bzl",
  106. "go_gapic_assembly_pkg",
  107. "go_gapic_library",
  108. "go_proto_library",
  109. "go_test",
  110. )
  111. go_proto_library(
  112. name = "storageinsights_go_proto",
  113. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  114. importpath = "google.golang.org/genproto/googleapis/cloud/storageinsights/v1",
  115. protos = [":storageinsights_proto"],
  116. deps = [
  117. "//google/api:annotations_go_proto",
  118. "//google/rpc:status_go_proto",
  119. "//google/type:date_go_proto",
  120. "//google/type:datetime_go_proto",
  121. ],
  122. )
  123. go_gapic_library(
  124. name = "storageinsights_go_gapic",
  125. srcs = [":storageinsights_proto_with_info"],
  126. grpc_service_config = "storageinsights_grpc_service_config.json",
  127. importpath = "cloud.google.com/go/storageinsights/apiv1;storageinsights",
  128. metadata = True,
  129. rest_numeric_enums = False,
  130. service_yaml = "storageinsights_v1.yaml",
  131. transport = "grpc+rest",
  132. deps = [
  133. ":storageinsights_go_proto",
  134. "//google/cloud/location:location_go_proto",
  135. "//google/iam/v1:iam_go_proto", ## manual change
  136. "//google/longrunning:longrunning_go_proto", ## manual change
  137. ],
  138. )
  139. go_test(
  140. name = "storageinsights_go_gapic_test",
  141. srcs = [":storageinsights_go_gapic_srcjar_test"],
  142. embed = [":storageinsights_go_gapic"],
  143. importpath = "cloud.google.com/go/storageinsights/apiv1",
  144. )
  145. # Open Source Packages
  146. go_gapic_assembly_pkg(
  147. name = "gapi-cloud-storageinsights-v1-go",
  148. deps = [
  149. ":storageinsights_go_gapic",
  150. ":storageinsights_go_gapic_srcjar-metadata.srcjar",
  151. ":storageinsights_go_gapic_srcjar-test.srcjar",
  152. ":storageinsights_go_proto",
  153. ],
  154. )
  155. ##############################################################################
  156. # Python
  157. ##############################################################################
  158. load(
  159. "@com_google_googleapis_imports//:imports.bzl",
  160. "py_gapic_assembly_pkg",
  161. "py_gapic_library",
  162. "py_test",
  163. )
  164. py_gapic_library(
  165. name = "storageinsights_py_gapic",
  166. srcs = [":storageinsights_proto"],
  167. grpc_service_config = "storageinsights_grpc_service_config.json",
  168. rest_numeric_enums = False,
  169. service_yaml = "storageinsights_v1.yaml",
  170. transport = "grpc+rest",
  171. deps = [
  172. ],
  173. )
  174. py_test(
  175. name = "storageinsights_py_gapic_test",
  176. srcs = [
  177. "storageinsights_py_gapic_pytest.py",
  178. "storageinsights_py_gapic_test.py",
  179. ],
  180. legacy_create_init = False,
  181. deps = [":storageinsights_py_gapic"],
  182. )
  183. # Open Source Packages
  184. py_gapic_assembly_pkg(
  185. name = "storageinsights-v1-py",
  186. deps = [
  187. ":storageinsights_py_gapic",
  188. ],
  189. )
  190. ##############################################################################
  191. # PHP
  192. ##############################################################################
  193. load(
  194. "@com_google_googleapis_imports//:imports.bzl",
  195. "php_gapic_assembly_pkg",
  196. "php_gapic_library",
  197. "php_grpc_library",
  198. "php_proto_library",
  199. )
  200. php_proto_library(
  201. name = "storageinsights_php_proto",
  202. deps = [":storageinsights_proto"],
  203. )
  204. php_grpc_library(
  205. name = "storageinsights_php_grpc",
  206. srcs = [":storageinsights_proto"],
  207. deps = [":storageinsights_php_proto"],
  208. )
  209. php_gapic_library(
  210. name = "storageinsights_php_gapic",
  211. srcs = [":storageinsights_proto_with_info"],
  212. grpc_service_config = "storageinsights_grpc_service_config.json",
  213. rest_numeric_enums = False,
  214. service_yaml = "storageinsights_v1.yaml",
  215. transport = "grpc+rest",
  216. deps = [
  217. ":storageinsights_php_grpc",
  218. ":storageinsights_php_proto",
  219. ],
  220. )
  221. # Open Source Packages
  222. php_gapic_assembly_pkg(
  223. name = "google-cloud-storageinsights-v1-php",
  224. deps = [
  225. ":storageinsights_php_gapic",
  226. ":storageinsights_php_grpc",
  227. ":storageinsights_php_proto",
  228. ],
  229. )
  230. ##############################################################################
  231. # Node.js
  232. ##############################################################################
  233. load(
  234. "@com_google_googleapis_imports//:imports.bzl",
  235. "nodejs_gapic_assembly_pkg",
  236. "nodejs_gapic_library",
  237. )
  238. nodejs_gapic_library(
  239. name = "storageinsights_nodejs_gapic",
  240. package_name = "@google-cloud/storageinsights",
  241. src = ":storageinsights_proto_with_info",
  242. extra_protoc_parameters = ["metadata"],
  243. grpc_service_config = "storageinsights_grpc_service_config.json",
  244. package = "google.cloud.storageinsights.v1",
  245. rest_numeric_enums = False,
  246. service_yaml = "storageinsights_v1.yaml",
  247. transport = "grpc+rest",
  248. deps = [],
  249. )
  250. nodejs_gapic_assembly_pkg(
  251. name = "storageinsights-v1-nodejs",
  252. deps = [
  253. ":storageinsights_nodejs_gapic",
  254. ":storageinsights_proto",
  255. ],
  256. )
  257. ##############################################################################
  258. # Ruby
  259. ##############################################################################
  260. load(
  261. "@com_google_googleapis_imports//:imports.bzl",
  262. "ruby_cloud_gapic_library",
  263. "ruby_gapic_assembly_pkg",
  264. "ruby_grpc_library",
  265. "ruby_proto_library",
  266. )
  267. ruby_proto_library(
  268. name = "storageinsights_ruby_proto",
  269. deps = [":storageinsights_proto"],
  270. )
  271. ruby_grpc_library(
  272. name = "storageinsights_ruby_grpc",
  273. srcs = [":storageinsights_proto"],
  274. deps = [":storageinsights_ruby_proto"],
  275. )
  276. ruby_cloud_gapic_library(
  277. name = "storageinsights_ruby_gapic",
  278. srcs = [":storageinsights_proto_with_info"],
  279. extra_protoc_parameters = [
  280. "ruby-cloud-gem-name=google-cloud-storageinsights-v1",
  281. ],
  282. grpc_service_config = "storageinsights_grpc_service_config.json",
  283. rest_numeric_enums = False,
  284. service_yaml = "storageinsights_v1.yaml",
  285. deps = [
  286. ":storageinsights_ruby_grpc",
  287. ":storageinsights_ruby_proto",
  288. ],
  289. )
  290. # Open Source Packages
  291. ruby_gapic_assembly_pkg(
  292. name = "google-cloud-storageinsights-v1-ruby",
  293. deps = [
  294. ":storageinsights_ruby_gapic",
  295. ":storageinsights_ruby_grpc",
  296. ":storageinsights_ruby_proto",
  297. ],
  298. )
  299. ##############################################################################
  300. # C#
  301. ##############################################################################
  302. load(
  303. "@com_google_googleapis_imports//:imports.bzl",
  304. "csharp_gapic_assembly_pkg",
  305. "csharp_gapic_library",
  306. "csharp_grpc_library",
  307. "csharp_proto_library",
  308. )
  309. csharp_proto_library(
  310. name = "storageinsights_csharp_proto",
  311. deps = [":storageinsights_proto"],
  312. )
  313. csharp_grpc_library(
  314. name = "storageinsights_csharp_grpc",
  315. srcs = [":storageinsights_proto"],
  316. deps = [":storageinsights_csharp_proto"],
  317. )
  318. csharp_gapic_library(
  319. name = "storageinsights_csharp_gapic",
  320. srcs = [":storageinsights_proto_with_info"],
  321. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  322. grpc_service_config = "storageinsights_grpc_service_config.json",
  323. rest_numeric_enums = False,
  324. service_yaml = "storageinsights_v1.yaml",
  325. deps = [
  326. ":storageinsights_csharp_grpc",
  327. ":storageinsights_csharp_proto",
  328. ],
  329. )
  330. # Open Source Packages
  331. csharp_gapic_assembly_pkg(
  332. name = "google-cloud-storageinsights-v1-csharp",
  333. deps = [
  334. ":storageinsights_csharp_gapic",
  335. ":storageinsights_csharp_grpc",
  336. ":storageinsights_csharp_proto",
  337. ],
  338. )
  339. ##############################################################################
  340. # C++
  341. ##############################################################################
  342. load(
  343. "@com_google_googleapis_imports//:imports.bzl",
  344. "cc_grpc_library",
  345. "cc_proto_library",
  346. )
  347. cc_proto_library(
  348. name = "storageinsights_cc_proto",
  349. deps = [":storageinsights_proto"],
  350. )
  351. cc_grpc_library(
  352. name = "storageinsights_cc_grpc",
  353. srcs = [":storageinsights_proto"],
  354. grpc_only = True,
  355. deps = [":storageinsights_cc_proto"],
  356. )