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