BUILD.bazel 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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. "service.proto",
  28. "subscriber_event.proto",
  29. ],
  30. deps = [
  31. "//google/api:annotations_proto",
  32. "//google/api:client_proto",
  33. "//google/api:field_behavior_proto",
  34. "//google/api:resource_proto",
  35. "//google/longrunning:operations_proto",
  36. "//google/type:money_proto",
  37. "//google/type:postal_address_proto",
  38. "@com_google_protobuf//:any_proto",
  39. "@com_google_protobuf//:empty_proto",
  40. "@com_google_protobuf//:field_mask_proto",
  41. "@com_google_protobuf//:timestamp_proto",
  42. "@com_google_protobuf//:wrappers_proto",
  43. ],
  44. )
  45. proto_library_with_info(
  46. name = "channel_proto_with_info",
  47. deps = [
  48. ":channel_proto",
  49. "//google/cloud:common_resources_proto",
  50. ],
  51. )
  52. ##############################################################################
  53. # Java
  54. ##############################################################################
  55. load(
  56. "@com_google_googleapis_imports//:imports.bzl",
  57. "java_gapic_assembly_gradle_pkg",
  58. "java_gapic_library",
  59. "java_gapic_test",
  60. "java_grpc_library",
  61. "java_proto_library",
  62. )
  63. java_proto_library(
  64. name = "channel_java_proto",
  65. deps = [":channel_proto"],
  66. )
  67. java_grpc_library(
  68. name = "channel_java_grpc",
  69. srcs = [":channel_proto"],
  70. deps = [":channel_java_proto"],
  71. )
  72. java_gapic_library(
  73. name = "channel_java_gapic",
  74. srcs = [":channel_proto_with_info"],
  75. grpc_service_config = "cloudchannel_grpc_service_config.json",
  76. test_deps = [
  77. ":channel_java_grpc",
  78. ],
  79. deps = [
  80. ":channel_java_proto",
  81. ],
  82. )
  83. java_gapic_test(
  84. name = "channel_java_gapic_test_suite",
  85. test_classes = [
  86. ],
  87. runtime_deps = [":channel_java_gapic_test"],
  88. )
  89. # Open Source Packages
  90. java_gapic_assembly_gradle_pkg(
  91. name = "google-cloud-channel-v1-java",
  92. deps = [
  93. ":channel_java_gapic",
  94. ":channel_java_grpc",
  95. ":channel_java_proto",
  96. ":channel_proto",
  97. ],
  98. )
  99. ##############################################################################
  100. # Go
  101. ##############################################################################
  102. load(
  103. "@com_google_googleapis_imports//:imports.bzl",
  104. "go_gapic_assembly_pkg",
  105. "go_gapic_library",
  106. "go_proto_library",
  107. "go_test",
  108. )
  109. go_proto_library(
  110. name = "channel_go_proto",
  111. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  112. importpath = "google.golang.org/genproto/googleapis/cloud/channel/v1",
  113. protos = [":channel_proto"],
  114. deps = [
  115. "//google/api:annotations_go_proto",
  116. "//google/longrunning:longrunning_go_proto",
  117. "//google/type:money_go_proto",
  118. "//google/type:postaladdress_go_proto",
  119. ],
  120. )
  121. go_gapic_library(
  122. name = "channel_go_gapic",
  123. srcs = [":channel_proto_with_info"],
  124. grpc_service_config = "cloudchannel_grpc_service_config.json",
  125. importpath = "cloud.google.com/go/channel/apiv1;channel",
  126. service_yaml = "cloudchannel_v1.yaml",
  127. deps = [
  128. ":channel_go_proto",
  129. "//google/longrunning:longrunning_go_proto",
  130. "@com_google_cloud_go//longrunning:go_default_library",
  131. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  132. "@io_bazel_rules_go//proto/wkt:any_go_proto",
  133. ],
  134. )
  135. go_test(
  136. name = "channel_go_gapic_test",
  137. srcs = [":channel_go_gapic_srcjar_test"],
  138. embed = [":channel_go_gapic"],
  139. importpath = "cloud.google.com/go/channel/apiv1",
  140. )
  141. # Open Source Packages
  142. go_gapic_assembly_pkg(
  143. name = "gapi-cloud-channel-v1-go",
  144. deps = [
  145. ":channel_go_gapic",
  146. ":channel_go_gapic_srcjar-test.srcjar",
  147. ":channel_go_proto",
  148. ],
  149. )
  150. ##############################################################################
  151. # Python
  152. ##############################################################################
  153. load(
  154. "@com_google_googleapis_imports//:imports.bzl",
  155. "py_gapic_assembly_pkg",
  156. "py_gapic_library",
  157. )
  158. py_gapic_library(
  159. name = "channel_py_gapic",
  160. srcs = [":channel_proto"],
  161. grpc_service_config = "cloudchannel_grpc_service_config.json",
  162. )
  163. # Open Source Packages
  164. py_gapic_assembly_pkg(
  165. name = "channel-v1-py",
  166. deps = [
  167. ":channel_py_gapic",
  168. ],
  169. )
  170. ##############################################################################
  171. # PHP
  172. ##############################################################################
  173. load(
  174. "@com_google_googleapis_imports//:imports.bzl",
  175. "php_gapic_assembly_pkg",
  176. "php_gapic_library",
  177. "php_grpc_library",
  178. "php_proto_library",
  179. )
  180. php_proto_library(
  181. name = "channel_php_proto",
  182. deps = [":channel_proto"],
  183. )
  184. php_grpc_library(
  185. name = "channel_php_grpc",
  186. srcs = [":channel_proto"],
  187. deps = [":channel_php_proto"],
  188. )
  189. php_gapic_library(
  190. name = "channel_php_gapic",
  191. srcs = [":channel_proto_with_info"],
  192. grpc_service_config = "cloudchannel_grpc_service_config.json",
  193. service_yaml = "cloudchannel_v1.yaml",
  194. deps = [
  195. ":channel_php_grpc",
  196. ":channel_php_proto",
  197. ],
  198. )
  199. # Open Source Packages
  200. php_gapic_assembly_pkg(
  201. name = "google-cloud-channel-v1-php",
  202. deps = [
  203. ":channel_php_gapic",
  204. ":channel_php_grpc",
  205. ":channel_php_proto",
  206. ],
  207. )
  208. ##############################################################################
  209. # Node.js
  210. ##############################################################################
  211. load(
  212. "@com_google_googleapis_imports//:imports.bzl",
  213. "nodejs_gapic_assembly_pkg",
  214. "nodejs_gapic_library",
  215. )
  216. nodejs_gapic_library(
  217. name = "channel_nodejs_gapic",
  218. package_name = "@google-cloud/channel",
  219. src = ":channel_proto_with_info",
  220. extra_protoc_parameters = ["metadata"],
  221. grpc_service_config = "cloudchannel_grpc_service_config.json",
  222. package = "google.cloud.channel.v1",
  223. service_yaml = "cloudchannel_v1.yaml",
  224. deps = [],
  225. )
  226. nodejs_gapic_assembly_pkg(
  227. name = "channel-v1-nodejs",
  228. deps = [
  229. ":channel_nodejs_gapic",
  230. ":channel_proto",
  231. ],
  232. )
  233. ##############################################################################
  234. # Ruby
  235. ##############################################################################
  236. load(
  237. "@com_google_googleapis_imports//:imports.bzl",
  238. "ruby_cloud_gapic_library",
  239. "ruby_gapic_assembly_pkg",
  240. "ruby_grpc_library",
  241. "ruby_proto_library",
  242. )
  243. ruby_proto_library(
  244. name = "channel_ruby_proto",
  245. deps = [":channel_proto"],
  246. )
  247. ruby_grpc_library(
  248. name = "channel_ruby_grpc",
  249. srcs = [":channel_proto"],
  250. deps = [":channel_ruby_proto"],
  251. )
  252. ruby_cloud_gapic_library(
  253. name = "channel_ruby_gapic",
  254. srcs = [":channel_proto_with_info"],
  255. extra_protoc_parameters = [
  256. "ruby-cloud-gem-name=google-cloud-channel-v1",
  257. "ruby-cloud-env-prefix=CHANNEL",
  258. "ruby-cloud-product-url=https://cloud.google.com/channel",
  259. "ruby-cloud-api-id=cloudchannel.googleapis.com",
  260. "ruby-cloud-api-shortname=cloudchannel",
  261. ],
  262. grpc_service_config = "cloudchannel_grpc_service_config.json",
  263. 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.",
  264. ruby_cloud_title = "Cloud Channel V1",
  265. deps = [
  266. ":channel_ruby_grpc",
  267. ":channel_ruby_proto",
  268. ],
  269. )
  270. # Open Source Packages
  271. ruby_gapic_assembly_pkg(
  272. name = "google-cloud-channel-v1-ruby",
  273. deps = [
  274. ":channel_ruby_gapic",
  275. ":channel_ruby_grpc",
  276. ":channel_ruby_proto",
  277. ],
  278. )
  279. ##############################################################################
  280. # C#
  281. ##############################################################################
  282. load(
  283. "@com_google_googleapis_imports//:imports.bzl",
  284. "csharp_gapic_assembly_pkg",
  285. "csharp_gapic_library",
  286. "csharp_grpc_library",
  287. "csharp_proto_library",
  288. )
  289. csharp_proto_library(
  290. name = "channel_csharp_proto",
  291. deps = [":channel_proto"],
  292. )
  293. csharp_grpc_library(
  294. name = "channel_csharp_grpc",
  295. srcs = [":channel_proto"],
  296. deps = [":channel_csharp_proto"],
  297. )
  298. csharp_gapic_library(
  299. name = "channel_csharp_gapic",
  300. srcs = [":channel_proto_with_info"],
  301. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  302. grpc_service_config = "cloudchannel_grpc_service_config.json",
  303. deps = [
  304. ":channel_csharp_grpc",
  305. ":channel_csharp_proto",
  306. ],
  307. )
  308. # Open Source Packages
  309. csharp_gapic_assembly_pkg(
  310. name = "google-cloud-channel-v1-csharp",
  311. deps = [
  312. ":channel_csharp_gapic",
  313. ":channel_csharp_grpc",
  314. ":channel_csharp_proto",
  315. ],
  316. )
  317. ##############################################################################
  318. # C++
  319. ##############################################################################
  320. # Put your C++ rules here