Skip to content

Commit 456a812

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add BigQuery Metastore Partition Service API version v1alpha
PiperOrigin-RevId: 662212485
1 parent 5b517c2 commit 456a812

5 files changed

Lines changed: 844 additions & 0 deletions

File tree

Lines changed: 377 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,377 @@
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_v1alpha_grpc_service_config.json",
78+
rest_numeric_enums = True,
79+
service_yaml = "bigquerystorage_v1alpha.yaml",
80+
test_deps = [
81+
":storage_java_grpc",
82+
],
83+
transport = "grpc+rest",
84+
deps = [
85+
":storage_java_proto",
86+
"//google/api:api_java_proto",
87+
],
88+
)
89+
90+
# Open Source Packages
91+
java_gapic_assembly_gradle_pkg(
92+
name = "google-cloud-bigquery-storage-v1alpha-java",
93+
include_samples = True,
94+
transport = "grpc+rest",
95+
deps = [
96+
":storage_java_gapic",
97+
":storage_java_grpc",
98+
":storage_java_proto",
99+
":storage_proto",
100+
],
101+
)
102+
103+
##############################################################################
104+
# Go
105+
##############################################################################
106+
# buildifier: disable=same-origin-load
107+
load(
108+
"@com_google_googleapis_imports//:imports.bzl",
109+
"go_gapic_assembly_pkg",
110+
"go_gapic_library",
111+
"go_proto_library",
112+
)
113+
114+
go_proto_library(
115+
name = "storage_go_proto",
116+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
117+
importpath = "cloud.google.com/go/bigquery/storage/apiv1alpha/storagepb",
118+
protos = [":storage_proto"],
119+
deps = [
120+
"//google/api:annotations_go_proto",
121+
],
122+
)
123+
124+
go_gapic_library(
125+
name = "storage_go_gapic",
126+
srcs = [":storage_proto_with_info"],
127+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
128+
importpath = "cloud.google.com/go/bigquery/storage/apiv1alpha;storage",
129+
metadata = True,
130+
release_level = "beta",
131+
rest_numeric_enums = True,
132+
service_yaml = "bigquerystorage_v1alpha.yaml",
133+
transport = "grpc+rest",
134+
deps = [
135+
":storage_go_proto",
136+
],
137+
)
138+
139+
# Open Source Packages
140+
go_gapic_assembly_pkg(
141+
name = "gapi-cloud-bigquery-storage-v1alpha-go",
142+
deps = [
143+
":storage_go_gapic",
144+
":storage_go_gapic_srcjar-metadata.srcjar",
145+
":storage_go_gapic_srcjar-snippets.srcjar",
146+
":storage_go_gapic_srcjar-test.srcjar",
147+
":storage_go_proto",
148+
],
149+
)
150+
151+
##############################################################################
152+
# Python
153+
##############################################################################
154+
# buildifier: disable=same-origin-load
155+
load(
156+
"@com_google_googleapis_imports//:imports.bzl",
157+
"py_gapic_assembly_pkg",
158+
"py_gapic_library",
159+
"py_test",
160+
)
161+
162+
py_gapic_library(
163+
name = "storage_py_gapic",
164+
srcs = [":storage_proto"],
165+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
166+
rest_numeric_enums = True,
167+
service_yaml = "bigquerystorage_v1alpha.yaml",
168+
transport = "grpc+rest",
169+
deps = [
170+
],
171+
)
172+
173+
py_test(
174+
name = "storage_py_gapic_test",
175+
srcs = [
176+
"storage_py_gapic_pytest.py",
177+
"storage_py_gapic_test.py",
178+
],
179+
legacy_create_init = False,
180+
deps = [":storage_py_gapic"],
181+
)
182+
183+
# Open Source Packages
184+
py_gapic_assembly_pkg(
185+
name = "bigquery-storage-v1alpha-py",
186+
deps = [
187+
":storage_py_gapic",
188+
],
189+
)
190+
191+
##############################################################################
192+
# PHP
193+
##############################################################################
194+
# buildifier: disable=same-origin-load
195+
load(
196+
"@com_google_googleapis_imports//:imports.bzl",
197+
"php_gapic_assembly_pkg",
198+
"php_gapic_library",
199+
"php_proto_library",
200+
)
201+
202+
php_proto_library(
203+
name = "storage_php_proto",
204+
deps = [":storage_proto"],
205+
)
206+
207+
php_gapic_library(
208+
name = "storage_php_gapic",
209+
srcs = [":storage_proto_with_info"],
210+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
211+
migration_mode = "NEW_SURFACE_ONLY",
212+
rest_numeric_enums = True,
213+
service_yaml = "bigquerystorage_v1alpha.yaml",
214+
transport = "grpc+rest",
215+
deps = [
216+
":storage_php_proto",
217+
],
218+
)
219+
220+
# Open Source Packages
221+
php_gapic_assembly_pkg(
222+
name = "google-cloud-bigquery-storage-v1alpha-php",
223+
deps = [
224+
":storage_php_gapic",
225+
":storage_php_proto",
226+
],
227+
)
228+
229+
##############################################################################
230+
# Node.js
231+
##############################################################################
232+
# buildifier: disable=same-origin-load
233+
load(
234+
"@com_google_googleapis_imports//:imports.bzl",
235+
"nodejs_gapic_assembly_pkg",
236+
"nodejs_gapic_library",
237+
)
238+
239+
nodejs_gapic_library(
240+
name = "storage_nodejs_gapic",
241+
package_name = "@google-cloud/storage",
242+
src = ":storage_proto_with_info",
243+
extra_protoc_parameters = ["metadata"],
244+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
245+
package = "google.cloud.bigquery.storage.v1alpha",
246+
rest_numeric_enums = True,
247+
service_yaml = "bigquerystorage_v1alpha.yaml",
248+
transport = "grpc+rest",
249+
deps = [],
250+
)
251+
252+
nodejs_gapic_assembly_pkg(
253+
name = "bigquery-storage-v1alpha-nodejs",
254+
deps = [
255+
":storage_nodejs_gapic",
256+
":storage_proto",
257+
],
258+
)
259+
260+
##############################################################################
261+
# Ruby
262+
##############################################################################
263+
# buildifier: disable=same-origin-load
264+
load(
265+
"@com_google_googleapis_imports//:imports.bzl",
266+
"ruby_cloud_gapic_library",
267+
"ruby_gapic_assembly_pkg",
268+
"ruby_grpc_library",
269+
"ruby_proto_library",
270+
)
271+
272+
ruby_proto_library(
273+
name = "storage_ruby_proto",
274+
deps = [":storage_proto"],
275+
)
276+
277+
ruby_grpc_library(
278+
name = "storage_ruby_grpc",
279+
srcs = [":storage_proto"],
280+
deps = [":storage_ruby_proto"],
281+
)
282+
283+
ruby_cloud_gapic_library(
284+
name = "storage_ruby_gapic",
285+
srcs = [":storage_proto_with_info"],
286+
extra_protoc_parameters = [
287+
"ruby-cloud-gem-name=google-cloud-bigquery-storage-v1alpha",
288+
],
289+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
290+
rest_numeric_enums = True,
291+
service_yaml = "bigquerystorage_v1alpha.yaml",
292+
transport = "grpc+rest",
293+
deps = [
294+
":storage_ruby_grpc",
295+
":storage_ruby_proto",
296+
],
297+
)
298+
299+
# Open Source Packages
300+
ruby_gapic_assembly_pkg(
301+
name = "google-cloud-bigquery-storage-v1alpha-ruby",
302+
deps = [
303+
":storage_ruby_gapic",
304+
":storage_ruby_grpc",
305+
":storage_ruby_proto",
306+
],
307+
)
308+
309+
##############################################################################
310+
# C#
311+
##############################################################################
312+
# buildifier: disable=same-origin-load
313+
load(
314+
"@com_google_googleapis_imports//:imports.bzl",
315+
"csharp_gapic_assembly_pkg",
316+
"csharp_gapic_library",
317+
"csharp_grpc_library",
318+
"csharp_proto_library",
319+
)
320+
321+
csharp_proto_library(
322+
name = "storage_csharp_proto",
323+
extra_opts = [],
324+
deps = [":storage_proto"],
325+
)
326+
327+
csharp_grpc_library(
328+
name = "storage_csharp_grpc",
329+
srcs = [":storage_proto"],
330+
deps = [":storage_csharp_proto"],
331+
)
332+
333+
csharp_gapic_library(
334+
name = "storage_csharp_gapic",
335+
srcs = [":storage_proto_with_info"],
336+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
337+
grpc_service_config = "bigquerystorage_v1alpha_grpc_service_config.json",
338+
rest_numeric_enums = True,
339+
service_yaml = "bigquerystorage_v1alpha.yaml",
340+
transport = "grpc+rest",
341+
deps = [
342+
":storage_csharp_grpc",
343+
":storage_csharp_proto",
344+
],
345+
)
346+
347+
# Open Source Packages
348+
csharp_gapic_assembly_pkg(
349+
name = "google-cloud-bigquery-storage-v1alpha-csharp",
350+
deps = [
351+
":storage_csharp_gapic",
352+
":storage_csharp_grpc",
353+
":storage_csharp_proto",
354+
],
355+
)
356+
357+
##############################################################################
358+
# C++
359+
##############################################################################
360+
# buildifier: disable=same-origin-load
361+
load(
362+
"@com_google_googleapis_imports//:imports.bzl",
363+
"cc_grpc_library",
364+
"cc_proto_library",
365+
)
366+
367+
cc_proto_library(
368+
name = "storage_cc_proto",
369+
deps = [":storage_proto"],
370+
)
371+
372+
cc_grpc_library(
373+
name = "storage_cc_grpc",
374+
srcs = [":storage_proto"],
375+
grpc_only = True,
376+
deps = [":storage_cc_proto"],
377+
)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
type: google.api.Service
2+
config_version: 3
3+
name: bigquerystorage.googleapis.com
4+
title: BigQuery Storage API
5+
6+
apis:
7+
- name: google.cloud.bigquery.storage.v1alpha.MetastorePartitionService
8+
9+
authentication:
10+
rules:
11+
- selector: 'google.cloud.bigquery.storage.v1alpha.MetastorePartitionService.*'
12+
oauth:
13+
canonical_scopes: |-
14+
https://www.googleapis.com/auth/bigquery,
15+
https://www.googleapis.com/auth/cloud-platform

0 commit comments

Comments
 (0)