BUILD.bazel 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  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 = "agentendpoint_proto",
  19. srcs = [
  20. "agentendpoint.proto",
  21. "config_common.proto",
  22. "inventory.proto",
  23. "os_policy.proto",
  24. "patch_jobs.proto",
  25. "tasks.proto",
  26. ],
  27. deps = [
  28. "//google/api:client_proto",
  29. "//google/type:date_proto",
  30. "//google/api:field_behavior_proto",
  31. "//google/api:resource_proto",
  32. "@com_google_protobuf//:timestamp_proto",
  33. ],
  34. )
  35. proto_library_with_info(
  36. name = "agentendpoint_proto_with_info",
  37. deps = [
  38. ":agentendpoint_proto",
  39. "//google/cloud:common_resources_proto",
  40. ],
  41. )
  42. ##############################################################################
  43. # Java
  44. ##############################################################################
  45. load(
  46. "@com_google_googleapis_imports//:imports.bzl",
  47. "java_gapic_assembly_gradle_pkg",
  48. "java_gapic_library",
  49. "java_gapic_test",
  50. "java_grpc_library",
  51. "java_proto_library",
  52. )
  53. java_proto_library(
  54. name = "agentendpoint_java_proto",
  55. deps = [":agentendpoint_proto"],
  56. )
  57. java_grpc_library(
  58. name = "agentendpoint_java_grpc",
  59. srcs = [":agentendpoint_proto"],
  60. deps = [":agentendpoint_java_proto"],
  61. )
  62. java_gapic_library(
  63. name = "agentendpoint_java_gapic",
  64. srcs = [":agentendpoint_proto_with_info"],
  65. grpc_service_config = "agentendpoint_grpc_service_config.json",
  66. test_deps = [
  67. ":agentendpoint_java_grpc",
  68. ],
  69. deps = [
  70. ":agentendpoint_java_proto",
  71. ],
  72. )
  73. java_gapic_test(
  74. name = "agentendpoint_java_gapic_test_suite",
  75. test_classes = [
  76. "com.google.cloud.osconfig.agentendpoint.v1.AgentEndpointServiceClientTest",
  77. ],
  78. runtime_deps = [":agentendpoint_java_gapic_test"],
  79. )
  80. # Open Source Packages
  81. java_gapic_assembly_gradle_pkg(
  82. name = "google-cloud-osconfig-agentendpoint-v1-java",
  83. deps = [
  84. ":agentendpoint_java_gapic",
  85. ":agentendpoint_java_grpc",
  86. ":agentendpoint_java_proto",
  87. ":agentendpoint_proto",
  88. ],
  89. )
  90. ##############################################################################
  91. # Go
  92. ##############################################################################
  93. load(
  94. "@com_google_googleapis_imports//:imports.bzl",
  95. "go_gapic_assembly_pkg",
  96. "go_gapic_library",
  97. "go_proto_library",
  98. "go_test",
  99. )
  100. go_proto_library(
  101. name = "agentendpoint_go_proto",
  102. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  103. importpath = "google.golang.org/genproto/googleapis/cloud/osconfig/agentendpoint/v1",
  104. protos = [":agentendpoint_proto"],
  105. deps = [
  106. "//google/api:annotations_go_proto",
  107. "//google/type:date_go_proto",
  108. ],
  109. )
  110. go_gapic_library(
  111. name = "agentendpoint_go_gapic",
  112. srcs = [":agentendpoint_proto_with_info"],
  113. grpc_service_config = "agentendpoint_grpc_service_config.json",
  114. importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1;agentendpoint",
  115. service_yaml = "osconfig_v1.yaml",
  116. deps = [
  117. ":agentendpoint_go_proto",
  118. ],
  119. )
  120. go_test(
  121. name = "agentendpoint_go_gapic_test",
  122. srcs = [":agentendpoint_go_gapic_srcjar_test"],
  123. embed = [":agentendpoint_go_gapic"],
  124. importpath = "cloud.google.com/go/osconfig/agentendpoint/apiv1",
  125. )
  126. # Open Source Packages
  127. go_gapic_assembly_pkg(
  128. name = "gapi-cloud-osconfig-agentendpoint-v1-go",
  129. deps = [
  130. ":agentendpoint_go_gapic",
  131. ":agentendpoint_go_gapic_srcjar-test.srcjar",
  132. ":agentendpoint_go_proto",
  133. ],
  134. )
  135. ##############################################################################
  136. # Python
  137. ##############################################################################
  138. load(
  139. "@com_google_googleapis_imports//:imports.bzl",
  140. "py_gapic_assembly_pkg",
  141. "py_gapic_library",
  142. )
  143. py_gapic_library(
  144. name = "agentendpoint_py_gapic",
  145. srcs = [":agentendpoint_proto"],
  146. grpc_service_config = "agentendpoint_grpc_service_config.json",
  147. )
  148. # Open Source Packages
  149. py_gapic_assembly_pkg(
  150. name = "osconfig-agentendpoint-v1-py",
  151. deps = [
  152. ":agentendpoint_py_gapic",
  153. ],
  154. )
  155. ##############################################################################
  156. # PHP
  157. ##############################################################################
  158. # load(
  159. # "@com_google_googleapis_imports//:imports.bzl",
  160. # "php_gapic_assembly_pkg",
  161. # "php_gapic_library",
  162. # "php_grpc_library",
  163. # "php_proto_library",
  164. # )
  165. #
  166. # php_proto_library(
  167. # name = "agentendpoint_php_proto",
  168. # deps = [":agentendpoint_proto"],
  169. # )
  170. #
  171. # php_grpc_library(
  172. # name = "agentendpoint_php_grpc",
  173. # srcs = [":agentendpoint_proto"],
  174. # deps = [":agentendpoint_php_proto"],
  175. # )
  176. #
  177. # php_gapic_library(
  178. # name = "agentendpoint_php_gapic",
  179. # srcs = [":agentendpoint_proto_with_info"],
  180. # grpc_service_config = "agentendpoint_grpc_service_config.json",
  181. # service_yaml = "osconfig_v1.yaml",
  182. # deps = [
  183. # ":agentendpoint_php_grpc",
  184. # ":agentendpoint_php_proto",
  185. # ],
  186. # )
  187. #
  188. # # Open Source Packages
  189. # php_gapic_assembly_pkg(
  190. # name = "google-cloud-osconfig-agentendpoint-v1-php",
  191. # deps = [
  192. # ":agentendpoint_php_gapic",
  193. # ":agentendpoint_php_grpc",
  194. # ":agentendpoint_php_proto",
  195. # ],
  196. # )
  197. ##############################################################################
  198. # Node.js
  199. ##############################################################################
  200. load(
  201. "@com_google_googleapis_imports//:imports.bzl",
  202. "nodejs_gapic_assembly_pkg",
  203. "nodejs_gapic_library",
  204. )
  205. nodejs_gapic_library(
  206. name = "agentendpoint_nodejs_gapic",
  207. src = ":agentendpoint_proto_with_info",
  208. extra_protoc_parameters = ["metadata"],
  209. grpc_service_config = "agentendpoint_grpc_service_config.json",
  210. package = "google.cloud.osconfig.agentendpoint.v1",
  211. service_yaml = "osconfig_v1.yaml",
  212. deps = [],
  213. )
  214. nodejs_gapic_assembly_pkg(
  215. name = "osconfig-agentendpoint-v1-nodejs",
  216. deps = [
  217. ":agentendpoint_nodejs_gapic",
  218. ":agentendpoint_proto",
  219. ],
  220. )
  221. ##############################################################################
  222. # Ruby
  223. ##############################################################################
  224. load(
  225. "@com_google_googleapis_imports//:imports.bzl",
  226. "ruby_gapic_assembly_pkg",
  227. "ruby_cloud_gapic_library",
  228. "ruby_grpc_library",
  229. "ruby_proto_library",
  230. )
  231. ruby_proto_library(
  232. name = "agentendpoint_ruby_proto",
  233. deps = [":agentendpoint_proto"],
  234. )
  235. ruby_grpc_library(
  236. name = "agentendpoint_ruby_grpc",
  237. srcs = [":agentendpoint_proto"],
  238. deps = [":agentendpoint_ruby_proto"],
  239. )
  240. ruby_cloud_gapic_library(
  241. name = "agentendpoint_ruby_gapic",
  242. srcs = [":agentendpoint_proto_with_info",],
  243. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-agentendpoint-v1"],
  244. grpc_service_config = "agentendpoint_grpc_service_config.json",
  245. deps = [
  246. ":agentendpoint_ruby_grpc",
  247. ":agentendpoint_ruby_proto",
  248. ],
  249. )
  250. # Open Source Packages
  251. ruby_gapic_assembly_pkg(
  252. name = "google-cloud-osconfig-agentendpoint-v1-ruby",
  253. deps = [
  254. ":agentendpoint_ruby_gapic",
  255. ":agentendpoint_ruby_grpc",
  256. ":agentendpoint_ruby_proto",
  257. ],
  258. )
  259. ##############################################################################
  260. # C#
  261. ##############################################################################
  262. load(
  263. "@com_google_googleapis_imports//:imports.bzl",
  264. "csharp_gapic_assembly_pkg",
  265. "csharp_gapic_library",
  266. "csharp_grpc_library",
  267. "csharp_proto_library",
  268. )
  269. csharp_proto_library(
  270. name = "agentendpoint_csharp_proto",
  271. deps = [":agentendpoint_proto"],
  272. )
  273. csharp_grpc_library(
  274. name = "agentendpoint_csharp_grpc",
  275. srcs = [":agentendpoint_proto"],
  276. deps = [":agentendpoint_csharp_proto"],
  277. )
  278. csharp_gapic_library(
  279. name = "agentendpoint_csharp_gapic",
  280. srcs = [":agentendpoint_proto_with_info"],
  281. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  282. grpc_service_config = "agentendpoint_grpc_service_config.json",
  283. deps = [
  284. ":agentendpoint_csharp_grpc",
  285. ":agentendpoint_csharp_proto",
  286. ],
  287. )
  288. # Open Source Packages
  289. csharp_gapic_assembly_pkg(
  290. name = "google-cloud-osconfig-agentendpoint-v1-csharp",
  291. deps = [
  292. ":agentendpoint_csharp_gapic",
  293. ":agentendpoint_csharp_grpc",
  294. ":agentendpoint_csharp_proto",
  295. ],
  296. )
  297. ##############################################################################
  298. # C++
  299. ##############################################################################
  300. # Put your C++ rules here