diff options
author | Paul Yang <TeBoring@users.noreply.github.com> | 2017-04-20 01:19:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-20 01:19:03 -0700 |
commit | 4c57e8475f78ccac80407f03c2d23d30014785f9 (patch) | |
tree | fa9c6ca31796db77c3367acac83233a44938e117 /php/tests/proto/test.proto | |
parent | b97cd573e405dd511b09a9fae124427a29741395 (diff) | |
download | protobuf-4c57e8475f78ccac80407f03c2d23d30014785f9.tar.gz protobuf-4c57e8475f78ccac80407f03c2d23d30014785f9.tar.bz2 protobuf-4c57e8475f78ccac80407f03c2d23d30014785f9.zip |
Prepend "PB" to generated classes whose name are reserved words. (#2990)
Diffstat (limited to 'php/tests/proto/test.proto')
-rw-r--r-- | php/tests/proto/test.proto | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/php/tests/proto/test.proto b/php/tests/proto/test.proto index b6c14866..f0d009c8 100644 --- a/php/tests/proto/test.proto +++ b/php/tests/proto/test.proto @@ -108,6 +108,11 @@ message TestMessage { } NestedEnum optional_nested_enum = 101; + + // Test prefix for reserved words. + message Empty { + int32 a = 1; + } } enum TestEnum { @@ -116,6 +121,11 @@ enum TestEnum { TWO = 2; } +// Test prefix for reserved words. +message Empty { + int32 a = 1; +} + message TestPackedMessage { repeated int32 repeated_int32 = 90 [packed = true]; repeated int64 repeated_int64 = 91 [packed = true]; |