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 = "testing_proto", 23 srcs = [ 24 "adb_service.proto", 25 "application_details.proto", 26 "direct_access_service.proto", 27 "test_environment_discovery.proto", 28 "test_execution.proto", 29 ], 30 deps = [ 31 "//google/api:annotations_proto", 32 "//google/api:client_proto", 33 "//google/api:field_behavior_proto", 34 "//google/api:resource_proto", 35 "//google/type:date_proto", 36 "@com_google_protobuf//:duration_proto", 37 "@com_google_protobuf//:empty_proto", 38 "@com_google_protobuf//:field_mask_proto", 39 "@com_google_protobuf//:timestamp_proto", 40 ], 41) 42 43proto_library_with_info( 44 name = "testing_proto_with_info", 45 deps = [ 46 ":testing_proto", 47 "//google/cloud:common_resources_proto", 48 ], 49) 50 51############################################################################## 52# Java 53############################################################################## 54load( 55 "@com_google_googleapis_imports//:imports.bzl", 56 "java_gapic_assembly_gradle_pkg", 57 "java_gapic_library", 58 "java_gapic_test", 59 "java_grpc_library", 60 "java_proto_library", 61) 62 63java_proto_library( 64 name = "testing_java_proto", 65 deps = [":testing_proto"], 66) 67 68java_grpc_library( 69 name = "testing_java_grpc", 70 srcs = [":testing_proto"], 71 deps = [":testing_java_proto"], 72) 73 74java_gapic_library( 75 name = "testing_java_gapic", 76 srcs = [":testing_proto_with_info"], 77 gapic_yaml = None, 78 grpc_service_config = "testing_grpc_service_config.json", 79 rest_numeric_enums = True, 80 service_yaml = "testing_v1.yaml", 81 test_deps = [ 82 ":testing_java_grpc", 83 ], 84 transport = "grpc+rest", 85 deps = [ 86 ":testing_java_proto", 87 "//google/api:api_java_proto", 88 ], 89) 90 91java_gapic_test( 92 name = "testing_java_gapic_test_suite", 93 test_classes = [ 94 "com.google.devtools.testing.v1.ApplicationDetailServiceClientHttpJsonTest", 95 "com.google.devtools.testing.v1.ApplicationDetailServiceClientTest", 96 "com.google.devtools.testing.v1.DirectAccessServiceClientHttpJsonTest", 97 "com.google.devtools.testing.v1.DirectAccessServiceClientTest", 98 "com.google.devtools.testing.v1.TestEnvironmentDiscoveryServiceClientHttpJsonTest", 99 "com.google.devtools.testing.v1.TestEnvironmentDiscoveryServiceClientTest", 100 "com.google.devtools.testing.v1.TestExecutionServiceClientHttpJsonTest", 101 "com.google.devtools.testing.v1.TestExecutionServiceClientTest", 102 ], 103 runtime_deps = [":testing_java_gapic_test"], 104) 105 106# Open Source Packages 107java_gapic_assembly_gradle_pkg( 108 name = "google-cloud-devtools-testing-v1-java", 109 include_samples = True, 110 transport = "grpc+rest", 111 deps = [ 112 ":testing_java_gapic", 113 ":testing_java_grpc", 114 ":testing_java_proto", 115 ":testing_proto", 116 ], 117) 118 119############################################################################## 120# Go 121############################################################################## 122load( 123 "@com_google_googleapis_imports//:imports.bzl", 124 "go_gapic_assembly_pkg", 125 "go_gapic_library", 126 "go_proto_library", 127) 128 129go_proto_library( 130 name = "testing_go_proto", 131 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 132 importpath = "google.golang.org/genproto/googleapis/devtools/testing/v1", 133 protos = [":testing_proto"], 134 deps = [ 135 "//google/api:annotations_go_proto", 136 "//google/type:date_go_proto", 137 ], 138) 139 140go_gapic_library( 141 name = "testing_go_gapic", 142 srcs = [":testing_proto_with_info"], 143 grpc_service_config = "testing_grpc_service_config.json", 144 importpath = "cloud.google.com/go/devtools/testing/apiv1;testing", 145 metadata = True, 146 release_level = "beta", 147 rest_numeric_enums = True, 148 service_yaml = "testing_v1.yaml", 149 transport = "grpc+rest", 150 deps = [ 151 ":testing_go_proto", 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-devtools-testing-v1-go", 159 deps = [ 160 ":testing_go_gapic", 161 ":testing_go_gapic_srcjar-metadata.srcjar", 162 ":testing_go_gapic_srcjar-snippets.srcjar", 163 ":testing_go_gapic_srcjar-test.srcjar", 164 ":testing_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 = "testing_py_gapic", 180 srcs = [":testing_proto"], 181 grpc_service_config = "testing_grpc_service_config.json", 182 rest_numeric_enums = True, 183 service_yaml = "testing_v1.yaml", 184 transport = "grpc+rest", 185 deps = [ 186 ], 187) 188 189# TODO(b/288971176): uncomment when the test is fixed 190# py_test( 191# name = "testing_py_gapic_test", 192# srcs = [ 193# "testing_py_gapic_pytest.py", 194# "testing_py_gapic_test.py", 195# ], 196# legacy_create_init = False, 197# deps = [":testing_py_gapic"], 198# ) 199 200# Open Source Packages 201py_gapic_assembly_pkg( 202 name = "devtools-testing-v1-py", 203 deps = [ 204 ":testing_py_gapic", 205 ], 206) 207 208############################################################################## 209# PHP 210############################################################################## 211load( 212 "@com_google_googleapis_imports//:imports.bzl", 213 "php_gapic_assembly_pkg", 214 "php_gapic_library", 215 "php_proto_library", 216) 217 218php_proto_library( 219 name = "testing_php_proto", 220 deps = [":testing_proto"], 221) 222 223php_gapic_library( 224 name = "testing_php_gapic", 225 srcs = [":testing_proto_with_info"], 226 grpc_service_config = "testing_grpc_service_config.json", 227 migration_mode = "PRE_MIGRATION_SURFACE_ONLY", 228 rest_numeric_enums = True, 229 service_yaml = "testing_v1.yaml", 230 transport = "grpc+rest", 231 deps = [ 232 ":testing_php_proto", 233 ], 234) 235 236# Open Source Packages 237php_gapic_assembly_pkg( 238 name = "google-cloud-devtools-testing-v1-php", 239 deps = [ 240 ":testing_php_gapic", 241 ":testing_php_proto", 242 ], 243) 244 245############################################################################## 246# Node.js 247############################################################################## 248load( 249 "@com_google_googleapis_imports//:imports.bzl", 250 "nodejs_gapic_assembly_pkg", 251 "nodejs_gapic_library", 252) 253 254nodejs_gapic_library( 255 name = "testing_nodejs_gapic", 256 package_name = "@google-cloud/testing", 257 src = ":testing_proto_with_info", 258 extra_protoc_parameters = ["metadata"], 259 grpc_service_config = "testing_grpc_service_config.json", 260 package = "google.devtools.testing.v1", 261 rest_numeric_enums = True, 262 service_yaml = "testing_v1.yaml", 263 transport = "grpc+rest", 264 deps = [], 265) 266 267nodejs_gapic_assembly_pkg( 268 name = "devtools-testing-v1-nodejs", 269 deps = [ 270 ":testing_nodejs_gapic", 271 ":testing_proto", 272 ], 273) 274 275############################################################################## 276# Ruby 277############################################################################## 278load( 279 "@com_google_googleapis_imports//:imports.bzl", 280 "ruby_cloud_gapic_library", 281 "ruby_gapic_assembly_pkg", 282 "ruby_grpc_library", 283 "ruby_proto_library", 284) 285 286ruby_proto_library( 287 name = "testing_ruby_proto", 288 deps = [":testing_proto"], 289) 290 291ruby_grpc_library( 292 name = "testing_ruby_grpc", 293 srcs = [":testing_proto"], 294 deps = [":testing_ruby_proto"], 295) 296 297ruby_cloud_gapic_library( 298 name = "testing_ruby_gapic", 299 srcs = [":testing_proto_with_info"], 300 extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-devtools-testing-v1"], 301 grpc_service_config = "testing_grpc_service_config.json", 302 rest_numeric_enums = True, 303 service_yaml = "testing_v1.yaml", 304 transport = "grpc+rest", 305 deps = [ 306 ":testing_ruby_grpc", 307 ":testing_ruby_proto", 308 ], 309) 310 311# Open Source Packages 312ruby_gapic_assembly_pkg( 313 name = "google-cloud-devtools-testing-v1-ruby", 314 deps = [ 315 ":testing_ruby_gapic", 316 ":testing_ruby_grpc", 317 ":testing_ruby_proto", 318 ], 319) 320 321############################################################################## 322# C# 323############################################################################## 324load( 325 "@com_google_googleapis_imports//:imports.bzl", 326 "csharp_gapic_assembly_pkg", 327 "csharp_gapic_library", 328 "csharp_grpc_library", 329 "csharp_proto_library", 330) 331 332csharp_proto_library( 333 name = "testing_csharp_proto", 334 extra_opts = [], 335 deps = [":testing_proto"], 336) 337 338csharp_grpc_library( 339 name = "testing_csharp_grpc", 340 srcs = [":testing_proto"], 341 deps = [":testing_csharp_proto"], 342) 343 344csharp_gapic_library( 345 name = "testing_csharp_gapic", 346 srcs = [":testing_proto_with_info"], 347 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 348 grpc_service_config = "testing_grpc_service_config.json", 349 rest_numeric_enums = True, 350 service_yaml = "testing_v1.yaml", 351 deps = [ 352 ":testing_csharp_grpc", 353 ":testing_csharp_proto", 354 ], 355) 356 357# Open Source Packages 358csharp_gapic_assembly_pkg( 359 name = "google-cloud-devtools-testing-v1-csharp", 360 deps = [ 361 ":testing_csharp_gapic", 362 ":testing_csharp_grpc", 363 ":testing_csharp_proto", 364 ], 365) 366 367############################################################################## 368# C++ 369############################################################################## 370load( 371 "@com_google_googleapis_imports//:imports.bzl", 372 "cc_grpc_library", 373 "cc_proto_library", 374) 375 376cc_proto_library( 377 name = "testing_cc_proto", 378 deps = [":testing_proto"], 379) 380 381cc_grpc_library( 382 name = "testing_cc_grpc", 383 srcs = [":testing_proto"], 384 grpc_only = True, 385 deps = [":testing_cc_proto"], 386) 387