BUILD.bazel 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  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 = "vpcaccess_proto",
  19. srcs = [
  20. "vpc_access.proto",
  21. ],
  22. deps = [
  23. "//google/api:annotations_proto",
  24. "//google/api:client_proto",
  25. "//google/api:field_behavior_proto",
  26. "//google/api:resource_proto",
  27. "//google/longrunning:operations_proto",
  28. "@com_google_protobuf//:timestamp_proto",
  29. ],
  30. )
  31. proto_library_with_info(
  32. name = "vpcaccess_proto_with_info",
  33. deps = [
  34. ":vpcaccess_proto",
  35. "//google/cloud:common_resources_proto",
  36. "//google/cloud/location:location_proto",
  37. ],
  38. )
  39. ##############################################################################
  40. # Java
  41. ##############################################################################
  42. load(
  43. "@com_google_googleapis_imports//:imports.bzl",
  44. "java_gapic_assembly_gradle_pkg",
  45. "java_gapic_library",
  46. "java_gapic_test",
  47. "java_grpc_library",
  48. "java_proto_library",
  49. )
  50. java_proto_library(
  51. name = "vpcaccess_java_proto",
  52. deps = [":vpcaccess_proto"],
  53. )
  54. java_grpc_library(
  55. name = "vpcaccess_java_grpc",
  56. srcs = [":vpcaccess_proto"],
  57. deps = [":vpcaccess_java_proto"],
  58. )
  59. java_gapic_library(
  60. name = "vpcaccess_java_gapic",
  61. srcs = [":vpcaccess_proto_with_info"],
  62. gapic_yaml = None,
  63. grpc_service_config = "vpcaccess_grpc_service_config.json",
  64. rest_numeric_enums = False,
  65. service_yaml = "vpcaccess_v1.yaml",
  66. test_deps = [
  67. ":vpcaccess_java_grpc",
  68. "//google/cloud/location:location_java_grpc",
  69. ],
  70. transport = "grpc+rest",
  71. deps = [
  72. ":vpcaccess_java_proto",
  73. "//google/api:api_java_proto",
  74. "//google/cloud/location:location_java_proto",
  75. ],
  76. )
  77. java_gapic_test(
  78. name = "vpcaccess_java_gapic_test_suite",
  79. test_classes = [
  80. "com.google.cloud.vpcaccess.v1.VpcAccessServiceClientHttpJsonTest",
  81. "com.google.cloud.vpcaccess.v1.VpcAccessServiceClientTest",
  82. ],
  83. runtime_deps = [":vpcaccess_java_gapic_test"],
  84. )
  85. # Open Source Packages
  86. java_gapic_assembly_gradle_pkg(
  87. name = "google-cloud-vpcaccess-v1-java",
  88. include_samples = True,
  89. transport = "grpc+rest",
  90. deps = [
  91. ":vpcaccess_java_gapic",
  92. ":vpcaccess_java_grpc",
  93. ":vpcaccess_java_proto",
  94. ":vpcaccess_proto",
  95. ],
  96. )
  97. ##############################################################################
  98. # Go
  99. ##############################################################################
  100. load(
  101. "@com_google_googleapis_imports//:imports.bzl",
  102. "go_gapic_assembly_pkg",
  103. "go_gapic_library",
  104. "go_proto_library",
  105. "go_test",
  106. )
  107. go_proto_library(
  108. name = "vpcaccess_go_proto",
  109. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  110. importpath = "google.golang.org/genproto/googleapis/cloud/vpcaccess/v1",
  111. protos = [":vpcaccess_proto"],
  112. deps = [
  113. "//google/api:annotations_go_proto",
  114. "//google/longrunning:longrunning_go_proto",
  115. ],
  116. )
  117. go_gapic_library(
  118. name = "vpcaccess_go_gapic",
  119. srcs = [":vpcaccess_proto_with_info"],
  120. grpc_service_config = "vpcaccess_grpc_service_config.json",
  121. importpath = "cloud.google.com/go/vpcaccess/apiv1;vpcaccess",
  122. metadata = True,
  123. rest_numeric_enums = False,
  124. service_yaml = "vpcaccess_v1.yaml",
  125. transport = "grpc+rest",
  126. deps = [
  127. ":vpcaccess_go_proto",
  128. "//google/cloud/location:location_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. ],
  133. )
  134. go_test(
  135. name = "vpcaccess_go_gapic_test",
  136. srcs = [":vpcaccess_go_gapic_srcjar_test"],
  137. embed = [":vpcaccess_go_gapic"],
  138. importpath = "cloud.google.com/go/vpcaccess/apiv1",
  139. )
  140. # Open Source Packages
  141. go_gapic_assembly_pkg(
  142. name = "gapi-cloud-vpcaccess-v1-go",
  143. deps = [
  144. ":vpcaccess_go_gapic",
  145. ":vpcaccess_go_gapic_srcjar-metadata.srcjar",
  146. ":vpcaccess_go_gapic_srcjar-test.srcjar",
  147. ":vpcaccess_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. "py_test",
  158. )
  159. py_gapic_library(
  160. name = "vpcaccess_py_gapic",
  161. srcs = [":vpcaccess_proto"],
  162. grpc_service_config = "vpcaccess_grpc_service_config.json",
  163. opt_args = ["warehouse-package-name=google-cloud-vpc-access"],
  164. rest_numeric_enums = False,
  165. service_yaml = "vpcaccess_v1.yaml",
  166. transport = "grpc",
  167. deps = [
  168. ],
  169. )
  170. py_test(
  171. name = "vpcaccess_py_gapic_test",
  172. srcs = [
  173. "vpcaccess_py_gapic_pytest.py",
  174. "vpcaccess_py_gapic_test.py",
  175. ],
  176. legacy_create_init = False,
  177. deps = [":vpcaccess_py_gapic"],
  178. )
  179. # Open Source Packages
  180. py_gapic_assembly_pkg(
  181. name = "vpcaccess-v1-py",
  182. deps = [
  183. ":vpcaccess_py_gapic",
  184. ],
  185. )
  186. ##############################################################################
  187. # PHP
  188. ##############################################################################
  189. load(
  190. "@com_google_googleapis_imports//:imports.bzl",
  191. "php_gapic_assembly_pkg",
  192. "php_gapic_library",
  193. "php_grpc_library",
  194. "php_proto_library",
  195. )
  196. php_proto_library(
  197. name = "vpcaccess_php_proto",
  198. deps = [":vpcaccess_proto"],
  199. )
  200. php_grpc_library(
  201. name = "vpcaccess_php_grpc",
  202. srcs = [":vpcaccess_proto"],
  203. deps = [":vpcaccess_php_proto"],
  204. )
  205. php_gapic_library(
  206. name = "vpcaccess_php_gapic",
  207. srcs = [":vpcaccess_proto_with_info"],
  208. grpc_service_config = "vpcaccess_grpc_service_config.json",
  209. rest_numeric_enums = False,
  210. service_yaml = "vpcaccess_v1.yaml",
  211. transport = "grpc+rest",
  212. deps = [
  213. ":vpcaccess_php_grpc",
  214. ":vpcaccess_php_proto",
  215. ],
  216. )
  217. # Open Source Packages
  218. php_gapic_assembly_pkg(
  219. name = "google-cloud-vpcaccess-v1-php",
  220. deps = [
  221. ":vpcaccess_php_gapic",
  222. ":vpcaccess_php_grpc",
  223. ":vpcaccess_php_proto",
  224. ],
  225. )
  226. ##############################################################################
  227. # Node.js
  228. ##############################################################################
  229. load(
  230. "@com_google_googleapis_imports//:imports.bzl",
  231. "nodejs_gapic_assembly_pkg",
  232. "nodejs_gapic_library",
  233. )
  234. nodejs_gapic_library(
  235. name = "vpcaccess_nodejs_gapic",
  236. package_name = "@google-cloud/vpc-access",
  237. src = ":vpcaccess_proto_with_info",
  238. extra_protoc_parameters = ["metadata"],
  239. grpc_service_config = "vpcaccess_grpc_service_config.json",
  240. package = "google.cloud.vpcaccess.v1",
  241. rest_numeric_enums = False,
  242. service_yaml = "vpcaccess_v1.yaml",
  243. transport = "grpc+rest",
  244. deps = [],
  245. )
  246. nodejs_gapic_assembly_pkg(
  247. name = "vpcaccess-v1-nodejs",
  248. deps = [
  249. ":vpcaccess_nodejs_gapic",
  250. ":vpcaccess_proto",
  251. ],
  252. )
  253. ##############################################################################
  254. # Ruby
  255. ##############################################################################
  256. load(
  257. "@com_google_googleapis_imports//:imports.bzl",
  258. "ruby_cloud_gapic_library",
  259. "ruby_gapic_assembly_pkg",
  260. "ruby_grpc_library",
  261. "ruby_proto_library",
  262. )
  263. ruby_proto_library(
  264. name = "vpcaccess_ruby_proto",
  265. deps = [":vpcaccess_proto"],
  266. )
  267. ruby_grpc_library(
  268. name = "vpcaccess_ruby_grpc",
  269. srcs = [":vpcaccess_proto"],
  270. deps = [":vpcaccess_ruby_proto"],
  271. )
  272. ruby_cloud_gapic_library(
  273. name = "vpcaccess_ruby_gapic",
  274. srcs = [":vpcaccess_proto_with_info"],
  275. extra_protoc_parameters = [
  276. "ruby-cloud-api-id=vpcaccess.googleapis.com",
  277. "ruby-cloud-api-shortname=vpcaccess",
  278. "ruby-cloud-env-prefix=VPC_ACCESS",
  279. "ruby-cloud-gem-name=google-cloud-vpc_access-v1",
  280. "ruby-cloud-product-url=https://cloud.google.com/vpc/docs/serverless-vpc-access",
  281. ],
  282. grpc_service_config = "vpcaccess_grpc_service_config.json",
  283. rest_numeric_enums = False,
  284. ruby_cloud_description = "Serverless VPC Access enables you to connect from a serverless environment on Google Cloud (Cloud Run, Cloud Functions, or the App Engine standard environment) directly to your VPC network. This connection makes it possible for your serverless environment to access Compute Engine VM instances, Memorystore instances, and any other resources with an internal IP address.",
  285. ruby_cloud_title = "Serverless VPC Access V1",
  286. service_yaml = "vpcaccess_v1.yaml",
  287. deps = [
  288. ":vpcaccess_ruby_grpc",
  289. ":vpcaccess_ruby_proto",
  290. ],
  291. )
  292. # Open Source Packages
  293. ruby_gapic_assembly_pkg(
  294. name = "google-cloud-vpcaccess-v1-ruby",
  295. deps = [
  296. ":vpcaccess_ruby_gapic",
  297. ":vpcaccess_ruby_grpc",
  298. ":vpcaccess_ruby_proto",
  299. ],
  300. )
  301. ##############################################################################
  302. # C#
  303. ##############################################################################
  304. load(
  305. "@com_google_googleapis_imports//:imports.bzl",
  306. "csharp_gapic_assembly_pkg",
  307. "csharp_gapic_library",
  308. "csharp_grpc_library",
  309. "csharp_proto_library",
  310. )
  311. csharp_proto_library(
  312. name = "vpcaccess_csharp_proto",
  313. deps = [":vpcaccess_proto"],
  314. )
  315. csharp_grpc_library(
  316. name = "vpcaccess_csharp_grpc",
  317. srcs = [":vpcaccess_proto"],
  318. deps = [":vpcaccess_csharp_proto"],
  319. )
  320. csharp_gapic_library(
  321. name = "vpcaccess_csharp_gapic",
  322. srcs = [":vpcaccess_proto_with_info"],
  323. common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  324. grpc_service_config = "vpcaccess_grpc_service_config.json",
  325. rest_numeric_enums = False,
  326. service_yaml = "vpcaccess_v1.yaml",
  327. deps = [
  328. ":vpcaccess_csharp_grpc",
  329. ":vpcaccess_csharp_proto",
  330. ],
  331. )
  332. # Open Source Packages
  333. csharp_gapic_assembly_pkg(
  334. name = "google-cloud-vpcaccess-v1-csharp",
  335. deps = [
  336. ":vpcaccess_csharp_gapic",
  337. ":vpcaccess_csharp_grpc",
  338. ":vpcaccess_csharp_proto",
  339. ],
  340. )
  341. ##############################################################################
  342. # C++
  343. ##############################################################################
  344. load(
  345. "@com_google_googleapis_imports//:imports.bzl",
  346. "cc_grpc_library",
  347. "cc_proto_library",
  348. )
  349. cc_proto_library(
  350. name = "vpcaccess_cc_proto",
  351. deps = [":vpcaccess_proto"],
  352. )
  353. cc_grpc_library(
  354. name = "vpcaccess_cc_grpc",
  355. srcs = [":vpcaccess_proto"],
  356. grpc_only = True,
  357. deps = [":vpcaccess_cc_proto"],
  358. )