summaryrefslogtreecommitdiffstats
path: root/examples/using_union_messages
diff options
context:
space:
mode:
Diffstat (limited to 'examples/using_union_messages')
-rw-r--r--examples/using_union_messages/unionproto.proto2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/using_union_messages/unionproto.proto b/examples/using_union_messages/unionproto.proto
index d7c9de2d..209df0d2 100644
--- a/examples/using_union_messages/unionproto.proto
+++ b/examples/using_union_messages/unionproto.proto
@@ -5,6 +5,8 @@
// but they are commonly implemented by filling out exactly one of
// several optional fields.
+syntax = "proto2";
+
message MsgType1
{
required int32 value = 1;