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 = "batch_proto", 23 srcs = [ 24 "batch.proto", 25 "job.proto", 26 "task.proto", 27 "volume.proto", 28 ], 29 deps = [ 30 "//google/api:annotations_proto", 31 "//google/api:client_proto", 32 "//google/api:field_behavior_proto", 33 "//google/api:field_info_proto", 34 "//google/api:resource_proto", 35 "//google/longrunning:operations_proto", 36 "@com_google_protobuf//:duration_proto", 37 "@com_google_protobuf//:empty_proto", 38 "@com_google_protobuf//:timestamp_proto", 39 ], 40) 41 42proto_library_with_info( 43 name = "batch_proto_with_info", 44 deps = [ 45 ":batch_proto", 46 "//google/cloud:common_resources_proto", 47 "//google/cloud/location:location_proto", 48 "//google/iam/v1:iam_policy_proto", 49 ], 50) 51 52############################################################################## 53# Java 54############################################################################## 55load( 56 "@com_google_googleapis_imports//:imports.bzl", 57 "java_gapic_assembly_gradle_pkg", 58 "java_gapic_library", 59 "java_gapic_test", 60 "java_grpc_library", 61 "java_proto_library", 62) 63 64java_proto_library( 65 name = "batch_java_proto", 66 deps = [":batch_proto"], 67) 68 69java_grpc_library( 70 name = "batch_java_grpc", 71 srcs = [":batch_proto"], 72 deps = [":batch_java_proto"], 73) 74 75java_gapic_library( 76 name = "batch_java_gapic", 77 srcs = [":batch_proto_with_info"], 78 gapic_yaml = None, 79 grpc_service_config = "batch_v1_grpc_service_config.json", 80 rest_numeric_enums = True, 81 service_yaml = "batch_v1.yaml", 82 test_deps = [ 83 ":batch_java_grpc", 84 "//google/cloud/location:location_java_grpc", 85 "//google/iam/v1:iam_java_grpc", 86 ], 87 transport = "grpc+rest", 88 deps = [ 89 ":batch_java_proto", 90 "//google/api:api_java_proto", 91 "//google/cloud/location:location_java_proto", 92 "//google/iam/v1:iam_java_proto", 93 ], 94) 95 96java_gapic_test( 97 name = "batch_java_gapic_test_suite", 98 test_classes = [ 99 "com.google.cloud.batch.v1.BatchServiceClientHttpJsonTest", 100 "com.google.cloud.batch.v1.BatchServiceClientTest", 101 ], 102 runtime_deps = [":batch_java_gapic_test"], 103) 104 105# Open Source Packages 106java_gapic_assembly_gradle_pkg( 107 name = "google-cloud-batch-v1-java", 108 include_samples = True, 109 transport = "grpc+rest", 110 deps = [ 111 ":batch_java_gapic", 112 ":batch_java_grpc", 113 ":batch_java_proto", 114 ":batch_proto", 115 ], 116) 117 118############################################################################## 119# Go 120############################################################################## 121load( 122 "@com_google_googleapis_imports//:imports.bzl", 123 "go_gapic_assembly_pkg", 124 "go_gapic_library", 125 "go_proto_library", 126) 127 128go_proto_library( 129 name = "batch_go_proto", 130 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 131 importpath = "cloud.google.com/go/batch/apiv1/batchpb", 132 protos = [":batch_proto"], 133 deps = [ 134 "//google/api:annotations_go_proto", 135 "//google/longrunning:longrunning_go_proto", 136 ], 137) 138 139go_gapic_library( 140 name = "batch_go_gapic", 141 srcs = [":batch_proto_with_info"], 142 grpc_service_config = "batch_v1_grpc_service_config.json", 143 importpath = "cloud.google.com/go/batch/apiv1;batch", 144 metadata = True, 145 release_level = "ga", 146 rest_numeric_enums = True, 147 service_yaml = "batch_v1.yaml", 148 transport = "grpc+rest", 149 deps = [ 150 ":batch_go_proto", 151 "//google/cloud/location:location_go_proto", 152 "//google/iam/v1:iam_go_proto", 153 "//google/longrunning:longrunning_go_proto", 154 "@com_google_cloud_go_longrunning//:go_default_library", 155 "@com_google_cloud_go_longrunning//autogen:go_default_library", 156 "@io_bazel_rules_go//proto/wkt:duration_go_proto", 157 ], 158) 159 160# Open Source Packages 161go_gapic_assembly_pkg( 162 name = "gapi-cloud-batch-v1-go", 163 deps = [ 164 ":batch_go_gapic", 165 ":batch_go_gapic_srcjar-metadata.srcjar", 166 ":batch_go_gapic_srcjar-snippets.srcjar", 167 ":batch_go_gapic_srcjar-test.srcjar", 168 ":batch_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 = "batch_py_gapic", 184 srcs = [":batch_proto"], 185 grpc_service_config = "batch_v1_grpc_service_config.json", 186 rest_numeric_enums = True, 187 service_yaml = "batch_v1.yaml", 188 transport = "grpc+rest", 189 deps = [ 190 "//google/iam/v1:iam_policy_py_proto", 191 ], 192) 193 194py_test( 195 name = "batch_py_gapic_test", 196 srcs = [ 197 "batch_py_gapic_pytest.py", 198 "batch_py_gapic_test.py", 199 ], 200 legacy_create_init = False, 201 deps = [":batch_py_gapic"], 202) 203 204# Open Source Packages 205py_gapic_assembly_pkg( 206 name = "batch-v1-py", 207 deps = [ 208 ":batch_py_gapic", 209 ], 210) 211 212############################################################################## 213# PHP 214############################################################################## 215load( 216 "@com_google_googleapis_imports//:imports.bzl", 217 "php_gapic_assembly_pkg", 218 "php_gapic_library", 219 "php_proto_library", 220) 221 222php_proto_library( 223 name = "batch_php_proto", 224 deps = [":batch_proto"], 225) 226 227php_gapic_library( 228 name = "batch_php_gapic", 229 srcs = [":batch_proto_with_info"], 230 grpc_service_config = "batch_v1_grpc_service_config.json", 231 migration_mode = "MIGRATING", 232 rest_numeric_enums = True, 233 service_yaml = "batch_v1.yaml", 234 transport = "grpc+rest", 235 deps = [":batch_php_proto"], 236) 237 238# Open Source Packages 239php_gapic_assembly_pkg( 240 name = "google-cloud-batch-v1-php", 241 deps = [ 242 ":batch_php_gapic", 243 ":batch_php_proto", 244 ], 245) 246 247############################################################################## 248# Node.js 249############################################################################## 250load( 251 "@com_google_googleapis_imports//:imports.bzl", 252 "nodejs_gapic_assembly_pkg", 253 "nodejs_gapic_library", 254) 255 256nodejs_gapic_library( 257 name = "batch_nodejs_gapic", 258 package_name = "@google-cloud/batch", 259 src = ":batch_proto_with_info", 260 extra_protoc_parameters = ["metadata"], 261 grpc_service_config = "batch_v1_grpc_service_config.json", 262 package = "google.cloud.batch.v1", 263 rest_numeric_enums = True, 264 service_yaml = "batch_v1.yaml", 265 transport = "grpc+rest", 266 deps = [], 267) 268 269nodejs_gapic_assembly_pkg( 270 name = "batch-v1-nodejs", 271 deps = [ 272 ":batch_nodejs_gapic", 273 ":batch_proto", 274 ], 275) 276 277############################################################################## 278# Ruby 279############################################################################## 280load( 281 "@com_google_googleapis_imports//:imports.bzl", 282 "ruby_cloud_gapic_library", 283 "ruby_gapic_assembly_pkg", 284 "ruby_grpc_library", 285 "ruby_proto_library", 286) 287 288ruby_proto_library( 289 name = "batch_ruby_proto", 290 deps = [":batch_proto"], 291) 292 293ruby_grpc_library( 294 name = "batch_ruby_grpc", 295 srcs = [":batch_proto"], 296 deps = [":batch_ruby_proto"], 297) 298 299ruby_cloud_gapic_library( 300 name = "batch_ruby_gapic", 301 srcs = [":batch_proto_with_info"], 302 extra_protoc_parameters = [ 303 "ruby-cloud-api-id=batch.googleapis.com", 304 "ruby-cloud-api-shortname=batch", 305 "ruby-cloud-gem-name=google-cloud-batch-v1", 306 ], 307 grpc_service_config = "batch_v1_grpc_service_config.json", 308 rest_numeric_enums = True, 309 ruby_cloud_description = "Google Cloud Batch is a fully managed service used by scientists, VFX artists, developers to easily and efficiently run batch workloads on Google Cloud. This service manages provisioning of resources to satisfy the requirements of the batch jobs for a variety of workloads including ML, HPC, VFX rendering, transcoding, genomics and others.", 310 ruby_cloud_title = "Batch V1", 311 service_yaml = "batch_v1.yaml", 312 transport = "grpc+rest", 313 deps = [ 314 ":batch_ruby_grpc", 315 ":batch_ruby_proto", 316 ], 317) 318 319# Open Source Packages 320ruby_gapic_assembly_pkg( 321 name = "google-cloud-batch-v1-ruby", 322 deps = [ 323 ":batch_ruby_gapic", 324 ":batch_ruby_grpc", 325 ":batch_ruby_proto", 326 ], 327) 328 329############################################################################## 330# C# 331############################################################################## 332load( 333 "@com_google_googleapis_imports//:imports.bzl", 334 "csharp_gapic_assembly_pkg", 335 "csharp_gapic_library", 336 "csharp_grpc_library", 337 "csharp_proto_library", 338) 339 340csharp_proto_library( 341 name = "batch_csharp_proto", 342 deps = [":batch_proto"], 343) 344 345csharp_grpc_library( 346 name = "batch_csharp_grpc", 347 srcs = [":batch_proto"], 348 deps = [":batch_csharp_proto"], 349) 350 351csharp_gapic_library( 352 name = "batch_csharp_gapic", 353 srcs = [":batch_proto_with_info"], 354 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 355 grpc_service_config = "batch_v1_grpc_service_config.json", 356 rest_numeric_enums = True, 357 service_yaml = "batch_v1.yaml", 358 transport = "grpc+rest", 359 deps = [ 360 ":batch_csharp_grpc", 361 ":batch_csharp_proto", 362 ], 363) 364 365# Open Source Packages 366csharp_gapic_assembly_pkg( 367 name = "google-cloud-batch-v1-csharp", 368 deps = [ 369 ":batch_csharp_gapic", 370 ":batch_csharp_grpc", 371 ":batch_csharp_proto", 372 ], 373) 374 375############################################################################## 376# C++ 377############################################################################## 378load( 379 "@com_google_googleapis_imports//:imports.bzl", 380 "cc_grpc_library", 381 "cc_proto_library", 382) 383 384cc_proto_library( 385 name = "batch_cc_proto", 386 deps = [":batch_proto"], 387) 388 389cc_grpc_library( 390 name = "batch_cc_grpc", 391 srcs = [":batch_proto"], 392 grpc_only = True, 393 deps = [":batch_cc_proto"], 394) 395