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 "//google/rpc:status_proto", 33 "//google/type:interval_proto", 34 "@com_google_protobuf//:duration_proto", 35 "@com_google_protobuf//:empty_proto", 36 "@com_google_protobuf//:field_mask_proto", 37 "@com_google_protobuf//:timestamp_proto", 38 ], 39) 40 41proto_library_with_info( 42 name = "tpu_proto_with_info", 43 deps = [ 44 ":tpu_proto", 45 "//google/cloud:common_resources_proto", 46 "//google/cloud/location:location_proto", 47 ], 48) 49 50############################################################################## 51# Java 52############################################################################## 53load( 54 "@com_google_googleapis_imports//:imports.bzl", 55 "java_gapic_assembly_gradle_pkg", 56 "java_gapic_library", 57 "java_gapic_test", 58 "java_grpc_library", 59 "java_proto_library", 60) 61 62java_proto_library( 63 name = "tpu_java_proto", 64 deps = [":tpu_proto"], 65) 66 67java_grpc_library( 68 name = "tpu_java_grpc", 69 srcs = [":tpu_proto"], 70 deps = [":tpu_java_proto"], 71) 72 73java_gapic_library( 74 name = "tpu_java_gapic", 75 srcs = [":tpu_proto_with_info"], 76 gapic_yaml = None, 77 grpc_service_config = "tpu_grpc_service_config.json", 78 rest_numeric_enums = True, 79 service_yaml = "tpu_v2alpha1.yaml", 80 test_deps = [ 81 ":tpu_java_grpc", 82 "//google/cloud/location:location_java_grpc", 83 ], 84 transport = "grpc", 85 deps = [ 86 ":tpu_java_proto", 87 "//google/api:api_java_proto", 88 "//google/cloud/location:location_java_proto", 89 ], 90) 91 92java_gapic_test( 93 name = "tpu_java_gapic_test_suite", 94 test_classes = [ 95 "com.google.cloud.tpu.v2alpha1.TpuClientTest", 96 ], 97 runtime_deps = [":tpu_java_gapic_test"], 98) 99 100# Open Source Packages 101java_gapic_assembly_gradle_pkg( 102 name = "google-cloud-tpu-v2alpha1-java", 103 include_samples = True, 104 transport = "grpc", 105 deps = [ 106 ":tpu_java_gapic", 107 ":tpu_java_grpc", 108 ":tpu_java_proto", 109 ":tpu_proto", 110 ], 111) 112 113############################################################################## 114# Go 115############################################################################## 116load( 117 "@com_google_googleapis_imports//:imports.bzl", 118 "go_gapic_assembly_pkg", 119 "go_gapic_library", 120 "go_proto_library", 121) 122 123go_proto_library( 124 name = "tpu_go_proto", 125 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 126 importpath = "cloud.google.com/go/tpu/apiv2alpha1/tpupb", 127 protos = [":tpu_proto"], 128 deps = [ 129 "//google/api:annotations_go_proto", 130 "//google/longrunning:longrunning_go_proto", 131 "//google/rpc:status_go_proto", 132 "//google/type:interval_go_proto", 133 ], 134) 135 136go_gapic_library( 137 name = "tpu_go_gapic", 138 srcs = [":tpu_proto_with_info"], 139 grpc_service_config = "tpu_grpc_service_config.json", 140 importpath = "cloud.google.com/go/tpu/apiv2alpha1;tpu", 141 metadata = True, 142 release_level = "alpha", 143 rest_numeric_enums = True, 144 service_yaml = "tpu_v2alpha1.yaml", 145 transport = "grpc", 146 deps = [ 147 ":tpu_go_proto", 148 "//google/cloud/location:location_go_proto", 149 "//google/longrunning:longrunning_go_proto", 150 "@com_google_cloud_go_longrunning//:go_default_library", 151 "@com_google_cloud_go_longrunning//autogen:go_default_library", 152 "@io_bazel_rules_go//proto/wkt:duration_go_proto", 153 ], 154) 155 156# Open Source Packages 157go_gapic_assembly_pkg( 158 name = "gapi-cloud-tpu-v2alpha1-go", 159 deps = [ 160 ":tpu_go_gapic", 161 ":tpu_go_gapic_srcjar-metadata.srcjar", 162 ":tpu_go_gapic_srcjar-snippets.srcjar", 163 ":tpu_go_gapic_srcjar-test.srcjar", 164 ":tpu_go_proto", 165 ], 166) 167 168############################################################################## 169# Python 170############################################################################## 171load( 172 "@com_google_googleapis_imports//:imports.bzl", 173 "py_gapic_assembly_pkg", 174 "py_gapic_library", 175 "py_test", 176) 177 178py_gapic_library( 179 name = "tpu_py_gapic", 180 srcs = [":tpu_proto"], 181 grpc_service_config = "tpu_grpc_service_config.json", 182 rest_numeric_enums = False, 183 service_yaml = "tpu_v2alpha1.yaml", 184 transport = "grpc", 185 deps = [ 186 ], 187) 188 189py_test( 190 name = "tpu_py_gapic_test", 191 srcs = [ 192 "tpu_py_gapic_pytest.py", 193 "tpu_py_gapic_test.py", 194 ], 195 legacy_create_init = False, 196 deps = [":tpu_py_gapic"], 197) 198 199# Open Source Packages 200py_gapic_assembly_pkg( 201 name = "tpu-v2alpha1-py", 202 deps = [ 203 ":tpu_py_gapic", 204 ], 205) 206 207############################################################################## 208# PHP 209############################################################################## 210load( 211 "@com_google_googleapis_imports//:imports.bzl", 212 "php_gapic_assembly_pkg", 213 "php_gapic_library", 214 "php_proto_library", 215) 216 217php_proto_library( 218 name = "tpu_php_proto", 219 deps = [":tpu_proto"], 220) 221 222php_gapic_library( 223 name = "tpu_php_gapic", 224 srcs = [":tpu_proto_with_info"], 225 grpc_service_config = "tpu_grpc_service_config.json", 226 rest_numeric_enums = True, 227 service_yaml = "tpu_v2alpha1.yaml", 228 transport = "grpc+rest", 229 deps = [":tpu_php_proto"], 230) 231 232# Open Source Packages 233php_gapic_assembly_pkg( 234 name = "google-cloud-tpu-v2alpha1-php", 235 deps = [ 236 ":tpu_php_gapic", 237 ":tpu_php_proto", 238 ], 239) 240 241############################################################################## 242# Node.js 243############################################################################## 244load( 245 "@com_google_googleapis_imports//:imports.bzl", 246 "nodejs_gapic_assembly_pkg", 247 "nodejs_gapic_library", 248) 249 250nodejs_gapic_library( 251 name = "tpu_nodejs_gapic", 252 package_name = "@google-cloud/tpu", 253 src = ":tpu_proto_with_info", 254 extra_protoc_parameters = ["metadata"], 255 grpc_service_config = "tpu_grpc_service_config.json", 256 package = "google.cloud.tpu.v2alpha1", 257 rest_numeric_enums = True, 258 service_yaml = "tpu_v2alpha1.yaml", 259 transport = "grpc", 260 deps = [], 261) 262 263nodejs_gapic_assembly_pkg( 264 name = "tpu-v2alpha1-nodejs", 265 deps = [ 266 ":tpu_nodejs_gapic", 267 ":tpu_proto", 268 ], 269) 270 271############################################################################## 272# Ruby 273############################################################################## 274load( 275 "@com_google_googleapis_imports//:imports.bzl", 276 "ruby_cloud_gapic_library", 277 "ruby_gapic_assembly_pkg", 278 "ruby_grpc_library", 279 "ruby_proto_library", 280) 281 282ruby_proto_library( 283 name = "tpu_ruby_proto", 284 deps = [":tpu_proto"], 285) 286 287ruby_grpc_library( 288 name = "tpu_ruby_grpc", 289 srcs = [":tpu_proto"], 290 deps = [":tpu_ruby_proto"], 291) 292 293ruby_cloud_gapic_library( 294 name = "tpu_ruby_gapic", 295 srcs = [":tpu_proto_with_info"], 296 extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-tpu-v2alpha1"], 297 grpc_service_config = "tpu_grpc_service_config.json", 298 rest_numeric_enums = True, 299 service_yaml = "tpu_v2alpha1.yaml", 300 transport = "grpc", 301 deps = [ 302 ":tpu_ruby_grpc", 303 ":tpu_ruby_proto", 304 ], 305) 306 307# Open Source Packages 308ruby_gapic_assembly_pkg( 309 name = "google-cloud-tpu-v2alpha1-ruby", 310 deps = [ 311 ":tpu_ruby_gapic", 312 ":tpu_ruby_grpc", 313 ":tpu_ruby_proto", 314 ], 315) 316 317############################################################################## 318# C# 319############################################################################## 320load( 321 "@com_google_googleapis_imports//:imports.bzl", 322 "csharp_gapic_assembly_pkg", 323 "csharp_gapic_library", 324 "csharp_grpc_library", 325 "csharp_proto_library", 326) 327 328csharp_proto_library( 329 name = "tpu_csharp_proto", 330 deps = [":tpu_proto"], 331) 332 333csharp_grpc_library( 334 name = "tpu_csharp_grpc", 335 srcs = [":tpu_proto"], 336 deps = [":tpu_csharp_proto"], 337) 338 339csharp_gapic_library( 340 name = "tpu_csharp_gapic", 341 srcs = [":tpu_proto_with_info"], 342 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 343 grpc_service_config = "tpu_grpc_service_config.json", 344 rest_numeric_enums = True, 345 service_yaml = "tpu_v2alpha1.yaml", 346 transport = "grpc", 347 deps = [ 348 ":tpu_csharp_grpc", 349 ":tpu_csharp_proto", 350 ], 351) 352 353# Open Source Packages 354csharp_gapic_assembly_pkg( 355 name = "google-cloud-tpu-v2alpha1-csharp", 356 deps = [ 357 ":tpu_csharp_gapic", 358 ":tpu_csharp_grpc", 359 ":tpu_csharp_proto", 360 ], 361) 362 363############################################################################## 364# C++ 365############################################################################## 366load( 367 "@com_google_googleapis_imports//:imports.bzl", 368 "cc_grpc_library", 369 "cc_proto_library", 370) 371 372cc_proto_library( 373 name = "tpu_cc_proto", 374 deps = [":tpu_proto"], 375) 376 377cc_grpc_library( 378 name = "tpu_cc_grpc", 379 srcs = [":tpu_proto"], 380 grpc_only = True, 381 deps = [":tpu_cc_proto"], 382) 383