BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  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 = "procurement_proto",
  19. srcs = [
  20. "order.proto",
  21. "procurement_service.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:client_proto",
  26. "//google/api:field_behavior_proto",
  27. "//google/api:resource_proto",
  28. "//google/longrunning:operations_proto",
  29. "@com_google_protobuf//:timestamp_proto",
  30. ],
  31. )
  32. proto_library_with_info(
  33. name = "procurement_proto_with_info",
  34. deps = [
  35. ":procurement_proto",
  36. "//google/cloud:common_resources_proto",
  37. ],
  38. )
  39. ##############################################################################
  40. # Java
  41. ##############################################################################
  42. load(
  43. "@com_google_googleapis_imports//:imports.bzl",
  44. "java_gapic_assembly_gradle_pkg",
  45. "java_gapic_library",
  46. "java_gapic_test",
  47. "java_grpc_library",
  48. "java_proto_library",
  49. )
  50. java_proto_library(
  51. name = "procurement_java_proto",
  52. deps = [":procurement_proto"],
  53. )
  54. java_grpc_library(
  55. name = "procurement_java_grpc",
  56. srcs = [":procurement_proto"],
  57. deps = [":procurement_java_proto"],
  58. )
  59. java_gapic_library(
  60. name = "procurement_java_gapic",
  61. srcs = [":procurement_proto_with_info"],
  62. gapic_yaml = None,
  63. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  64. rest_numeric_enums = False,
  65. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  66. test_deps = [
  67. ":procurement_java_grpc",
  68. ],
  69. transport = "grpc+rest",
  70. deps = [
  71. ":procurement_java_proto",
  72. "//google/api:api_java_proto",
  73. ],
  74. )
  75. java_gapic_test(
  76. name = "procurement_java_gapic_test_suite",
  77. test_classes = [
  78. "com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientHttpJsonTest",
  79. "com.google.cloud.commerce.consumer.procurement.v1alpha1.ConsumerProcurementServiceClientTest",
  80. ],
  81. runtime_deps = [":procurement_java_gapic_test"],
  82. )
  83. # Open Source Packages
  84. java_gapic_assembly_gradle_pkg(
  85. name = "google-cloud-consumer-procurement-v1alpha1-java",
  86. include_samples = True,
  87. transport = "grpc+rest",
  88. deps = [
  89. ":procurement_java_gapic",
  90. ":procurement_java_grpc",
  91. ":procurement_java_proto",
  92. ":procurement_proto",
  93. ],
  94. )
  95. ##############################################################################
  96. # Go
  97. ##############################################################################
  98. load(
  99. "@com_google_googleapis_imports//:imports.bzl",
  100. "go_gapic_assembly_pkg",
  101. "go_gapic_library",
  102. "go_proto_library",
  103. "go_test",
  104. )
  105. go_proto_library(
  106. name = "procurement_go_proto",
  107. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  108. importpath = "google.golang.org/genproto/googleapis/cloud/commerce/consumer/procurement/v1alpha1",
  109. protos = [":procurement_proto"],
  110. deps = [
  111. "//google/api:annotations_go_proto",
  112. "//google/longrunning:longrunning_go_proto",
  113. ],
  114. )
  115. go_gapic_library(
  116. name = "procurement_go_gapic",
  117. srcs = [":procurement_proto_with_info"],
  118. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  119. importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1;procurement",
  120. metadata = True,
  121. rest_numeric_enums = False,
  122. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  123. transport = "grpc+rest",
  124. deps = [
  125. ":procurement_go_proto",
  126. "//google/longrunning:longrunning_go_proto",
  127. "@com_google_cloud_go//longrunning:go_default_library",
  128. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  129. ],
  130. )
  131. go_test(
  132. name = "procurement_go_gapic_test",
  133. srcs = [":procurement_go_gapic_srcjar_test"],
  134. embed = [":procurement_go_gapic"],
  135. importpath = "cloud.google.com/go/commerce/consumer/procurement/apiv1alpha1",
  136. )
  137. # Open Source Packages
  138. go_gapic_assembly_pkg(
  139. name = "gapi-cloud-consumer-procurement-v1alpha1-go",
  140. deps = [
  141. ":procurement_go_gapic",
  142. ":procurement_go_gapic_srcjar-metadata.srcjar",
  143. ":procurement_go_gapic_srcjar-test.srcjar",
  144. ":procurement_go_proto",
  145. ],
  146. )
  147. ##############################################################################
  148. # Python
  149. ##############################################################################
  150. load(
  151. "@com_google_googleapis_imports//:imports.bzl",
  152. "py_gapic_assembly_pkg",
  153. "py_gapic_library",
  154. "py_test",
  155. )
  156. py_gapic_library(
  157. name = "procurement_py_gapic",
  158. srcs = [":procurement_proto"],
  159. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  160. rest_numeric_enums = False,
  161. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  162. transport = "grpc",
  163. )
  164. py_test(
  165. name = "procurement_py_gapic_test",
  166. srcs = [
  167. "procurement_py_gapic_pytest.py",
  168. "procurement_py_gapic_test.py",
  169. ],
  170. legacy_create_init = False,
  171. deps = [":procurement_py_gapic"],
  172. )
  173. # Open Source Packages
  174. py_gapic_assembly_pkg(
  175. name = "consumer-procurement-v1alpha1-py",
  176. deps = [
  177. ":procurement_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 = "procurement_php_proto",
  192. deps = [":procurement_proto"],
  193. )
  194. php_grpc_library(
  195. name = "procurement_php_grpc",
  196. srcs = [":procurement_proto"],
  197. deps = [":procurement_php_proto"],
  198. )
  199. php_gapic_library(
  200. name = "procurement_php_gapic",
  201. srcs = [":procurement_proto_with_info"],
  202. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  203. rest_numeric_enums = False,
  204. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  205. transport = "grpc+rest",
  206. deps = [
  207. ":procurement_php_grpc",
  208. ":procurement_php_proto",
  209. ],
  210. )
  211. # Open Source Packages
  212. php_gapic_assembly_pkg(
  213. name = "google-cloud-consumer-procurement-v1alpha1-php",
  214. deps = [
  215. ":procurement_php_gapic",
  216. ":procurement_php_grpc",
  217. ":procurement_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 = "procurement_nodejs_gapic",
  230. package_name = "@google-cloud/procurement",
  231. src = ":procurement_proto_with_info",
  232. extra_protoc_parameters = ["metadata"],
  233. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  234. package = "google.cloud.commerce.consumer.procurement.v1alpha1",
  235. rest_numeric_enums = False,
  236. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  237. transport = "grpc+rest",
  238. deps = [],
  239. )
  240. nodejs_gapic_assembly_pkg(
  241. name = "consumer-procurement-v1alpha1-nodejs",
  242. deps = [
  243. ":procurement_nodejs_gapic",
  244. ":procurement_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 = "procurement_ruby_proto",
  259. deps = [":procurement_proto"],
  260. )
  261. ruby_grpc_library(
  262. name = "procurement_ruby_grpc",
  263. srcs = [":procurement_proto"],
  264. deps = [":procurement_ruby_proto"],
  265. )
  266. ruby_cloud_gapic_library(
  267. name = "procurement_ruby_gapic",
  268. srcs = [":procurement_proto_with_info"],
  269. extra_protoc_parameters = [
  270. "ruby-cloud-gem-name=google-cloud-consumer-procurement-v1alpha1",
  271. ],
  272. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  273. rest_numeric_enums = False,
  274. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  275. deps = [
  276. ":procurement_ruby_grpc",
  277. ":procurement_ruby_proto",
  278. ],
  279. )
  280. # Open Source Packages
  281. ruby_gapic_assembly_pkg(
  282. name = "google-cloud-consumer-procurement-v1alpha1-ruby",
  283. deps = [
  284. ":procurement_ruby_gapic",
  285. ":procurement_ruby_grpc",
  286. ":procurement_ruby_proto",
  287. ],
  288. )
  289. ##############################################################################
  290. # C#
  291. ##############################################################################
  292. load(
  293. "@com_google_googleapis_imports//:imports.bzl",
  294. "csharp_gapic_assembly_pkg",
  295. "csharp_gapic_library",
  296. "csharp_grpc_library",
  297. "csharp_proto_library",
  298. )
  299. csharp_proto_library(
  300. name = "procurement_csharp_proto",
  301. deps = [":procurement_proto"],
  302. )
  303. csharp_grpc_library(
  304. name = "procurement_csharp_grpc",
  305. srcs = [":procurement_proto"],
  306. deps = [":procurement_csharp_proto"],
  307. )
  308. csharp_gapic_library(
  309. name = "procurement_csharp_gapic",
  310. srcs = [":procurement_proto_with_info"],
  311. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  312. grpc_service_config = "commerceconsumerprocurement_grpc_service_config.json",
  313. rest_numeric_enums = False,
  314. service_yaml = "cloudcommerceconsumerprocurement_v1alpha1.yaml",
  315. deps = [
  316. ":procurement_csharp_grpc",
  317. ":procurement_csharp_proto",
  318. ],
  319. )
  320. # Open Source Packages
  321. csharp_gapic_assembly_pkg(
  322. name = "google-cloud-consumer-procurement-v1alpha1-csharp",
  323. deps = [
  324. ":procurement_csharp_gapic",
  325. ":procurement_csharp_grpc",
  326. ":procurement_csharp_proto",
  327. ],
  328. )
  329. ##############################################################################
  330. # C++
  331. ##############################################################################
  332. load(
  333. "@com_google_googleapis_imports//:imports.bzl",
  334. "cc_grpc_library",
  335. "cc_proto_library",
  336. )
  337. cc_proto_library(
  338. name = "procurement_cc_proto",
  339. deps = [":procurement_proto"],
  340. )
  341. cc_grpc_library(
  342. name = "procurement_cc_grpc",
  343. srcs = [":procurement_proto"],
  344. grpc_only = True,
  345. deps = [":procurement_cc_proto"],
  346. )