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 = "notebooks_proto", 23 srcs = [ 24 "diagnostic_config.proto", 25 "environment.proto", 26 "event.proto", 27 "execution.proto", 28 "instance.proto", 29 "instance_config.proto", 30 "managed_service.proto", 31 "runtime.proto", 32 "schedule.proto", 33 "service.proto", 34 ], 35 deps = [ 36 "//google/api:annotations_proto", 37 "//google/api:client_proto", 38 "//google/api:field_behavior_proto", 39 "//google/api:resource_proto", 40 "//google/longrunning:operations_proto", 41 "@com_google_protobuf//:field_mask_proto", 42 "@com_google_protobuf//:timestamp_proto", 43 ], 44) 45 46proto_library_with_info( 47 name = "notebooks_proto_with_info", 48 deps = [ 49 ":notebooks_proto", 50 "//google/cloud:common_resources_proto", 51 "//google/cloud/location:location_proto", 52 "//google/iam/v1:iam_policy_proto", 53 ], 54) 55 56############################################################################## 57# Java 58############################################################################## 59load( 60 "@com_google_googleapis_imports//:imports.bzl", 61 "java_gapic_assembly_gradle_pkg", 62 "java_gapic_library", 63 "java_gapic_test", 64 "java_grpc_library", 65 "java_proto_library", 66) 67 68java_proto_library( 69 name = "notebooks_java_proto", 70 deps = [":notebooks_proto"], 71) 72 73java_grpc_library( 74 name = "notebooks_java_grpc", 75 srcs = [":notebooks_proto"], 76 deps = [":notebooks_java_proto"], 77) 78 79java_gapic_library( 80 name = "notebooks_java_gapic", 81 srcs = [":notebooks_proto_with_info"], 82 gapic_yaml = None, 83 grpc_service_config = "notebooks_grpc_service_config.json", 84 rest_numeric_enums = True, 85 service_yaml = "notebooks_v1.yaml", 86 test_deps = [ 87 "//google/cloud/location:location_java_grpc", 88 "//google/iam/v1:iam_java_grpc", 89 ":notebooks_java_grpc", 90 ], 91 transport = "grpc", 92 deps = [ 93 ":notebooks_java_proto", 94 "//google/api:api_java_proto", 95 "//google/cloud/location:location_java_proto", 96 "//google/iam/v1:iam_java_proto", 97 ], 98) 99 100java_gapic_test( 101 name = "notebooks_java_gapic_test_suite", 102 test_classes = [ 103 "com.google.cloud.notebooks.v1.ManagedNotebookServiceClientTest", 104 "com.google.cloud.notebooks.v1.NotebookServiceClientTest", 105 ], 106 runtime_deps = [":notebooks_java_gapic_test"], 107) 108 109# Open Source Packages 110java_gapic_assembly_gradle_pkg( 111 name = "google-cloud-notebooks-v1-java", 112 include_samples = True, 113 transport = "grpc", 114 deps = [ 115 ":notebooks_java_gapic", 116 ":notebooks_java_grpc", 117 ":notebooks_java_proto", 118 ":notebooks_proto", 119 ], 120) 121 122############################################################################## 123# Go 124############################################################################## 125load( 126 "@com_google_googleapis_imports//:imports.bzl", 127 "go_gapic_assembly_pkg", 128 "go_gapic_library", 129 "go_proto_library", 130) 131 132go_proto_library( 133 name = "notebooks_go_proto", 134 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 135 importpath = "cloud.google.com/go/notebooks/apiv1/notebookspb", 136 protos = [":notebooks_proto"], 137 deps = [ 138 "//google/api:annotations_go_proto", 139 "//google/longrunning:longrunning_go_proto", 140 ], 141) 142 143go_gapic_library( 144 name = "notebooks_go_gapic", 145 srcs = [":notebooks_proto_with_info"], 146 grpc_service_config = "notebooks_grpc_service_config.json", 147 importpath = "cloud.google.com/go/notebooks/apiv1;notebooks", 148 metadata = True, 149 release_level = "ga", 150 rest_numeric_enums = True, 151 service_yaml = "notebooks_v1.yaml", 152 transport = "grpc", 153 deps = [ 154 ":notebooks_go_proto", 155 "//google/cloud/location:location_go_proto", 156 "//google/iam/v1:iam_go_proto", 157 "//google/longrunning:longrunning_go_proto", 158 "@com_google_cloud_go_longrunning//:go_default_library", 159 "@com_google_cloud_go_longrunning//autogen:go_default_library", 160 ], 161) 162 163# Open Source Packages 164go_gapic_assembly_pkg( 165 name = "gapi-cloud-notebooks-v1-go", 166 deps = [ 167 ":notebooks_go_gapic", 168 ":notebooks_go_gapic_srcjar-metadata.srcjar", 169 ":notebooks_go_gapic_srcjar-snippets.srcjar", 170 ":notebooks_go_gapic_srcjar-test.srcjar", 171 ":notebooks_go_proto", 172 ], 173) 174 175############################################################################## 176# Python 177############################################################################## 178load( 179 "@com_google_googleapis_imports//:imports.bzl", 180 "py_gapic_assembly_pkg", 181 "py_gapic_library", 182 "py_test", 183) 184 185py_gapic_library( 186 name = "notebooks_py_gapic", 187 srcs = [":notebooks_proto"], 188 grpc_service_config = "notebooks_grpc_service_config.json", 189 rest_numeric_enums = True, 190 service_yaml = "notebooks_v1.yaml", 191 transport = "grpc", 192 deps = [ 193 "//google/iam/v1:iam_policy_py_proto", 194 ], 195) 196 197py_test( 198 name = "notebooks_py_gapic_test", 199 srcs = [ 200 "notebooks_py_gapic_pytest.py", 201 "notebooks_py_gapic_test.py", 202 ], 203 legacy_create_init = False, 204 deps = [":notebooks_py_gapic"], 205) 206 207# Open Source Packages 208py_gapic_assembly_pkg( 209 name = "notebooks-v1-py", 210 deps = [ 211 ":notebooks_py_gapic", 212 ], 213) 214 215############################################################################## 216# PHP 217############################################################################## 218load( 219 "@com_google_googleapis_imports//:imports.bzl", 220 "php_gapic_assembly_pkg", 221 "php_gapic_library", 222 "php_proto_library", 223) 224 225php_proto_library( 226 name = "notebooks_php_proto", 227 deps = [":notebooks_proto"], 228) 229 230php_gapic_library( 231 name = "notebooks_php_gapic", 232 srcs = [":notebooks_proto_with_info"], 233 grpc_service_config = "notebooks_grpc_service_config.json", 234 migration_mode = "NEW_SURFACE_ONLY", 235 rest_numeric_enums = True, 236 service_yaml = "notebooks_v1.yaml", 237 transport = "grpc+rest", 238 deps = [ 239 ":notebooks_php_proto", 240 ], 241) 242 243# Open Source Packages 244php_gapic_assembly_pkg( 245 name = "google-cloud-notebooks-v1-php", 246 deps = [ 247 ":notebooks_php_gapic", 248 ":notebooks_php_proto", 249 ], 250) 251 252############################################################################## 253# Node.js 254############################################################################## 255load( 256 "@com_google_googleapis_imports//:imports.bzl", 257 "nodejs_gapic_assembly_pkg", 258 "nodejs_gapic_library", 259) 260 261nodejs_gapic_library( 262 name = "notebooks_nodejs_gapic", 263 package_name = "@google-cloud/notebooks", 264 src = ":notebooks_proto_with_info", 265 extra_protoc_parameters = ["metadata"], 266 grpc_service_config = "notebooks_grpc_service_config.json", 267 package = "google.cloud.notebooks.v1", 268 rest_numeric_enums = True, 269 service_yaml = "notebooks_v1.yaml", 270 transport = "grpc", 271 deps = [], 272) 273 274nodejs_gapic_assembly_pkg( 275 name = "notebooks-v1-nodejs", 276 deps = [ 277 ":notebooks_nodejs_gapic", 278 ":notebooks_proto", 279 ], 280) 281 282############################################################################## 283# Ruby 284############################################################################## 285load( 286 "@com_google_googleapis_imports//:imports.bzl", 287 "ruby_cloud_gapic_library", 288 "ruby_gapic_assembly_pkg", 289 "ruby_grpc_library", 290 "ruby_proto_library", 291) 292 293ruby_proto_library( 294 name = "notebooks_ruby_proto", 295 deps = [":notebooks_proto"], 296) 297 298ruby_grpc_library( 299 name = "notebooks_ruby_grpc", 300 srcs = [":notebooks_proto"], 301 deps = [":notebooks_ruby_proto"], 302) 303 304ruby_cloud_gapic_library( 305 name = "notebooks_ruby_gapic", 306 srcs = [":notebooks_proto_with_info"], 307 extra_protoc_parameters = [ 308 "ruby-cloud-api-id=notebooks.googleapis.com", 309 "ruby-cloud-api-shortname=notebooks", 310 "ruby-cloud-env-prefix=NOTEBOOKS", 311 "ruby-cloud-gem-name=google-cloud-notebooks-v1", 312 "ruby-cloud-product-url=https://cloud.google.com/ai-platform-notebooks", 313 ], 314 grpc_service_config = "notebooks_grpc_service_config.json", 315 rest_numeric_enums = True, 316 ruby_cloud_description = "AI Platform Notebooks makes it easy to manage JupyterLab instances through a protected, publicly available notebook instance URL. A JupyterLab instance is a Deep Learning virtual machine instance with the latest machine learning and data science libraries pre-installed.", 317 ruby_cloud_title = "AI Platform Notebooks V1", 318 service_yaml = "notebooks_v1.yaml", 319 transport = "grpc+rest", 320 deps = [ 321 ":notebooks_ruby_grpc", 322 ":notebooks_ruby_proto", 323 ], 324) 325 326# Open Source Packages 327ruby_gapic_assembly_pkg( 328 name = "google-cloud-notebooks-v1-ruby", 329 deps = [ 330 ":notebooks_ruby_gapic", 331 ":notebooks_ruby_grpc", 332 ":notebooks_ruby_proto", 333 ], 334) 335 336############################################################################## 337# C# 338############################################################################## 339load( 340 "@com_google_googleapis_imports//:imports.bzl", 341 "csharp_gapic_assembly_pkg", 342 "csharp_gapic_library", 343 "csharp_grpc_library", 344 "csharp_proto_library", 345) 346 347csharp_proto_library( 348 name = "notebooks_csharp_proto", 349 deps = [":notebooks_proto"], 350) 351 352csharp_grpc_library( 353 name = "notebooks_csharp_grpc", 354 srcs = [":notebooks_proto"], 355 deps = [":notebooks_csharp_proto"], 356) 357 358csharp_gapic_library( 359 name = "notebooks_csharp_gapic", 360 srcs = [":notebooks_proto_with_info"], 361 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 362 grpc_service_config = "notebooks_grpc_service_config.json", 363 rest_numeric_enums = True, 364 service_yaml = "notebooks_v1.yaml", 365 transport = "grpc+rest", 366 deps = [ 367 ":notebooks_csharp_grpc", 368 ":notebooks_csharp_proto", 369 ], 370) 371 372# Open Source Packages 373csharp_gapic_assembly_pkg( 374 name = "google-cloud-notebooks-v1-csharp", 375 deps = [ 376 ":notebooks_csharp_gapic", 377 ":notebooks_csharp_grpc", 378 ":notebooks_csharp_proto", 379 ], 380) 381 382############################################################################## 383# C++ 384############################################################################## 385load( 386 "@com_google_googleapis_imports//:imports.bzl", 387 "cc_grpc_library", 388 "cc_proto_library", 389) 390 391cc_proto_library( 392 name = "notebooks_cc_proto", 393 deps = [":notebooks_proto"], 394) 395 396cc_grpc_library( 397 name = "notebooks_cc_grpc", 398 srcs = [":notebooks_proto"], 399 grpc_only = True, 400 deps = [":notebooks_cc_proto"], 401) 402