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# buildifier: disable=load-on-top 13 14# This is an API workspace, having public visibility by default makes perfect sense. 15package(default_visibility = ["//visibility:public"]) 16 17############################################################################## 18# Common 19############################################################################## 20# buildifier: disable=same-origin-load 21load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") 22load("@rules_proto//proto:defs.bzl", "proto_library") 23 24proto_library( 25 name = "apphub_proto", 26 srcs = [ 27 "apphub_service.proto", 28 "application.proto", 29 "attributes.proto", 30 "service.proto", 31 "service_project_attachment.proto", 32 "workload.proto", 33 ], 34 deps = [ 35 "//google/api:annotations_proto", 36 "//google/api:client_proto", 37 "//google/api:field_behavior_proto", 38 "//google/api:field_info_proto", 39 "//google/api:resource_proto", 40 "//google/longrunning:operations_proto", 41 "@com_google_protobuf//:empty_proto", 42 "@com_google_protobuf//:field_mask_proto", 43 "@com_google_protobuf//:timestamp_proto", 44 ], 45) 46 47proto_library_with_info( 48 name = "apphub_proto_with_info", 49 deps = [ 50 ":apphub_proto", 51 "//google/cloud/location:location_proto", 52 "//google/cloud:common_resources_proto", 53 "//google/iam/v1:iam_policy_proto", 54 ], 55) 56 57############################################################################## 58# Java 59############################################################################## 60# buildifier: disable=same-origin-load 61load( 62 "@com_google_googleapis_imports//:imports.bzl", 63 "java_gapic_assembly_gradle_pkg", 64 "java_gapic_library", 65 "java_gapic_test", 66 "java_grpc_library", 67 "java_proto_library", 68) 69 70java_proto_library( 71 name = "apphub_java_proto", 72 deps = [":apphub_proto"], 73) 74 75java_grpc_library( 76 name = "apphub_java_grpc", 77 srcs = [":apphub_proto"], 78 deps = [":apphub_java_proto"], 79) 80 81java_gapic_library( 82 name = "apphub_java_gapic", 83 srcs = [":apphub_proto_with_info"], 84 gapic_yaml = None, 85 grpc_service_config = "apphub_v1_grpc_service_config.json", 86 rest_numeric_enums = True, 87 service_yaml = "apphub_v1.yaml", 88 test_deps = [ 89 "//google/cloud/location:location_java_grpc", 90 "//google/iam/v1:iam_java_grpc", 91 ":apphub_java_grpc", 92 ], 93 transport = "grpc+rest", 94 deps = [ 95 ":apphub_java_proto", 96 "//google/api:api_java_proto", 97 "//google/cloud/location:location_java_proto", 98 "//google/iam/v1:iam_java_proto", 99 ], 100) 101 102java_gapic_test( 103 name = "apphub_java_gapic_test_suite", 104 test_classes = [ 105 "com.google.cloud.apphub.v1.AppHubClientHttpJsonTest", 106 "com.google.cloud.apphub.v1.AppHubClientTest", 107 ], 108 runtime_deps = [":apphub_java_gapic_test"], 109) 110 111# Open Source Packages 112java_gapic_assembly_gradle_pkg( 113 name = "google-cloud-apphub-v1-java", 114 transport = "grpc+rest", 115 deps = [ 116 ":apphub_java_gapic", 117 ":apphub_java_grpc", 118 ":apphub_java_proto", 119 ":apphub_proto", 120 ], 121 include_samples = True, 122) 123 124############################################################################## 125# Go 126############################################################################## 127# buildifier: disable=same-origin-load 128load( 129 "@com_google_googleapis_imports//:imports.bzl", 130 "go_gapic_assembly_pkg", 131 "go_gapic_library", 132 "go_proto_library", 133) 134 135go_proto_library( 136 name = "apphub_go_proto", 137 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 138 importpath = "cloud.google.com/go/apphub/apiv1/apphubpb", 139 protos = [":apphub_proto"], 140 deps = [ 141 "//google/api:annotations_go_proto", 142 "//google/longrunning:longrunning_go_proto", 143 ], 144) 145 146go_gapic_library( 147 name = "apphub_go_gapic", 148 srcs = [":apphub_proto_with_info"], 149 grpc_service_config = "apphub_v1_grpc_service_config.json", 150 importpath = "cloud.google.com/go/apphub/apiv1;apphub", 151 metadata = True, 152 release_level = "beta", 153 rest_numeric_enums = True, 154 service_yaml = "apphub_v1.yaml", 155 transport = "grpc+rest", 156 deps = [ 157 ":apphub_go_proto", 158 "//google/cloud/location:location_go_proto", 159 "//google/iam/v1:iam_go_proto", 160 "//google/longrunning:longrunning_go_proto", 161 "@com_google_cloud_go_longrunning//:go_default_library", 162 "@com_google_cloud_go_longrunning//autogen:go_default_library", 163 ], 164) 165 166# Open Source Packages 167go_gapic_assembly_pkg( 168 name = "gapi-cloud-apphub-v1-go", 169 deps = [ 170 ":apphub_go_gapic", 171 ":apphub_go_gapic_srcjar-test.srcjar", 172 ":apphub_go_gapic_srcjar-metadata.srcjar", 173 ":apphub_go_gapic_srcjar-snippets.srcjar", 174 ":apphub_go_proto", 175 ], 176) 177 178############################################################################## 179# Python 180############################################################################## 181# buildifier: disable=same-origin-load 182load( 183 "@com_google_googleapis_imports//:imports.bzl", 184 "py_gapic_assembly_pkg", 185 "py_gapic_library", 186 "py_test", 187) 188 189py_gapic_library( 190 name = "apphub_py_gapic", 191 srcs = [":apphub_proto"], 192 grpc_service_config = "apphub_v1_grpc_service_config.json", 193 rest_numeric_enums = True, 194 service_yaml = "apphub_v1.yaml", 195 transport = "grpc+rest", 196 deps = [ 197 "//google/iam/v1:iam_policy_py_proto", 198 ], 199) 200 201py_test( 202 name = "apphub_py_gapic_test", 203 srcs = [ 204 "apphub_py_gapic_pytest.py", 205 "apphub_py_gapic_test.py", 206 ], 207 legacy_create_init = False, 208 deps = [":apphub_py_gapic"], 209) 210 211# Open Source Packages 212py_gapic_assembly_pkg( 213 name = "apphub-v1-py", 214 deps = [ 215 ":apphub_py_gapic", 216 ], 217) 218 219############################################################################## 220# PHP 221############################################################################## 222# buildifier: disable=same-origin-load 223load( 224 "@com_google_googleapis_imports//:imports.bzl", 225 "php_gapic_assembly_pkg", 226 "php_gapic_library", 227 "php_proto_library", 228) 229 230php_proto_library( 231 name = "apphub_php_proto", 232 deps = [":apphub_proto"], 233) 234 235php_gapic_library( 236 name = "apphub_php_gapic", 237 srcs = [":apphub_proto_with_info"], 238 grpc_service_config = "apphub_v1_grpc_service_config.json", 239 rest_numeric_enums = True, 240 migration_mode = "NEW_SURFACE_ONLY", 241 service_yaml = "apphub_v1.yaml", 242 transport = "grpc+rest", 243 deps = [ 244 ":apphub_php_proto", 245 ], 246) 247 248# Open Source Packages 249php_gapic_assembly_pkg( 250 name = "google-cloud-apphub-v1-php", 251 deps = [ 252 ":apphub_php_gapic", 253 ":apphub_php_proto", 254 ], 255) 256 257############################################################################## 258# Node.js 259############################################################################## 260# buildifier: disable=same-origin-load 261load( 262 "@com_google_googleapis_imports//:imports.bzl", 263 "nodejs_gapic_assembly_pkg", 264 "nodejs_gapic_library", 265) 266 267nodejs_gapic_library( 268 name = "apphub_nodejs_gapic", 269 package_name = "@google-cloud/apphub", 270 src = ":apphub_proto_with_info", 271 extra_protoc_parameters = ["metadata"], 272 grpc_service_config = "apphub_v1_grpc_service_config.json", 273 package = "google.cloud.apphub.v1", 274 rest_numeric_enums = True, 275 service_yaml = "apphub_v1.yaml", 276 transport = "grpc+rest", 277 deps = [], 278) 279 280nodejs_gapic_assembly_pkg( 281 name = "apphub-v1-nodejs", 282 deps = [ 283 ":apphub_nodejs_gapic", 284 ":apphub_proto", 285 ], 286) 287 288############################################################################## 289# Ruby 290############################################################################## 291# buildifier: disable=same-origin-load 292load( 293 "@com_google_googleapis_imports//:imports.bzl", 294 "ruby_gapic_assembly_pkg", 295 "ruby_cloud_gapic_library", 296 "ruby_grpc_library", 297 "ruby_proto_library", 298) 299 300ruby_proto_library( 301 name = "apphub_ruby_proto", 302 deps = [":apphub_proto"], 303) 304 305ruby_grpc_library( 306 name = "apphub_ruby_grpc", 307 srcs = [":apphub_proto"], 308 deps = [":apphub_ruby_proto"], 309) 310 311ruby_cloud_gapic_library( 312 name = "apphub_ruby_gapic", 313 srcs = [":apphub_proto_with_info"], 314 extra_protoc_parameters = [ 315 "ruby-cloud-gem-name=google-cloud-app_hub-v1", 316 ], 317 grpc_service_config = "apphub_v1_grpc_service_config.json", 318 rest_numeric_enums = True, 319 service_yaml = "apphub_v1.yaml", 320 transport = "grpc+rest", 321 deps = [ 322 ":apphub_ruby_grpc", 323 ":apphub_ruby_proto", 324 ], 325) 326 327# Open Source Packages 328ruby_gapic_assembly_pkg( 329 name = "google-cloud-app_hub-v1-ruby", 330 deps = [ 331 ":apphub_ruby_gapic", 332 ":apphub_ruby_grpc", 333 ":apphub_ruby_proto", 334 ], 335) 336 337############################################################################## 338# C# 339############################################################################## 340# buildifier: disable=same-origin-load 341load( 342 "@com_google_googleapis_imports//:imports.bzl", 343 "csharp_gapic_assembly_pkg", 344 "csharp_gapic_library", 345 "csharp_grpc_library", 346 "csharp_proto_library", 347) 348 349csharp_proto_library( 350 name = "apphub_csharp_proto", 351 extra_opts = [], 352 deps = [":apphub_proto"], 353) 354 355csharp_grpc_library( 356 name = "apphub_csharp_grpc", 357 srcs = [":apphub_proto"], 358 deps = [":apphub_csharp_proto"], 359) 360 361csharp_gapic_library( 362 name = "apphub_csharp_gapic", 363 srcs = [":apphub_proto_with_info"], 364 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 365 grpc_service_config = "apphub_v1_grpc_service_config.json", 366 rest_numeric_enums = True, 367 service_yaml = "apphub_v1.yaml", 368 transport = "grpc+rest", 369 deps = [ 370 ":apphub_csharp_grpc", 371 ":apphub_csharp_proto", 372 ], 373) 374 375# Open Source Packages 376csharp_gapic_assembly_pkg( 377 name = "google-cloud-apphub-v1-csharp", 378 deps = [ 379 ":apphub_csharp_gapic", 380 ":apphub_csharp_grpc", 381 ":apphub_csharp_proto", 382 ], 383) 384 385############################################################################## 386# C++ 387############################################################################## 388# buildifier: disable=same-origin-load 389load( 390 "@com_google_googleapis_imports//:imports.bzl", 391 "cc_grpc_library", 392 "cc_proto_library", 393) 394 395cc_proto_library( 396 name = "apphub_cc_proto", 397 deps = [":apphub_proto"], 398) 399 400cc_grpc_library( 401 name = "apphub_cc_grpc", 402 srcs = [":apphub_proto"], 403 grpc_only = True, 404 deps = [":apphub_cc_proto"], 405) 406