BUILD.bazel 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  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 = "channel_proto",
  19. srcs = [
  20. "channel_partner_links.proto",
  21. "common.proto",
  22. "customers.proto",
  23. "entitlements.proto",
  24. "offers.proto",
  25. "operations.proto",
  26. "products.proto",
  27. "reports_service.proto",
  28. "repricing.proto",
  29. "service.proto",
  30. "subscriber_event.proto",
  31. ],
  32. deps = [
  33. "//google/api:annotations_proto",
  34. "//google/api:client_proto",
  35. "//google/api:field_behavior_proto",
  36. "//google/api:resource_proto",
  37. "//google/longrunning:operations_proto",
  38. "//google/type:date_proto",
  39. "//google/type:datetime_proto",
  40. "//google/type:decimal_proto",
  41. "//google/type:money_proto",
  42. "//google/type:postal_address_proto",
  43. "@com_google_protobuf//:any_proto",
  44. "@com_google_protobuf//:empty_proto",
  45. "@com_google_protobuf//:field_mask_proto",
  46. "@com_google_protobuf//:timestamp_proto",
  47. ],
  48. )
  49. proto_library_with_info(
  50. name = "channel_proto_with_info",
  51. deps = [
  52. ":channel_proto",
  53. "//google/cloud:common_resources_proto",
  54. ],
  55. )
  56. ##############################################################################
  57. # Java
  58. ##############################################################################
  59. load(
  60. "@com_google_googleapis_imports//:imports.bzl",
  61. "java_gapic_assembly_gradle_pkg",
  62. "java_gapic_library",
  63. "java_gapic_test",
  64. "java_grpc_library",
  65. "java_proto_library",
  66. )
  67. java_proto_library(
  68. name = "channel_java_proto",
  69. deps = [":channel_proto"],
  70. )
  71. java_grpc_library(
  72. name = "channel_java_grpc",
  73. srcs = [":channel_proto"],
  74. deps = [":channel_java_proto"],
  75. )
  76. java_gapic_library(
  77. name = "channel_java_gapic",
  78. srcs = [":channel_proto_with_info"],
  79. gapic_yaml = None,
  80. grpc_service_config = "cloudchannel_grpc_service_config.json",
  81. rest_numeric_enums = False,
  82. service_yaml = "cloudchannel_v1.yaml",
  83. test_deps = [
  84. ":channel_java_grpc",
  85. ],
  86. transport = "grpc+rest",
  87. deps = [
  88. ":channel_java_proto",
  89. "//google/api:api_java_proto",
  90. ],
  91. )
  92. java_gapic_test(
  93. name = "channel_java_gapic_test_suite",
  94. test_classes = [
  95. "com.google.cloud.channel.v1.CloudChannelServiceClientHttpJsonTest",
  96. "com.google.cloud.channel.v1.CloudChannelServiceClientTest",
  97. ],
  98. runtime_deps = [":channel_java_gapic_test"],
  99. )
  100. # Open Source Packages
  101. java_gapic_assembly_gradle_pkg(
  102. name = "google-cloud-channel-v1-java",
  103. include_samples = True,
  104. transport = "grpc+rest",
  105. deps = [
  106. ":channel_java_gapic",
  107. ":channel_java_grpc",
  108. ":channel_java_proto",
  109. ":channel_proto",
  110. ],
  111. )
  112. ##############################################################################
  113. # Go
  114. ##############################################################################
  115. load(
  116. "@com_google_googleapis_imports//:imports.bzl",
  117. "go_gapic_assembly_pkg",
  118. "go_gapic_library",
  119. "go_proto_library",
  120. "go_test",
  121. )
  122. go_proto_library(
  123. name = "channel_go_proto",
  124. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  125. importpath = "google.golang.org/genproto/googleapis/cloud/channel/v1",
  126. protos = [":channel_proto"],
  127. deps = [
  128. "//google/api:annotations_go_proto",
  129. "//google/longrunning:longrunning_go_proto",
  130. "//google/type:date_go_proto",
  131. "//google/type:datetime_go_proto",
  132. "//google/type:decimal_go_proto",
  133. "//google/type:money_go_proto",
  134. "//google/type:postaladdress_go_proto",
  135. ],
  136. )
  137. go_gapic_library(
  138. name = "channel_go_gapic",
  139. srcs = [":channel_proto_with_info"],
  140. grpc_service_config = "cloudchannel_grpc_service_config.json",
  141. importpath = "cloud.google.com/go/channel/apiv1;channel",
  142. metadata = True,
  143. rest_numeric_enums = False,
  144. service_yaml = "cloudchannel_v1.yaml",
  145. transport = "grpc+rest",
  146. deps = [
  147. ":channel_go_proto",
  148. "//google/longrunning:longrunning_go_proto",
  149. "@com_google_cloud_go//longrunning:go_default_library",
  150. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  151. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  152. ],
  153. )
  154. go_test(
  155. name = "channel_go_gapic_test",
  156. srcs = [":channel_go_gapic_srcjar_test"],
  157. embed = [":channel_go_gapic"],
  158. importpath = "cloud.google.com/go/channel/apiv1",
  159. )
  160. # Open Source Packages
  161. go_gapic_assembly_pkg(
  162. name = "gapi-cloud-channel-v1-go",
  163. deps = [
  164. ":channel_go_gapic",
  165. ":channel_go_gapic_srcjar-metadata.srcjar",
  166. ":channel_go_gapic_srcjar-test.srcjar",
  167. ":channel_go_proto",
  168. ],
  169. )
  170. ##############################################################################
  171. # Python
  172. ##############################################################################
  173. load(
  174. "@com_google_googleapis_imports//:imports.bzl",
  175. "py_gapic_assembly_pkg",
  176. "py_gapic_library",
  177. "py_test",
  178. )
  179. py_gapic_library(
  180. name = "channel_py_gapic",
  181. srcs = [":channel_proto"],
  182. grpc_service_config = "cloudchannel_grpc_service_config.json",
  183. rest_numeric_enums = False,
  184. service_yaml = "cloudchannel_v1.yaml",
  185. transport = "grpc",
  186. )
  187. py_test(
  188. name = "channel_py_gapic_test",
  189. srcs = [
  190. "channel_py_gapic_pytest.py",
  191. "channel_py_gapic_test.py",
  192. ],
  193. legacy_create_init = False,
  194. deps = [":channel_py_gapic"],
  195. )
  196. # Open Source Packages
  197. py_gapic_assembly_pkg(
  198. name = "channel-v1-py",
  199. deps = [
  200. ":channel_py_gapic",
  201. ],
  202. )
  203. ##############################################################################
  204. # PHP
  205. ##############################################################################
  206. load(
  207. "@com_google_googleapis_imports//:imports.bzl",
  208. "php_gapic_assembly_pkg",
  209. "php_gapic_library",
  210. "php_grpc_library",
  211. "php_proto_library",
  212. )
  213. php_proto_library(
  214. name = "channel_php_proto",
  215. deps = [":channel_proto"],
  216. )
  217. php_grpc_library(
  218. name = "channel_php_grpc",
  219. srcs = [":channel_proto"],
  220. deps = [":channel_php_proto"],
  221. )
  222. php_gapic_library(
  223. name = "channel_php_gapic",
  224. srcs = [":channel_proto_with_info"],
  225. grpc_service_config = "cloudchannel_grpc_service_config.json",
  226. rest_numeric_enums = False,
  227. service_yaml = "cloudchannel_v1.yaml",
  228. transport = "grpc+rest",
  229. deps = [
  230. ":channel_php_grpc",
  231. ":channel_php_proto",
  232. ],
  233. )
  234. # Open Source Packages
  235. php_gapic_assembly_pkg(
  236. name = "google-cloud-channel-v1-php",
  237. deps = [
  238. ":channel_php_gapic",
  239. ":channel_php_grpc",
  240. ":channel_php_proto",
  241. ],
  242. )
  243. ##############################################################################
  244. # Node.js
  245. ##############################################################################
  246. load(
  247. "@com_google_googleapis_imports//:imports.bzl",
  248. "nodejs_gapic_assembly_pkg",
  249. "nodejs_gapic_library",
  250. )
  251. nodejs_gapic_library(
  252. name = "channel_nodejs_gapic",
  253. package_name = "@google-cloud/channel",
  254. src = ":channel_proto_with_info",
  255. extra_protoc_parameters = ["metadata"],
  256. grpc_service_config = "cloudchannel_grpc_service_config.json",
  257. package = "google.cloud.channel.v1",
  258. rest_numeric_enums = False,
  259. service_yaml = "cloudchannel_v1.yaml",
  260. transport = "grpc+rest",
  261. deps = [],
  262. )
  263. nodejs_gapic_assembly_pkg(
  264. name = "channel-v1-nodejs",
  265. deps = [
  266. ":channel_nodejs_gapic",
  267. ":channel_proto",
  268. ],
  269. )
  270. ##############################################################################
  271. # Ruby
  272. ##############################################################################
  273. load(
  274. "@com_google_googleapis_imports//:imports.bzl",
  275. "ruby_cloud_gapic_library",
  276. "ruby_gapic_assembly_pkg",
  277. "ruby_grpc_library",
  278. "ruby_proto_library",
  279. )
  280. ruby_proto_library(
  281. name = "channel_ruby_proto",
  282. deps = [":channel_proto"],
  283. )
  284. ruby_grpc_library(
  285. name = "channel_ruby_grpc",
  286. srcs = [":channel_proto"],
  287. deps = [":channel_ruby_proto"],
  288. )
  289. ruby_cloud_gapic_library(
  290. name = "channel_ruby_gapic",
  291. srcs = [":channel_proto_with_info"],
  292. extra_protoc_parameters = [
  293. "ruby-cloud-api-id=cloudchannel.googleapis.com",
  294. "ruby-cloud-api-shortname=cloudchannel",
  295. "ruby-cloud-env-prefix=CHANNEL",
  296. "ruby-cloud-gem-name=google-cloud-channel-v1",
  297. "ruby-cloud-product-url=https://cloud.google.com/channel",
  298. ],
  299. grpc_service_config = "cloudchannel_grpc_service_config.json",
  300. rest_numeric_enums = False,
  301. ruby_cloud_description = "You can use Channel Services to manage your relationships with your partners and your customers. Channel Services include a console and APIs to view and provision links between distributors and resellers, customers and entitlements.",
  302. ruby_cloud_title = "Cloud Channel V1",
  303. deps = [
  304. ":channel_ruby_grpc",
  305. ":channel_ruby_proto",
  306. ],
  307. )
  308. # Open Source Packages
  309. ruby_gapic_assembly_pkg(
  310. name = "google-cloud-channel-v1-ruby",
  311. deps = [
  312. ":channel_ruby_gapic",
  313. ":channel_ruby_grpc",
  314. ":channel_ruby_proto",
  315. ],
  316. )
  317. ##############################################################################
  318. # C#
  319. ##############################################################################
  320. load(
  321. "@com_google_googleapis_imports//:imports.bzl",
  322. "csharp_gapic_assembly_pkg",
  323. "csharp_gapic_library",
  324. "csharp_grpc_library",
  325. "csharp_proto_library",
  326. )
  327. csharp_proto_library(
  328. name = "channel_csharp_proto",
  329. deps = [":channel_proto"],
  330. )
  331. csharp_grpc_library(
  332. name = "channel_csharp_grpc",
  333. srcs = [":channel_proto"],
  334. deps = [":channel_csharp_proto"],
  335. )
  336. csharp_gapic_library(
  337. name = "channel_csharp_gapic",
  338. srcs = [":channel_proto_with_info"],
  339. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  340. grpc_service_config = "cloudchannel_grpc_service_config.json",
  341. rest_numeric_enums = False,
  342. service_yaml = "cloudchannel_v1.yaml",
  343. deps = [
  344. ":channel_csharp_grpc",
  345. ":channel_csharp_proto",
  346. ],
  347. )
  348. # Open Source Packages
  349. csharp_gapic_assembly_pkg(
  350. name = "google-cloud-channel-v1-csharp",
  351. deps = [
  352. ":channel_csharp_gapic",
  353. ":channel_csharp_grpc",
  354. ":channel_csharp_proto",
  355. ],
  356. )
  357. ##############################################################################
  358. # C++
  359. ##############################################################################
  360. load(
  361. "@com_google_googleapis_imports//:imports.bzl",
  362. "cc_grpc_library",
  363. "cc_proto_library",
  364. )
  365. cc_proto_library(
  366. name = "channel_cc_proto",
  367. deps = [":channel_proto"],
  368. )
  369. cc_grpc_library(
  370. name = "channel_cc_grpc",
  371. srcs = [":channel_proto"],
  372. grpc_only = True,
  373. deps = [":channel_cc_proto"],
  374. )