avoid boilerplate common subproto

16 views
Skip to first unread message

Ethan Yang

unread,
Mar 24, 2020, 6:15:14 PM3/24/20
to Protocol Buffers
Hi Group,

Say I have a use case pattern like

message B
message A {
    B b
}

and I have a bunch of proto "a"'s to share a same proto "b". Do I have a way to predefine some "b.pb" and directly reference it in "list_of_a.pb", instead of copy-pasting those "b" in each of "a" in "list_of_a.pb"? 

Thanks in advance!

Reply all
Reply to author
Forward
0 new messages