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 = "firestore_proto", 23 srcs = [ 24 "aggregation_result.proto", 25 "bloom_filter.proto", 26 "common.proto", 27 "document.proto", 28 "firestore.proto", 29 "query.proto", 30 "query_profile.proto", 31 "write.proto", 32 ], 33 deps = [ 34 "//google/api:annotations_proto", 35 "//google/api:client_proto", 36 "//google/api:field_behavior_proto", 37 "//google/rpc:status_proto", 38 "//google/type:latlng_proto", 39 "@com_google_protobuf//:duration_proto", 40 "@com_google_protobuf//:empty_proto", 41 "@com_google_protobuf//:struct_proto", 42 "@com_google_protobuf//:timestamp_proto", 43 "@com_google_protobuf//:wrappers_proto", 44 ], 45) 46 47proto_library_with_info( 48 name = "firestore_proto_with_info", 49 deps = [ 50 ":firestore_proto", 51 "//google/cloud:common_resources_proto", 52 "//google/cloud/location:location_proto", 53 ], 54) 55 56############################################################################## 57# Java 58############################################################################## 59load( 60 "@com_google_googleapis_imports//:imports.bzl", 61 "java_gapic_assembly_gradle_pkg", 62 "java_gapic_library", 63 "java_gapic_test", 64 "java_grpc_library", 65 "java_proto_library", 66) 67 68java_proto_library( 69 name = "firestore_java_proto", 70 deps = [":firestore_proto"], 71) 72 73java_grpc_library( 74 name = "firestore_java_grpc", 75 srcs = [":firestore_proto"], 76 deps = [":firestore_java_proto"], 77) 78 79java_gapic_library( 80 name = "firestore_java_gapic", 81 srcs = [":firestore_proto_with_info"], 82 gapic_yaml = "firestore_gapic.yaml", 83 grpc_service_config = "firestore_grpc_service_config.json", 84 rest_numeric_enums = True, 85 service_yaml = "firestore_v1.yaml", 86 test_deps = [ 87 ":firestore_java_grpc", 88 "//google/cloud/location:location_java_grpc", 89 ], 90 transport = "grpc+rest", 91 deps = [ 92 ":firestore_java_proto", 93 "//google/api:api_java_proto", 94 "//google/cloud/location:location_java_proto", 95 ], 96) 97 98java_gapic_test( 99 name = "firestore_java_gapic_test_suite", 100 test_classes = [ 101 "com.google.cloud.firestore.v1.FirestoreClientHttpJsonTest", 102 "com.google.cloud.firestore.v1.FirestoreClientTest", 103 ], 104 runtime_deps = [":firestore_java_gapic_test"], 105) 106 107# Open Source Packages 108java_gapic_assembly_gradle_pkg( 109 name = "google-cloud-firestore-v1-java", 110 include_samples = True, 111 transport = "grpc+rest", 112 deps = [ 113 ":firestore_java_gapic", 114 ":firestore_java_grpc", 115 ":firestore_java_proto", 116 ":firestore_proto", 117 ], 118) 119 120############################################################################## 121# Go 122############################################################################## 123load( 124 "@com_google_googleapis_imports//:imports.bzl", 125 "go_gapic_assembly_pkg", 126 "go_gapic_library", 127 "go_proto_library", 128) 129 130go_proto_library( 131 name = "firestore_go_proto", 132 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 133 importpath = "cloud.google.com/go/firestore/apiv1/firestorepb", 134 protos = [":firestore_proto"], 135 deps = [ 136 "//google/api:annotations_go_proto", 137 "//google/rpc:status_go_proto", 138 "//google/type:latlng_go_proto", 139 ], 140) 141 142go_gapic_library( 143 name = "firestore_go_gapic", 144 srcs = [":firestore_proto_with_info"], 145 grpc_service_config = "firestore_grpc_service_config.json", 146 importpath = "cloud.google.com/go/firestore/apiv1;firestore", 147 metadata = True, 148 release_level = "ga", 149 rest_numeric_enums = True, 150 service_yaml = "firestore_v1.yaml", 151 transport = "grpc+rest", 152 deps = [ 153 ":firestore_go_proto", 154 "//google/cloud/location:location_go_proto", 155 "//google/longrunning:longrunning_go_gapic", 156 "//google/longrunning:longrunning_go_proto", 157 "@com_google_cloud_go_longrunning//:go_default_library", 158 "@com_google_cloud_go_longrunning//autogen:go_default_library", 159 ], 160) 161 162# Open Source Packages 163go_gapic_assembly_pkg( 164 name = "gapi-cloud-firestore-v1-go", 165 deps = [ 166 ":firestore_go_gapic", 167 ":firestore_go_gapic_srcjar-metadata.srcjar", 168 ":firestore_go_gapic_srcjar-snippets.srcjar", 169 ":firestore_go_gapic_srcjar-test.srcjar", 170 ":firestore_go_proto", 171 ], 172) 173 174############################################################################## 175# Python 176############################################################################## 177load( 178 "@com_google_googleapis_imports//:imports.bzl", 179 "py_gapic_assembly_pkg", 180 "py_gapic_library", 181 "py_test", 182) 183 184py_gapic_library( 185 name = "firestore_py_gapic", 186 srcs = [":firestore_proto"], 187 grpc_service_config = "firestore_grpc_service_config.json", 188 opt_args = ["python-gapic-namespace=google.cloud"], 189 rest_numeric_enums = True, 190 service_yaml = "firestore_v1.yaml", 191 transport = "grpc+rest", 192 deps = [ 193 ], 194) 195 196py_test( 197 name = "firestore_py_gapic_test", 198 srcs = [ 199 "firestore_py_gapic_pytest.py", 200 "firestore_py_gapic_test.py", 201 ], 202 legacy_create_init = False, 203 deps = [":firestore_py_gapic"], 204) 205 206# Open Source Packages 207py_gapic_assembly_pkg( 208 name = "firestore-v1-py", 209 deps = [ 210 ":firestore_py_gapic", 211 ], 212) 213 214############################################################################## 215# PHP 216############################################################################## 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 = "firestore_php_proto", 226 deps = [":firestore_proto"], 227) 228 229php_gapic_library( 230 name = "firestore_php_gapic", 231 srcs = [":firestore_proto_with_info"], 232 grpc_service_config = "firestore_grpc_service_config.json", 233 migration_mode = "MIGRATING", 234 rest_numeric_enums = True, 235 service_yaml = "firestore_v1.yaml", 236 transport = "grpc+rest", 237 deps = [":firestore_php_proto"], 238) 239 240# Open Source Packages 241php_gapic_assembly_pkg( 242 name = "google-cloud-firestore-v1-php", 243 deps = [ 244 ":firestore_php_gapic", 245 ":firestore_php_proto", 246 ], 247) 248 249############################################################################## 250# Node.js 251############################################################################## 252load( 253 "@com_google_googleapis_imports//:imports.bzl", 254 "nodejs_gapic_assembly_pkg", 255 "nodejs_gapic_library", 256) 257 258nodejs_gapic_library( 259 name = "firestore_nodejs_gapic", 260 package_name = "@google-cloud/firestore", 261 src = ":firestore_proto_with_info", 262 extra_protoc_parameters = ["metadata"], 263 grpc_service_config = "firestore_grpc_service_config.json", 264 package = "google.firestore.v1", 265 rest_numeric_enums = True, 266 service_yaml = "firestore_v1.yaml", 267 transport = "grpc+rest", 268 deps = [], 269) 270 271nodejs_gapic_assembly_pkg( 272 name = "firestore-v1-nodejs", 273 deps = [ 274 ":firestore_nodejs_gapic", 275 ":firestore_proto", 276 ], 277) 278 279############################################################################## 280# Ruby 281############################################################################## 282load( 283 "@com_google_googleapis_imports//:imports.bzl", 284 "ruby_cloud_gapic_library", 285 "ruby_gapic_assembly_pkg", 286 "ruby_grpc_library", 287 "ruby_proto_library", 288) 289 290ruby_proto_library( 291 name = "firestore_ruby_proto", 292 deps = [":firestore_proto"], 293) 294 295ruby_grpc_library( 296 name = "firestore_ruby_grpc", 297 srcs = [":firestore_proto"], 298 deps = [":firestore_ruby_proto"], 299) 300 301ruby_cloud_gapic_library( 302 name = "firestore_ruby_gapic", 303 srcs = [":firestore_proto_with_info"], 304 extra_protoc_parameters = [ 305 "ruby-cloud-api-id=firestore.googleapis.com", 306 "ruby-cloud-api-shortname=firestore", 307 "ruby-cloud-env-prefix=FIRESTORE", 308 "ruby-cloud-gem-name=google-cloud-firestore-v1", 309 "ruby-cloud-product-url=https://cloud.google.com/firestore", 310 ], 311 grpc_service_config = "firestore_grpc_service_config.json", 312 rest_numeric_enums = True, 313 ruby_cloud_description = "Cloud Firestore is a NoSQL document database built for automatic scaling, high performance, and ease of application development.", 314 ruby_cloud_title = "Cloud Firestore V1", 315 service_yaml = "firestore_v1.yaml", 316 transport = "grpc+rest", 317 deps = [ 318 ":firestore_ruby_grpc", 319 ":firestore_ruby_proto", 320 ], 321) 322 323# Open Source Packages 324ruby_gapic_assembly_pkg( 325 name = "google-cloud-firestore-v1-ruby", 326 deps = [ 327 ":firestore_ruby_gapic", 328 ":firestore_ruby_grpc", 329 ":firestore_ruby_proto", 330 ], 331) 332 333############################################################################## 334# C# 335############################################################################## 336load( 337 "@com_google_googleapis_imports//:imports.bzl", 338 "csharp_gapic_assembly_pkg", 339 "csharp_gapic_library", 340 "csharp_grpc_library", 341 "csharp_proto_library", 342) 343 344csharp_proto_library( 345 name = "firestore_csharp_proto", 346 deps = [":firestore_proto"], 347) 348 349csharp_grpc_library( 350 name = "firestore_csharp_grpc", 351 srcs = [":firestore_proto"], 352 deps = [":firestore_csharp_proto"], 353) 354 355csharp_gapic_library( 356 name = "firestore_csharp_gapic", 357 srcs = [":firestore_proto_with_info"], 358 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 359 grpc_service_config = "firestore_grpc_service_config.json", 360 rest_numeric_enums = True, 361 service_yaml = "firestore_v1.yaml", 362 deps = [ 363 ":firestore_csharp_grpc", 364 ":firestore_csharp_proto", 365 ], 366) 367 368# Open Source Packages 369csharp_gapic_assembly_pkg( 370 name = "google-cloud-firestore-v1-csharp", 371 deps = [ 372 ":firestore_csharp_gapic", 373 ":firestore_csharp_grpc", 374 ":firestore_csharp_proto", 375 ], 376) 377 378############################################################################## 379# C++ 380############################################################################## 381load( 382 "@com_google_googleapis_imports//:imports.bzl", 383 "cc_grpc_library", 384 "cc_proto_library", 385) 386 387cc_proto_library( 388 name = "firestore_cc_proto", 389 deps = [":firestore_proto"], 390) 391 392cc_grpc_library( 393 name = "firestore_cc_grpc", 394 srcs = [":firestore_proto"], 395 grpc_only = True, 396 deps = [":firestore_cc_proto"], 397) 398