feat(proto): Add new option for proto files to set domain

This allows for associating all of the messages in a file with a domain.
This will be used by the global subtype registry to group subtypes
within a domain. When registering a subtype, it must be unique within a
domain. This allows for cases where two domains have the same subtypes,
such as two domains both having a "plugin" subtype.
This commit is contained in:
Timothy Messier authored and Johan Brandhorst-Satzkorn committed 2022-04-20 13:32:31 -04:00
1 parent 6e6efeee71
commit 760b090567
2 files changed
+40 -14

No files matched your search

@@ -22,7 +22,12 @@ extend google.protobuf.FieldOptions {
string subtype = 85555;
}
extend google.protobuf.FileOptions {
// domain is used to associate the messages in a file with a domain package.
string domain = 85556;
}
message MaskMapping {
string this = 1;
string that = 2;
}
}