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 = "channel_proto", 23 srcs = [ 24 "billing_accounts.proto", 25 "channel_partner_links.proto", 26 "common.proto", 27 "customers.proto", 28 "entitlement_changes.proto", 29 "entitlements.proto", 30 "offers.proto", 31 "operations.proto", 32 "products.proto", 33 "reports_service.proto", 34 "repricing.proto", 35 "service.proto", 36 "subscriber_event.proto", 37 ], 38 deps = [ 39 "//google/api:annotations_proto", 40 "//google/api:client_proto", 41 "//google/api:field_behavior_proto", 42 "//google/api:resource_proto", 43 "//google/longrunning:operations_proto", 44 "//google/type:date_proto", 45 "//google/type:datetime_proto", 46 "//google/type:decimal_proto", 47 "//google/type:money_proto", 48 "//google/type:postal_address_proto", 49 "@com_google_protobuf//:any_proto", 50 "@com_google_protobuf//:empty_proto", 51 "@com_google_protobuf//:field_mask_proto", 52 "@com_google_protobuf//:timestamp_proto", 53 ], 54) 55 56proto_library_with_info( 57 name = "channel_proto_with_info", 58 deps = [ 59 ":channel_proto", 60 "//google/cloud:common_resources_proto", 61 ], 62) 63 64############################################################################## 65# Java 66############################################################################## 67load( 68 "@com_google_googleapis_imports//:imports.bzl", 69 "java_gapic_assembly_gradle_pkg", 70 "java_gapic_library", 71 "java_gapic_test", 72 "java_grpc_library", 73 "java_proto_library", 74) 75 76java_proto_library( 77 name = "channel_java_proto", 78 deps = [":channel_proto"], 79) 80 81java_grpc_library( 82 name = "channel_java_grpc", 83 srcs = [":channel_proto"], 84 deps = [":channel_java_proto"], 85) 86 87java_gapic_library( 88 name = "channel_java_gapic", 89 srcs = [":channel_proto_with_info"], 90 gapic_yaml = None, 91 grpc_service_config = "cloudchannel_grpc_service_config.json", 92 rest_numeric_enums = True, 93 service_yaml = "cloudchannel_v1.yaml", 94 test_deps = [ 95 ":channel_java_grpc", 96 ], 97 transport = "grpc+rest", 98 deps = [ 99 ":channel_java_proto", 100 "//google/api:api_java_proto", 101 ], 102) 103 104java_gapic_test( 105 name = "channel_java_gapic_test_suite", 106 test_classes = [ 107 "com.google.cloud.channel.v1.CloudChannelServiceClientHttpJsonTest", 108 "com.google.cloud.channel.v1.CloudChannelServiceClientTest", 109 ], 110 runtime_deps = [":channel_java_gapic_test"], 111) 112 113# Open Source Packages 114java_gapic_assembly_gradle_pkg( 115 name = "google-cloud-channel-v1-java", 116 include_samples = True, 117 transport = "grpc+rest", 118 deps = [ 119 ":channel_java_gapic", 120 ":channel_java_grpc", 121 ":channel_java_proto", 122 ":channel_proto", 123 ], 124) 125 126############################################################################## 127# Go 128############################################################################## 129load( 130 "@com_google_googleapis_imports//:imports.bzl", 131 "go_gapic_assembly_pkg", 132 "go_gapic_library", 133 "go_proto_library", 134) 135 136go_proto_library( 137 name = "channel_go_proto", 138 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 139 importpath = "cloud.google.com/go/channel/apiv1/channelpb", 140 protos = [":channel_proto"], 141 deps = [ 142 "//google/api:annotations_go_proto", 143 "//google/longrunning:longrunning_go_proto", 144 "//google/type:date_go_proto", 145 "//google/type:datetime_go_proto", 146 "//google/type:decimal_go_proto", 147 "//google/type:money_go_proto", 148 "//google/type:postaladdress_go_proto", 149 ], 150) 151 152go_gapic_library( 153 name = "channel_go_gapic", 154 srcs = [":channel_proto_with_info"], 155 grpc_service_config = "cloudchannel_grpc_service_config.json", 156 importpath = "cloud.google.com/go/channel/apiv1;channel", 157 metadata = True, 158 release_level = "ga", 159 rest_numeric_enums = True, 160 service_yaml = "cloudchannel_v1.yaml", 161 transport = "grpc+rest", 162 deps = [ 163 ":channel_go_proto", 164 "//google/longrunning:longrunning_go_proto", 165 "@com_google_cloud_go_longrunning//:go_default_library", 166 "@com_google_cloud_go_longrunning//autogen:go_default_library", 167 "@io_bazel_rules_go//proto/wkt:any_go_proto", 168 ], 169) 170 171# Open Source Packages 172go_gapic_assembly_pkg( 173 name = "gapi-cloud-channel-v1-go", 174 deps = [ 175 ":channel_go_gapic", 176 ":channel_go_gapic_srcjar-metadata.srcjar", 177 ":channel_go_gapic_srcjar-snippets.srcjar", 178 ":channel_go_gapic_srcjar-test.srcjar", 179 ":channel_go_proto", 180 ], 181) 182 183############################################################################## 184# Python 185############################################################################## 186load( 187 "@com_google_googleapis_imports//:imports.bzl", 188 "py_gapic_assembly_pkg", 189 "py_gapic_library", 190 "py_test", 191) 192 193py_gapic_library( 194 name = "channel_py_gapic", 195 srcs = [":channel_proto"], 196 grpc_service_config = "cloudchannel_grpc_service_config.json", 197 rest_numeric_enums = True, 198 service_yaml = "cloudchannel_v1.yaml", 199 transport = "grpc", 200) 201 202py_test( 203 name = "channel_py_gapic_test", 204 srcs = [ 205 "channel_py_gapic_pytest.py", 206 "channel_py_gapic_test.py", 207 ], 208 legacy_create_init = False, 209 deps = [":channel_py_gapic"], 210) 211 212# Open Source Packages 213py_gapic_assembly_pkg( 214 name = "channel-v1-py", 215 deps = [ 216 ":channel_py_gapic", 217 ], 218) 219 220############################################################################## 221# PHP 222############################################################################## 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 = "channel_php_proto", 232 deps = [":channel_proto"], 233) 234 235php_gapic_library( 236 name = "channel_php_gapic", 237 srcs = [":channel_proto_with_info"], 238 grpc_service_config = "cloudchannel_grpc_service_config.json", 239 migration_mode = "MIGRATING", 240 rest_numeric_enums = True, 241 service_yaml = "cloudchannel_v1.yaml", 242 transport = "grpc+rest", 243 deps = [":channel_php_proto"], 244) 245 246# Open Source Packages 247php_gapic_assembly_pkg( 248 name = "google-cloud-channel-v1-php", 249 deps = [ 250 ":channel_php_gapic", 251 ":channel_php_proto", 252 ], 253) 254 255############################################################################## 256# Node.js 257############################################################################## 258load( 259 "@com_google_googleapis_imports//:imports.bzl", 260 "nodejs_gapic_assembly_pkg", 261 "nodejs_gapic_library", 262) 263 264nodejs_gapic_library( 265 name = "channel_nodejs_gapic", 266 package_name = "@google-cloud/channel", 267 src = ":channel_proto_with_info", 268 extra_protoc_parameters = ["metadata"], 269 grpc_service_config = "cloudchannel_grpc_service_config.json", 270 package = "google.cloud.channel.v1", 271 rest_numeric_enums = True, 272 service_yaml = "cloudchannel_v1.yaml", 273 transport = "grpc+rest", 274 deps = [], 275) 276 277nodejs_gapic_assembly_pkg( 278 name = "channel-v1-nodejs", 279 deps = [ 280 ":channel_nodejs_gapic", 281 ":channel_proto", 282 ], 283) 284 285############################################################################## 286# Ruby 287############################################################################## 288load( 289 "@com_google_googleapis_imports//:imports.bzl", 290 "ruby_cloud_gapic_library", 291 "ruby_gapic_assembly_pkg", 292 "ruby_grpc_library", 293 "ruby_proto_library", 294) 295 296ruby_proto_library( 297 name = "channel_ruby_proto", 298 deps = [":channel_proto"], 299) 300 301ruby_grpc_library( 302 name = "channel_ruby_grpc", 303 srcs = [":channel_proto"], 304 deps = [":channel_ruby_proto"], 305) 306 307ruby_cloud_gapic_library( 308 name = "channel_ruby_gapic", 309 srcs = [":channel_proto_with_info"], 310 extra_protoc_parameters = [ 311 "ruby-cloud-api-id=cloudchannel.googleapis.com", 312 "ruby-cloud-api-shortname=cloudchannel", 313 "ruby-cloud-env-prefix=CHANNEL", 314 "ruby-cloud-gem-name=google-cloud-channel-v1", 315 "ruby-cloud-product-url=https://cloud.google.com/channel", 316 ], 317 grpc_service_config = "cloudchannel_grpc_service_config.json", 318 rest_numeric_enums = True, 319 ruby_cloud_description = "You can use Channel Services to manage your relationships with your partners and your customers. Channel Services include a console and APIs to view and provision links between distributors and resellers, customers and entitlements.", 320 ruby_cloud_title = "Cloud Channel V1", 321 service_yaml = "cloudchannel_v1.yaml", 322 transport = "grpc+rest", 323 deps = [ 324 ":channel_ruby_grpc", 325 ":channel_ruby_proto", 326 ], 327) 328 329# Open Source Packages 330ruby_gapic_assembly_pkg( 331 name = "google-cloud-channel-v1-ruby", 332 deps = [ 333 ":channel_ruby_gapic", 334 ":channel_ruby_grpc", 335 ":channel_ruby_proto", 336 ], 337) 338 339############################################################################## 340# C# 341############################################################################## 342load( 343 "@com_google_googleapis_imports//:imports.bzl", 344 "csharp_gapic_assembly_pkg", 345 "csharp_gapic_library", 346 "csharp_grpc_library", 347 "csharp_proto_library", 348) 349 350csharp_proto_library( 351 name = "channel_csharp_proto", 352 deps = [":channel_proto"], 353) 354 355csharp_grpc_library( 356 name = "channel_csharp_grpc", 357 srcs = [":channel_proto"], 358 deps = [":channel_csharp_proto"], 359) 360 361csharp_gapic_library( 362 name = "channel_csharp_gapic", 363 srcs = [":channel_proto_with_info"], 364 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 365 grpc_service_config = "cloudchannel_grpc_service_config.json", 366 rest_numeric_enums = True, 367 service_yaml = "cloudchannel_v1.yaml", 368 transport = "grpc+rest", 369 deps = [ 370 ":channel_csharp_grpc", 371 ":channel_csharp_proto", 372 ], 373) 374 375# Open Source Packages 376csharp_gapic_assembly_pkg( 377 name = "google-cloud-channel-v1-csharp", 378 deps = [ 379 ":channel_csharp_gapic", 380 ":channel_csharp_grpc", 381 ":channel_csharp_proto", 382 ], 383) 384 385############################################################################## 386# C++ 387############################################################################## 388load( 389 "@com_google_googleapis_imports//:imports.bzl", 390 "cc_grpc_library", 391 "cc_proto_library", 392) 393 394cc_proto_library( 395 name = "channel_cc_proto", 396 deps = [":channel_proto"], 397) 398 399cc_grpc_library( 400 name = "channel_cc_grpc", 401 srcs = [":channel_proto"], 402 grpc_only = True, 403 deps = [":channel_cc_proto"], 404) 405