BUILD.bazel 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. # This file was automatically generated by BuildFileGenerator
  2. # https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
  3. # Most of the manual changes to this file will be overwritten.
  4. # It's **only** allowed to change the following rule attribute values:
  5. # - names of *_gapic_assembly_* rules
  6. # - certain parameters of *_gapic_library rules, including but not limited to:
  7. # * extra_protoc_parameters
  8. # * extra_protoc_file_parameters
  9. # The complete list of preserved parameters can be found in the source code.
  10. # This is an API workspace, having public visibility by default makes perfect sense.
  11. package(default_visibility = ["//visibility:public"])
  12. ##############################################################################
  13. # Common
  14. ##############################################################################
  15. load("@rules_proto//proto:defs.bzl", "proto_library")
  16. load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
  17. proto_library(
  18. name = "sdk_proto",
  19. srcs = [
  20. "account_linking.proto",
  21. "account_linking_secret.proto",
  22. "action.proto",
  23. "actions_sdk.proto",
  24. "actions_testing.proto",
  25. "config_file.proto",
  26. "data_file.proto",
  27. "event_logs.proto",
  28. "files.proto",
  29. "localized_settings.proto",
  30. "manifest.proto",
  31. "release_channel.proto",
  32. "settings.proto",
  33. "surface.proto",
  34. "theme_customization.proto",
  35. "validation_results.proto",
  36. "version.proto",
  37. "webhook.proto",
  38. ],
  39. deps = [
  40. "//google/actions/sdk/v2/conversation:conversation_proto",
  41. "//google/actions/sdk/v2/conversation/prompt:prompt_proto",
  42. "//google/actions/sdk/v2/conversation/prompt/content:content_proto",
  43. "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto",
  44. "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto",
  45. "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto",
  46. "//google/actions/sdk/v2/interactionmodel/type:type_proto",
  47. "//google/api:annotations_proto",
  48. "//google/api:client_proto",
  49. "//google/api:field_behavior_proto",
  50. "//google/api:resource_proto",
  51. "//google/rpc:status_proto",
  52. "//google/type:latlng_proto",
  53. "@com_google_protobuf//:empty_proto",
  54. "@com_google_protobuf//:struct_proto",
  55. "@com_google_protobuf//:timestamp_proto",
  56. "@com_google_protobuf//:wrappers_proto",
  57. ],
  58. )
  59. proto_library_with_info(
  60. name = "sdk_proto_with_info",
  61. deps = [
  62. ":sdk_proto",
  63. "//google/cloud:common_resources_proto",
  64. ],
  65. )
  66. ##############################################################################
  67. # Node.js
  68. ##############################################################################
  69. load(
  70. "@com_google_googleapis_imports//:imports.bzl",
  71. "nodejs_gapic_assembly_pkg",
  72. "nodejs_gapic_library",
  73. )
  74. nodejs_gapic_library(
  75. name = "sdk_nodejs_gapic",
  76. package_name = "@assistant/actions",
  77. src = ":sdk_proto_with_info",
  78. extra_protoc_parameters = ["metadata"],
  79. grpc_service_config = "actions_grpc_service_config.json",
  80. package = "google.actions.sdk.v2",
  81. rest_numeric_enums = False,
  82. service_yaml = "actions_v2.yaml",
  83. transport = "grpc+rest",
  84. deps = [],
  85. )
  86. nodejs_gapic_assembly_pkg(
  87. name = "actions-v2-nodejs",
  88. deps = [
  89. ":sdk_nodejs_gapic",
  90. ":sdk_proto",
  91. "//google/actions/sdk/v2/conversation:conversation_proto",
  92. "//google/actions/sdk/v2/conversation/prompt:prompt_proto",
  93. "//google/actions/sdk/v2/conversation/prompt/content:content_proto",
  94. "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto",
  95. "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto",
  96. "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto",
  97. "//google/actions/sdk/v2/interactionmodel/type:type_proto",
  98. ],
  99. )