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 = "notifications_proto", 26 srcs = [ 27 "notificationsapi.proto", 28 ], 29 deps = [ 30 "//google/api:annotations_proto", 31 "//google/api:client_proto", 32 "//google/api:field_behavior_proto", 33 "//google/api:resource_proto", 34 "//google/shopping/type:type_proto", # Manual fix. Original :types_proto 35 "@com_google_protobuf//:empty_proto", 36 "@com_google_protobuf//:field_mask_proto", 37 ], 38) 39 40proto_library_with_info( 41 name = "notifications_proto_with_info", 42 deps = [ 43 ":notifications_proto", 44 "//google/cloud:common_resources_proto", 45 ], 46) 47 48############################################################################## 49# Java 50############################################################################## 51# buildifier: disable=same-origin-load 52load( 53 "@com_google_googleapis_imports//:imports.bzl", 54 "java_gapic_assembly_gradle_pkg", 55 "java_gapic_library", 56 "java_gapic_test", 57 "java_grpc_library", 58 "java_proto_library", 59) 60 61java_proto_library( 62 name = "notifications_java_proto", 63 deps = [":notifications_proto"], 64) 65 66java_grpc_library( 67 name = "notifications_java_grpc", 68 srcs = [":notifications_proto"], 69 deps = [":notifications_java_proto"], 70) 71 72java_gapic_library( 73 name = "notifications_java_gapic", 74 srcs = [":notifications_proto_with_info"], 75 gapic_yaml = None, 76 grpc_service_config = "notifications_grpc_service_config.json", 77 rest_numeric_enums = True, 78 service_yaml = "merchantapi_v1beta.yaml", 79 test_deps = [ 80 ":notifications_java_grpc", 81 ], 82 transport = "grpc+rest", 83 deps = [ 84 ":notifications_java_proto", 85 "//google/api:api_java_proto", 86 ], 87) 88 89java_gapic_test( 90 name = "notifications_java_gapic_test_suite", 91 test_classes = [ 92 "com.google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClientHttpJsonTest", 93 "com.google.shopping.merchant.notifications.v1beta.NotificationsApiServiceClientTest", 94 ], 95 runtime_deps = [":notifications_java_gapic_test"], 96) 97 98# Open Source Packages 99java_gapic_assembly_gradle_pkg( 100 name = "google-cloud-merchant-notifications-v1beta-java", 101 transport = "grpc+rest", 102 deps = [ 103 ":notifications_java_gapic", 104 ":notifications_java_grpc", 105 ":notifications_java_proto", 106 ":notifications_proto", 107 ], 108 include_samples = True, 109) 110 111############################################################################## 112# Go 113############################################################################## 114# buildifier: disable=same-origin-load 115load( 116 "@com_google_googleapis_imports//:imports.bzl", 117 "go_gapic_assembly_pkg", 118 "go_gapic_library", 119 "go_proto_library", 120) 121 122go_proto_library( 123 name = "notifications_go_proto", 124 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 125 importpath = "cloud.google.com/go/shopping/merchant/notifications/apiv1beta/notificationspb", 126 protos = [":notifications_proto"], 127 deps = [ 128 "//google/api:annotations_go_proto", 129 "//google/shopping/type:type_go_proto", # Manual fix. Original :types_go_proto 130 ], 131) 132 133go_gapic_library( 134 name = "notifications_go_gapic", 135 srcs = [":notifications_proto_with_info"], 136 grpc_service_config = "notifications_grpc_service_config.json", 137 importpath = "cloud.google.com/go/shopping/merchant/notifications/apiv1beta;notifications", 138 metadata = True, 139 release_level = "beta", 140 rest_numeric_enums = True, 141 service_yaml = "merchantapi_v1beta.yaml", 142 transport = "grpc+rest", 143 deps = [ 144 ":notifications_go_proto", 145 ], 146) 147 148# Open Source Packages 149go_gapic_assembly_pkg( 150 name = "gapi-cloud-merchant-notifications-v1beta-go", 151 deps = [ 152 ":notifications_go_gapic", 153 ":notifications_go_gapic_srcjar-test.srcjar", 154 ":notifications_go_gapic_srcjar-metadata.srcjar", 155 ":notifications_go_gapic_srcjar-snippets.srcjar", 156 ":notifications_go_proto", 157 ], 158) 159 160############################################################################## 161# Python 162############################################################################## 163# buildifier: disable=same-origin-load 164load( 165 "@com_google_googleapis_imports//:imports.bzl", 166 "py_gapic_assembly_pkg", 167 "py_gapic_library", 168 "py_import", 169) 170 171py_import( 172 name = "shopping_type", 173 srcs = [ 174 "//google/shopping/type:type_py_gapic", 175], 176) 177 178py_gapic_library( 179 name = "notifications_py_gapic", 180 srcs = [":notifications_proto"], 181 grpc_service_config = "notifications_grpc_service_config.json", 182 opt_args = [ 183 "proto-plus-deps=google.shopping.type", # Added manually 184 "python-gapic-namespace=google.shopping", 185 "python-gapic-name=merchant_notifications", 186 ], 187 rest_numeric_enums = True, 188 service_yaml = "merchantapi_v1beta.yaml", 189 transport = "grpc+rest", 190 deps = [ 191 ":shopping_type", # Added manually 192 ], 193) 194 195py_test( 196 name = "notifications_py_gapic_test", 197 srcs = [ 198 "notifications_py_gapic_pytest.py", 199 "notifications_py_gapic_test.py", 200 ], 201 legacy_create_init = False, 202 deps = [":notifications_py_gapic"], 203) 204 205# Open Source Packages 206py_gapic_assembly_pkg( 207 name = "merchant-notifications-v1beta-py", 208 deps = [ 209 ":notifications_py_gapic", 210 ], 211) 212 213############################################################################## 214# PHP 215############################################################################## 216# buildifier: disable=same-origin-load 217load( 218 "@com_google_googleapis_imports//:imports.bzl", 219 "php_gapic_assembly_pkg", 220 "php_gapic_library", 221 "php_proto_library", 222) 223 224php_proto_library( 225 name = "notifications_php_proto", 226 deps = [":notifications_proto"], 227) 228 229php_gapic_library( 230 name = "notifications_php_gapic", 231 srcs = [":notifications_proto_with_info"], 232 grpc_service_config = "notifications_grpc_service_config.json", 233 rest_numeric_enums = True, 234 migration_mode = "NEW_SURFACE_ONLY", 235 service_yaml = "merchantapi_v1beta.yaml", 236 transport = "grpc+rest", 237 deps = [ 238 ":notifications_php_proto", 239 ], 240) 241 242# Open Source Packages 243php_gapic_assembly_pkg( 244 name = "google-cloud-merchant-notifications-v1beta-php", 245 deps = [ 246 ":notifications_php_gapic", 247 ":notifications_php_proto", 248 ], 249) 250 251############################################################################## 252# Node.js 253############################################################################## 254# buildifier: disable=same-origin-load 255load( 256 "@com_google_googleapis_imports//:imports.bzl", 257 "nodejs_gapic_assembly_pkg", 258 "nodejs_gapic_library", 259) 260 261nodejs_gapic_library( 262 name = "notifications_nodejs_gapic", 263 package_name = "@google-cloud/notifications", 264 src = ":notifications_proto_with_info", 265 extra_protoc_parameters = ["metadata"], 266 grpc_service_config = "notifications_grpc_service_config.json", 267 package = "google.shopping.merchant.notifications.v1beta", 268 rest_numeric_enums = True, 269 service_yaml = "merchantapi_v1beta.yaml", 270 transport = "grpc+rest", 271 deps = [], 272) 273 274nodejs_gapic_assembly_pkg( 275 name = "merchant-notifications-v1beta-nodejs", 276 deps = [ 277 ":notifications_nodejs_gapic", 278 ":notifications_proto", 279 "//google/shopping/type:type_proto" # Added manual 280 ], 281) 282 283############################################################################## 284# Ruby 285############################################################################## 286# buildifier: disable=same-origin-load 287load( 288 "@com_google_googleapis_imports//:imports.bzl", 289 "ruby_gapic_assembly_pkg", 290 "ruby_cloud_gapic_library", 291 "ruby_grpc_library", 292 "ruby_proto_library", 293) 294 295ruby_proto_library( 296 name = "notifications_ruby_proto", 297 deps = [":notifications_proto"], 298) 299 300ruby_grpc_library( 301 name = "notifications_ruby_grpc", 302 srcs = [":notifications_proto"], 303 deps = [":notifications_ruby_proto"], 304) 305 306ruby_cloud_gapic_library( 307 name = "notifications_ruby_gapic", 308 srcs = [":notifications_proto_with_info"], 309 extra_protoc_parameters = [ 310 "ruby-cloud-gem-name=google-shopping-merchant-notifications-v1beta", 311 "ruby-cloud-extra-dependencies=google-shopping-type=>0.0+<2.a", 312 ], 313 grpc_service_config = "notifications_grpc_service_config.json", 314 rest_numeric_enums = True, 315 service_yaml = "merchantapi_v1beta.yaml", 316 transport = "grpc+rest", 317 deps = [ 318 ":notifications_ruby_grpc", 319 ":notifications_ruby_proto", 320 ], 321) 322 323# Open Source Packages 324ruby_gapic_assembly_pkg( 325 name = "google-shopping-merchant-notifications-v1beta-ruby", 326 deps = [ 327 ":notifications_ruby_gapic", 328 ":notifications_ruby_grpc", 329 ":notifications_ruby_proto", 330 ], 331) 332 333############################################################################## 334# C# 335############################################################################## 336# buildifier: disable=same-origin-load 337load( 338 "@com_google_googleapis_imports//:imports.bzl", 339 "csharp_gapic_assembly_pkg", 340 "csharp_gapic_library", 341 "csharp_grpc_library", 342 "csharp_proto_library", 343) 344 345csharp_proto_library( 346 name = "notifications_csharp_proto", 347 extra_opts = [], 348 deps = [":notifications_proto"], 349) 350 351csharp_grpc_library( 352 name = "notifications_csharp_grpc", 353 srcs = [":notifications_proto"], 354 deps = [":notifications_csharp_proto"], 355) 356 357csharp_gapic_library( 358 name = "notifications_csharp_gapic", 359 srcs = [":notifications_proto_with_info"], 360 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 361 grpc_service_config = "notifications_grpc_service_config.json", 362 rest_numeric_enums = True, 363 service_yaml = "merchantapi_v1beta.yaml", 364 transport = "grpc+rest", 365 deps = [ 366 ":notifications_csharp_grpc", 367 ":notifications_csharp_proto", 368 ], 369) 370 371# Open Source Packages 372csharp_gapic_assembly_pkg( 373 name = "google-cloud-merchant-notifications-v1beta-csharp", 374 deps = [ 375 ":notifications_csharp_gapic", 376 ":notifications_csharp_grpc", 377 ":notifications_csharp_proto", 378 ], 379) 380 381############################################################################## 382# C++ 383############################################################################## 384# buildifier: disable=same-origin-load 385load( 386 "@com_google_googleapis_imports//:imports.bzl", 387 "cc_grpc_library", 388 "cc_proto_library", 389) 390 391cc_proto_library( 392 name = "notifications_cc_proto", 393 deps = [":notifications_proto"], 394) 395 396cc_grpc_library( 397 name = "notifications_cc_grpc", 398 srcs = [":notifications_proto"], 399 grpc_only = True, 400 deps = [":notifications_cc_proto"], 401) 402