BUILD.bazel 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. # This is an API workspace, having public visibility by default makes perfect sense.
  2. package(default_visibility = ["//visibility:public"])
  3. ##############################################################################
  4. # Common
  5. ##############################################################################
  6. load("@rules_proto//proto:defs.bzl", "proto_library")
  7. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  8. proto_library(
  9. name = "firestore_bundle_proto",
  10. srcs = [
  11. "bundle.proto",
  12. ],
  13. deps = [
  14. "//google/firestore/v1:firestore_proto",
  15. "@com_google_protobuf//:timestamp_proto",
  16. ],
  17. )
  18. proto_library_with_info(
  19. name = "firestore_bundle_proto_with_info",
  20. deps = [
  21. ":firestore_bundle_proto",
  22. "//google/cloud:common_resources_proto",
  23. ],
  24. )
  25. ##############################################################################
  26. # Java
  27. ##############################################################################
  28. load(
  29. "@com_google_googleapis_imports//:imports.bzl",
  30. "java_gapic_assembly_gradle_pkg",
  31. "java_proto_library",
  32. )
  33. java_proto_library(
  34. name = "firestore_bundle_java_proto",
  35. deps = [":firestore_bundle_proto"],
  36. )
  37. # Open Source Packages
  38. java_gapic_assembly_gradle_pkg(
  39. name = "google-cloud-firestore-bundle-v1-java",
  40. transport = "grpc+rest",
  41. deps = [
  42. ":firestore_bundle_java_proto",
  43. ":firestore_bundle_proto",
  44. ],
  45. )
  46. ##############################################################################
  47. # Go
  48. ##############################################################################
  49. # Put your Go rules here
  50. ##############################################################################
  51. # Python
  52. ##############################################################################
  53. load(
  54. "@com_google_googleapis_imports//:imports.bzl",
  55. "py_gapic_assembly_pkg",
  56. "py_gapic_library",
  57. )
  58. py_gapic_library(
  59. name = "firestore_bundle_py_gapic",
  60. srcs = [":firestore_bundle_proto"],
  61. opt_args = ["python-gapic-namespace=google.cloud"],
  62. rest_numeric_enums = False,
  63. transport = "grpc",
  64. )
  65. py_gapic_assembly_pkg(
  66. name = "firestore-bundle-py",
  67. deps = [
  68. ":firestore_bundle_py_gapic",
  69. ],
  70. )
  71. ##############################################################################
  72. # PHP
  73. ##############################################################################
  74. # Put your PHP rules here
  75. ##############################################################################
  76. # Node.js
  77. ##############################################################################
  78. # Put your Node.js rules here
  79. ##############################################################################
  80. # Ruby
  81. ##############################################################################
  82. # Put your Ruby rules here
  83. ##############################################################################
  84. # C#
  85. ##############################################################################
  86. # Put your C# rules here
  87. ##############################################################################
  88. # C++
  89. ##############################################################################
  90. load(
  91. "@com_google_googleapis_imports//:imports.bzl",
  92. "cc_grpc_library",
  93. "cc_proto_library",
  94. )
  95. cc_proto_library(
  96. name = "firestore_bundle_cc_proto",
  97. deps = [":firestore_bundle_proto"],
  98. )
  99. cc_grpc_library(
  100. name = "firestore_bundle_cc_grpc",
  101. srcs = [":firestore_bundle_proto"],
  102. grpc_only = True,
  103. deps = [":firestore_bundle_cc_proto"],
  104. )