Skip to content

Commit 4c8d14a

Browse files
Google APIscopybara-github
authored andcommitted
feat: filestore public protos
Committer: @vchudnov-g PiperOrigin-RevId: 381148500
1 parent 5d301f9 commit 4c8d14a

8 files changed

Lines changed: 2370 additions & 0 deletions
Lines changed: 350 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,350 @@
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+
# This is an API workspace, having public visibility by default makes perfect sense.
13+
package(default_visibility = ["//visibility:public"])
14+
15+
##############################################################################
16+
# Common
17+
##############################################################################
18+
load("@rules_proto//proto:defs.bzl", "proto_library")
19+
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
20+
21+
proto_library(
22+
name = "filestore_proto",
23+
srcs = [
24+
"cloud_filestore_service.proto",
25+
],
26+
deps = [
27+
"//google/api:annotations_proto",
28+
"//google/api:client_proto",
29+
"//google/api:field_behavior_proto",
30+
"//google/api:resource_proto",
31+
"//google/cloud/common:common_proto",
32+
"//google/longrunning:operations_proto",
33+
"@com_google_protobuf//:field_mask_proto",
34+
"@com_google_protobuf//:timestamp_proto",
35+
"@com_google_protobuf//:wrappers_proto",
36+
],
37+
)
38+
39+
proto_library_with_info(
40+
name = "filestore_proto_with_info",
41+
deps = [
42+
":filestore_proto",
43+
"//google/cloud/common:common_proto",
44+
"//google/cloud:common_resources_proto",
45+
],
46+
)
47+
48+
##############################################################################
49+
# Java
50+
##############################################################################
51+
load(
52+
"@com_google_googleapis_imports//:imports.bzl",
53+
"java_gapic_assembly_gradle_pkg",
54+
"java_gapic_library",
55+
"java_gapic_test",
56+
"java_grpc_library",
57+
"java_proto_library",
58+
)
59+
60+
java_proto_library(
61+
name = "filestore_java_proto",
62+
deps = [
63+
":filestore_proto",
64+
"//google/cloud/common:common_proto",
65+
],
66+
)
67+
68+
java_grpc_library(
69+
name = "filestore_java_grpc",
70+
srcs = [":filestore_proto"],
71+
deps = [":filestore_java_proto"],
72+
)
73+
74+
java_gapic_library(
75+
name = "filestore_java_gapic",
76+
srcs = [":filestore_proto_with_info"],
77+
grpc_service_config = "file_grpc_service_config.json",
78+
test_deps = [
79+
":filestore_java_grpc",
80+
],
81+
deps = [
82+
":filestore_java_proto",
83+
"//google/cloud/common:common_proto",
84+
],
85+
)
86+
87+
java_gapic_test(
88+
name = "filestore_java_gapic_test_suite",
89+
test_classes = [
90+
"com.google.cloud.filestore.v1.CloudFilestoreManagerClientTest",
91+
],
92+
runtime_deps = [":filestore_java_gapic_test"],
93+
)
94+
95+
# Open Source Packages
96+
java_gapic_assembly_gradle_pkg(
97+
name = "google-cloud-filestore-v1-java",
98+
deps = [
99+
":filestore_java_gapic",
100+
":filestore_java_grpc",
101+
":filestore_java_proto",
102+
":filestore_proto",
103+
],
104+
)
105+
106+
##############################################################################
107+
# Go
108+
##############################################################################
109+
load(
110+
"@com_google_googleapis_imports//:imports.bzl",
111+
"go_gapic_assembly_pkg",
112+
"go_gapic_library",
113+
"go_proto_library",
114+
"go_test",
115+
)
116+
117+
go_proto_library(
118+
name = "filestore_go_proto",
119+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
120+
importpath = "google.golang.org/genproto/googleapis/cloud/filestore/v1",
121+
protos = [":filestore_proto"],
122+
deps = [
123+
"//google/api:annotations_go_proto",
124+
"//google/cloud/common:common_go_proto",
125+
"//google/longrunning:longrunning_go_proto",
126+
],
127+
)
128+
129+
go_gapic_library(
130+
name = "filestore_go_gapic",
131+
srcs = [":filestore_proto_with_info"],
132+
grpc_service_config = "file_grpc_service_config.json",
133+
importpath = "cloud.google.com/go/filestore/apiv1;filestore",
134+
metadata = True,
135+
service_yaml = "file_v1.yaml",
136+
deps = [
137+
":filestore_go_proto",
138+
"//google/cloud/common:common_go_proto",
139+
"//google/longrunning:longrunning_go_proto",
140+
"@com_google_cloud_go//longrunning:go_default_library",
141+
"@com_google_cloud_go//longrunning/autogen:go_default_library",
142+
],
143+
)
144+
145+
go_test(
146+
name = "filestore_go_gapic_test",
147+
srcs = [":filestore_go_gapic_srcjar_test"],
148+
embed = [":filestore_go_gapic"],
149+
importpath = "cloud.google.com/go/filestore/apiv1",
150+
)
151+
152+
# Open Source Packages
153+
go_gapic_assembly_pkg(
154+
name = "gapi-cloud-filestore-v1-go",
155+
deps = [
156+
":filestore_go_gapic",
157+
":filestore_go_gapic_srcjar-metadata.srcjar",
158+
":filestore_go_gapic_srcjar-test.srcjar",
159+
":filestore_go_proto",
160+
],
161+
)
162+
163+
##############################################################################
164+
# Python
165+
##############################################################################
166+
#
167+
# Commented out: Python generator cannot accept LRO metadata from a different
168+
# proto namespace.
169+
#
170+
# load(
171+
# "@com_google_googleapis_imports//:imports.bzl",
172+
# "py_gapic_assembly_pkg",
173+
# "py_gapic_library",
174+
# )
175+
176+
# py_gapic_library(
177+
# name = "filestore_py_gapic",
178+
# srcs = [":filestore_proto_with_info"],
179+
# grpc_service_config = "file_grpc_service_config.json",
180+
# )
181+
182+
# # Open Source Packages
183+
# py_gapic_assembly_pkg(
184+
# name = "filestore-v1-py",
185+
# deps = [
186+
# ":filestore_py_gapic",
187+
# ],
188+
# )
189+
190+
##############################################################################
191+
# PHP
192+
##############################################################################
193+
load(
194+
"@com_google_googleapis_imports//:imports.bzl",
195+
"php_gapic_assembly_pkg",
196+
"php_gapic_library",
197+
"php_grpc_library",
198+
"php_proto_library",
199+
)
200+
201+
php_proto_library(
202+
name = "filestore_php_proto",
203+
deps = [":filestore_proto"],
204+
)
205+
206+
php_grpc_library(
207+
name = "filestore_php_grpc",
208+
srcs = [":filestore_proto"],
209+
deps = [":filestore_php_proto"],
210+
)
211+
212+
php_gapic_library(
213+
name = "filestore_php_gapic",
214+
srcs = [":filestore_proto_with_info"],
215+
grpc_service_config = "file_grpc_service_config.json",
216+
service_yaml = "file_v1.yaml",
217+
deps = [
218+
":filestore_php_grpc",
219+
":filestore_php_proto",
220+
],
221+
)
222+
223+
# Open Source Packages
224+
php_gapic_assembly_pkg(
225+
name = "google-cloud-filestore-v1-php",
226+
deps = [
227+
":filestore_php_gapic",
228+
":filestore_php_grpc",
229+
":filestore_php_proto",
230+
],
231+
)
232+
233+
##############################################################################
234+
# Node.js
235+
##############################################################################
236+
load(
237+
"@com_google_googleapis_imports//:imports.bzl",
238+
"nodejs_gapic_assembly_pkg",
239+
"nodejs_gapic_library",
240+
)
241+
242+
nodejs_gapic_library(
243+
name = "filestore_nodejs_gapic",
244+
package_name = "@google-cloud/filestore",
245+
src = ":filestore_proto_with_info",
246+
extra_protoc_parameters = ["metadata"],
247+
grpc_service_config = "file_grpc_service_config.json",
248+
package = "google.cloud.filestore.v1",
249+
service_yaml = "file_v1.yaml",
250+
deps = [],
251+
)
252+
253+
nodejs_gapic_assembly_pkg(
254+
name = "filestore-v1-nodejs",
255+
deps = [
256+
":filestore_nodejs_gapic",
257+
":filestore_proto",
258+
],
259+
)
260+
261+
##############################################################################
262+
# Ruby
263+
##############################################################################
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 = "filestore_ruby_proto",
274+
deps = [":filestore_proto"],
275+
)
276+
277+
ruby_grpc_library(
278+
name = "filestore_ruby_grpc",
279+
srcs = [":filestore_proto"],
280+
deps = [":filestore_ruby_proto"],
281+
)
282+
283+
ruby_cloud_gapic_library(
284+
name = "filestore_ruby_gapic",
285+
srcs = [":filestore_proto_with_info"],
286+
extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-filestore-v1"],
287+
grpc_service_config = "file_grpc_service_config.json",
288+
deps = [
289+
":filestore_ruby_grpc",
290+
":filestore_ruby_proto",
291+
],
292+
)
293+
294+
# Open Source Packages
295+
ruby_gapic_assembly_pkg(
296+
name = "google-cloud-filestore-v1-ruby",
297+
deps = [
298+
":filestore_ruby_gapic",
299+
":filestore_ruby_grpc",
300+
":filestore_ruby_proto",
301+
],
302+
)
303+
304+
##############################################################################
305+
# C#
306+
##############################################################################
307+
load(
308+
"@com_google_googleapis_imports//:imports.bzl",
309+
"csharp_gapic_assembly_pkg",
310+
"csharp_gapic_library",
311+
"csharp_grpc_library",
312+
"csharp_proto_library",
313+
)
314+
315+
csharp_proto_library(
316+
name = "filestore_csharp_proto",
317+
deps = [":filestore_proto"],
318+
)
319+
320+
csharp_grpc_library(
321+
name = "filestore_csharp_grpc",
322+
srcs = [":filestore_proto"],
323+
deps = [":filestore_csharp_proto"],
324+
)
325+
326+
csharp_gapic_library(
327+
name = "filestore_csharp_gapic",
328+
srcs = [":filestore_proto_with_info"],
329+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
330+
grpc_service_config = "file_grpc_service_config.json",
331+
deps = [
332+
":filestore_csharp_grpc",
333+
":filestore_csharp_proto",
334+
],
335+
)
336+
337+
# Open Source Packages
338+
csharp_gapic_assembly_pkg(
339+
name = "google-cloud-filestore-v1-csharp",
340+
deps = [
341+
":filestore_csharp_gapic",
342+
":filestore_csharp_grpc",
343+
":filestore_csharp_proto",
344+
],
345+
)
346+
347+
##############################################################################
348+
# C++
349+
##############################################################################
350+
# Put your C++ rules here

0 commit comments

Comments
 (0)