Imported Upstream version 1.34.0
[platform/upstream/grpc.git] / src / proto / grpc / testing / xds / v3 / BUILD
1 # Copyright 2020 gRPC authors.
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #     http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 licenses(["notice"])  # Apache v2
16
17 load("//bazel:grpc_build_system.bzl", "grpc_package", "grpc_proto_library")
18
19 grpc_package(
20     name = "xds_v3",
21     visibility = "public",
22 )
23
24 grpc_proto_library(
25     name = "address_proto",
26     srcs = [
27         "address.proto",
28     ],
29 )
30
31 grpc_proto_library(
32     name = "percent_proto",
33     srcs = [
34         "percent.proto",
35     ],
36 )
37
38 grpc_proto_library(
39     name = "base_proto",
40     srcs = [
41         "base.proto",
42     ],
43     well_known_protos = True,
44     deps = [
45         "percent_proto",
46     ],
47 )
48
49 grpc_proto_library(
50     name = "discovery_proto",
51     srcs = [
52         "discovery.proto",
53     ],
54     well_known_protos = True,
55     deps = [
56         "base_proto",
57     ],
58 )
59
60 grpc_proto_library(
61     name = "ads_proto",
62     srcs = [
63         "ads.proto",
64     ],
65     has_services = True,
66     well_known_protos = True,
67     deps = [
68         "discovery_proto",
69     ],
70 )
71
72 grpc_proto_library(
73     name = "config_source_proto",
74     srcs = [
75         "config_source.proto",
76     ],
77 )
78
79 grpc_proto_library(
80     name = "cluster_proto",
81     srcs = [
82         "cluster.proto",
83     ],
84     well_known_protos = True,
85     deps = [
86         "config_source_proto",
87     ],
88 )
89
90 grpc_proto_library(
91     name = "endpoint_proto",
92     srcs = [
93         "endpoint.proto",
94     ],
95     well_known_protos = True,
96     deps = [
97         "address_proto",
98         "base_proto",
99         "percent_proto",
100     ],
101 )
102
103 grpc_proto_library(
104     name = "listener_proto",
105     srcs = [
106         "listener.proto",
107     ],
108     well_known_protos = True,
109 )
110
111 grpc_proto_library(
112     name = "load_report_proto",
113     srcs = [
114         "load_report.proto",
115     ],
116     well_known_protos = True,
117     deps = [
118         "address_proto",
119         "base_proto",
120     ],
121 )
122
123 grpc_proto_library(
124     name = "lrs_proto",
125     srcs = [
126         "lrs.proto",
127     ],
128     has_services = True,
129     well_known_protos = True,
130     deps = [
131         "base_proto",
132         "load_report_proto",
133     ],
134 )
135
136 grpc_proto_library(
137     name = "orca_load_report_proto",
138     srcs = [
139         "orca_load_report.proto",
140     ],
141 )
142
143 grpc_proto_library(
144     name = "protocol_proto",
145     srcs = [
146         "protocol.proto",
147     ],
148     well_known_protos = True,
149 )
150
151 grpc_proto_library(
152     name = "range_proto",
153     srcs = [
154         "range.proto",
155     ],
156 )
157
158 grpc_proto_library(
159     name = "regex_proto",
160     srcs = [
161         "regex.proto",
162     ],
163 )
164
165 grpc_proto_library(
166     name = "route_proto",
167     srcs = [
168         "route.proto",
169     ],
170     well_known_protos = True,
171     deps = [
172         "base_proto",
173         "percent_proto",
174         "range_proto",
175         "regex_proto",
176     ],
177 )
178
179 grpc_proto_library(
180     name = "http_connection_manager_proto",
181     srcs = [
182         "http_connection_manager.proto",
183     ],
184     deps = [
185         "config_source_proto",
186         "protocol_proto",
187         "route_proto",
188     ],
189 )