xref: /aosp_15_r20/external/googleapis/google/bigtable/v2/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2
3##############################################################################
4# Common
5##############################################################################
6load("@rules_proto//proto:defs.bzl", "proto_library")
7load(
8    "@com_google_googleapis_imports//:imports.bzl",
9    "cc_grpc_library",
10    "cc_proto_library",
11    "csharp_gapic_assembly_pkg",
12    "csharp_gapic_library",
13    "csharp_grpc_library",
14    "csharp_proto_library",
15    "go_gapic_assembly_pkg",
16    "go_gapic_library",
17    "go_proto_library",
18    "java_gapic_assembly_gradle_pkg",
19    "java_gapic_library",
20    "java_gapic_test",
21    "java_grpc_library",
22    "java_proto_library",
23    "nodejs_gapic_assembly_pkg",
24    "nodejs_gapic_library",
25    "php_gapic_assembly_pkg",
26    "php_gapic_library",
27    "php_proto_library",
28    "proto_library_with_info",
29    "py_gapic_assembly_pkg",
30    "py_gapic_library",
31    "py_test",
32    "ruby_cloud_gapic_library",
33    "ruby_gapic_assembly_pkg",
34    "ruby_grpc_library",
35    "ruby_proto_library",
36)
37
38# This is an API workspace, having public visibility by default makes perfect sense.
39package(default_visibility = ["//visibility:public"])
40
41proto_library(
42    name = "bigtable_proto",
43    srcs = [
44        "bigtable.proto",
45        "data.proto",
46        "feature_flags.proto",
47        "request_stats.proto",
48        "response_params.proto",
49    ],
50    deps = [
51        "//google/api:annotations_proto",
52        "//google/api:client_proto",
53        "//google/api:field_behavior_proto",
54        "//google/api:resource_proto",
55        "//google/api:routing_proto",
56        "//google/rpc:status_proto",
57        "@com_google_protobuf//:duration_proto",
58        "@com_google_protobuf//:timestamp_proto",
59        "@com_google_protobuf//:wrappers_proto",
60    ],
61)
62
63proto_library_with_info(
64    name = "bigtable_proto_with_info",
65    deps = [
66        ":bigtable_proto",
67        "//google/cloud:common_resources_proto",
68    ],
69)
70
71java_proto_library(
72    name = "bigtable_java_proto",
73    deps = [":bigtable_proto"],
74)
75
76java_grpc_library(
77    name = "bigtable_java_grpc",
78    srcs = [":bigtable_proto"],
79    deps = [":bigtable_java_proto"],
80)
81
82java_gapic_library(
83    name = "bigtable_java_gapic",
84    srcs = [":bigtable_proto_with_info"],
85    gapic_yaml = "bigtable_gapic.yaml",
86    grpc_service_config = "bigtable_grpc_service_config.json",
87    rest_numeric_enums = True,
88    service_yaml = "bigtable_v2.yaml",
89    test_deps = [
90        ":bigtable_java_grpc",
91    ],
92    transport = "grpc",
93    deps = [
94        ":bigtable_java_proto",
95    ],
96)
97
98java_gapic_test(
99    name = "bigtable_java_gapic_test_suite",
100    test_classes = [
101        "com.google.cloud.bigtable.data.v2.BaseBigtableDataClientTest",
102    ],
103    runtime_deps = [":bigtable_java_gapic_test"],
104)
105
106# Open Source Packages
107java_gapic_assembly_gradle_pkg(
108    name = "google-cloud-bigtable-v2-java",
109    include_samples = True,
110    transport = "grpc",
111    deps = [
112        ":bigtable_java_gapic",
113        ":bigtable_java_grpc",
114        ":bigtable_java_proto",
115        ":bigtable_proto",
116    ],
117)
118
119go_proto_library(
120    name = "bigtable_go_proto",
121    compilers = ["@io_bazel_rules_go//proto:go_grpc"],
122    importpath = "google.golang.org/genproto/googleapis/bigtable/v2",
123    protos = [":bigtable_proto"],
124    deps = [
125        "//google/api:annotations_go_proto",
126        "//google/rpc:status_go_proto",
127    ],
128)
129
130go_gapic_library(
131    name = "bigtable_go_gapic",
132    srcs = [":bigtable_proto_with_info"],
133    grpc_service_config = "bigtable_grpc_service_config.json",
134    importpath = "cloud.google.com/go/bigtable/apiv2;bigtable",
135    rest_numeric_enums = True,
136    service_yaml = "bigtable_v2.yaml",
137    transport = "grpc",
138    deps = [
139        ":bigtable_go_proto",
140    ],
141)
142
143# Open Source Packages
144go_gapic_assembly_pkg(
145    name = "gapi-cloud-bigtable-v2-go",
146    deps = [
147        ":bigtable_go_gapic",
148        ":bigtable_go_gapic_srcjar-snippets.srcjar",
149        ":bigtable_go_gapic_srcjar-test.srcjar",
150        ":bigtable_go_proto",
151    ],
152)
153
154py_gapic_library(
155    name = "bigtable_py_gapic",
156    srcs = [":bigtable_proto"],
157    grpc_service_config = "bigtable_grpc_service_config.json",
158    opt_args = [
159        "python-gapic-namespace=google.cloud",
160        "autogen-snippets=False",
161    ],
162    rest_numeric_enums = True,
163    service_yaml = "bigtable_v2.yaml",
164    transport = "grpc+rest",
165)
166
167py_test(
168    name = "bigtable_py_gapic_test",
169    srcs = [
170        "bigtable_py_gapic_pytest.py",
171        "bigtable_py_gapic_test.py",
172    ],
173    legacy_create_init = False,
174    deps = [":bigtable_py_gapic"],
175)
176
177py_gapic_assembly_pkg(
178    name = "bigtable-v2-py",
179    deps = [
180        ":bigtable_py_gapic",
181    ],
182)
183
184php_proto_library(
185    name = "bigtable_php_proto",
186    deps = [":bigtable_proto"],
187)
188
189php_gapic_library(
190    name = "bigtable_php_gapic",
191    srcs = [":bigtable_proto_with_info"],
192    rest_numeric_enums = True,
193    service_yaml = "bigtable_v2.yaml",
194    transport = "grpc+rest",
195    migration_mode = "MIGRATING",
196    deps = [":bigtable_php_proto"],
197)
198
199# Open Source Packages
200php_gapic_assembly_pkg(
201    name = "google-cloud-bigtable-v2-php",
202    deps = [
203        ":bigtable_php_gapic",
204        ":bigtable_php_proto",
205    ],
206)
207
208nodejs_gapic_library(
209    name = "bigtable_nodejs_gapic",
210    package_name = "@google-cloud/bigtable",
211    src = ":bigtable_proto_with_info",
212    extra_protoc_parameters = ["metadata"],
213    grpc_service_config = "bigtable_grpc_service_config.json",
214    handwritten_layer = True,
215    main_service = "bigtable",
216    package = "google.bigtable.v2",
217    rest_numeric_enums = True,
218    service_yaml = "bigtable_v2.yaml",
219    transport = "grpc",
220    deps = [],
221)
222
223nodejs_gapic_assembly_pkg(
224    name = "bigtable-v2-nodejs",
225    deps = [
226        ":bigtable_nodejs_gapic",
227        ":bigtable_proto",
228    ],
229)
230
231ruby_proto_library(
232    name = "bigtable_ruby_proto",
233    deps = [":bigtable_proto"],
234)
235
236ruby_grpc_library(
237    name = "bigtable_ruby_grpc",
238    srcs = [":bigtable_proto"],
239    deps = [":bigtable_ruby_proto"],
240)
241
242ruby_cloud_gapic_library(
243    name = "bigtable_ruby_gapic",
244    srcs = [":bigtable_proto_with_info"],
245    extra_protoc_parameters = [
246        "ruby-cloud-gem-name=google-cloud-bigtable-v2",
247        "ruby-cloud-env-prefix=BIGTABLE",
248        "ruby-cloud-product-url=https://cloud.google.com/bigtable",
249        "ruby-cloud-api-id=bigtable.googleapis.com",
250        "ruby-cloud-api-shortname=bigtable",
251    ],
252    grpc_service_config = "bigtable_grpc_service_config.json",
253    rest_numeric_enums = True,
254    ruby_cloud_description = "Cloud Bigtable is a fully managed, scalable NoSQL database service for large analytical and operational workloads.",
255    ruby_cloud_title = "Cloud Bigtable V2",
256    service_yaml = "bigtable_v2.yaml",
257    deps = [
258        ":bigtable_ruby_grpc",
259        ":bigtable_ruby_proto",
260    ],
261)
262
263# Open Source Packages
264ruby_gapic_assembly_pkg(
265    name = "google-cloud-bigtable-v2-ruby",
266    deps = [
267        ":bigtable_ruby_gapic",
268        ":bigtable_ruby_grpc",
269        ":bigtable_ruby_proto",
270    ],
271)
272
273csharp_proto_library(
274    name = "bigtable_csharp_proto",
275    deps = [":bigtable_proto"],
276)
277
278csharp_grpc_library(
279    name = "bigtable_csharp_grpc",
280    srcs = [":bigtable_proto"],
281    deps = [":bigtable_csharp_proto"],
282)
283
284csharp_gapic_library(
285    name = "bigtable_csharp_gapic",
286    srcs = [":bigtable_proto_with_info"],
287    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
288    grpc_service_config = "bigtable_grpc_service_config.json",
289    rest_numeric_enums = True,
290    service_yaml = "bigtable_v2.yaml",
291    deps = [
292        ":bigtable_csharp_grpc",
293        ":bigtable_csharp_proto",
294    ],
295)
296
297# Open Source Packages
298csharp_gapic_assembly_pkg(
299    name = "google-cloud-bigtable-v2-csharp",
300    deps = [
301        ":bigtable_csharp_gapic",
302        ":bigtable_csharp_grpc",
303        ":bigtable_csharp_proto",
304    ],
305)
306
307cc_proto_library(
308    name = "bigtable_cc_proto",
309    deps = [":bigtable_proto"],
310)
311
312cc_grpc_library(
313    name = "bigtable_cc_grpc",
314    srcs = [":bigtable_proto"],
315    grpc_only = True,
316    deps = [":bigtable_cc_proto"],
317)
318