BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. load("@rules_proto//proto:defs.bzl", "proto_library")
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. proto_library(
  8. name = "calendar_period_proto",
  9. srcs = ["calendar_period.proto"],
  10. )
  11. proto_library(
  12. name = "color_proto",
  13. srcs = ["color.proto"],
  14. deps = [
  15. "@com_google_protobuf//:wrappers_proto",
  16. ],
  17. )
  18. proto_library(
  19. name = "date_proto",
  20. srcs = ["date.proto"],
  21. )
  22. proto_library(
  23. name = "datetime_proto",
  24. srcs = ["datetime.proto"],
  25. deps = [
  26. "@com_google_protobuf//:duration_proto",
  27. ],
  28. )
  29. proto_library(
  30. name = "dayofweek_proto",
  31. srcs = ["dayofweek.proto"],
  32. )
  33. proto_library(
  34. name = "decimal_proto",
  35. srcs = ["decimal.proto"],
  36. )
  37. proto_library(
  38. name = "expr_proto",
  39. srcs = ["expr.proto"],
  40. )
  41. proto_library(
  42. name = "fraction_proto",
  43. srcs = ["fraction.proto"],
  44. )
  45. proto_library(
  46. name = "interval_proto",
  47. srcs = ["interval.proto"],
  48. deps = [
  49. "@com_google_protobuf//:timestamp_proto",
  50. ],
  51. )
  52. proto_library(
  53. name = "latlng_proto",
  54. srcs = ["latlng.proto"],
  55. )
  56. proto_library(
  57. name = "localized_text_proto",
  58. srcs = ["localized_text.proto"],
  59. )
  60. proto_library(
  61. name = "money_proto",
  62. srcs = ["money.proto"],
  63. )
  64. proto_library(
  65. name = "month_proto",
  66. srcs = ["month.proto"],
  67. )
  68. proto_library(
  69. name = "phone_number_proto",
  70. srcs = ["phone_number.proto"],
  71. )
  72. proto_library(
  73. name = "postal_address_proto",
  74. srcs = ["postal_address.proto"],
  75. )
  76. proto_library(
  77. name = "quaternion_proto",
  78. srcs = ["quaternion.proto"],
  79. )
  80. proto_library(
  81. name = "timeofday_proto",
  82. srcs = ["timeofday.proto"],
  83. )
  84. ##############################################################################
  85. # Java
  86. ##############################################################################
  87. load(
  88. "@com_google_googleapis_imports//:imports.bzl",
  89. "java_gapic_assembly_gradle_pkg",
  90. "java_proto_library",
  91. )
  92. java_proto_library(
  93. name = "type_java_proto",
  94. deps = [
  95. ":calendar_period_proto",
  96. ":color_proto",
  97. ":date_proto",
  98. ":datetime_proto",
  99. ":dayofweek_proto",
  100. ":decimal_proto",
  101. ":expr_proto",
  102. ":fraction_proto",
  103. ":interval_proto",
  104. ":latlng_proto",
  105. ":localized_text_proto",
  106. ":money_proto",
  107. ":month_proto",
  108. ":phone_number_proto",
  109. ":postal_address_proto",
  110. ":quaternion_proto",
  111. ":timeofday_proto",
  112. ],
  113. )
  114. # Please DO-NOT-REMOVE this section.
  115. # This is required to generate java files for these protos.
  116. # Open Source Packages
  117. java_gapic_assembly_gradle_pkg(
  118. name = "google-type-java",
  119. transport = "grpc+rest",
  120. deps = [
  121. ":calendar_period_proto",
  122. ":color_proto",
  123. ":date_proto",
  124. ":datetime_proto",
  125. ":dayofweek_proto",
  126. ":decimal_proto",
  127. ":expr_proto",
  128. ":fraction_proto",
  129. ":interval_proto",
  130. ":latlng_proto",
  131. ":localized_text_proto",
  132. ":money_proto",
  133. ":month_proto",
  134. ":phone_number_proto",
  135. ":postal_address_proto",
  136. ":quaternion_proto",
  137. ":timeofday_proto",
  138. ":type_java_proto",
  139. ],
  140. )
  141. ##############################################################################
  142. # Go
  143. ##############################################################################
  144. load("@com_google_googleapis_imports//:imports.bzl", "go_proto_library")
  145. go_proto_library(
  146. name = "calendar_period_go_proto",
  147. importpath = "google.golang.org/genproto/googleapis/type/calendarperiod",
  148. protos = [":calendar_period_proto"],
  149. )
  150. go_proto_library(
  151. name = "color_go_proto",
  152. importpath = "google.golang.org/genproto/googleapis/type/color",
  153. protos = [":color_proto"],
  154. )
  155. go_proto_library(
  156. name = "date_go_proto",
  157. importpath = "google.golang.org/genproto/googleapis/type/date",
  158. protos = [":date_proto"],
  159. )
  160. go_proto_library(
  161. name = "datetime_go_proto",
  162. importpath = "google.golang.org/genproto/googleapis/type/datetime",
  163. protos = [":datetime_proto"],
  164. )
  165. go_proto_library(
  166. name = "dayofweek_go_proto",
  167. importpath = "google.golang.org/genproto/googleapis/type/dayofweek",
  168. protos = [":dayofweek_proto"],
  169. )
  170. go_proto_library(
  171. name = "decimal_go_proto",
  172. importpath = "google.golang.org/genproto/googleapis/type/decimal",
  173. protos = [":decimal_proto"],
  174. )
  175. go_proto_library(
  176. name = "expr_go_proto",
  177. importpath = "google.golang.org/genproto/googleapis/type/expr",
  178. protos = [":expr_proto"],
  179. )
  180. go_proto_library(
  181. name = "fraction_go_proto",
  182. importpath = "google.golang.org/genproto/googleapis/type/fraction",
  183. protos = [":fraction_proto"],
  184. )
  185. go_proto_library(
  186. name = "interval_go_proto",
  187. importpath = "google.golang.org/genproto/googleapis/type/interval",
  188. protos = [":interval_proto"],
  189. )
  190. go_proto_library(
  191. name = "latlng_go_proto",
  192. importpath = "google.golang.org/genproto/googleapis/type/latlng",
  193. protos = [":latlng_proto"],
  194. )
  195. go_proto_library(
  196. name = "localized_text_go_proto",
  197. importpath = "google.golang.org/genproto/googleapis/type/localized_text",
  198. protos = [":localized_text_proto"],
  199. )
  200. go_proto_library(
  201. name = "money_go_proto",
  202. importpath = "google.golang.org/genproto/googleapis/type/money",
  203. protos = [":money_proto"],
  204. )
  205. go_proto_library(
  206. name = "month_go_proto",
  207. importpath = "google.golang.org/genproto/googleapis/type/month",
  208. protos = [":month_proto"],
  209. )
  210. go_proto_library(
  211. name = "phone_number_go_proto",
  212. importpath = "google.golang.org/genproto/googleapis/type/phone_number",
  213. protos = [":phone_number_proto"],
  214. )
  215. go_proto_library(
  216. name = "postaladdress_go_proto",
  217. importpath = "google.golang.org/genproto/googleapis/type/postaladdress",
  218. protos = [":postal_address_proto"],
  219. )
  220. go_proto_library(
  221. name = "quaternion_go_proto",
  222. importpath = "google.golang.org/genproto/googleapis/type/quaternion",
  223. protos = [":quaternion_proto"],
  224. )
  225. go_proto_library(
  226. name = "timeofday_go_proto",
  227. importpath = "google.golang.org/genproto/googleapis/type/timeofday",
  228. protos = [":timeofday_proto"],
  229. )
  230. ##############################################################################
  231. # C++
  232. ##############################################################################
  233. load(
  234. "@com_google_googleapis_imports//:imports.bzl",
  235. "cc_proto_library",
  236. )
  237. cc_proto_library(
  238. name = "calendar_period_cc_proto",
  239. deps = [":calendar_period_proto"],
  240. )
  241. cc_proto_library(
  242. name = "color_cc_proto",
  243. deps = [":color_proto"],
  244. )
  245. cc_proto_library(
  246. name = "date_cc_proto",
  247. deps = [":date_proto"],
  248. )
  249. cc_proto_library(
  250. name = "datetime_cc_proto",
  251. deps = [":datetime_proto"],
  252. )
  253. cc_proto_library(
  254. name = "dayofweek_cc_proto",
  255. deps = [":dayofweek_proto"],
  256. )
  257. cc_proto_library(
  258. name = "decimal_cc_proto",
  259. deps = [":decimal_proto"],
  260. )
  261. cc_proto_library(
  262. name = "expr_cc_proto",
  263. deps = [":expr_proto"],
  264. )
  265. cc_proto_library(
  266. name = "fraction_cc_proto",
  267. deps = [":fraction_proto"],
  268. )
  269. cc_proto_library(
  270. name = "interval_cc_proto",
  271. deps = [":interval_proto"],
  272. )
  273. cc_proto_library(
  274. name = "latlng_cc_proto",
  275. deps = [":latlng_proto"],
  276. )
  277. cc_proto_library(
  278. name = "money_cc_proto",
  279. deps = [":money_proto"],
  280. )
  281. cc_proto_library(
  282. name = "month_cc_proto",
  283. deps = [":month_proto"],
  284. )
  285. cc_proto_library(
  286. name = "phone_number_cc_proto",
  287. deps = [":phone_number_proto"],
  288. )
  289. cc_proto_library(
  290. name = "postal_address_cc_proto",
  291. deps = [":postal_address_proto"],
  292. )
  293. cc_proto_library(
  294. name = "quaternion_cc_proto",
  295. deps = [":quaternion_proto"],
  296. )
  297. cc_proto_library(
  298. name = "timeofday_cc_proto",
  299. deps = [":timeofday_proto"],
  300. )
  301. ##############################################################################
  302. # Python
  303. ##############################################################################
  304. load(
  305. "@com_google_googleapis_imports//:imports.bzl",
  306. "py_proto_library",
  307. )
  308. py_proto_library(
  309. name = "calendar_period_py_proto",
  310. deps = [":calendar_period_proto"],
  311. )
  312. py_proto_library(
  313. name = "color_py_proto",
  314. deps = [":color_proto"],
  315. )
  316. py_proto_library(
  317. name = "date_py_proto",
  318. deps = [":date_proto"],
  319. )
  320. py_proto_library(
  321. name = "datetime_py_proto",
  322. deps = [":datetime_proto"],
  323. )
  324. py_proto_library(
  325. name = "dayofweek_py_proto",
  326. deps = [":dayofweek_proto"],
  327. )
  328. py_proto_library(
  329. name = "decimal_py_proto",
  330. deps = [":decimal_proto"],
  331. )
  332. py_proto_library(
  333. name = "expr_py_proto",
  334. deps = [":expr_proto"],
  335. )
  336. py_proto_library(
  337. name = "fraction_py_proto",
  338. deps = [":fraction_proto"],
  339. )
  340. py_proto_library(
  341. name = "interval_py_proto",
  342. deps = [":interval_proto"],
  343. )
  344. py_proto_library(
  345. name = "latlng_py_proto",
  346. deps = [":latlng_proto"],
  347. )
  348. py_proto_library(
  349. name = "localized_text_py_proto",
  350. deps = [":localized_text_proto"],
  351. )
  352. py_proto_library(
  353. name = "money_py_proto",
  354. deps = [":money_proto"],
  355. )
  356. py_proto_library(
  357. name = "month_py_proto",
  358. deps = [":month_proto"],
  359. )
  360. py_proto_library(
  361. name = "phone_number_py_proto",
  362. deps = [":phone_number_proto"],
  363. )
  364. py_proto_library(
  365. name = "postal_address_py_proto",
  366. deps = [":postal_address_proto"],
  367. )
  368. py_proto_library(
  369. name = "quaternion_py_proto",
  370. deps = [":quaternion_proto"],
  371. )
  372. py_proto_library(
  373. name = "timeofday_py_proto",
  374. deps = [":timeofday_proto"],
  375. )
  376. ##############################################################################
  377. # C#
  378. ##############################################################################
  379. load(
  380. "@com_google_googleapis_imports//:imports.bzl",
  381. "csharp_proto_library",
  382. )
  383. csharp_proto_library(
  384. name = "calendar_period_csharp_proto",
  385. deps = [":calendar_period_proto"],
  386. )
  387. csharp_proto_library(
  388. name = "color_csharp_proto",
  389. deps = [":color_proto"],
  390. )
  391. csharp_proto_library(
  392. name = "date_csharp_proto",
  393. deps = [":date_proto"],
  394. )
  395. csharp_proto_library(
  396. name = "datetime_csharp_proto",
  397. deps = [":datetime_proto"],
  398. )
  399. csharp_proto_library(
  400. name = "dayofweek_csharp_proto",
  401. deps = [":dayofweek_proto"],
  402. )
  403. csharp_proto_library(
  404. name = "decimal_csharp_proto",
  405. deps = [":decimal_proto"],
  406. )
  407. csharp_proto_library(
  408. name = "expr_csharp_proto",
  409. deps = [":expr_proto"],
  410. )
  411. csharp_proto_library(
  412. name = "fraction_csharp_proto",
  413. deps = [":fraction_proto"],
  414. )
  415. csharp_proto_library(
  416. name = "interval_csharp_proto",
  417. deps = [":interval_proto"],
  418. )
  419. csharp_proto_library(
  420. name = "latlng_csharp_proto",
  421. deps = [":latlng_proto"],
  422. )
  423. csharp_proto_library(
  424. name = "localized_text_csharp_proto",
  425. deps = [":localized_text_proto"],
  426. )
  427. csharp_proto_library(
  428. name = "money_csharp_proto",
  429. deps = [":money_proto"],
  430. )
  431. csharp_proto_library(
  432. name = "month_csharp_proto",
  433. deps = [":month_proto"],
  434. )
  435. csharp_proto_library(
  436. name = "phone_number_csharp_proto",
  437. deps = [":phone_number_proto"],
  438. )
  439. csharp_proto_library(
  440. name = "postal_address_csharp_proto",
  441. deps = [":postal_address_proto"],
  442. )
  443. csharp_proto_library(
  444. name = "quaternion_csharp_proto",
  445. deps = [":quaternion_proto"],
  446. )