1# Copyright 2022 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# https://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 17############################################################################## 18# Common 19############################################################################## 20load("@rules_proto//proto:defs.bzl", "proto_library") 21 22proto_library( 23 name = "resources_proto", 24 srcs = glob(["*.proto"]), 25 deps = [ 26 "//google/ads/searchads360/v0/common:common_proto", 27 "//google/ads/searchads360/v0/enums:enums_proto", 28 "//google/api:field_behavior_proto", 29 "//google/api:resource_proto", 30 ], 31) 32 33############################################################################## 34# Java 35############################################################################## 36load( 37 "@com_google_googleapis_imports//:imports.bzl", 38 "java_grpc_library", 39 "java_proto_library", 40) 41 42java_proto_library( 43 name = "resources_java_proto", 44 deps = [":resources_proto"], 45) 46 47java_grpc_library( 48 name = "resources_java_grpc", 49 srcs = [":resources_proto"], 50 deps = [":resources_java_proto"], 51) 52 53############################################################################## 54# Python 55############################################################################## 56load( 57 "@com_google_googleapis_imports//:imports.bzl", 58 "moved_proto_library", 59 "py_grpc_library", 60 "py_proto_library", 61) 62 63moved_proto_library( 64 name = "resources_moved_proto", 65 srcs = [":resources_proto"], 66 deps = [ 67 "//google/ads/searchads360/v0/common:common_proto", 68 "//google/ads/searchads360/v0/enums:enums_proto", 69 "//google/api:field_behavior_proto", 70 "//google/api:resource_proto", 71 ], 72) 73 74py_proto_library( 75 name = "resources_py_proto", 76 deps = [":resources_moved_proto"], 77) 78 79py_grpc_library( 80 name = "resources_py_grpc", 81 srcs = [":resources_moved_proto"], 82 deps = [":resources_py_proto"], 83) 84 85############################################################################## 86# C# 87############################################################################## 88load( 89 "@com_google_googleapis_imports//:imports.bzl", 90 "csharp_grpc_library", 91 "csharp_proto_library", 92) 93 94csharp_proto_library( 95 name = "resources_csharp_proto", 96 deps = [":resources_proto"], 97) 98 99csharp_grpc_library( 100 name = "resources_csharp_grpc", 101 srcs = [":resources_proto"], 102 deps = [":resources_csharp_proto"], 103) 104