Skip to content

Commit

Permalink
[ggj][bazel] feat: add cloud/redis microgenerator rules (#383)
Browse files Browse the repository at this point in the history
* fix: support LRO package.name annotations

* feat: add microgenerator rules for cloud/asset

* fix: update CircleCI

* fix: sort message fields in asc. index order

* feat: add cloud/redis microgenerator rules

* fix: linter

* fix: update parser test method sig order

* fix: update circleci config

* fix: linter
  • Loading branch information
miraleung authored Oct 10, 2020
1 parent 5f46bdc commit 0c0fb17
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test/integration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load(
"@com_google_googleapis_imports//:imports.bzl",
"proto_library_with_info",
java_gapic_library = "java_gapic_library2",
)

Expand All @@ -24,3 +25,28 @@ java_gapic_library(
"@com_google_googleapis//google/iam/v1:iam_java_proto",
],
)

# Redis API.
# Redefine the proto_with_info target so we can include empty_proto.
# This should be removed post-migration.
proto_library_with_info(
name = "redis_proto_with_info",
deps = [
"@com_google_googleapis//google/cloud:common_resources_proto",
"@com_google_googleapis//google/cloud/redis/v1:redis_proto",
"@com_google_protobuf//:empty_proto",
],
)

java_gapic_library(
name = "redis_java_gapic",
srcs = ["redis_proto_with_info"],
grpc_service_config = "@com_google_googleapis//google/cloud/redis/v1:redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
test_deps = [
"@com_google_googleapis//google/cloud/redis/v1:redis_java_grpc",
],
deps = [
"@com_google_googleapis//google/cloud/redis/v1:redis_java_proto",
],
)

0 comments on commit 0c0fb17

Please sign in to comment.