Skip to content

Commit 389abd1

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add BigQuery Metastore Partition Service API version v1beta
PiperOrigin-RevId: 753333720
1 parent 195c3bf commit 389abd1

5 files changed

Lines changed: 925 additions & 0 deletions

File tree

Lines changed: 388 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,388 @@
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+
# buildifier: disable=load-on-top
13+
14+
# This is an API workspace, having public visibility by default makes perfect sense.
15+
package(default_visibility = ["//visibility:public"])
16+
17+
##############################################################################
18+
# Common
19+
##############################################################################
20+
# buildifier: disable=same-origin-load
21+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
22+
load("@rules_proto//proto:defs.bzl", "proto_library")
23+
24+
proto_library(
25+
name = "storage_proto",
26+
srcs = [
27+
"metastore_partition.proto",
28+
"partition.proto",
29+
],
30+
deps = [
31+
"//google/api:annotations_proto",
32+
"//google/api:client_proto",
33+
"//google/api:field_behavior_proto",
34+
"//google/api:resource_proto",
35+
"@com_google_protobuf//:empty_proto",
36+
"@com_google_protobuf//:field_mask_proto",
37+
"@com_google_protobuf//:timestamp_proto",
38+
],
39+
)
40+
41+
proto_library_with_info(
42+
name = "storage_proto_with_info",
43+
deps = [
44+
":storage_proto",
45+
"//google/cloud:common_resources_proto",
46+
],
47+
)
48+
49+
##############################################################################
50+
# Java
51+
##############################################################################
52+
# buildifier: disable=same-origin-load
53+
load(
54+
"@com_google_googleapis_imports//:imports.bzl",
55+
"java_gapic_assembly_gradle_pkg",
56+
"java_gapic_library",
57+
"java_gapic_test",
58+
"java_grpc_library",
59+
"java_proto_library",
60+
)
61+
62+
java_proto_library(
63+
name = "storage_java_proto",
64+
deps = [":storage_proto"],
65+
)
66+
67+
java_grpc_library(
68+
name = "storage_java_grpc",
69+
srcs = [":storage_proto"],
70+
deps = [":storage_java_proto"],
71+
)
72+
73+
java_gapic_library(
74+
name = "storage_java_gapic",
75+
srcs = [":storage_proto_with_info"],
76+
gapic_yaml = None,
77+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
78+
rest_numeric_enums = True,
79+
service_yaml = "bigquerystorage_v1beta.yaml",
80+
test_deps = [
81+
":storage_java_grpc",
82+
],
83+
transport = "grpc",
84+
deps = [
85+
":storage_java_proto",
86+
"//google/api:api_java_proto",
87+
],
88+
)
89+
90+
java_gapic_test(
91+
name = "storage_java_gapic_test_suite",
92+
test_classes = [
93+
"com.google.cloud.bigquery.storage.v1beta.MetastorePartitionServiceClientTest",
94+
],
95+
runtime_deps = [":storage_java_gapic_test"],
96+
)
97+
98+
# Open Source Packages
99+
java_gapic_assembly_gradle_pkg(
100+
name = "google-cloud-bigquery-storage-v1beta-java",
101+
include_samples = True,
102+
transport = "grpc",
103+
deps = [
104+
":storage_java_gapic",
105+
":storage_java_grpc",
106+
":storage_java_proto",
107+
":storage_proto",
108+
],
109+
)
110+
111+
##############################################################################
112+
# Go
113+
##############################################################################
114+
# buildifier: disable=same-origin-load
115+
load(
116+
"@com_google_googleapis_imports//:imports.bzl",
117+
"go_gapic_assembly_pkg",
118+
"go_gapic_library",
119+
"go_proto_library",
120+
)
121+
122+
go_proto_library(
123+
name = "storage_go_proto",
124+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
125+
importpath = "cloud.google.com/go/bigquery/storage/apiv1beta/storagepb",
126+
protos = [":storage_proto"],
127+
deps = [
128+
"//google/api:annotations_go_proto",
129+
],
130+
)
131+
132+
go_gapic_library(
133+
name = "storage_go_gapic",
134+
srcs = [":storage_proto_with_info"],
135+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
136+
importpath = "cloud.google.com/go/bigquery/storage/apiv1beta;storage",
137+
metadata = True,
138+
release_level = "beta",
139+
rest_numeric_enums = True,
140+
service_yaml = "bigquerystorage_v1beta.yaml",
141+
transport = "grpc",
142+
deps = [
143+
":storage_go_proto",
144+
],
145+
)
146+
147+
# Open Source Packages
148+
go_gapic_assembly_pkg(
149+
name = "gapi-cloud-bigquery-storage-v1beta-go",
150+
deps = [
151+
":storage_go_gapic",
152+
":storage_go_gapic_srcjar-metadata.srcjar",
153+
":storage_go_gapic_srcjar-snippets.srcjar",
154+
":storage_go_gapic_srcjar-test.srcjar",
155+
":storage_go_proto",
156+
],
157+
)
158+
159+
##############################################################################
160+
# Python
161+
##############################################################################
162+
# buildifier: disable=same-origin-load
163+
load(
164+
"@com_google_googleapis_imports//:imports.bzl",
165+
"py_gapic_assembly_pkg",
166+
"py_gapic_library",
167+
"py_test",
168+
)
169+
170+
py_gapic_library(
171+
name = "storage_py_gapic",
172+
srcs = [":storage_proto"],
173+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
174+
opt_args = [
175+
"python-gapic-namespace=google.cloud",
176+
"python-gapic-name=bigquery_storage",
177+
],
178+
rest_numeric_enums = True,
179+
service_yaml = "bigquerystorage_v1beta.yaml",
180+
transport = "grpc",
181+
deps = [],
182+
)
183+
184+
py_test(
185+
name = "storage_py_gapic_test",
186+
srcs = [
187+
"storage_py_gapic_pytest.py",
188+
"storage_py_gapic_test.py",
189+
],
190+
legacy_create_init = False,
191+
deps = [":storage_py_gapic"],
192+
)
193+
194+
# Open Source Packages
195+
py_gapic_assembly_pkg(
196+
name = "bigquery-storage-v1beta-py",
197+
deps = [
198+
":storage_py_gapic",
199+
],
200+
)
201+
202+
##############################################################################
203+
# PHP
204+
##############################################################################
205+
# buildifier: disable=same-origin-load
206+
load(
207+
"@com_google_googleapis_imports//:imports.bzl",
208+
"php_gapic_assembly_pkg",
209+
"php_gapic_library",
210+
"php_proto_library",
211+
)
212+
213+
php_proto_library(
214+
name = "storage_php_proto",
215+
deps = [":storage_proto"],
216+
)
217+
218+
php_gapic_library(
219+
name = "storage_php_gapic",
220+
srcs = [":storage_proto_with_info"],
221+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
222+
migration_mode = "NEW_SURFACE_ONLY",
223+
rest_numeric_enums = True,
224+
service_yaml = "bigquerystorage_v1beta.yaml",
225+
transport = "grpc",
226+
deps = [
227+
":storage_php_proto",
228+
],
229+
)
230+
231+
# Open Source Packages
232+
php_gapic_assembly_pkg(
233+
name = "google-cloud-bigquery-storage-v1beta-php",
234+
deps = [
235+
":storage_php_gapic",
236+
":storage_php_proto",
237+
],
238+
)
239+
240+
##############################################################################
241+
# Node.js
242+
##############################################################################
243+
# buildifier: disable=same-origin-load
244+
load(
245+
"@com_google_googleapis_imports//:imports.bzl",
246+
"nodejs_gapic_assembly_pkg",
247+
"nodejs_gapic_library",
248+
)
249+
250+
nodejs_gapic_library(
251+
name = "storage_nodejs_gapic",
252+
package_name = "@google-cloud/storage",
253+
src = ":storage_proto_with_info",
254+
extra_protoc_parameters = ["metadata"],
255+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
256+
package = "google.cloud.bigquery.storage.v1beta",
257+
rest_numeric_enums = True,
258+
service_yaml = "bigquerystorage_v1beta.yaml",
259+
transport = "grpc",
260+
deps = [],
261+
)
262+
263+
nodejs_gapic_assembly_pkg(
264+
name = "bigquery-storage-v1beta-nodejs",
265+
deps = [
266+
":storage_nodejs_gapic",
267+
":storage_proto",
268+
],
269+
)
270+
271+
##############################################################################
272+
# Ruby
273+
##############################################################################
274+
# buildifier: disable=same-origin-load
275+
load(
276+
"@com_google_googleapis_imports//:imports.bzl",
277+
"ruby_cloud_gapic_library",
278+
"ruby_gapic_assembly_pkg",
279+
"ruby_grpc_library",
280+
"ruby_proto_library",
281+
)
282+
283+
ruby_proto_library(
284+
name = "storage_ruby_proto",
285+
deps = [":storage_proto"],
286+
)
287+
288+
ruby_grpc_library(
289+
name = "storage_ruby_grpc",
290+
srcs = [":storage_proto"],
291+
deps = [":storage_ruby_proto"],
292+
)
293+
294+
ruby_cloud_gapic_library(
295+
name = "storage_ruby_gapic",
296+
srcs = [":storage_proto_with_info"],
297+
extra_protoc_parameters = [
298+
"ruby-cloud-gem-name=google-cloud-bigquery-storage-v1beta",
299+
],
300+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
301+
rest_numeric_enums = True,
302+
service_yaml = "bigquerystorage_v1beta.yaml",
303+
transport = "grpc",
304+
deps = [
305+
":storage_ruby_grpc",
306+
":storage_ruby_proto",
307+
],
308+
)
309+
310+
# Open Source Packages
311+
ruby_gapic_assembly_pkg(
312+
name = "google-cloud-bigquery-storage-v1beta-ruby",
313+
deps = [
314+
":storage_ruby_gapic",
315+
":storage_ruby_grpc",
316+
":storage_ruby_proto",
317+
],
318+
)
319+
320+
##############################################################################
321+
# C#
322+
##############################################################################
323+
# buildifier: disable=same-origin-load
324+
load(
325+
"@com_google_googleapis_imports//:imports.bzl",
326+
"csharp_gapic_assembly_pkg",
327+
"csharp_gapic_library",
328+
"csharp_grpc_library",
329+
"csharp_proto_library",
330+
)
331+
332+
csharp_proto_library(
333+
name = "storage_csharp_proto",
334+
extra_opts = [],
335+
deps = [":storage_proto"],
336+
)
337+
338+
csharp_grpc_library(
339+
name = "storage_csharp_grpc",
340+
srcs = [":storage_proto"],
341+
deps = [":storage_csharp_proto"],
342+
)
343+
344+
csharp_gapic_library(
345+
name = "storage_csharp_gapic",
346+
srcs = [":storage_proto_with_info"],
347+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
348+
grpc_service_config = "bigquerystorage_v1beta_grpc_service_config.json",
349+
rest_numeric_enums = True,
350+
service_yaml = "bigquerystorage_v1beta.yaml",
351+
transport = "grpc",
352+
deps = [
353+
":storage_csharp_grpc",
354+
":storage_csharp_proto",
355+
],
356+
)
357+
358+
# Open Source Packages
359+
csharp_gapic_assembly_pkg(
360+
name = "google-cloud-bigquery-storage-v1beta-csharp",
361+
deps = [
362+
":storage_csharp_gapic",
363+
":storage_csharp_grpc",
364+
":storage_csharp_proto",
365+
],
366+
)
367+
368+
##############################################################################
369+
# C++
370+
##############################################################################
371+
# buildifier: disable=same-origin-load
372+
load(
373+
"@com_google_googleapis_imports//:imports.bzl",
374+
"cc_grpc_library",
375+
"cc_proto_library",
376+
)
377+
378+
cc_proto_library(
379+
name = "storage_cc_proto",
380+
deps = [":storage_proto"],
381+
)
382+
383+
cc_grpc_library(
384+
name = "storage_cc_grpc",
385+
srcs = [":storage_proto"],
386+
grpc_only = True,
387+
deps = [":storage_cc_proto"],
388+
)

0 commit comments

Comments
 (0)