BUILD.bazel 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. # This file was automatically generated by BuildFileGenerator
  2. load("//google/maps:postprocessing.bzl", "maps_assembly_pkg")
  3. ##############################################################################
  4. # Java
  5. ##############################################################################
  6. load(
  7. "@com_google_googleapis_imports//:imports.bzl",
  8. "go_gapic_assembly_pkg",
  9. "go_gapic_library",
  10. "go_test",
  11. "java_gapic_assembly_gradle_pkg",
  12. "java_gapic_library",
  13. "java_gapic_test",
  14. )
  15. # This is an API workspace, having public visibility by default makes perfect sense.
  16. package(default_visibility = ["//visibility:public"])
  17. alias(
  18. name = "routes_proto",
  19. actual = "//google/maps/routes/v1:routes_proto",
  20. )
  21. alias(
  22. name = "routes_proto_with_info",
  23. actual = "//google/maps/routes/v1:routes_proto_with_info",
  24. )
  25. java_gapic_library(
  26. name = "routespreferred_java_gapic",
  27. srcs = [":routes_proto_with_info"],
  28. gapic_yaml = "routespreferred_gapic.yaml",
  29. grpc_service_config = "//google/maps/routes/v1:routes_grpc_service_config.json",
  30. rest_numeric_enums = False,
  31. test_deps = [
  32. "//google/maps/routes/v1:routes_java_grpc",
  33. ],
  34. transport = "grpc+rest",
  35. deps = [
  36. "//google/maps/routes/v1:routes_java_proto",
  37. ],
  38. )
  39. java_gapic_test(
  40. name = "routespreferred_java_gapic_test_suite",
  41. test_classes = [
  42. "com.google.maps.routespreferred.v1.RoutesPreferredClientHttpJsonTest",
  43. "com.google.maps.routespreferred.v1.RoutesPreferredClientTest",
  44. ],
  45. runtime_deps = [":routespreferred_java_gapic_test"],
  46. )
  47. # Open Source Packages
  48. java_gapic_assembly_gradle_pkg(
  49. name = "google-maps-routespreferred-v1-java",
  50. include_samples = True,
  51. transport = "grpc+rest",
  52. deps = [
  53. ":routespreferred_java_gapic",
  54. "//google/maps/routes/v1:routes_java_grpc", # needed for test mocks
  55. ],
  56. )
  57. maps_assembly_pkg(
  58. name = "google-maps-routespreferred-v1-java-postprocess",
  59. srcs = [":google-maps-routespreferred-v1-java"],
  60. language = "java",
  61. )
  62. go_gapic_library(
  63. name = "routespreferred_go_gapic",
  64. srcs = [":routes_proto_with_info"],
  65. grpc_service_config = "",
  66. importpath = "developers.google.com/maps/go/routespreferred/v1;routes",
  67. rest_numeric_enums = False,
  68. service_yaml = "routespreferred_v1.yaml",
  69. transport = "grpc+rest",
  70. deps = [
  71. "//google/maps/routes/v1:routes_go_proto",
  72. ],
  73. )
  74. go_test(
  75. name = "routespreferred_go_gapic_test",
  76. srcs = [":routespreferred_go_gapic_srcjar_test"],
  77. embed = [":routespreferred_go_gapic"],
  78. importpath = "developers.google.com/maps/go/routespreferred/v1",
  79. )
  80. # Open Source Packages
  81. go_gapic_assembly_pkg(
  82. name = "gapic-maps-routespreferred-v1-go",
  83. deps = [
  84. ":routespreferred_go_gapic",
  85. ":routespreferred_go_gapic_srcjar-test.srcjar",
  86. "//google/maps/routes/v1:routes_go_proto",
  87. ],
  88. )