BUILD.bazel 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. # This file was automatically generated by BuildFileGenerator
  2. # This is an API workspace, having public visibility by default makes perfect sense.
  3. package(default_visibility = ["//visibility:public"])
  4. ##############################################################################
  5. # Common
  6. ##############################################################################
  7. load("@rules_proto//proto:defs.bzl", "proto_library")
  8. proto_library(
  9. name = "servicemesh_proto",
  10. srcs = [
  11. "servicemesh.proto",
  12. ],
  13. deps = [
  14. "//google/api:annotations_proto",
  15. "//google/api:field_behavior_proto",
  16. "@com_google_protobuf//:struct_proto",
  17. ],
  18. )
  19. ##############################################################################
  20. # Java
  21. ##############################################################################
  22. load(
  23. "@com_google_googleapis_imports//:imports.bzl",
  24. "java_grpc_library",
  25. "java_proto_library",
  26. )
  27. java_proto_library(
  28. name = "servicemesh_java_proto",
  29. deps = [":servicemesh_proto"],
  30. )
  31. java_grpc_library(
  32. name = "servicemesh_java_grpc",
  33. srcs = [":servicemesh_proto"],
  34. deps = [":servicemesh_java_proto"],
  35. )
  36. ##############################################################################
  37. # Go
  38. ##############################################################################
  39. load(
  40. "@com_google_googleapis_imports//:imports.bzl",
  41. "go_proto_library",
  42. )
  43. go_proto_library(
  44. name = "servicemesh_go_proto",
  45. compilers = ["@io_bazel_rules_go//proto:go_grpc"],
  46. importpath = "google.golang.org/genproto/googleapis/cloud/gkehub/servicemesh/v1alpha",
  47. protos = [":servicemesh_proto"],
  48. deps = [
  49. "//google/api:annotations_go_proto",
  50. ],
  51. )
  52. ##############################################################################
  53. # Python
  54. ##############################################################################
  55. load(
  56. "@com_google_googleapis_imports//:imports.bzl",
  57. "py_gapic_library",
  58. "py_test",
  59. )
  60. py_gapic_library(
  61. name = "servicemesh_py_gapic",
  62. srcs = [":servicemesh_proto"],
  63. rest_numeric_enums = False,
  64. transport = "grpc",
  65. )
  66. ##############################################################################
  67. # PHP
  68. ##############################################################################
  69. load(
  70. "@com_google_googleapis_imports//:imports.bzl",
  71. "php_grpc_library",
  72. "php_proto_library",
  73. )
  74. php_proto_library(
  75. name = "servicemesh_php_proto",
  76. deps = [":servicemesh_proto"],
  77. )
  78. php_grpc_library(
  79. name = "servicemesh_php_grpc",
  80. srcs = [":servicemesh_proto"],
  81. deps = [":servicemesh_php_proto"],
  82. )
  83. ##############################################################################
  84. # Node.js
  85. ##############################################################################
  86. load(
  87. "@com_google_googleapis_imports//:imports.bzl",
  88. "nodejs_gapic_assembly_pkg",
  89. "nodejs_gapic_library",
  90. )
  91. ##############################################################################
  92. # Ruby
  93. ##############################################################################
  94. load(
  95. "@com_google_googleapis_imports//:imports.bzl",
  96. "ruby_grpc_library",
  97. "ruby_proto_library",
  98. )
  99. ruby_proto_library(
  100. name = "servicemesh_ruby_proto",
  101. deps = [":servicemesh_proto"],
  102. )
  103. ruby_grpc_library(
  104. name = "servicemesh_ruby_grpc",
  105. srcs = [":servicemesh_proto"],
  106. deps = [":servicemesh_ruby_proto"],
  107. )
  108. ##############################################################################
  109. # C#
  110. ##############################################################################
  111. load(
  112. "@com_google_googleapis_imports//:imports.bzl",
  113. "csharp_grpc_library",
  114. "csharp_proto_library",
  115. )
  116. csharp_proto_library(
  117. name = "servicemesh_csharp_proto",
  118. deps = [":servicemesh_proto"],
  119. )
  120. csharp_grpc_library(
  121. name = "servicemesh_csharp_grpc",
  122. srcs = [":servicemesh_proto"],
  123. deps = [":servicemesh_csharp_proto"],
  124. )
  125. ##############################################################################
  126. # C++
  127. ##############################################################################
  128. # Put your C++ code here