# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# BUILD files are filtered out when exporting from Piper to Git.
# This is needed to allow 1p/3p interop.
load("//third_party/bazel_rules/rules_java/java:defs.bzl", "java_library")

# Limit visibility to internal packages only during iteration.
package(
    default_applicable_licenses = ["//third_party/java/google_adk:license"],
    default_visibility = [":internal"],
)

package_group(
    name = "internal",
    packages = [
        "//third_party/java/google_adk/...",
    ],
)

java_library(
    name = "speech_client_interface",
    srcs = ["SpeechClientInterface.java"],
    javacopts = [
        "-source 17 -target 17",
    ],
    deps = [
        "//google/cloud/speech:v1/cloud_speech_java_proto",
        "//google/cloud/speech:v1/cloud_speech_java_stubby",
    ],
)
