xref: /aosp_15_r20/external/federated-compute/fcp/protos/federatedcompute/BUILD (revision 14675a029014e728ec732f129a32e299b2da0601)
1# Copyright 2021 Google LLC
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
15load("@com_github_grpc_grpc//bazel:python_rules.bzl", "py_proto_library")
16
17package(
18    default_visibility = [
19        "//visibility:public",
20    ],
21    licenses = ["notice"],  # Apache 2.0
22)
23
24# --------------------------------------------------------------------
25
26# The api protos.
27proto_library(
28    name = "federated_compute_proto",
29    srcs = [
30        "aggregations.proto",
31        "common.proto",
32        "eligibility_eval_tasks.proto",
33        "secure_aggregations.proto",
34        "task_assignments.proto",
35    ],
36    deps = [
37        "//fcp/protos:federated_api_proto",
38        "//fcp/secagg/shared:proto",
39        "@com_google_googleapis//google/api:annotations_proto",
40        "@com_google_googleapis//google/longrunning:operations_proto",
41        "@com_google_googleapis//google/rpc:code_proto",
42        "@com_google_googleapis//google/rpc:status_proto",
43        "@com_google_protobuf//:duration_proto",
44    ],
45)
46
47java_proto_library(
48    name = "federated_compute_java_proto",
49    deps = [":federated_compute_proto"],
50)
51
52cc_proto_library(
53    name = "federated_compute_cc_proto",
54    deps = [":federated_compute_proto"],
55)
56
57py_proto_library(
58    name = "federated_compute_py_pb2",
59    deps = [":federated_compute_proto"],
60)
61