1# This file was automatically generated by BuildFileGenerator 2# https://github.com/googleapis/rules_gapic/tree/master/bazel 3 4# Most of the manual changes to this file will be overwritten. 5# It's **only** allowed to change the following rule attribute values: 6# - names of *_gapic_assembly_* rules 7# - certain parameters of *_gapic_library rules, including but not limited to: 8# * extra_protoc_parameters 9# * extra_protoc_file_parameters 10# The complete list of preserved parameters can be found in the source code. 11 12# This is an API workspace, having public visibility by default makes perfect sense. 13package(default_visibility = ["//visibility:public"]) 14 15############################################################################## 16# Common 17############################################################################## 18load("@rules_proto//proto:defs.bzl", "proto_library") 19load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") 20 21proto_library( 22 name = "networksecurity_proto", 23 srcs = [ 24 "authorization_policy.proto", 25 "client_tls_policy.proto", 26 "common.proto", 27 "network_security.proto", 28 "server_tls_policy.proto", 29 "tls.proto", 30 ], 31 deps = [ 32 "//google/api:annotations_proto", 33 "//google/api:client_proto", 34 "//google/api:field_behavior_proto", 35 "//google/api:resource_proto", 36 "//google/longrunning:operations_proto", 37 "@com_google_protobuf//:empty_proto", 38 "@com_google_protobuf//:field_mask_proto", 39 "@com_google_protobuf//:timestamp_proto", 40 ], 41) 42 43proto_library_with_info( 44 name = "networksecurity_proto_with_info", 45 deps = [ 46 ":networksecurity_proto", 47 "//google/cloud:common_resources_proto", 48 "//google/cloud/location:location_proto", 49 "//google/iam/v1:iam_policy_proto", 50 ], 51) 52 53############################################################################## 54# Java 55############################################################################## 56load( 57 "@com_google_googleapis_imports//:imports.bzl", 58 "java_gapic_assembly_gradle_pkg", 59 "java_gapic_library", 60 "java_gapic_test", 61 "java_grpc_library", 62 "java_proto_library", 63) 64 65java_proto_library( 66 name = "networksecurity_java_proto", 67 deps = [":networksecurity_proto"], 68) 69 70java_grpc_library( 71 name = "networksecurity_java_grpc", 72 srcs = [":networksecurity_proto"], 73 deps = [":networksecurity_java_proto"], 74) 75 76java_gapic_library( 77 name = "networksecurity_java_gapic", 78 srcs = [":networksecurity_proto_with_info"], 79 gapic_yaml = None, 80 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 81 rest_numeric_enums = True, 82 service_yaml = "networksecurity_v1beta1.yaml", 83 test_deps = [ 84 ":networksecurity_java_grpc", 85 "//google/cloud/location:location_java_grpc", 86 "//google/iam/v1:iam_java_grpc", 87 ], 88 transport = "grpc+rest", 89 deps = [ 90 ":networksecurity_java_proto", 91 "//google/api:api_java_proto", 92 "//google/cloud/location:location_java_proto", 93 "//google/iam/v1:iam_java_proto", 94 ], 95) 96 97java_gapic_test( 98 name = "networksecurity_java_gapic_test_suite", 99 test_classes = [ 100 "com.google.cloud.networksecurity.v1beta1.NetworkSecurityClientHttpJsonTest", 101 "com.google.cloud.networksecurity.v1beta1.NetworkSecurityClientTest", 102 ], 103 runtime_deps = [":networksecurity_java_gapic_test"], 104) 105 106# Open Source Packages 107java_gapic_assembly_gradle_pkg( 108 name = "google-cloud-networksecurity-v1beta1-java", 109 include_samples = True, 110 transport = "grpc+rest", 111 deps = [ 112 ":networksecurity_java_gapic", 113 ":networksecurity_java_grpc", 114 ":networksecurity_java_proto", 115 ":networksecurity_proto", 116 ], 117) 118 119############################################################################## 120# Go 121############################################################################## 122load( 123 "@com_google_googleapis_imports//:imports.bzl", 124 "go_gapic_assembly_pkg", 125 "go_gapic_library", 126 "go_proto_library", 127) 128 129go_proto_library( 130 name = "networksecurity_go_proto", 131 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 132 importpath = "cloud.google.com/go/networksecurity/apiv1beta1/networksecuritypb", 133 protos = [":networksecurity_proto"], 134 deps = [ 135 "//google/api:annotations_go_proto", 136 "//google/longrunning:longrunning_go_proto", 137 ], 138) 139 140go_gapic_library( 141 name = "networksecurity_go_gapic", 142 srcs = [":networksecurity_proto_with_info"], 143 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 144 importpath = "cloud.google.com/go/networksecurity/apiv1beta1;networksecurity", 145 metadata = True, 146 release_level = "beta", 147 rest_numeric_enums = True, 148 service_yaml = "networksecurity_v1beta1.yaml", 149 transport = "grpc+rest", 150 deps = [ 151 ":networksecurity_go_proto", 152 "//google/cloud/location:location_go_proto", 153 "//google/iam/v1:iam_go_proto", 154 "//google/longrunning:longrunning_go_proto", 155 "@com_google_cloud_go_longrunning//:go_default_library", 156 "@com_google_cloud_go_longrunning//autogen:go_default_library", 157 ], 158) 159 160# Open Source Packages 161go_gapic_assembly_pkg( 162 name = "gapi-cloud-networksecurity-v1beta1-go", 163 deps = [ 164 ":networksecurity_go_gapic", 165 ":networksecurity_go_gapic_srcjar-metadata.srcjar", 166 ":networksecurity_go_gapic_srcjar-snippets.srcjar", 167 ":networksecurity_go_gapic_srcjar-test.srcjar", 168 ":networksecurity_go_proto", 169 ], 170) 171 172############################################################################## 173# Python 174############################################################################## 175load( 176 "@com_google_googleapis_imports//:imports.bzl", 177 "py_gapic_assembly_pkg", 178 "py_gapic_library", 179 "py_test", 180) 181 182py_gapic_library( 183 name = "networksecurity_py_gapic", 184 srcs = [":networksecurity_proto"], 185 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 186 opt_args = [ 187 "warehouse-package-name=google-cloud-network-security", 188 "python-gapic-namespace=google.cloud", 189 "python-gapic-name=network_security", 190 ], 191 rest_numeric_enums = True, 192 service_yaml = "networksecurity_v1beta1.yaml", 193 transport = "grpc", 194 deps = [ 195 "//google/iam/v1:iam_policy_py_proto", 196 ], 197) 198 199py_test( 200 name = "networksecurity_py_gapic_test", 201 srcs = [ 202 "networksecurity_py_gapic_pytest.py", 203 "networksecurity_py_gapic_test.py", 204 ], 205 legacy_create_init = False, 206 deps = [":networksecurity_py_gapic"], 207) 208 209# Open Source Packages 210py_gapic_assembly_pkg( 211 name = "networksecurity-v1beta1-py", 212 deps = [ 213 ":networksecurity_py_gapic", 214 ], 215) 216 217############################################################################## 218# PHP 219############################################################################## 220load( 221 "@com_google_googleapis_imports//:imports.bzl", 222 "php_gapic_assembly_pkg", 223 "php_gapic_library", 224 "php_proto_library", 225) 226 227php_proto_library( 228 name = "networksecurity_php_proto", 229 deps = [":networksecurity_proto"], 230) 231 232php_gapic_library( 233 name = "networksecurity_php_gapic", 234 srcs = [":networksecurity_proto_with_info"], 235 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 236 rest_numeric_enums = True, 237 service_yaml = "networksecurity_v1beta1.yaml", 238 transport = "grpc+rest", 239 deps = [":networksecurity_php_proto"], 240) 241 242# Open Source Packages 243php_gapic_assembly_pkg( 244 name = "google-cloud-networksecurity-v1beta1-php", 245 deps = [ 246 ":networksecurity_php_gapic", 247 ":networksecurity_php_proto", 248 ], 249) 250 251############################################################################## 252# Node.js 253############################################################################## 254load( 255 "@com_google_googleapis_imports//:imports.bzl", 256 "nodejs_gapic_assembly_pkg", 257 "nodejs_gapic_library", 258) 259 260nodejs_gapic_library( 261 name = "networksecurity_nodejs_gapic", 262 package_name = "@google-cloud/network-security", 263 src = ":networksecurity_proto_with_info", 264 extra_protoc_parameters = ["metadata"], 265 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 266 package = "google.cloud.networksecurity.v1beta1", 267 rest_numeric_enums = True, 268 service_yaml = "networksecurity_v1beta1.yaml", 269 transport = "grpc+rest", 270 deps = [], 271) 272 273nodejs_gapic_assembly_pkg( 274 name = "networksecurity-v1beta1-nodejs", 275 deps = [ 276 ":networksecurity_nodejs_gapic", 277 ":networksecurity_proto", 278 ], 279) 280 281############################################################################## 282# Ruby 283############################################################################## 284load( 285 "@com_google_googleapis_imports//:imports.bzl", 286 "ruby_cloud_gapic_library", 287 "ruby_gapic_assembly_pkg", 288 "ruby_grpc_library", 289 "ruby_proto_library", 290) 291 292ruby_proto_library( 293 name = "networksecurity_ruby_proto", 294 deps = [":networksecurity_proto"], 295) 296 297ruby_grpc_library( 298 name = "networksecurity_ruby_grpc", 299 srcs = [":networksecurity_proto"], 300 deps = [":networksecurity_ruby_proto"], 301) 302 303ruby_cloud_gapic_library( 304 name = "networksecurity_ruby_gapic", 305 srcs = [":networksecurity_proto_with_info"], 306 extra_protoc_parameters = [ 307 "ruby-cloud-api-id=networksecurity.googleapis.com", 308 "ruby-cloud-api-shortname=networksecurity", 309 "ruby-cloud-gem-name=google-cloud-network_security-v1beta1", 310 "ruby-cloud-product-url=https://cloud.google.com/traffic-director/docs/reference/network-security/rest/", 311 ], 312 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 313 rest_numeric_enums = True, 314 ruby_cloud_description = "The client library for the Google Network Security V1beta1 API.", 315 ruby_cloud_title = "Network Security V1beta1", 316 service_yaml = "networksecurity_v1beta1.yaml", 317 transport = "grpc+rest", 318 deps = [ 319 ":networksecurity_ruby_grpc", 320 ":networksecurity_ruby_proto", 321 ], 322) 323 324# Open Source Packages 325ruby_gapic_assembly_pkg( 326 name = "google-cloud-networksecurity-v1beta1-ruby", 327 deps = [ 328 ":networksecurity_ruby_gapic", 329 ":networksecurity_ruby_grpc", 330 ":networksecurity_ruby_proto", 331 ], 332) 333 334############################################################################## 335# C# 336############################################################################## 337load( 338 "@com_google_googleapis_imports//:imports.bzl", 339 "csharp_gapic_assembly_pkg", 340 "csharp_gapic_library", 341 "csharp_grpc_library", 342 "csharp_proto_library", 343) 344 345csharp_proto_library( 346 name = "networksecurity_csharp_proto", 347 deps = [":networksecurity_proto"], 348) 349 350csharp_grpc_library( 351 name = "networksecurity_csharp_grpc", 352 srcs = [":networksecurity_proto"], 353 deps = [":networksecurity_csharp_proto"], 354) 355 356csharp_gapic_library( 357 name = "networksecurity_csharp_gapic", 358 srcs = [":networksecurity_proto_with_info"], 359 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 360 grpc_service_config = "networksecurity_v1beta1_grpc_service_config.json", 361 rest_numeric_enums = True, 362 service_yaml = "networksecurity_v1beta1.yaml", 363 transport = "grpc+rest", 364 deps = [ 365 ":networksecurity_csharp_grpc", 366 ":networksecurity_csharp_proto", 367 ], 368) 369 370# Open Source Packages 371csharp_gapic_assembly_pkg( 372 name = "google-cloud-networksecurity-v1beta1-csharp", 373 deps = [ 374 ":networksecurity_csharp_gapic", 375 ":networksecurity_csharp_grpc", 376 ":networksecurity_csharp_proto", 377 ], 378) 379 380############################################################################## 381# C++ 382############################################################################## 383load( 384 "@com_google_googleapis_imports//:imports.bzl", 385 "cc_grpc_library", 386 "cc_proto_library", 387) 388 389cc_proto_library( 390 name = "networksecurity_cc_proto", 391 deps = [":networksecurity_proto"], 392) 393 394cc_grpc_library( 395 name = "networksecurity_cc_grpc", 396 srcs = [":networksecurity_proto"], 397 grpc_only = True, 398 deps = [":networksecurity_cc_proto"], 399) 400