1# This file was automatically generated by BuildFileGenerator 2# https://github.com/googleapis/rules_gapic/tree/master/bazel 3 4# Most of the manual changes to this file will be overwritten. 5# It's **only** allowed to change the following rule attribute values: 6# - names of *_gapic_assembly_* rules 7# - certain parameters of *_gapic_library rules, including but not limited to: 8# * extra_protoc_parameters 9# * extra_protoc_file_parameters 10# The complete list of preserved parameters can be found in the source code. 11 12# This is an API workspace, having public visibility by default makes perfect sense. 13package(default_visibility = ["//visibility:public"]) 14 15############################################################################## 16# Common 17############################################################################## 18load("@rules_proto//proto:defs.bzl", "proto_library") 19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") 20 21proto_library( 22 name = "tpu_proto", 23 srcs = [ 24 "cloud_tpu.proto", 25 ], 26 deps = [ 27 "//google/api:annotations_proto", 28 "//google/api:client_proto", 29 "//google/api:field_behavior_proto", 30 "//google/api:resource_proto", 31 "//google/longrunning:operations_proto", 32 "@com_google_protobuf//:empty_proto", 33 "@com_google_protobuf//:field_mask_proto", 34 "@com_google_protobuf//:timestamp_proto", 35 ], 36) 37 38proto_library_with_info( 39 name = "tpu_proto_with_info", 40 deps = [ 41 ":tpu_proto", 42 "//google/cloud:common_resources_proto", 43 "//google/cloud/location:location_proto", 44 ], 45) 46 47############################################################################## 48# Java 49############################################################################## 50load( 51 "@com_google_googleapis_imports//:imports.bzl", 52 "java_gapic_assembly_gradle_pkg", 53 "java_gapic_library", 54 "java_gapic_test", 55 "java_grpc_library", 56 "java_proto_library", 57) 58 59java_proto_library( 60 name = "tpu_java_proto", 61 deps = [":tpu_proto"], 62) 63 64java_grpc_library( 65 name = "tpu_java_grpc", 66 srcs = [":tpu_proto"], 67 deps = [":tpu_java_proto"], 68) 69 70java_gapic_library( 71 name = "tpu_java_gapic", 72 srcs = [":tpu_proto_with_info"], 73 gapic_yaml = None, 74 grpc_service_config = "tpu_grpc_service_config.json", 75 rest_numeric_enums = True, 76 service_yaml = "tpu_v2.yaml", 77 test_deps = [ 78 ":tpu_java_grpc", 79 "//google/cloud/location:location_java_grpc", 80 ], 81 transport = "grpc+rest", 82 deps = [ 83 ":tpu_java_proto", 84 "//google/api:api_java_proto", 85 "//google/cloud/location:location_java_proto", 86 ], 87) 88 89java_gapic_test( 90 name = "tpu_java_gapic_test_suite", 91 test_classes = [ 92 "com.google.cloud.tpu.v2.TpuClientHttpJsonTest", 93 "com.google.cloud.tpu.v2.TpuClientTest", 94 ], 95 runtime_deps = [":tpu_java_gapic_test"], 96) 97 98# Open Source Packages 99java_gapic_assembly_gradle_pkg( 100 name = "google-cloud-tpu-v2-java", 101 include_samples = True, 102 transport = "grpc+rest", 103 deps = [ 104 ":tpu_java_gapic", 105 ":tpu_java_grpc", 106 ":tpu_java_proto", 107 ":tpu_proto", 108 ], 109) 110 111############################################################################## 112# Go 113############################################################################## 114load( 115 "@com_google_googleapis_imports//:imports.bzl", 116 "go_gapic_assembly_pkg", 117 "go_gapic_library", 118 "go_proto_library", 119) 120 121go_proto_library( 122 name = "tpu_go_proto", 123 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 124 importpath = "cloud.google.com/go/tpu/apiv2/tpupb", 125 protos = [":tpu_proto"], 126 deps = [ 127 "//google/api:annotations_go_proto", 128 "//google/longrunning:longrunning_go_proto", 129 ], 130) 131 132go_gapic_library( 133 name = "tpu_go_gapic", 134 srcs = [":tpu_proto_with_info"], 135 grpc_service_config = "tpu_grpc_service_config.json", 136 importpath = "cloud.google.com/go/tpu/apiv2;tpu", 137 metadata = True, 138 release_level = "ga", 139 rest_numeric_enums = True, 140 service_yaml = "tpu_v2.yaml", 141 transport = "grpc+rest", 142 deps = [ 143 ":tpu_go_proto", 144 "//google/cloud/location:location_go_proto", 145 "//google/longrunning:longrunning_go_proto", 146 "@com_google_cloud_go_longrunning//:go_default_library", 147 "@com_google_cloud_go_longrunning//autogen:go_default_library", 148 ], 149) 150 151# Open Source Packages 152go_gapic_assembly_pkg( 153 name = "gapi-cloud-tpu-v2-go", 154 deps = [ 155 ":tpu_go_gapic", 156 ":tpu_go_gapic_srcjar-metadata.srcjar", 157 ":tpu_go_gapic_srcjar-snippets.srcjar", 158 ":tpu_go_gapic_srcjar-test.srcjar", 159 ":tpu_go_proto", 160 ], 161) 162 163############################################################################## 164# Python 165############################################################################## 166load( 167 "@com_google_googleapis_imports//:imports.bzl", 168 "py_gapic_assembly_pkg", 169 "py_gapic_library", 170 "py_test", 171) 172 173py_gapic_library( 174 name = "tpu_py_gapic", 175 srcs = [":tpu_proto"], 176 grpc_service_config = "tpu_grpc_service_config.json", 177 rest_numeric_enums = True, 178 service_yaml = "tpu_v2.yaml", 179 transport = "grpc+rest", 180 deps = [ 181 ], 182) 183 184py_test( 185 name = "tpu_py_gapic_test", 186 srcs = [ 187 "tpu_py_gapic_pytest.py", 188 "tpu_py_gapic_test.py", 189 ], 190 legacy_create_init = False, 191 deps = [":tpu_py_gapic"], 192) 193 194# Open Source Packages 195py_gapic_assembly_pkg( 196 name = "tpu-v2-py", 197 deps = [ 198 ":tpu_py_gapic", 199 ], 200) 201 202############################################################################## 203# PHP 204############################################################################## 205load( 206 "@com_google_googleapis_imports//:imports.bzl", 207 "php_gapic_assembly_pkg", 208 "php_gapic_library", 209 "php_proto_library", 210) 211 212php_proto_library( 213 name = "tpu_php_proto", 214 deps = [":tpu_proto"], 215) 216 217php_gapic_library( 218 name = "tpu_php_gapic", 219 srcs = [":tpu_proto_with_info"], 220 grpc_service_config = "tpu_grpc_service_config.json", 221 rest_numeric_enums = True, 222 service_yaml = "tpu_v2.yaml", 223 transport = "grpc+rest", 224 migration_mode = "NEW_SURFACE_ONLY", 225 deps = [":tpu_php_proto"], 226) 227 228# Open Source Packages 229php_gapic_assembly_pkg( 230 name = "google-cloud-tpu-v2-php", 231 deps = [ 232 ":tpu_php_gapic", 233 ":tpu_php_proto", 234 ], 235) 236 237############################################################################## 238# Node.js 239############################################################################## 240load( 241 "@com_google_googleapis_imports//:imports.bzl", 242 "nodejs_gapic_assembly_pkg", 243 "nodejs_gapic_library", 244) 245 246nodejs_gapic_library( 247 name = "tpu_nodejs_gapic", 248 package_name = "@google-cloud/tpu", 249 src = ":tpu_proto_with_info", 250 extra_protoc_parameters = ["metadata"], 251 grpc_service_config = "tpu_grpc_service_config.json", 252 package = "google.cloud.tpu.v2", 253 rest_numeric_enums = True, 254 service_yaml = "tpu_v2.yaml", 255 transport = "grpc+rest", 256 deps = [], 257) 258 259nodejs_gapic_assembly_pkg( 260 name = "tpu-v2-nodejs", 261 deps = [ 262 ":tpu_nodejs_gapic", 263 ":tpu_proto", 264 ], 265) 266 267############################################################################## 268# Ruby 269############################################################################## 270load( 271 "@com_google_googleapis_imports//:imports.bzl", 272 "ruby_cloud_gapic_library", 273 "ruby_gapic_assembly_pkg", 274 "ruby_grpc_library", 275 "ruby_proto_library", 276) 277 278ruby_proto_library( 279 name = "tpu_ruby_proto", 280 deps = [":tpu_proto"], 281) 282 283ruby_grpc_library( 284 name = "tpu_ruby_grpc", 285 srcs = [":tpu_proto"], 286 deps = [":tpu_ruby_proto"], 287) 288 289ruby_cloud_gapic_library( 290 name = "tpu_ruby_gapic", 291 srcs = [":tpu_proto_with_info"], 292 extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-tpu-v2"], 293 grpc_service_config = "tpu_grpc_service_config.json", 294 rest_numeric_enums = True, 295 service_yaml = "tpu_v2.yaml", 296 transport = "grpc+rest", 297 deps = [ 298 ":tpu_ruby_grpc", 299 ":tpu_ruby_proto", 300 ], 301) 302 303# Open Source Packages 304ruby_gapic_assembly_pkg( 305 name = "google-cloud-tpu-v2-ruby", 306 deps = [ 307 ":tpu_ruby_gapic", 308 ":tpu_ruby_grpc", 309 ":tpu_ruby_proto", 310 ], 311) 312 313############################################################################## 314# C# 315############################################################################## 316load( 317 "@com_google_googleapis_imports//:imports.bzl", 318 "csharp_gapic_assembly_pkg", 319 "csharp_gapic_library", 320 "csharp_grpc_library", 321 "csharp_proto_library", 322) 323 324csharp_proto_library( 325 name = "tpu_csharp_proto", 326 deps = [":tpu_proto"], 327) 328 329csharp_grpc_library( 330 name = "tpu_csharp_grpc", 331 srcs = [":tpu_proto"], 332 deps = [":tpu_csharp_proto"], 333) 334 335csharp_gapic_library( 336 name = "tpu_csharp_gapic", 337 srcs = [":tpu_proto_with_info"], 338 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 339 grpc_service_config = "tpu_grpc_service_config.json", 340 rest_numeric_enums = True, 341 service_yaml = "tpu_v2.yaml", 342 transport = "grpc+rest", 343 deps = [ 344 ":tpu_csharp_grpc", 345 ":tpu_csharp_proto", 346 ], 347) 348 349# Open Source Packages 350csharp_gapic_assembly_pkg( 351 name = "google-cloud-tpu-v2-csharp", 352 deps = [ 353 ":tpu_csharp_gapic", 354 ":tpu_csharp_grpc", 355 ":tpu_csharp_proto", 356 ], 357) 358 359############################################################################## 360# C++ 361############################################################################## 362load( 363 "@com_google_googleapis_imports//:imports.bzl", 364 "cc_grpc_library", 365 "cc_proto_library", 366) 367 368cc_proto_library( 369 name = "tpu_cc_proto", 370 deps = [":tpu_proto"], 371) 372 373cc_grpc_library( 374 name = "tpu_cc_grpc", 375 srcs = [":tpu_proto"], 376 grpc_only = True, 377 deps = [":tpu_cc_proto"], 378) 379