xref: /aosp_15_r20/external/googleapis/google/actions/sdk/v2/BUILD.bazel (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1# This file was automatically generated by BuildFileGenerator
2# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/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 = "sdk_proto",
23    srcs = [
24        "account_linking.proto",
25        "account_linking_secret.proto",
26        "action.proto",
27        "actions_sdk.proto",
28        "actions_testing.proto",
29        "config_file.proto",
30        "data_file.proto",
31        "event_logs.proto",
32        "files.proto",
33        "localized_settings.proto",
34        "manifest.proto",
35        "release_channel.proto",
36        "settings.proto",
37        "surface.proto",
38        "theme_customization.proto",
39        "validation_results.proto",
40        "version.proto",
41        "webhook.proto",
42    ],
43    deps = [
44        "//google/actions/sdk/v2/conversation:conversation_proto",
45        "//google/actions/sdk/v2/conversation/prompt:prompt_proto",
46        "//google/actions/sdk/v2/conversation/prompt/content:content_proto",
47        "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto",
48        "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto",
49        "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto",
50        "//google/actions/sdk/v2/interactionmodel/type:type_proto",
51        "//google/api:annotations_proto",
52        "//google/api:client_proto",
53        "//google/api:field_behavior_proto",
54        "//google/api:resource_proto",
55        "//google/rpc:status_proto",
56        "//google/type:latlng_proto",
57        "@com_google_protobuf//:empty_proto",
58        "@com_google_protobuf//:struct_proto",
59        "@com_google_protobuf//:timestamp_proto",
60        "@com_google_protobuf//:wrappers_proto",
61    ],
62)
63
64proto_library_with_info(
65    name = "sdk_proto_with_info",
66    deps = [
67        ":sdk_proto",
68        "//google/cloud:common_resources_proto",
69    ],
70)
71
72##############################################################################
73# Node.js
74##############################################################################
75load(
76    "@com_google_googleapis_imports//:imports.bzl",
77    "nodejs_gapic_assembly_pkg",
78    "nodejs_gapic_library",
79)
80
81nodejs_gapic_library(
82    name = "sdk_nodejs_gapic",
83    package_name = "@assistant/actions",
84    src = ":sdk_proto_with_info",
85    extra_protoc_parameters = ["metadata"],
86    grpc_service_config = "actions_grpc_service_config.json",
87    package = "google.actions.sdk.v2",
88    rest_numeric_enums = True,
89    service_yaml = "actions_v2.yaml",
90    transport = "grpc+rest",
91    deps = [],
92)
93
94nodejs_gapic_assembly_pkg(
95    name = "actions-v2-nodejs",
96    deps = [
97        ":sdk_nodejs_gapic",
98        ":sdk_proto",
99        "//google/actions/sdk/v2/conversation:conversation_proto",
100        "//google/actions/sdk/v2/conversation/prompt:prompt_proto",
101        "//google/actions/sdk/v2/conversation/prompt/content:content_proto",
102        "//google/actions/sdk/v2/interactionmodel:interactionmodel_proto",
103        "//google/actions/sdk/v2/interactionmodel/prompt:prompt_proto",
104        "//google/actions/sdk/v2/interactionmodel/prompt/content:content_proto",
105        "//google/actions/sdk/v2/interactionmodel/type:type_proto",
106    ],
107)
108