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