Before, some fields of the ChangeNotesStateProto carried `bytes` fields holding serialized protocol buffers. Per https://developers.google.com/protocol-buffers/docs/encoding#embedded the encoding of an embedded message with tag X is equal to the encoding of a string/bytes with tag X. By inlining the entity directly, we make the relations explicitly visible, and enable reflective analysis of the entire cache value. Change-Id: Ifd29abe9faf215dfe21889d0bfe7ae3f5b9b1415
26 lines
549 B
Python
26 lines
549 B
Python
load("@rules_java//java:defs.bzl", "java_proto_library")
|
|
load("@rules_proto//proto:defs.bzl", "proto_library")
|
|
|
|
proto_library(
|
|
name = "cache_proto",
|
|
srcs = ["cache.proto"],
|
|
deps = [":entities_proto"],
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "cache_java_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [":cache_proto"],
|
|
)
|
|
|
|
proto_library(
|
|
name = "entities_proto",
|
|
srcs = ["entities.proto"],
|
|
)
|
|
|
|
java_proto_library(
|
|
name = "entities_java_proto",
|
|
visibility = ["//visibility:public"],
|
|
deps = [":entities_proto"],
|
|
)
|