BUILD.bazel 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. # This file was automatically generated by BuildFileGenerator
  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. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. proto_library(
  9. name = "definition_proto",
  10. srcs = [
  11. "automl_image_classification.proto",
  12. "automl_image_object_detection.proto",
  13. "automl_image_segmentation.proto",
  14. "automl_tables.proto",
  15. "automl_text_classification.proto",
  16. "automl_text_extraction.proto",
  17. "automl_text_sentiment.proto",
  18. "automl_video_action_recognition.proto",
  19. "automl_video_classification.proto",
  20. "automl_video_object_tracking.proto",
  21. "export_evaluated_data_items_config.proto",
  22. ],
  23. deps = [
  24. "//google/api:annotations_proto",
  25. "//google/api:field_behavior_proto",
  26. ],
  27. )
  28. ##############################################################################
  29. # Java
  30. ##############################################################################
  31. load(
  32. "@com_google_googleapis_imports//:imports.bzl",
  33. "java_grpc_library",
  34. "java_proto_library",
  35. )
  36. java_proto_library(
  37. name = "definition_java_proto",
  38. deps = [":definition_proto"],
  39. )
  40. java_grpc_library(
  41. name = "definition_java_grpc",
  42. srcs = [":definition_proto"],
  43. deps = [":definition_java_proto"],
  44. )
  45. ##############################################################################
  46. # Go
  47. ##############################################################################
  48. load(
  49. "@com_google_googleapis_imports//:imports.bzl",
  50. "go_proto_library",
  51. )
  52. go_proto_library(
  53. name = "definition_go_proto",
  54. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  55. importpath = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1/schema/trainingjob/definition",
  56. protos = [":definition_proto"],
  57. deps = [
  58. "//google/api:annotations_go_proto",
  59. "//google/api:field_behavior_go_proto",
  60. ],
  61. )
  62. ##############################################################################
  63. # Python
  64. ##############################################################################
  65. load(
  66. "@com_google_googleapis_imports//:imports.bzl",
  67. "moved_proto_library",
  68. "py_gapic_assembly_pkg",
  69. "py_gapic_library",
  70. "py_grpc_library",
  71. "py_proto_library",
  72. )
  73. moved_proto_library(
  74. name = "definition_moved_proto",
  75. srcs = [":definition_proto"],
  76. deps = [
  77. "//google/api:annotations_proto",
  78. "//google/api:field_behavior_proto",
  79. ],
  80. )
  81. py_proto_library(
  82. name = "definition_py_proto",
  83. deps = [":definition_moved_proto"],
  84. )
  85. py_grpc_library(
  86. name = "definition_py_grpc",
  87. srcs = [":definition_moved_proto"],
  88. deps = [":definition_py_proto"],
  89. )
  90. py_gapic_library(
  91. name = "definition_py_gapic",
  92. srcs = [":definition_proto"],
  93. opt_args = [
  94. "python-gapic-namespace=google.cloud.aiplatform.v1.schema.trainingjob",
  95. "python-gapic-name=definition",
  96. ],
  97. rest_numeric_enums = False,
  98. transport = "grpc",
  99. )
  100. # Open Source Packages
  101. py_gapic_assembly_pkg(
  102. name = "definition_py",
  103. deps = [
  104. ":definition_py_gapic",
  105. ],
  106. )
  107. ##############################################################################
  108. # PHP
  109. ##############################################################################
  110. load(
  111. "@com_google_googleapis_imports//:imports.bzl",
  112. "php_grpc_library",
  113. "php_proto_library",
  114. )
  115. php_proto_library(
  116. name = "definition_php_proto",
  117. deps = [":definition_proto"],
  118. )
  119. php_grpc_library(
  120. name = "definition_php_grpc",
  121. srcs = [":definition_proto"],
  122. deps = [":definition_php_proto"],
  123. )
  124. ##############################################################################
  125. # Node.js
  126. ##############################################################################
  127. load(
  128. "@com_google_googleapis_imports//:imports.bzl",
  129. "nodejs_gapic_assembly_pkg",
  130. "nodejs_gapic_library",
  131. )
  132. ##############################################################################
  133. # Ruby
  134. ##############################################################################
  135. load(
  136. "@com_google_googleapis_imports//:imports.bzl",
  137. "ruby_grpc_library",
  138. "ruby_proto_library",
  139. )
  140. ruby_proto_library(
  141. name = "definition_ruby_proto",
  142. deps = [":definition_proto"],
  143. )
  144. ruby_grpc_library(
  145. name = "definition_ruby_grpc",
  146. srcs = [":definition_proto"],
  147. deps = [":definition_ruby_proto"],
  148. )
  149. ##############################################################################
  150. # C#
  151. ##############################################################################
  152. load(
  153. "@com_google_googleapis_imports//:imports.bzl",
  154. "csharp_grpc_library",
  155. "csharp_proto_library",
  156. )
  157. csharp_proto_library(
  158. name = "definition_csharp_proto",
  159. deps = [":definition_proto"],
  160. )
  161. csharp_grpc_library(
  162. name = "definition_csharp_grpc",
  163. srcs = [":definition_proto"],
  164. deps = [":definition_csharp_proto"],
  165. )
  166. ##############################################################################
  167. # C++
  168. ##############################################################################
  169. load(
  170. "@com_google_googleapis_imports//:imports.bzl",
  171. "cc_grpc_library",
  172. "cc_proto_library",
  173. )
  174. cc_proto_library(
  175. name = "definition_cc_proto",
  176. deps = [":definition_proto"],
  177. )
  178. cc_grpc_library(
  179. name = "definition_cc_grpc",
  180. srcs = [":definition_proto"],
  181. grpc_only = True,
  182. deps = [":definition_cc_proto"],
  183. )