load("@rules_proto//proto:defs.bzl", "proto_library") load("@io_bazel_rules_go//go:def.bzl", "go_library") load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") package(default_visibility = ["//visibility:public"]) proto_library( name = "examplepb_proto", srcs = [ "example.proto", ], deps = [ "@com_google_protobuf//:empty_proto", "@com_google_protobuf//:timestamp_proto", ], ) go_proto_library( name = "examplepb_go_proto", importpath = "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb", proto = ":examplepb_proto", deps = [ "@com_github_golang_protobuf//descriptor:go_default_library_gen", # keep ], ) go_library( name = "go_default_library", embed = [":examplepb_go_proto"], importpath = "github.com/grpc-ecosystem/grpc-gateway/runtime/internal/examplepb", )