aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/test_messages_proto2.proto
diff options
context:
space:
mode:
authorGravatar Yilun Chong <yilunchong@google.com>2017-06-26 17:46:34 -0700
committerGravatar Yilun Chong <yilunchong@google.com>2017-06-26 17:46:34 -0700
commit2ad74e1606728564cc777aa4917d7e2299317eda (patch)
tree9fcffc5af50f168b3fce9e769a1d98dceda6d932 /src/google/protobuf/test_messages_proto2.proto
parent4e67590e1b42897b674d6bfdae3b7c8f1d4cf5e5 (diff)
add support for proto2
Diffstat (limited to 'src/google/protobuf/test_messages_proto2.proto')
-rw-r--r--src/google/protobuf/test_messages_proto2.proto8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/google/protobuf/test_messages_proto2.proto b/src/google/protobuf/test_messages_proto2.proto
index 0708cbe7..85aa1374 100644
--- a/src/google/protobuf/test_messages_proto2.proto
+++ b/src/google/protobuf/test_messages_proto2.proto
@@ -50,10 +50,10 @@ option cc_enable_arenas = true;
// submessages of this message. So for example, a fuzz test of TestAllTypes
// could trigger bugs that occur in any message type in this file. We verify
// this stays true in a unit test.
-message TestAllTypes {
+message TestAllTypesProto2 {
message NestedMessage {
optional int32 a = 1;
- optional TestAllTypes corecursive = 2;
+ optional TestAllTypesProto2 corecursive = 2;
}
enum NestedEnum {
@@ -89,7 +89,7 @@ message TestAllTypes {
optional string optional_string_piece = 24 [ctype=STRING_PIECE];
optional string optional_cord = 25 [ctype=CORD];
- optional TestAllTypes recursive_message = 27;
+ optional TestAllTypesProto2 recursive_message = 27;
// Repeated
repeated int32 repeated_int32 = 31;
@@ -191,6 +191,6 @@ enum ForeignEnum {
FOREIGN_BAZ = 2;
}
-extend TestAllTypes {
+extend TestAllTypesProto2 {
optional int32 extension_int32 = 120;
} \ No newline at end of file