aboutsummaryrefslogtreecommitdiff
path: root/java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto
diff options
context:
space:
mode:
authorFeng Xiao <xfxyjwf@gmail.com>2014-11-10 17:34:54 -0800
committerFeng Xiao <xfxyjwf@gmail.com>2014-11-10 17:34:54 -0800
commit6ef984af4b0c63c1c33127a12dcfc8e6359f0c9e (patch)
treed17c61ff9f3ae28224fbddac6d26bfc59e2cf755 /java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto
parentbaca1a8a1aa180c42de6278d3b8286c4496c6a10 (diff)
downloadprotobuf-6ef984af4b0c63c1c33127a12dcfc8e6359f0c9e.tar.gz
protobuf-6ef984af4b0c63c1c33127a12dcfc8e6359f0c9e.tar.bz2
protobuf-6ef984af4b0c63c1c33127a12dcfc8e6359f0c9e.zip
Down-integrate from internal code base.
Diffstat (limited to 'java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto')
-rw-r--r--java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto17
1 files changed, 17 insertions, 0 deletions
diff --git a/java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto b/java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto
index 68615672..86837250 100644
--- a/java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto
+++ b/java/src/test/java/com/google/protobuf/lite_equals_and_hash.proto
@@ -30,6 +30,7 @@
// Author: pbogle@google.com (Phil Bogle)
+syntax = "proto2";
package protobuf_unittest.lite_equals_and_hash;
@@ -41,9 +42,15 @@ option optimize_for = LITE_RUNTIME;
message Foo {
optional int32 value = 1;
repeated Bar bar = 2;
+
+ extensions 100 to max;
}
message Bar {
+ extend Foo {
+ optional Bar foo_ext = 100;
+ }
+
optional string name = 1;
}
@@ -53,3 +60,13 @@ message BarPrime {
message Empty {
}
+
+extend Foo {
+ optional int32 varint = 101;
+ optional fixed32 fixed32 = 102;
+ optional fixed64 fixed64 = 103;
+ optional group MyGroup = 104 {
+ optional string group_value = 1;
+ }
+}
+