BUILD.bazel 9.3 KB

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