Skip to content

Commit 6ed14f1

Browse files
Google APIscopybara-github
authored andcommitted
build: add BUILD.bazel for google/bytestream
PiperOrigin-RevId: 590693548
1 parent f8a2933 commit 6ed14f1

1 file changed

Lines changed: 159 additions & 0 deletions

File tree

google/bytestream/BUILD.bazel

Lines changed: 159 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
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 = "bytestream_proto",
23+
srcs = [
24+
"bytestream.proto",
25+
],
26+
deps = [
27+
"//google/api:annotations_proto",
28+
"@com_google_protobuf//:wrappers_proto",
29+
],
30+
)
31+
32+
proto_library_with_info(
33+
name = "bytestream_proto_with_info",
34+
deps = [
35+
":bytestream_proto",
36+
"//google/cloud:common_resources_proto",
37+
],
38+
)
39+
40+
##############################################################################
41+
# Java
42+
##############################################################################
43+
load(
44+
"@com_google_googleapis_imports//:imports.bzl",
45+
"java_grpc_library",
46+
"java_proto_library",
47+
)
48+
49+
java_proto_library(
50+
name = "bytestream_java_proto",
51+
deps = [":bytestream_proto"],
52+
)
53+
54+
java_grpc_library(
55+
name = "bytestream_java_grpc",
56+
srcs = [":bytestream_proto"],
57+
deps = [":bytestream_java_proto"],
58+
)
59+
60+
##############################################################################
61+
# Go
62+
##############################################################################
63+
load(
64+
"@com_google_googleapis_imports//:imports.bzl",
65+
"go_proto_library",
66+
)
67+
68+
go_proto_library(
69+
name = "bytestream_go_proto",
70+
compilers = ["@io_bazel_rules_go//proto:go_grpc"],
71+
importpath = "google.golang.org/genproto/googleapis/bytestream",
72+
protos = [":bytestream_proto"],
73+
deps = [
74+
"//google/api:annotations_go_proto",
75+
],
76+
)
77+
78+
##############################################################################
79+
# Python
80+
##############################################################################
81+
82+
##############################################################################
83+
# PHP
84+
##############################################################################
85+
load(
86+
"@com_google_googleapis_imports//:imports.bzl",
87+
"php_proto_library",
88+
)
89+
90+
php_proto_library(
91+
name = "bytestream_php_proto",
92+
deps = [":bytestream_proto"],
93+
)
94+
95+
##############################################################################
96+
# Node.js
97+
##############################################################################
98+
99+
##############################################################################
100+
# Ruby
101+
##############################################################################
102+
load(
103+
"@com_google_googleapis_imports//:imports.bzl",
104+
"ruby_grpc_library",
105+
"ruby_proto_library",
106+
)
107+
108+
ruby_proto_library(
109+
name = "bytestream_ruby_proto",
110+
deps = [":bytestream_proto"],
111+
)
112+
113+
ruby_grpc_library(
114+
name = "bytestream_ruby_grpc",
115+
srcs = [":bytestream_proto"],
116+
deps = [":bytestream_ruby_proto"],
117+
)
118+
119+
##############################################################################
120+
# C#
121+
##############################################################################
122+
load(
123+
"@com_google_googleapis_imports//:imports.bzl",
124+
"csharp_grpc_library",
125+
"csharp_proto_library",
126+
)
127+
128+
csharp_proto_library(
129+
name = "bytestream_csharp_proto",
130+
extra_opts = [],
131+
deps = [":bytestream_proto"],
132+
)
133+
134+
csharp_grpc_library(
135+
name = "bytestream_csharp_grpc",
136+
srcs = [":bytestream_proto"],
137+
deps = [":bytestream_csharp_proto"],
138+
)
139+
140+
##############################################################################
141+
# C++
142+
##############################################################################
143+
load(
144+
"@com_google_googleapis_imports//:imports.bzl",
145+
"cc_grpc_library",
146+
"cc_proto_library",
147+
)
148+
149+
cc_proto_library(
150+
name = "bytestream_cc_proto",
151+
deps = [":bytestream_proto"],
152+
)
153+
154+
cc_grpc_library(
155+
name = "bytestream_cc_grpc",
156+
srcs = [":bytestream_proto"],
157+
grpc_only = True,
158+
deps = [":bytestream_cc_proto"],
159+
)

0 commit comments

Comments
 (0)