BUILD.bazel 12 KB

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