1# Copyright 2018, 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
15package(default_visibility = ["//visibility:public"])
16
17load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library")
18
19proto_library(
20    name = "metrics_proto",
21    srcs = ["metrics.proto"],
22    deps = [
23        "@com_google_protobuf//:timestamp_proto",
24        "@com_google_protobuf//:wrappers_proto",
25        "//opencensus/proto/resource/v1:resource_proto",
26    ],
27)
28
29cc_proto_library(
30    name = "metrics_proto_cc",
31    deps = [":metrics_proto"],
32)
33
34java_proto_library(
35    name = "metrics_proto_java",
36    deps = [":metrics_proto"],
37)
38
39go_proto_library(
40    name = "metrics_proto_go",
41    proto = ":metrics_proto",
42    importpath = "github.com/census-instrumentation/opencensus-proto/gen-go/metrics/v1",
43    deps = [
44        "//opencensus/proto/resource/v1:resource_proto_go",
45        "@com_github_golang_protobuf//ptypes/timestamp:go_default_library",
46        "@com_github_golang_protobuf//ptypes/wrappers:go_default_library",
47    ],
48)
49