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 = "dashboard_proto", 23 srcs = [ 24 "alertchart.proto", 25 "collapsible_group.proto", 26 "common.proto", 27 "dashboard.proto", 28 "dashboard_filter.proto", 29 "dashboards_service.proto", 30 "drilldowns.proto", 31 "error_reporting_panel.proto", 32 "incident_list.proto", 33 "layouts.proto", 34 "logs_panel.proto", 35 "metrics.proto", 36 "piechart.proto", 37 "scorecard.proto", 38 "section_header.proto", 39 "service.proto", 40 "single_view_group.proto", 41 "table.proto", 42 "table_display_options.proto", 43 "text.proto", 44 "widget.proto", 45 "xychart.proto", 46 ], 47 deps = [ 48 "//google/api:annotations_proto", 49 "//google/api:client_proto", 50 "//google/api:field_behavior_proto", 51 "//google/api:monitored_resource_proto", 52 "//google/api:resource_proto", 53 "//google/type:interval_proto", 54 "@com_google_protobuf//:duration_proto", 55 "@com_google_protobuf//:empty_proto", 56 ], 57) 58 59proto_library_with_info( 60 name = "dashboard_proto_with_info", 61 deps = [ 62 ":dashboard_proto", 63 "//google/cloud:common_resources_proto", 64 ], 65) 66 67############################################################################## 68# Java 69############################################################################## 70load( 71 "@com_google_googleapis_imports//:imports.bzl", 72 "java_gapic_assembly_gradle_pkg", 73 "java_gapic_library", 74 "java_gapic_test", 75 "java_grpc_library", 76 "java_proto_library", 77) 78 79java_proto_library( 80 name = "dashboard_java_proto", 81 deps = [":dashboard_proto"], 82) 83 84java_grpc_library( 85 name = "dashboard_java_grpc", 86 srcs = [":dashboard_proto"], 87 deps = [":dashboard_java_proto"], 88) 89 90java_gapic_library( 91 name = "dashboard_java_gapic", 92 srcs = [":dashboard_proto_with_info"], 93 gapic_yaml = "monitoring_gapic.yaml", 94 grpc_service_config = "dashboards_grpc_service_config.json", 95 rest_numeric_enums = True, 96 service_yaml = "monitoring.yaml", 97 test_deps = [ 98 ":dashboard_java_grpc", 99 ], 100 transport = "grpc+rest", 101 deps = [ 102 ":dashboard_java_proto", 103 "//google/api:api_java_proto", 104 ], 105) 106 107java_gapic_test( 108 name = "dashboard_java_gapic_test_suite", 109 test_classes = [ 110 "com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClientHttpJsonTest", 111 "com.google.cloud.monitoring.dashboard.v1.DashboardsServiceClientTest", 112 ], 113 runtime_deps = [":dashboard_java_gapic_test"], 114) 115 116# Open Source Packages 117java_gapic_assembly_gradle_pkg( 118 name = "google-cloud-monitoring-dashboard-v1-java", 119 include_samples = True, 120 transport = "grpc+rest", 121 deps = [ 122 ":dashboard_java_gapic", 123 ":dashboard_java_grpc", 124 ":dashboard_java_proto", 125 ":dashboard_proto", 126 ], 127) 128 129############################################################################## 130# Go 131############################################################################## 132load( 133 "@com_google_googleapis_imports//:imports.bzl", 134 "go_gapic_assembly_pkg", 135 "go_gapic_library", 136 "go_proto_library", 137) 138 139go_proto_library( 140 name = "dashboard_go_proto", 141 compilers = ["@io_bazel_rules_go//proto:go_grpc"], 142 importpath = "cloud.google.com/go/monitoring/dashboard/apiv1/dashboardpb", 143 protos = [":dashboard_proto"], 144 deps = [ 145 "//google/api:annotations_go_proto", 146 "//google/api:monitoredres_go_proto", 147 "//google/type:interval_go_proto", 148 ], 149) 150 151go_gapic_library( 152 name = "dashboard_go_gapic", 153 srcs = [":dashboard_proto_with_info"], 154 grpc_service_config = "dashboards_grpc_service_config.json", 155 importpath = "cloud.google.com/go/monitoring/dashboard/apiv1;dashboard", 156 metadata = True, 157 release_level = "ga", 158 rest_numeric_enums = True, 159 service_yaml = "monitoring.yaml", 160 transport = "grpc+rest", 161 deps = [ 162 ":dashboard_go_proto", 163 "//google/api:monitoredres_go_proto", 164 "@io_bazel_rules_go//proto/wkt:duration_go_proto", 165 ], 166) 167 168# Open Source Packages 169go_gapic_assembly_pkg( 170 name = "gapi-cloud-monitoring-dashboard-v1-go", 171 deps = [ 172 ":dashboard_go_gapic", 173 ":dashboard_go_gapic_srcjar-metadata.srcjar", 174 ":dashboard_go_gapic_srcjar-snippets.srcjar", 175 ":dashboard_go_gapic_srcjar-test.srcjar", 176 ":dashboard_go_proto", 177 ], 178) 179 180############################################################################## 181# Python 182############################################################################## 183load( 184 "@com_google_googleapis_imports//:imports.bzl", 185 "py_gapic_assembly_pkg", 186 "py_gapic_library", 187 "py_test", 188) 189 190py_gapic_library( 191 name = "dashboard_py_gapic", 192 srcs = [":dashboard_proto"], 193 grpc_service_config = "dashboards_grpc_service_config.json", 194 opt_args = [ 195 "python-gapic-name=monitoring_dashboard", 196 "python-gapic-namespace=google.cloud", 197 "warehouse-package-name=google-cloud-monitoring-dashboards", 198 ], 199 rest_numeric_enums = True, 200 service_yaml = "monitoring.yaml", 201 transport = "grpc+rest", 202 deps = [ 203 ], 204) 205 206py_test( 207 name = "dashboard_py_gapic_test", 208 srcs = [ 209 "dashboard_py_gapic_pytest.py", 210 "dashboard_py_gapic_test.py", 211 ], 212 legacy_create_init = False, 213 deps = [":dashboard_py_gapic"], 214) 215 216# Open Source Packages 217py_gapic_assembly_pkg( 218 name = "monitoring-dashboard-v1-py", 219 deps = [ 220 ":dashboard_py_gapic", 221 ], 222) 223 224############################################################################## 225# PHP 226############################################################################## 227load( 228 "@com_google_googleapis_imports//:imports.bzl", 229 "php_gapic_assembly_pkg", 230 "php_gapic_library", 231 "php_proto_library", 232) 233 234php_proto_library( 235 name = "dashboard_php_proto", 236 deps = [":dashboard_proto"], 237) 238 239php_gapic_library( 240 name = "dashboard_php_gapic", 241 srcs = [":dashboard_proto_with_info"], 242 grpc_service_config = "dashboards_grpc_service_config.json", 243 migration_mode = "PRE_MIGRATION_SURFACE_ONLY", 244 rest_numeric_enums = True, 245 service_yaml = "monitoring.yaml", 246 transport = "grpc+rest", 247 deps = [ 248 ":dashboard_php_proto", 249 ], 250) 251 252# Open Source Packages 253php_gapic_assembly_pkg( 254 name = "google-cloud-monitoring-dashboard-v1-php", 255 deps = [ 256 ":dashboard_php_gapic", 257 ":dashboard_php_proto", 258 ], 259) 260 261############################################################################## 262# Node.js 263############################################################################## 264load( 265 "@com_google_googleapis_imports//:imports.bzl", 266 "nodejs_gapic_assembly_pkg", 267 "nodejs_gapic_library", 268) 269 270nodejs_gapic_library( 271 name = "dashboard_nodejs_gapic", 272 package_name = "@google-cloud/monitoring-dashboards", 273 src = ":dashboard_proto_with_info", 274 extra_protoc_parameters = ["metadata"], 275 grpc_service_config = "dashboards_grpc_service_config.json", 276 package = "google.monitoring.dashboard.v1", 277 rest_numeric_enums = True, 278 service_yaml = "monitoring.yaml", 279 transport = "grpc+rest", 280 deps = [], 281) 282 283nodejs_gapic_assembly_pkg( 284 name = "monitoring-dashboard-v1-nodejs", 285 deps = [ 286 ":dashboard_nodejs_gapic", 287 ":dashboard_proto", 288 ], 289) 290 291############################################################################## 292# Ruby 293############################################################################## 294load( 295 "@com_google_googleapis_imports//:imports.bzl", 296 "ruby_cloud_gapic_library", 297 "ruby_gapic_assembly_pkg", 298 "ruby_grpc_library", 299 "ruby_proto_library", 300) 301 302ruby_proto_library( 303 name = "dashboard_ruby_proto", 304 deps = [":dashboard_proto"], 305) 306 307ruby_grpc_library( 308 name = "dashboard_ruby_grpc", 309 srcs = [":dashboard_proto"], 310 deps = [":dashboard_ruby_proto"], 311) 312 313ruby_cloud_gapic_library( 314 name = "dashboard_ruby_gapic", 315 srcs = [":dashboard_proto_with_info"], 316 extra_protoc_parameters = [ 317 "ruby-cloud-api-id=monitoring.googleapis.com", 318 "ruby-cloud-api-shortname=monitoring", 319 "ruby-cloud-env-prefix=MONITORING_DASHBOARD", 320 "ruby-cloud-gem-name=google-cloud-monitoring-dashboard-v1", 321 "ruby-cloud-product-url=https://cloud.google.com/monitoring", 322 "ruby-cloud-wrapper-gem-override=google-cloud-monitoring", 323 ], 324 grpc_service_config = "dashboards_grpc_service_config.json", 325 rest_numeric_enums = True, 326 ruby_cloud_description = "Cloud Monitoring collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. The Dashboards API manages arrangements of display widgets.", 327 ruby_cloud_title = "Cloud Monitoring Dashboards V1", 328 service_yaml = "monitoring.yaml", 329 transport = "grpc+rest", 330 deps = [ 331 ":dashboard_ruby_grpc", 332 ":dashboard_ruby_proto", 333 ], 334) 335 336# Open Source Packages 337ruby_gapic_assembly_pkg( 338 name = "google-cloud-monitoring-dashboard-v1-ruby", 339 deps = [ 340 ":dashboard_ruby_gapic", 341 ":dashboard_ruby_grpc", 342 ":dashboard_ruby_proto", 343 ], 344) 345 346############################################################################## 347# C# 348############################################################################## 349load( 350 "@com_google_googleapis_imports//:imports.bzl", 351 "csharp_gapic_assembly_pkg", 352 "csharp_gapic_library", 353 "csharp_grpc_library", 354 "csharp_proto_library", 355) 356 357csharp_proto_library( 358 name = "dashboard_csharp_proto", 359 deps = [":dashboard_proto"], 360) 361 362csharp_grpc_library( 363 name = "dashboard_csharp_grpc", 364 srcs = [":dashboard_proto"], 365 deps = [":dashboard_csharp_proto"], 366) 367 368csharp_gapic_library( 369 name = "dashboard_csharp_gapic", 370 srcs = [":dashboard_proto_with_info"], 371 common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", 372 grpc_service_config = "dashboards_grpc_service_config.json", 373 rest_numeric_enums = True, 374 service_yaml = "monitoring.yaml", 375 transport = "grpc+rest", 376 deps = [ 377 ":dashboard_csharp_grpc", 378 ":dashboard_csharp_proto", 379 ], 380) 381 382# Open Source Packages 383csharp_gapic_assembly_pkg( 384 name = "google-cloud-monitoring-dashboard-v1-csharp", 385 deps = [ 386 ":dashboard_csharp_gapic", 387 ":dashboard_csharp_grpc", 388 ":dashboard_csharp_proto", 389 ], 390) 391 392############################################################################## 393# C++ 394############################################################################## 395load( 396 "@com_google_googleapis_imports//:imports.bzl", 397 "cc_grpc_library", 398 "cc_proto_library", 399) 400 401cc_proto_library( 402 name = "dashboard_cc_proto", 403 deps = [":dashboard_proto"], 404) 405 406cc_grpc_library( 407 name = "dashboard_cc_grpc", 408 srcs = [":dashboard_proto"], 409 grpc_only = True, 410 deps = [":dashboard_cc_proto"], 411) 412