Skip to content

Commit 412ed64

Browse files
maxmmitchellcopybara-github
authored andcommitted
Add descriptors to associate ink.proto.Version values with messages, fields, and enum types in BrushFamily proto. This will be used in a future CL to write consistency tests to ensure all features have a minimum compatible version associated with them.
PiperOrigin-RevId: 872916637
1 parent 87fe423 commit 412ed64

File tree

3 files changed

+1920
-217
lines changed

3 files changed

+1920
-217
lines changed

ink/storage/proto/BUILD.bazel

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
load("@protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
2020
load("@protobuf//bazel:proto_library.bzl", "proto_library")
21+
load("//tools/build_defs/proto:descriptor_set.bzl", "transitive_descriptor_set")
2122

2223
package(
2324
default_visibility = ["//visibility:public"],
@@ -37,6 +38,7 @@ proto_library(
3738
srcs = ["brush_family.proto"],
3839
deps = [
3940
":color_proto",
41+
":options_proto",
4042
],
4143
)
4244

@@ -45,6 +47,14 @@ proto_library(
4547
srcs = ["color.proto"],
4648
)
4749

50+
proto_library(
51+
name = "options_proto",
52+
srcs = ["options.proto"],
53+
deps = [
54+
"//net/proto2/proto:descriptor",
55+
],
56+
)
57+
4858
proto_library(
4959
name = "stroke_input_batch_proto",
5060
srcs = ["stroke_input_batch.proto"],
@@ -73,6 +83,11 @@ proto_library(
7383
deps = [":stroke_input_batch_proto"],
7484
)
7585

86+
cc_proto_library(
87+
name = "options_cc_proto",
88+
deps = [":options_proto"],
89+
)
90+
7691
cc_proto_library(
7792
name = "incremental_stroke_inputs_cc_proto",
7893
visibility = ["//ink:__subpackages__"],
@@ -108,3 +123,8 @@ cc_proto_library(
108123
name = "coded_numeric_run_cc_proto",
109124
deps = [":coded_numeric_run_proto"],
110125
)
126+
127+
transitive_descriptor_set(
128+
name = "brush_family_proto_descriptor_set",
129+
deps = [":brush_family_proto"],
130+
)

0 commit comments

Comments
 (0)