Skip to content

Commit cc9fc0f

Browse files
Google APIscopybara-github
authored andcommitted
feat: add notifications API client libraries for v1
PiperOrigin-RevId: 790723245
1 parent bf43233 commit cc9fc0f

4 files changed

Lines changed: 762 additions & 0 deletions

File tree

Lines changed: 384 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,384 @@
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 = "notifications_proto",
26+
srcs = [
27+
"notificationsapi.proto",
28+
],
29+
deps = [
30+
"//google/api:annotations_proto",
31+
"//google/api:client_proto",
32+
"//google/api:field_behavior_proto",
33+
"//google/api:resource_proto",
34+
"@com_google_protobuf//:empty_proto",
35+
"@com_google_protobuf//:field_mask_proto",
36+
],
37+
)
38+
39+
proto_library_with_info(
40+
name = "notifications_proto_with_info",
41+
deps = [
42+
":notifications_proto",
43+
"//google/cloud:common_resources_proto",
44+
],
45+
)
46+
47+
##############################################################################
48+
# Java
49+
##############################################################################
50+
# buildifier: disable=same-origin-load
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 = "notifications_java_proto",
62+
deps = [":notifications_proto"],
63+
)
64+
65+
java_grpc_library(
66+
name = "notifications_java_grpc",
67+
srcs = [":notifications_proto"],
68+
deps = [":notifications_java_proto"],
69+
)
70+
71+
java_gapic_library(
72+
name = "notifications_java_gapic",
73+
srcs = [":notifications_proto_with_info"],
74+
gapic_yaml = None,
75+
grpc_service_config = "notifications_grpc_service_config.json",
76+
rest_numeric_enums = True,
77+
service_yaml = "merchantapi_v1.yaml",
78+
test_deps = [
79+
":notifications_java_grpc",
80+
],
81+
transport = "grpc+rest",
82+
deps = [
83+
":notifications_java_proto",
84+
"//google/api:api_java_proto",
85+
],
86+
)
87+
88+
java_gapic_test(
89+
name = "notifications_java_gapic_test_suite",
90+
test_classes = [
91+
"com.google.shopping.merchant.notifications.v1.NotificationsApiServiceClientHttpJsonTest",
92+
"com.google.shopping.merchant.notifications.v1.NotificationsApiServiceClientTest",
93+
],
94+
runtime_deps = [":notifications_java_gapic_test"],
95+
)
96+
97+
# Open Source Packages
98+
java_gapic_assembly_gradle_pkg(
99+
name = "google-cloud-merchant-notifications-v1-java",
100+
include_samples = True,
101+
transport = "grpc+rest",
102+
deps = [
103+
":notifications_java_gapic",
104+
":notifications_java_grpc",
105+
":notifications_java_proto",
106+
":notifications_proto",
107+
],
108+
)
109+
110+
##############################################################################
111+
# Go
112+
##############################################################################
113+
# buildifier: disable=same-origin-load
114+
load(
115+
"@com_google_googleapis_imports//:imports.bzl",
116+
"go_gapic_assembly_pkg",
117+
"go_gapic_library",
118+
"go_proto_library",
119+
)
120+
121+
go_proto_library(
122+
name = "notifications_go_proto",
123+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
124+
importpath = "cloud.google.com/go/shopping/merchant/notifications/apiv1/notificationspb",
125+
protos = [":notifications_proto"],
126+
deps = [
127+
"//google/api:annotations_go_proto",
128+
],
129+
)
130+
131+
go_gapic_library(
132+
name = "notifications_go_gapic",
133+
srcs = [":notifications_proto_with_info"],
134+
grpc_service_config = "notifications_grpc_service_config.json",
135+
importpath = "cloud.google.com/go/shopping/merchant/notifications/apiv1;notifications",
136+
metadata = True,
137+
release_level = "beta",
138+
rest_numeric_enums = True,
139+
service_yaml = "merchantapi_v1.yaml",
140+
transport = "grpc+rest",
141+
deps = [
142+
":notifications_go_proto",
143+
],
144+
)
145+
146+
# Open Source Packages
147+
go_gapic_assembly_pkg(
148+
name = "gapi-cloud-merchant-notifications-v1-go",
149+
deps = [
150+
":notifications_go_gapic",
151+
":notifications_go_gapic_srcjar-metadata.srcjar",
152+
":notifications_go_gapic_srcjar-snippets.srcjar",
153+
":notifications_go_gapic_srcjar-test.srcjar",
154+
":notifications_go_proto",
155+
],
156+
)
157+
158+
##############################################################################
159+
# Python
160+
##############################################################################
161+
# buildifier: disable=same-origin-load
162+
load(
163+
"@com_google_googleapis_imports//:imports.bzl",
164+
"py_gapic_assembly_pkg",
165+
"py_gapic_library",
166+
"py_test",
167+
)
168+
169+
py_gapic_library(
170+
name = "notifications_py_gapic",
171+
srcs = [":notifications_proto"],
172+
grpc_service_config = "notifications_grpc_service_config.json",
173+
rest_numeric_enums = True,
174+
service_yaml = "merchantapi_v1.yaml",
175+
transport = "grpc+rest",
176+
deps = [
177+
],
178+
)
179+
180+
py_test(
181+
name = "notifications_py_gapic_test",
182+
srcs = [
183+
"notifications_py_gapic_pytest.py",
184+
"notifications_py_gapic_test.py",
185+
],
186+
legacy_create_init = False,
187+
deps = [":notifications_py_gapic"],
188+
)
189+
190+
# Open Source Packages
191+
py_gapic_assembly_pkg(
192+
name = "merchant-notifications-v1-py",
193+
deps = [
194+
":notifications_py_gapic",
195+
],
196+
)
197+
198+
##############################################################################
199+
# PHP
200+
##############################################################################
201+
# buildifier: disable=same-origin-load
202+
load(
203+
"@com_google_googleapis_imports//:imports.bzl",
204+
"php_gapic_assembly_pkg",
205+
"php_gapic_library",
206+
"php_proto_library",
207+
)
208+
209+
php_proto_library(
210+
name = "notifications_php_proto",
211+
deps = [":notifications_proto"],
212+
)
213+
214+
php_gapic_library(
215+
name = "notifications_php_gapic",
216+
srcs = [":notifications_proto_with_info"],
217+
grpc_service_config = "notifications_grpc_service_config.json",
218+
migration_mode = "NEW_SURFACE_ONLY",
219+
rest_numeric_enums = True,
220+
service_yaml = "merchantapi_v1.yaml",
221+
transport = "grpc+rest",
222+
deps = [
223+
":notifications_php_proto",
224+
],
225+
)
226+
227+
# Open Source Packages
228+
php_gapic_assembly_pkg(
229+
name = "google-cloud-merchant-notifications-v1-php",
230+
deps = [
231+
":notifications_php_gapic",
232+
":notifications_php_proto",
233+
],
234+
)
235+
236+
##############################################################################
237+
# Node.js
238+
##############################################################################
239+
# buildifier: disable=same-origin-load
240+
load(
241+
"@com_google_googleapis_imports//:imports.bzl",
242+
"nodejs_gapic_assembly_pkg",
243+
"nodejs_gapic_library",
244+
)
245+
246+
nodejs_gapic_library(
247+
name = "notifications_nodejs_gapic",
248+
package_name = "@google-cloud/notifications",
249+
src = ":notifications_proto_with_info",
250+
extra_protoc_parameters = ["metadata"],
251+
grpc_service_config = "notifications_grpc_service_config.json",
252+
package = "google.shopping.merchant.notifications.v1",
253+
rest_numeric_enums = True,
254+
service_yaml = "merchantapi_v1.yaml",
255+
transport = "grpc+rest",
256+
deps = [],
257+
)
258+
259+
nodejs_gapic_assembly_pkg(
260+
name = "merchant-notifications-v1-nodejs",
261+
deps = [
262+
":notifications_nodejs_gapic",
263+
":notifications_proto",
264+
],
265+
)
266+
267+
##############################################################################
268+
# Ruby
269+
##############################################################################
270+
# buildifier: disable=same-origin-load
271+
load(
272+
"@com_google_googleapis_imports//:imports.bzl",
273+
"ruby_cloud_gapic_library",
274+
"ruby_gapic_assembly_pkg",
275+
"ruby_grpc_library",
276+
"ruby_proto_library",
277+
)
278+
279+
ruby_proto_library(
280+
name = "notifications_ruby_proto",
281+
deps = [":notifications_proto"],
282+
)
283+
284+
ruby_grpc_library(
285+
name = "notifications_ruby_grpc",
286+
srcs = [":notifications_proto"],
287+
deps = [":notifications_ruby_proto"],
288+
)
289+
290+
ruby_cloud_gapic_library(
291+
name = "notifications_ruby_gapic",
292+
srcs = [":notifications_proto_with_info"],
293+
extra_protoc_parameters = [
294+
"ruby-cloud-gem-name=google-shopping-merchant-notifications-v1",
295+
],
296+
grpc_service_config = "notifications_grpc_service_config.json",
297+
rest_numeric_enums = True,
298+
service_yaml = "merchantapi_v1.yaml",
299+
transport = "grpc+rest",
300+
deps = [
301+
":notifications_ruby_grpc",
302+
":notifications_ruby_proto",
303+
],
304+
)
305+
306+
# Open Source Packages
307+
ruby_gapic_assembly_pkg(
308+
name = "google-cloud-merchant-notifications-v1-ruby",
309+
deps = [
310+
":notifications_ruby_gapic",
311+
":notifications_ruby_grpc",
312+
":notifications_ruby_proto",
313+
],
314+
)
315+
316+
##############################################################################
317+
# C#
318+
##############################################################################
319+
# buildifier: disable=same-origin-load
320+
load(
321+
"@com_google_googleapis_imports//:imports.bzl",
322+
"csharp_gapic_assembly_pkg",
323+
"csharp_gapic_library",
324+
"csharp_grpc_library",
325+
"csharp_proto_library",
326+
)
327+
328+
csharp_proto_library(
329+
name = "notifications_csharp_proto",
330+
extra_opts = [],
331+
deps = [":notifications_proto"],
332+
)
333+
334+
csharp_grpc_library(
335+
name = "notifications_csharp_grpc",
336+
srcs = [":notifications_proto"],
337+
deps = [":notifications_csharp_proto"],
338+
)
339+
340+
csharp_gapic_library(
341+
name = "notifications_csharp_gapic",
342+
srcs = [":notifications_proto_with_info"],
343+
common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json",
344+
grpc_service_config = "notifications_grpc_service_config.json",
345+
rest_numeric_enums = True,
346+
service_yaml = "merchantapi_v1.yaml",
347+
transport = "grpc+rest",
348+
deps = [
349+
":notifications_csharp_grpc",
350+
":notifications_csharp_proto",
351+
],
352+
)
353+
354+
# Open Source Packages
355+
csharp_gapic_assembly_pkg(
356+
name = "google-cloud-merchant-notifications-v1-csharp",
357+
deps = [
358+
":notifications_csharp_gapic",
359+
":notifications_csharp_grpc",
360+
":notifications_csharp_proto",
361+
],
362+
)
363+
364+
##############################################################################
365+
# C++
366+
##############################################################################
367+
# buildifier: disable=same-origin-load
368+
load(
369+
"@com_google_googleapis_imports//:imports.bzl",
370+
"cc_grpc_library",
371+
"cc_proto_library",
372+
)
373+
374+
cc_proto_library(
375+
name = "notifications_cc_proto",
376+
deps = [":notifications_proto"],
377+
)
378+
379+
cc_grpc_library(
380+
name = "notifications_cc_grpc",
381+
srcs = [":notifications_proto"],
382+
grpc_only = True,
383+
deps = [":notifications_cc_proto"],
384+
)

0 commit comments

Comments
 (0)