1# Copyright 2017, OpenCensus 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
15load("@rules_proto//proto:defs.bzl", "proto_library")
16
17package(default_visibility = ["//visibility:public"])
18
19load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
20
21proto_library(
22    name = "stats_proto",
23    srcs = ["stats.proto"],
24    deps = [
25        "@com_google_protobuf//:duration_proto",
26        "@com_google_protobuf//:timestamp_proto",
27    ],
28)
29
30cc_proto_library(
31    name = "stats_proto_cc",
32    deps = [":stats_proto"],
33)
34
35java_proto_library(
36    name = "stats_proto_java",
37    deps = [":stats_proto"],
38)
39
40go_proto_library(
41    name = "stats_proto_go",
42    importpath = "github.com/census-instrumentation/opencensus-proto/gen-go/stats/v1",
43    proto = ":stats_proto",
44    deps = [
45        "@com_github_golang_protobuf//ptypes/timestamp:go_default_library",
46    ],
47)
48