Skip to content

Commit 2d0aae2

Browse files
Google APIscopybara-github
authored andcommitted
feat!: storagetransfer public protos update
BREAKING CHANGE: field annotations are added. Allowing this since no client libraries were generated based on old protos. Committer: @alexander-fenster PiperOrigin-RevId: 386124227
1 parent e8d2996 commit 2d0aae2

5 files changed

Lines changed: 1001 additions & 199 deletions

File tree

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 = "storagetransfer_proto",
23+
srcs = [
24+
"transfer.proto",
25+
"transfer_types.proto",
26+
],
27+
deps = [
28+
"//google/api:annotations_proto",
29+
"//google/api:client_proto",
30+
"//google/api:field_behavior_proto",
31+
"//google/longrunning:operations_proto",
32+
"//google/rpc:code_proto",
33+
"//google/type:date_proto",
34+
"//google/type:timeofday_proto",
35+
"@com_google_protobuf//:any_proto",
36+
"@com_google_protobuf//:duration_proto",
37+
"@com_google_protobuf//:empty_proto",
38+
"@com_google_protobuf//:field_mask_proto",
39+
"@com_google_protobuf//:timestamp_proto",
40+
],
41+
)
42+
43+
proto_library_with_info(
44+
name = "storagetransfer_proto_with_info",
45+
deps = [
46+
":storagetransfer_proto",
47+
"//google/cloud:common_resources_proto",
48+
],
49+
)
50+
51+
##############################################################################
52+
# Java
53+
##############################################################################
54+
load(
55+
"@com_google_googleapis_imports//:imports.bzl",
56+
"java_gapic_assembly_gradle_pkg",
57+
"java_gapic_library",
58+
"java_gapic_test",
59+
"java_grpc_library",
60+
"java_proto_library",
61+
)
62+
63+
java_proto_library(
64+
name = "storagetransfer_java_proto",
65+
deps = [":storagetransfer_proto"],
66+
)
67+
68+
java_grpc_library(
69+
name = "storagetransfer_java_grpc",
70+
srcs = [":storagetransfer_proto"],
71+
deps = [":storagetransfer_java_proto"],
72+
)
73+
74+
java_gapic_library(
75+
name = "storagetransfer_java_gapic",
76+
srcs = [":storagetransfer_proto_with_info"],
77+
grpc_service_config = "storagetransfer_grpc_service_config.json",
78+
test_deps = [
79+
":storagetransfer_java_grpc",
80+
],
81+
deps = [
82+
":storagetransfer_java_proto",
83+
],
84+
)
85+
86+
java_gapic_test(
87+
name = "storagetransfer_java_gapic_test_suite",
88+
test_classes = [
89+
"com.google.storagetransfer.v1.proto.StorageTransferServiceClientTest",
90+
],
91+
runtime_deps = [":storagetransfer_java_gapic_test"],
92+
)
93+
94+
# Open Source Packages
95+
java_gapic_assembly_gradle_pkg(
96+
name = "google-cloud-storagetransfer-v1-java",
97+
deps = [
98+
":storagetransfer_java_gapic",
99+
":storagetransfer_java_grpc",
100+
":storagetransfer_java_proto",
101+
":storagetransfer_proto",
102+
],
103+
)
104+
105+
##############################################################################
106+
# Go
107+
##############################################################################
108+
load(
109+
"@com_google_googleapis_imports//:imports.bzl",
110+
"go_gapic_assembly_pkg",
111+
"go_gapic_library",
112+
"go_proto_library",
113+
"go_test",
114+
)
115+
116+
go_proto_library(
117+
name = "storagetransfer_go_proto",
118+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
119+
importpath = "google.golang.org/genproto/googleapis/storagetransfer/v1",
120+
protos = [":storagetransfer_proto"],
121+
deps = [
122+
"//google/api:annotations_go_proto",
123+
"//google/longrunning:longrunning_go_proto",
124+
"//google/rpc:code_go_proto",
125+
"//google/type:date_go_proto",
126+
"//google/type:timeofday_go_proto",
127+
],
128+
)
129+
130+
go_gapic_library(
131+
name = "storagetransfer_go_gapic",
132+
srcs = [":storagetransfer_proto_with_info"],
133+
grpc_service_config = "storagetransfer_grpc_service_config.json",
134+
importpath = "cloud.google.com/go/storagetransfer/apiv1;storagetransfer",
135+
metadata = True,
136+
service_yaml = "storagetransfer_v1.yaml",
137+
deps = [
138+
":storagetransfer_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+
"@io_bazel_rules_go//proto/wkt:any_go_proto",
143+
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
144+
],
145+
)
146+
147+
go_test(
148+
name = "storagetransfer_go_gapic_test",
149+
srcs = [":storagetransfer_go_gapic_srcjar_test"],
150+
embed = [":storagetransfer_go_gapic"],
151+
importpath = "cloud.google.com/go/storagetransfer/apiv1",
152+
)
153+
154+
# Open Source Packages
155+
go_gapic_assembly_pkg(
156+
name = "gapi-cloud-storagetransfer-v1-go",
157+
deps = [
158+
":storagetransfer_go_gapic",
159+
":storagetransfer_go_gapic_srcjar-metadata.srcjar",
160+
":storagetransfer_go_gapic_srcjar-test.srcjar",
161+
":storagetransfer_go_proto",
162+
],
163+
)
164+
165+
##############################################################################
166+
# Python
167+
##############################################################################
168+
load(
169+
"@com_google_googleapis_imports//:imports.bzl",
170+
"py_gapic_assembly_pkg",
171+
"py_gapic_library",
172+
)
173+
174+
py_gapic_library(
175+
name = "storagetransfer_py_gapic",
176+
srcs = [":storagetransfer_proto"],
177+
grpc_service_config = "storagetransfer_grpc_service_config.json",
178+
)
179+
180+
# Open Source Packages
181+
py_gapic_assembly_pkg(
182+
name = "storagetransfer-v1-py",
183+
deps = [
184+
":storagetransfer_py_gapic",
185+
],
186+
)
187+
188+
##############################################################################
189+
# PHP
190+
##############################################################################
191+
load(
192+
"@com_google_googleapis_imports//:imports.bzl",
193+
"php_gapic_assembly_pkg",
194+
"php_gapic_library",
195+
"php_grpc_library",
196+
"php_proto_library",
197+
)
198+
199+
php_proto_library(
200+
name = "storagetransfer_php_proto",
201+
deps = [":storagetransfer_proto"],
202+
)
203+
204+
php_grpc_library(
205+
name = "storagetransfer_php_grpc",
206+
srcs = [":storagetransfer_proto"],
207+
deps = [":storagetransfer_php_proto"],
208+
)
209+
210+
php_gapic_library(
211+
name = "storagetransfer_php_gapic",
212+
srcs = [":storagetransfer_proto_with_info"],
213+
grpc_service_config = "storagetransfer_grpc_service_config.json",
214+
service_yaml = "storagetransfer_v1.yaml",
215+
deps = [
216+
":storagetransfer_php_grpc",
217+
":storagetransfer_php_proto",
218+
],
219+
)
220+
221+
# Open Source Packages
222+
php_gapic_assembly_pkg(
223+
name = "google-cloud-storagetransfer-v1-php",
224+
deps = [
225+
":storagetransfer_php_gapic",
226+
":storagetransfer_php_grpc",
227+
":storagetransfer_php_proto",
228+
],
229+
)
230+
231+
##############################################################################
232+
# Node.js
233+
##############################################################################
234+
load(
235+
"@com_google_googleapis_imports//:imports.bzl",
236+
"nodejs_gapic_assembly_pkg",
237+
"nodejs_gapic_library",
238+
)
239+
240+
nodejs_gapic_library(
241+
name = "storagetransfer_nodejs_gapic",
242+
package_name = "@google-cloud/storagetransfer",
243+
src = ":storagetransfer_proto_with_info",
244+
extra_protoc_parameters = ["metadata"],
245+
grpc_service_config = "storagetransfer_grpc_service_config.json",
246+
package = "google.storagetransfer.v1",
247+
service_yaml = "storagetransfer_v1.yaml",
248+
deps = [],
249+
)
250+
251+
nodejs_gapic_assembly_pkg(
252+
name = "storagetransfer-v1-nodejs",
253+
deps = [
254+
":storagetransfer_nodejs_gapic",
255+
":storagetransfer_proto",
256+
],
257+
)
258+
259+
##############################################################################
260+
# Ruby
261+
##############################################################################
262+
load(
263+
"@com_google_googleapis_imports//:imports.bzl",
264+
"ruby_cloud_gapic_library",
265+
"ruby_gapic_assembly_pkg",
266+
"ruby_grpc_library",
267+
"ruby_proto_library",
268+
)
269+
270+
ruby_proto_library(
271+
name = "storagetransfer_ruby_proto",
272+
deps = [":storagetransfer_proto"],
273+
)
274+
275+
ruby_grpc_library(
276+
name = "storagetransfer_ruby_grpc",
277+
srcs = [":storagetransfer_proto"],
278+
deps = [":storagetransfer_ruby_proto"],
279+
)
280+
281+
ruby_cloud_gapic_library(
282+
name = "storagetransfer_ruby_gapic",
283+
srcs = [":storagetransfer_proto_with_info"],
284+
extra_protoc_parameters = [
285+
"ruby-cloud-gem-name=google-cloud-storagetransfer-v1",
286+
],
287+
grpc_service_config = "storagetransfer_grpc_service_config.json",
288+
deps = [
289+
":storagetransfer_ruby_grpc",
290+
":storagetransfer_ruby_proto",
291+
],
292+
)
293+
294+
# Open Source Packages
295+
ruby_gapic_assembly_pkg(
296+
name = "google-cloud-storagetransfer-v1-ruby",
297+
deps = [
298+
":storagetransfer_ruby_gapic",
299+
":storagetransfer_ruby_grpc",
300+
":storagetransfer_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 = "storagetransfer_csharp_proto",
317+
deps = [":storagetransfer_proto"],
318+
)
319+
320+
csharp_grpc_library(
321+
name = "storagetransfer_csharp_grpc",
322+
srcs = [":storagetransfer_proto"],
323+
deps = [":storagetransfer_csharp_proto"],
324+
)
325+
326+
csharp_gapic_library(
327+
name = "storagetransfer_csharp_gapic",
328+
srcs = [":storagetransfer_proto_with_info"],
329+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
330+
grpc_service_config = "storagetransfer_grpc_service_config.json",
331+
deps = [
332+
":storagetransfer_csharp_grpc",
333+
":storagetransfer_csharp_proto",
334+
],
335+
)
336+
337+
# Open Source Packages
338+
csharp_gapic_assembly_pkg(
339+
name = "google-cloud-storagetransfer-v1-csharp",
340+
deps = [
341+
":storagetransfer_csharp_gapic",
342+
":storagetransfer_csharp_grpc",
343+
":storagetransfer_csharp_proto",
344+
],
345+
)
346+
347+
##############################################################################
348+
# C++
349+
##############################################################################
350+
# Put your C++ rules here
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"methodConfig": [
3+
{
4+
"name": [
5+
{
6+
"service": "google.storagetransfer.v1.StorageTransferService"
7+
}
8+
],
9+
"timeout": "60s"
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)