summaryrefslogtreecommitdiffstats
path: root/tests/extensions/extensions.proto
diff options
context:
space:
mode:
Diffstat (limited to 'tests/extensions/extensions.proto')
-rw-r--r--tests/extensions/extensions.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/extensions/extensions.proto b/tests/extensions/extensions.proto
new file mode 100644
index 00000000..d85e8193
--- /dev/null
+++ b/tests/extensions/extensions.proto
@@ -0,0 +1,17 @@
+import 'alltypes.proto';
+
+extend AllTypes {
+ optional int32 AllTypes_extensionfield1 = 255;
+}
+
+message ExtensionMessage {
+ extend AllTypes {
+ optional ExtensionMessage AllTypes_extensionfield2 = 254;
+ required ExtensionMessage AllTypes_extensionfield3 = 253;
+ repeated ExtensionMessage AllTypes_extensionfield4 = 252;
+ }
+
+ required string test1 = 1;
+ required int32 test2 = 2;
+}
+