BUILD.bazel 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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 = "activity_proto",
  19. srcs = [
  20. "action.proto",
  21. "actor.proto",
  22. "common.proto",
  23. "drive_activity_service.proto",
  24. "query_drive_activity_request.proto",
  25. "query_drive_activity_response.proto",
  26. "target.proto",
  27. ],
  28. deps = [
  29. "//google/api:annotations_proto",
  30. "//google/api:client_proto",
  31. "@com_google_protobuf//:timestamp_proto",
  32. ],
  33. )
  34. proto_library_with_info(
  35. name = "activity_proto_with_info",
  36. deps = [
  37. ":activity_proto",
  38. "//google/cloud:common_resources_proto",
  39. ],
  40. )
  41. ##############################################################################
  42. # Java
  43. ##############################################################################
  44. load(
  45. "@com_google_googleapis_imports//:imports.bzl",
  46. "java_gapic_assembly_gradle_pkg",
  47. "java_gapic_library",
  48. "java_gapic_test",
  49. "java_grpc_library",
  50. "java_proto_library",
  51. )
  52. java_proto_library(
  53. name = "activity_java_proto",
  54. deps = [":activity_proto"],
  55. )
  56. java_grpc_library(
  57. name = "activity_java_grpc",
  58. srcs = [":activity_proto"],
  59. deps = [":activity_java_proto"],
  60. )
  61. java_gapic_library(
  62. name = "activity_java_gapic",
  63. srcs = [":activity_proto_with_info"],
  64. gapic_yaml = None,
  65. grpc_service_config = "driveactivity_grpc_service_config.json",
  66. rest_numeric_enums = False,
  67. service_yaml = "driveactivity_v2.yaml",
  68. test_deps = [
  69. ":activity_java_grpc",
  70. ],
  71. transport = "grpc+rest",
  72. deps = [
  73. ":activity_java_proto",
  74. "//google/api:api_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "activity_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.apps.drive.activity.v2.DriveActivityServiceClientHttpJsonTest",
  81. "com.google.apps.drive.activity.v2.DriveActivityServiceClientTest",
  82. ],
  83. runtime_deps = [":activity_java_gapic_test"],
  84. )
  85. # Open Source Packages
  86. java_gapic_assembly_gradle_pkg(
  87. name = "google-apps-drive-activity-v2-java",
  88. include_samples = True,
  89. transport = "grpc+rest",
  90. deps = [
  91. ":activity_java_gapic",
  92. ":activity_java_grpc",
  93. ":activity_java_proto",
  94. ":activity_proto",
  95. ],
  96. )
  97. ##############################################################################
  98. # Go
  99. ##############################################################################
  100. load(
  101. "@com_google_googleapis_imports//:imports.bzl",
  102. "go_gapic_assembly_pkg",
  103. "go_gapic_library",
  104. "go_proto_library",
  105. "go_test",
  106. )
  107. go_proto_library(
  108. name = "activity_go_proto",
  109. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  110. importpath = "google.golang.org/genproto/googleapis/apps/drive/activity/v2",
  111. protos = [":activity_proto"],
  112. deps = [
  113. "//google/api:annotations_go_proto",
  114. ],
  115. )
  116. go_gapic_library(
  117. name = "activity_go_gapic",
  118. srcs = [":activity_proto_with_info"],
  119. grpc_service_config = "driveactivity_grpc_service_config.json",
  120. importpath = "google.golang.org/google/apps/drive/activity/v2;activity",
  121. metadata = True,
  122. rest_numeric_enums = False,
  123. service_yaml = "driveactivity_v2.yaml",
  124. transport = "grpc+rest",
  125. deps = [
  126. ":activity_go_proto",
  127. ],
  128. )
  129. go_test(
  130. name = "activity_go_gapic_test",
  131. srcs = [":activity_go_gapic_srcjar_test"],
  132. embed = [":activity_go_gapic"],
  133. importpath = "google.golang.org/google/apps/drive/activity/v2",
  134. )
  135. # Open Source Packages
  136. go_gapic_assembly_pkg(
  137. name = "gapi-apps-drive-activity-v2-go",
  138. deps = [
  139. ":activity_go_gapic",
  140. ":activity_go_gapic_srcjar-metadata.srcjar",
  141. ":activity_go_gapic_srcjar-test.srcjar",
  142. ":activity_go_proto",
  143. ],
  144. )
  145. ##############################################################################
  146. # Python
  147. ##############################################################################
  148. load(
  149. "@com_google_googleapis_imports//:imports.bzl",
  150. "py_gapic_assembly_pkg",
  151. "py_gapic_library",
  152. "py_test",
  153. )
  154. py_gapic_library(
  155. name = "activity_py_gapic",
  156. srcs = [":activity_proto"],
  157. grpc_service_config = "driveactivity_grpc_service_config.json",
  158. rest_numeric_enums = False,
  159. service_yaml = "driveactivity_v2.yaml",
  160. transport = "grpc",
  161. deps = [
  162. ],
  163. )
  164. py_test(
  165. name = "activity_py_gapic_test",
  166. srcs = [
  167. "activity_py_gapic_pytest.py",
  168. "activity_py_gapic_test.py",
  169. ],
  170. legacy_create_init = False,
  171. deps = [":activity_py_gapic"],
  172. )
  173. # Open Source Packages
  174. py_gapic_assembly_pkg(
  175. name = "drive-activity-v2-py",
  176. deps = [
  177. ":activity_py_gapic",
  178. ],
  179. )
  180. ##############################################################################
  181. # PHP
  182. ##############################################################################
  183. load(
  184. "@com_google_googleapis_imports//:imports.bzl",
  185. "php_gapic_assembly_pkg",
  186. "php_gapic_library",
  187. "php_grpc_library",
  188. "php_proto_library",
  189. )
  190. php_proto_library(
  191. name = "activity_php_proto",
  192. deps = [":activity_proto"],
  193. )
  194. php_grpc_library(
  195. name = "activity_php_grpc",
  196. srcs = [":activity_proto"],
  197. deps = [":activity_php_proto"],
  198. )
  199. php_gapic_library(
  200. name = "activity_php_gapic",
  201. srcs = [":activity_proto_with_info"],
  202. grpc_service_config = "driveactivity_grpc_service_config.json",
  203. rest_numeric_enums = False,
  204. service_yaml = "driveactivity_v2.yaml",
  205. transport = "grpc+rest",
  206. deps = [
  207. ":activity_php_grpc",
  208. ":activity_php_proto",
  209. ],
  210. )
  211. # Open Source Packages
  212. php_gapic_assembly_pkg(
  213. name = "google-apps-drive-activity-v2-php",
  214. deps = [
  215. ":activity_php_gapic",
  216. ":activity_php_grpc",
  217. ":activity_php_proto",
  218. ],
  219. )
  220. ##############################################################################
  221. # Node.js
  222. ##############################################################################
  223. load(
  224. "@com_google_googleapis_imports//:imports.bzl",
  225. "nodejs_gapic_assembly_pkg",
  226. "nodejs_gapic_library",
  227. )
  228. nodejs_gapic_library(
  229. name = "activity_nodejs_gapic",
  230. package_name = "@google-cloud/drive-activity",
  231. src = ":activity_proto_with_info",
  232. extra_protoc_parameters = ["metadata"],
  233. grpc_service_config = "driveactivity_grpc_service_config.json",
  234. package = "google.apps.drive.activity.v2",
  235. rest_numeric_enums = False,
  236. service_yaml = "driveactivity_v2.yaml",
  237. transport = "grpc+rest",
  238. deps = [],
  239. )
  240. nodejs_gapic_assembly_pkg(
  241. name = "drive-activity-v2-nodejs",
  242. deps = [
  243. ":activity_nodejs_gapic",
  244. ":activity_proto",
  245. ],
  246. )
  247. ##############################################################################
  248. # Ruby
  249. ##############################################################################
  250. load(
  251. "@com_google_googleapis_imports//:imports.bzl",
  252. "ruby_cloud_gapic_library",
  253. "ruby_gapic_assembly_pkg",
  254. "ruby_grpc_library",
  255. "ruby_proto_library",
  256. )
  257. ruby_proto_library(
  258. name = "activity_ruby_proto",
  259. deps = [":activity_proto"],
  260. )
  261. ruby_grpc_library(
  262. name = "activity_ruby_grpc",
  263. srcs = [":activity_proto"],
  264. deps = [":activity_ruby_proto"],
  265. )
  266. ruby_cloud_gapic_library(
  267. name = "activity_ruby_gapic",
  268. srcs = [":activity_proto_with_info"],
  269. extra_protoc_parameters = ["ruby-cloud-gem-name=google-apps-drive-activity-v2"],
  270. grpc_service_config = "driveactivity_grpc_service_config.json",
  271. rest_numeric_enums = False,
  272. service_yaml = "driveactivity_v2.yaml",
  273. deps = [
  274. ":activity_ruby_grpc",
  275. ":activity_ruby_proto",
  276. ],
  277. )
  278. # Open Source Packages
  279. ruby_gapic_assembly_pkg(
  280. name = "google-apps-drive-activity-v2-ruby",
  281. deps = [
  282. ":activity_ruby_gapic",
  283. ":activity_ruby_grpc",
  284. ":activity_ruby_proto",
  285. ],
  286. )
  287. ##############################################################################
  288. # C#
  289. ##############################################################################
  290. load(
  291. "@com_google_googleapis_imports//:imports.bzl",
  292. "csharp_gapic_assembly_pkg",
  293. "csharp_gapic_library",
  294. "csharp_grpc_library",
  295. "csharp_proto_library",
  296. )
  297. csharp_proto_library(
  298. name = "activity_csharp_proto",
  299. deps = [":activity_proto"],
  300. )
  301. csharp_grpc_library(
  302. name = "activity_csharp_grpc",
  303. srcs = [":activity_proto"],
  304. deps = [":activity_csharp_proto"],
  305. )
  306. csharp_gapic_library(
  307. name = "activity_csharp_gapic",
  308. srcs = [":activity_proto_with_info"],
  309. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  310. grpc_service_config = "driveactivity_grpc_service_config.json",
  311. rest_numeric_enums = False,
  312. service_yaml = "driveactivity_v2.yaml",
  313. deps = [
  314. ":activity_csharp_grpc",
  315. ":activity_csharp_proto",
  316. ],
  317. )
  318. # Open Source Packages
  319. csharp_gapic_assembly_pkg(
  320. name = "google-apps-drive-activity-v2-csharp",
  321. deps = [
  322. ":activity_csharp_gapic",
  323. ":activity_csharp_grpc",
  324. ":activity_csharp_proto",
  325. ],
  326. )
  327. ##############################################################################
  328. # C++
  329. ##############################################################################
  330. # Put your C++ rules here