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