BUILD.bazel 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  1. # This file was generated and then heavily edited by hand. Be careful not
  2. # to rollback, undo, or overwrite any of the manual changes.
  3. # This is an API workspace, having public visibility by default makes perfect sense.
  4. package(default_visibility = ["//visibility:public"])
  5. ##############################################################################
  6. # Common
  7. ##############################################################################
  8. load("@rules_proto//proto:defs.bzl", "proto_library")
  9. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  10. _PROTO_SUBPACKAGE_DEPS = [
  11. "//google/cloud/aiplatform/v1beta1/schema:schema_proto",
  12. "//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_proto",
  13. "//google/cloud/aiplatform/v1beta1/schema/predict/params:params_proto",
  14. "//google/cloud/aiplatform/v1beta1/schema/predict/prediction:prediction_proto",
  15. "//google/cloud/aiplatform/v1beta1/schema/trainingjob/definition:definition_proto",
  16. ]
  17. proto_library(
  18. name = "aiplatform_proto",
  19. srcs = [
  20. "accelerator_type.proto",
  21. "annotation.proto",
  22. "annotation_spec.proto",
  23. "artifact.proto",
  24. "batch_prediction_job.proto",
  25. "completion_stats.proto",
  26. "context.proto",
  27. "custom_job.proto",
  28. "data_item.proto",
  29. "data_labeling_job.proto",
  30. "dataset.proto",
  31. "dataset_service.proto",
  32. "deployed_index_ref.proto",
  33. "deployed_model_ref.proto",
  34. "encryption_spec.proto",
  35. "endpoint.proto",
  36. "endpoint_service.proto",
  37. "entity_type.proto",
  38. "env_var.proto",
  39. "event.proto",
  40. "execution.proto",
  41. "explanation.proto",
  42. "explanation_metadata.proto",
  43. "feature.proto",
  44. "feature_monitoring_stats.proto",
  45. "feature_selector.proto",
  46. "featurestore.proto",
  47. "featurestore_monitoring.proto",
  48. "featurestore_online_service.proto",
  49. "featurestore_service.proto",
  50. "hyperparameter_tuning_job.proto",
  51. "index.proto",
  52. "index_endpoint.proto",
  53. "index_endpoint_service.proto",
  54. "index_service.proto",
  55. "io.proto",
  56. "job_service.proto",
  57. "job_state.proto",
  58. "lineage_subgraph.proto",
  59. "machine_resources.proto",
  60. "manual_batch_tuning_parameters.proto",
  61. "metadata_schema.proto",
  62. "metadata_service.proto",
  63. "metadata_store.proto",
  64. "migratable_resource.proto",
  65. "migration_service.proto",
  66. "model.proto",
  67. "model_deployment_monitoring_job.proto",
  68. "model_evaluation.proto",
  69. "model_evaluation_slice.proto",
  70. "model_monitoring.proto",
  71. "model_service.proto",
  72. "operation.proto",
  73. "pipeline_job.proto",
  74. "pipeline_service.proto",
  75. "pipeline_state.proto",
  76. "prediction_service.proto",
  77. "specialist_pool.proto",
  78. "specialist_pool_service.proto",
  79. "study.proto",
  80. "tensorboard.proto",
  81. "tensorboard_data.proto",
  82. "tensorboard_experiment.proto",
  83. "tensorboard_run.proto",
  84. "tensorboard_service.proto",
  85. "tensorboard_time_series.proto",
  86. "training_pipeline.proto",
  87. "types.proto",
  88. "user_action_reference.proto",
  89. "value.proto",
  90. "vizier_service.proto",
  91. ],
  92. deps = [
  93. "//google/api:annotations_proto",
  94. "//google/api:client_proto",
  95. "//google/api:field_behavior_proto",
  96. "//google/api:httpbody_proto",
  97. "//google/api:resource_proto",
  98. "//google/longrunning:operations_proto",
  99. "//google/rpc:status_proto",
  100. "//google/type:money_proto",
  101. "@com_google_protobuf//:duration_proto",
  102. "@com_google_protobuf//:empty_proto",
  103. "@com_google_protobuf//:field_mask_proto",
  104. "@com_google_protobuf//:struct_proto",
  105. "@com_google_protobuf//:timestamp_proto",
  106. "@com_google_protobuf//:wrappers_proto",
  107. ] + _PROTO_SUBPACKAGE_DEPS,
  108. )
  109. proto_library_with_info(
  110. name = "aiplatform_proto_with_info",
  111. deps = [
  112. ":aiplatform_proto",
  113. "//google/cloud:common_resources_proto",
  114. ] + _PROTO_SUBPACKAGE_DEPS,
  115. )
  116. ##############################################################################
  117. # Java
  118. ##############################################################################
  119. load(
  120. "@com_google_googleapis_imports//:imports.bzl",
  121. "java_gapic_assembly_gradle_pkg",
  122. "java_gapic_library",
  123. "java_gapic_test",
  124. "java_grpc_library",
  125. "java_proto_library",
  126. )
  127. _JAVA_PROTO_SUBPACKAGE_DEPS = [
  128. "//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_java_proto",
  129. "//google/cloud/aiplatform/v1beta1/schema/predict/params:params_java_proto",
  130. "//google/cloud/aiplatform/v1beta1/schema/predict/prediction:prediction_java_proto",
  131. "//google/cloud/aiplatform/v1beta1/schema/trainingjob/definition:definition_java_proto",
  132. ]
  133. _JAVA_GRPC_SUBPACKAGE_DEPS = [
  134. "//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_java_grpc",
  135. "//google/cloud/aiplatform/v1beta1/schema/predict/params:params_java_grpc",
  136. "//google/cloud/aiplatform/v1beta1/schema/predict/prediction:prediction_java_grpc",
  137. "//google/cloud/aiplatform/v1beta1/schema/trainingjob/definition:definition_java_grpc",
  138. ]
  139. java_proto_library(
  140. name = "aiplatform_java_proto",
  141. deps = [":aiplatform_proto"],
  142. )
  143. java_grpc_library(
  144. name = "aiplatform_java_grpc",
  145. srcs = [":aiplatform_proto"],
  146. deps = [":aiplatform_java_proto"] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  147. )
  148. java_gapic_library(
  149. name = "aiplatform_java_gapic",
  150. srcs = [":aiplatform_proto_with_info"],
  151. grpc_service_config = "aiplatform_grpc_service_config.json",
  152. test_deps = [
  153. ":aiplatform_java_grpc",
  154. ] + _JAVA_GRPC_SUBPACKAGE_DEPS,
  155. deps = [
  156. ":aiplatform_java_proto",
  157. ] + _JAVA_PROTO_SUBPACKAGE_DEPS,
  158. )
  159. java_gapic_test(
  160. name = "aiplatform_java_gapic_test_suite",
  161. test_classes = [
  162. "com.google.cloud.aiplatform.v1beta1.DatasetServiceClientTest",
  163. "com.google.cloud.aiplatform.v1beta1.EndpointServiceClientTest",
  164. "com.google.cloud.aiplatform.v1beta1.JobServiceClientTest",
  165. "com.google.cloud.aiplatform.v1beta1.MigrationServiceClientTest",
  166. "com.google.cloud.aiplatform.v1beta1.ModelServiceClientTest",
  167. "com.google.cloud.aiplatform.v1beta1.PipelineServiceClientTest",
  168. "com.google.cloud.aiplatform.v1beta1.PredictionServiceClientTest",
  169. "com.google.cloud.aiplatform.v1beta1.SpecialistPoolServiceClientTest",
  170. "com.google.cloud.aiplatform.v1beta1.VizierServiceClientTest",
  171. ],
  172. runtime_deps = [":aiplatform_java_gapic_test"],
  173. )
  174. # Open Source Packages
  175. java_gapic_assembly_gradle_pkg(
  176. name = "google-cloud-aiplatform-v1beta1-java",
  177. deps = [
  178. ":aiplatform_java_gapic",
  179. ":aiplatform_java_grpc",
  180. ":aiplatform_java_proto",
  181. ":aiplatform_proto",
  182. ] + _JAVA_PROTO_SUBPACKAGE_DEPS + _PROTO_SUBPACKAGE_DEPS + _JAVA_GRPC_SUBPACKAGE_DEPS,
  183. )
  184. ##############################################################################
  185. # Go
  186. ##############################################################################
  187. load(
  188. "@com_google_googleapis_imports//:imports.bzl",
  189. "go_gapic_assembly_pkg",
  190. "go_gapic_library",
  191. "go_proto_library",
  192. "go_test",
  193. )
  194. go_proto_library(
  195. name = "aiplatform_go_proto",
  196. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  197. importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1",
  198. protos = [":aiplatform_proto"],
  199. deps = [
  200. "//google/api:annotations_go_proto",
  201. "//google/api:httpbody_go_proto",
  202. "//google/longrunning:longrunning_go_proto",
  203. "//google/rpc:status_go_proto",
  204. "//google/type:money_go_proto",
  205. ],
  206. )
  207. go_gapic_library(
  208. name = "aiplatform_go_gapic",
  209. srcs = [":aiplatform_proto_with_info"],
  210. grpc_service_config = "aiplatform_grpc_service_config.json",
  211. importpath = "cloud.google.com/go/aiplatform/apiv1beta1;aiplatform",
  212. metadata = True,
  213. service_yaml = "aiplatform_v1beta1.yaml",
  214. deps = [
  215. ":aiplatform_go_proto",
  216. "//google/api:httpbody_go_proto",
  217. "//google/longrunning:longrunning_go_proto",
  218. "@com_google_cloud_go//longrunning:go_default_library",
  219. "@com_google_cloud_go//longrunning/autogen:go_default_library",
  220. "@io_bazel_rules_go//proto/wkt:duration_go_proto",
  221. "@io_bazel_rules_go//proto/wkt:struct_go_proto",
  222. ],
  223. )
  224. go_test(
  225. name = "aiplatform_go_gapic_test",
  226. srcs = [":aiplatform_go_gapic_srcjar_test"],
  227. embed = [":aiplatform_go_gapic"],
  228. importpath = "cloud.google.com/go/aiplatform/apiv1beta1",
  229. )
  230. # Open Source Packages
  231. go_gapic_assembly_pkg(
  232. name = "gapi-cloud-aiplatform-v1beta1-go",
  233. deps = [
  234. ":aiplatform_go_gapic",
  235. ":aiplatform_go_gapic_srcjar-metadata.srcjar",
  236. ":aiplatform_go_gapic_srcjar-test.srcjar",
  237. ":aiplatform_go_proto",
  238. ],
  239. )
  240. ##############################################################################
  241. # Python
  242. ##############################################################################
  243. load(
  244. "@com_google_googleapis_imports//:imports.bzl",
  245. "py_gapic_assembly_pkg",
  246. "py_gapic_library",
  247. )
  248. _PY_GAPIC_SUBPACKAGE_DEPS = [
  249. "//google/cloud/aiplatform/v1beta1/schema/predict/instance:instance_py_gapic",
  250. "//google/cloud/aiplatform/v1beta1/schema/predict/params:params_py_gapic",
  251. "//google/cloud/aiplatform/v1beta1/schema/predict/prediction:prediction_py_gapic",
  252. "//google/cloud/aiplatform/v1beta1/schema/trainingjob/definition:definition_py_gapic",
  253. ]
  254. py_gapic_library(
  255. name = "aiplatform_py_gapic",
  256. srcs = [":aiplatform_proto"],
  257. grpc_service_config = "aiplatform_grpc_service_config.json",
  258. )
  259. # Open Source Packages
  260. py_gapic_assembly_pkg(
  261. name = "aiplatform-v1beta1-py",
  262. deps = [
  263. ":aiplatform_py_gapic",
  264. ] + _PROTO_SUBPACKAGE_DEPS + _PY_GAPIC_SUBPACKAGE_DEPS,
  265. )
  266. ##############################################################################
  267. # PHP
  268. ##############################################################################
  269. load(
  270. "@com_google_googleapis_imports//:imports.bzl",
  271. "php_gapic_assembly_pkg",
  272. "php_gapic_library",
  273. "php_grpc_library",
  274. "php_proto_library",
  275. )
  276. php_proto_library(
  277. name = "aiplatform_php_proto",
  278. deps = [":aiplatform_proto"],
  279. )
  280. php_grpc_library(
  281. name = "aiplatform_php_grpc",
  282. srcs = [":aiplatform_proto"],
  283. deps = [":aiplatform_php_proto"],
  284. )
  285. php_gapic_library(
  286. name = "aiplatform_php_gapic",
  287. srcs = [":aiplatform_proto_with_info"],
  288. grpc_service_config = "aiplatform_grpc_service_config.json",
  289. service_yaml = "aiplatform_v1beta1.yaml",
  290. deps = [
  291. ":aiplatform_php_grpc",
  292. ":aiplatform_php_proto",
  293. ],
  294. )
  295. # Open Source Packages
  296. php_gapic_assembly_pkg(
  297. name = "google-cloud-aiplatform-v1beta1-php",
  298. deps = [
  299. ":aiplatform_php_gapic",
  300. ":aiplatform_php_grpc",
  301. ":aiplatform_php_proto",
  302. ],
  303. )
  304. ##############################################################################
  305. # Node.js
  306. ##############################################################################
  307. load(
  308. "@com_google_googleapis_imports//:imports.bzl",
  309. "nodejs_gapic_assembly_pkg",
  310. "nodejs_gapic_library",
  311. )
  312. nodejs_gapic_library(
  313. name = "aiplatform_nodejs_gapic",
  314. package_name = "@google-cloud/aiplatform",
  315. src = ":aiplatform_proto_with_info",
  316. extra_protoc_parameters = ["metadata"],
  317. grpc_service_config = "aiplatform_grpc_service_config.json",
  318. package = "google.cloud.aiplatform.v1beta1",
  319. service_yaml = "aiplatform_v1beta1.yaml",
  320. deps = [],
  321. )
  322. nodejs_gapic_assembly_pkg(
  323. name = "aiplatform-v1beta1-nodejs",
  324. deps = [
  325. ":aiplatform_nodejs_gapic",
  326. ":aiplatform_proto",
  327. ] + _PROTO_SUBPACKAGE_DEPS,
  328. )
  329. ##############################################################################
  330. # Ruby
  331. ##############################################################################
  332. load(
  333. "@com_google_googleapis_imports//:imports.bzl",
  334. "ruby_cloud_gapic_library",
  335. "ruby_gapic_assembly_pkg",
  336. "ruby_grpc_library",
  337. "ruby_proto_library",
  338. )
  339. ruby_proto_library(
  340. name = "aiplatform_ruby_proto",
  341. deps = [":aiplatform_proto"],
  342. )
  343. ruby_grpc_library(
  344. name = "aiplatform_ruby_grpc",
  345. srcs = [":aiplatform_proto"],
  346. deps = [":aiplatform_ruby_proto"],
  347. )
  348. ruby_cloud_gapic_library(
  349. name = "aiplatform_ruby_gapic",
  350. srcs = [":aiplatform_proto_with_info"],
  351. extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-aiplatform-v1beta1"],
  352. grpc_service_config = "aiplatform_grpc_service_config.json",
  353. deps = [
  354. ":aiplatform_ruby_grpc",
  355. ":aiplatform_ruby_proto",
  356. ],
  357. )
  358. # Open Source Packages
  359. ruby_gapic_assembly_pkg(
  360. name = "google-cloud-aiplatform-v1beta1-ruby",
  361. deps = [
  362. ":aiplatform_ruby_gapic",
  363. ":aiplatform_ruby_grpc",
  364. ":aiplatform_ruby_proto",
  365. ],
  366. )
  367. ##############################################################################
  368. # C#
  369. ##############################################################################
  370. load(
  371. "@com_google_googleapis_imports//:imports.bzl",
  372. "csharp_gapic_assembly_pkg",
  373. "csharp_gapic_library",
  374. "csharp_grpc_library",
  375. "csharp_proto_library",
  376. )
  377. csharp_proto_library(
  378. name = "aiplatform_csharp_proto",
  379. deps = [":aiplatform_proto"],
  380. )
  381. csharp_grpc_library(
  382. name = "aiplatform_csharp_grpc",
  383. srcs = [":aiplatform_proto"],
  384. deps = [":aiplatform_csharp_proto"],
  385. )
  386. ################################
  387. # Keep C# targets commented out through the regeneration, as C# gen has an issue
  388. # with the aiplatform v1beta1 protos
  389. #
  390. # csharp_gapic_library(
  391. # name = "aiplatform_csharp_gapic",
  392. # srcs = [":aiplatform_proto_with_info"],
  393. # common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
  394. # grpc_service_config = "aiplatform_grpc_service_config.json",
  395. # deps = [
  396. # ":aiplatform_csharp_grpc",
  397. # ":aiplatform_csharp_proto",
  398. # ],
  399. # )
  400. # Open Source Packages
  401. # csharp_gapic_assembly_pkg(
  402. # name = "google-cloud-aiplatform-v1beta1-csharp",
  403. # deps = [
  404. # ":aiplatform_csharp_gapic",
  405. # ":aiplatform_csharp_grpc",
  406. # ":aiplatform_csharp_proto",
  407. # ],
  408. # )
  409. ################################
  410. ##############################################################################
  411. # C++
  412. ##############################################################################
  413. # Put your C++ rules here