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