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############################################################################## 13# Common 14############################################################################## 15load("@rules_proto//proto:defs.bzl", "proto_library") 16load( 17 "@com_google_googleapis_imports//:imports.bzl", 18 "cc_grpc_library", 19 "cc_proto_library", 20 "csharp_gapic_assembly_pkg", 21 "csharp_gapic_library", 22 "csharp_grpc_library", 23 "csharp_proto_library", 24 "go_gapic_assembly_pkg", 25 "go_gapic_library", 26 "go_proto_library", 27 "java_gapic_assembly_gradle_pkg", 28 "java_gapic_library", 29 "java_gapic_test", 30 "java_grpc_library", 31 "java_proto_library", 32 "nodejs_gapic_assembly_pkg", 33 "nodejs_gapic_library", 34 "php_gapic_assembly_pkg", 35 "php_gapic_library", 36 "php_proto_library", 37 "proto_library_with_info", 38 "py_gapic_assembly_pkg", 39 "py_gapic_library", 40 "py_test", 41 "ruby_cloud_gapic_library", 42 "ruby_gapic_assembly_pkg", 43 "ruby_grpc_library", 44 "ruby_proto_library", 45) 46 47# This is an API workspace, having public visibility by default makes perfect sense. 48package(default_visibility = ["//visibility:public"]) 49 50proto_library( 51 name = "container_proto", 52 srcs = [ 53 "cluster_service.proto", 54 ], 55 deps = [ 56 "//google/api:annotations_proto", 57 "//google/api:client_proto", 58 "//google/api:field_behavior_proto", 59 "//google/api:resource_proto", 60 "//google/rpc:code_proto", 61 "//google/rpc:status_proto", 62 "@com_google_protobuf//:duration_proto", 63 "@com_google_protobuf//:empty_proto", 64 "@com_google_protobuf//:timestamp_proto", 65 "@com_google_protobuf//:wrappers_proto", 66 ], 67) 68 69proto_library_with_info( 70 name = "container_proto_with_info", 71 deps = [ 72 ":container_proto", 73 "//google/cloud:common_resources_proto", 74 ], 75) 76 77java_proto_library( 78 name = "container_java_proto", 79 deps = [":container_proto"], 80) 81 82java_grpc_library( 83 name = "container_java_grpc", 84 srcs = [":container_proto"], 85 deps = [":container_java_proto"], 86) 87 88java_gapic_library( 89 name = "container_java_gapic", 90 srcs = [":container_proto_with_info"], 91 gapic_yaml = "container_gapic.yaml", 92 grpc_service_config = "container_grpc_service_config.json", 93 rest_numeric_enums = True, 94 service_yaml = "container_v1.yaml", 95 test_deps = [ 96 ":container_java_grpc", 97 ], 98 transport = "grpc", 99 deps = [ 100 ":container_java_proto", 101 "//google/api:api_java_proto", 102 ], 103) 104 105java_gapic_test( 106 name = "container_java_gapic_test_suite", 107 test_classes = [ 108 "com.google.cloud.container.v1.ClusterManagerClientTest", 109 ], 110 runtime_deps = [":container_java_gapic_test"], 111) 112 113# Open Source Packages 114java_gapic_assembly_gradle_pkg( 115 name = "google-cloud-container-v1-java", 116 include_samples = True, 117 transport = "grpc", 118 deps = [ 119 ":container_java_gapic", 120 ":container_java_grpc", 121 ":container_java_proto", 122 ":container_proto", 123 ], 124) 125 126go_proto_library( 127 name = "container_go_proto", 128 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 129 importpath = "cloud.google.com/go/container/apiv1/containerpb", 130 protos = [":container_proto"], 131 deps = [ 132 "//google/api:annotations_go_proto", 133 "//google/rpc:code_go_proto", 134 "//google/rpc:status_go_proto", 135 ], 136) 137 138go_gapic_library( 139 name = "container_go_gapic", 140 srcs = [":container_proto_with_info"], 141 grpc_service_config = "container_grpc_service_config.json", 142 importpath = "cloud.google.com/go/container/apiv1;container", 143 metadata = True, 144 release_level = "ga", 145 rest_numeric_enums = True, 146 service_yaml = "container_v1.yaml", 147 transport = "grpc", 148 deps = [ 149 ":container_go_proto", 150 ], 151) 152 153# Open Source Packages 154go_gapic_assembly_pkg( 155 name = "gapi-cloud-container-v1-go", 156 deps = [ 157 ":container_go_gapic", 158 ":container_go_gapic_srcjar-metadata.srcjar", 159 ":container_go_gapic_srcjar-snippets.srcjar", 160 ":container_go_gapic_srcjar-test.srcjar", 161 ":container_go_proto", 162 ], 163) 164 165py_gapic_library( 166 name = "container_py_gapic", 167 srcs = [":container_proto"], 168 grpc_service_config = "container_grpc_service_config.json", 169 opt_args = [ 170 "python-gapic-namespace=google.cloud", 171 "warehouse-package-name=google-cloud-container", 172 ], 173 rest_numeric_enums = True, 174 service_yaml = "container_v1.yaml", 175 transport = "grpc", 176) 177 178py_test( 179 name = "container_py_gapic_test", 180 srcs = [ 181 "container_py_gapic_pytest.py", 182 "container_py_gapic_test.py", 183 ], 184 legacy_create_init = False, 185 deps = [":container_py_gapic"], 186) 187 188# Open Source Packages 189py_gapic_assembly_pkg( 190 name = "container-v1-py", 191 deps = [ 192 ":container_py_gapic", 193 ], 194) 195 196php_proto_library( 197 name = "container_php_proto", 198 deps = [":container_proto"], 199) 200 201php_gapic_library( 202 name = "container_php_gapic", 203 srcs = [":container_proto_with_info"], 204 grpc_service_config = "container_grpc_service_config.json", 205 migration_mode = "MIGRATING", 206 rest_numeric_enums = True, 207 service_yaml = "container_v1.yaml", 208 transport = "grpc+rest", 209 deps = [":container_php_proto"], 210) 211 212# Open Source Packages 213php_gapic_assembly_pkg( 214 name = "google-cloud-container-v1-php", 215 deps = [ 216 ":container_php_gapic", 217 ":container_php_proto", 218 ], 219) 220 221nodejs_gapic_library( 222 name = "container_nodejs_gapic", 223 package_name = "@google-cloud/container", 224 src = ":container_proto_with_info", 225 extra_protoc_parameters = ["metadata"], 226 grpc_service_config = "container_grpc_service_config.json", 227 package = "google.container.v1", 228 rest_numeric_enums = True, 229 service_yaml = "container_v1.yaml", 230 transport = "grpc", 231 deps = [], 232) 233 234nodejs_gapic_assembly_pkg( 235 name = "container-v1-nodejs", 236 deps = [ 237 ":container_nodejs_gapic", 238 ":container_proto", 239 ], 240) 241 242ruby_proto_library( 243 name = "container_ruby_proto", 244 deps = [":container_proto"], 245) 246 247ruby_grpc_library( 248 name = "container_ruby_grpc", 249 srcs = [":container_proto"], 250 deps = [":container_ruby_proto"], 251) 252 253ruby_cloud_gapic_library( 254 name = "container_ruby_gapic", 255 srcs = [":container_proto_with_info"], 256 extra_protoc_parameters = [ 257 "ruby-cloud-api-id=container.googleapis.com", 258 "ruby-cloud-api-shortname=container", 259 "ruby-cloud-env-prefix=CONTAINER", 260 "ruby-cloud-gem-name=google-cloud-container-v1", 261 "ruby-cloud-product-url=https://cloud.google.com/kubernetes-engine", 262 ], 263 grpc_service_config = "container_grpc_service_config.json", 264 rest_numeric_enums = True, 265 ruby_cloud_description = "Builds and manages container-based applications, powered by the open source Kubernetes technology.", 266 ruby_cloud_title = "Kubernetes Engine V1", 267 service_yaml = "container_v1.yaml", 268 transport = "grpc", 269 deps = [ 270 ":container_ruby_grpc", 271 ":container_ruby_proto", 272 ], 273) 274 275# Open Source Packages 276ruby_gapic_assembly_pkg( 277 name = "google-cloud-container-v1-ruby", 278 deps = [ 279 ":container_ruby_gapic", 280 ":container_ruby_grpc", 281 ":container_ruby_proto", 282 ], 283) 284 285csharp_proto_library( 286 name = "container_csharp_proto", 287 deps = [":container_proto"], 288) 289 290csharp_grpc_library( 291 name = "container_csharp_grpc", 292 srcs = [":container_proto"], 293 deps = [":container_csharp_proto"], 294) 295 296csharp_gapic_library( 297 name = "container_csharp_gapic", 298 srcs = [":container_proto_with_info"], 299 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 300 grpc_service_config = "container_grpc_service_config.json", 301 rest_numeric_enums = True, 302 service_yaml = "container_v1.yaml", 303 transport = "grpc", 304 deps = [ 305 ":container_csharp_grpc", 306 ":container_csharp_proto", 307 ], 308) 309 310# Open Source Packages 311csharp_gapic_assembly_pkg( 312 name = "google-cloud-container-v1-csharp", 313 deps = [ 314 ":container_csharp_gapic", 315 ":container_csharp_grpc", 316 ":container_csharp_proto", 317 ], 318) 319 320cc_proto_library( 321 name = "container_cc_proto", 322 deps = [":container_proto"], 323) 324 325cc_grpc_library( 326 name = "container_cc_grpc", 327 srcs = [":container_proto"], 328 grpc_only = True, 329 deps = [":container_cc_proto"], 330) 331