OLD | NEW |
1 // Protocol Buffers - Google's data interchange format | 1 // Protocol Buffers - Google's data interchange format |
2 // Copyright 2008 Google Inc. All rights reserved. | 2 // Copyright 2008 Google Inc. All rights reserved. |
3 // https://developers.google.com/protocol-buffers/ | 3 // https://developers.google.com/protocol-buffers/ |
4 // | 4 // |
5 // Redistribution and use in source and binary forms, with or without | 5 // Redistribution and use in source and binary forms, with or without |
6 // modification, are permitted provided that the following conditions are | 6 // modification, are permitted provided that the following conditions are |
7 // met: | 7 // met: |
8 // | 8 // |
9 // * Redistributions of source code must retain the above copyright | 9 // * Redistributions of source code must retain the above copyright |
10 // notice, this list of conditions and the following disclaimer. | 10 // notice, this list of conditions and the following disclaimer. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 map<int32 , double > map_int32_double = 12; | 74 map<int32 , double > map_int32_double = 12; |
75 map<bool , bool > map_bool_bool = 13; | 75 map<bool , bool > map_bool_bool = 13; |
76 map<string , string > map_string_string = 14; | 76 map<string , string > map_string_string = 14; |
77 map<int32 , bytes > map_int32_bytes = 15; | 77 map<int32 , bytes > map_int32_bytes = 15; |
78 map<int32 , MapEnumLite> map_int32_enum = 16; | 78 map<int32 , MapEnumLite> map_int32_enum = 16; |
79 map<int32 , ForeignMessageArenaLite> map_int32_foreign_message = 17; | 79 map<int32 , ForeignMessageArenaLite> map_int32_foreign_message = 17; |
80 map<int32, .protobuf_unittest_no_arena.ForeignMessageLite> | 80 map<int32, .protobuf_unittest_no_arena.ForeignMessageLite> |
81 map_int32_foreign_message_no_arena = 18; | 81 map_int32_foreign_message_no_arena = 18; |
82 } | 82 } |
83 | 83 |
84 // Test embeded message with required fields | 84 // Test embedded message with required fields |
85 message TestRequiredMessageMapLite { | 85 message TestRequiredMessageMapLite { |
86 map<int32, TestRequiredLite> map_field = 1; | 86 map<int32, TestRequiredLite> map_field = 1; |
87 } | 87 } |
88 | 88 |
89 message TestEnumMapLite { | 89 message TestEnumMapLite { |
90 map<int32, Proto2MapEnumLite> known_map_field = 101; | 90 map<int32, Proto2MapEnumLite> known_map_field = 101; |
91 map<int32, Proto2MapEnumLite> unknown_map_field = 102; | 91 map<int32, Proto2MapEnumLite> unknown_map_field = 102; |
92 } | 92 } |
93 | 93 |
94 message TestEnumMapPlusExtraLite { | 94 message TestEnumMapPlusExtraLite { |
(...skipping 26 matching lines...) Expand all Loading... |
121 | 121 |
122 message TestRequiredLite { | 122 message TestRequiredLite { |
123 required int32 a = 1; | 123 required int32 a = 1; |
124 required int32 b = 2; | 124 required int32 b = 2; |
125 required int32 c = 3; | 125 required int32 c = 3; |
126 } | 126 } |
127 | 127 |
128 message ForeignMessageArenaLite { | 128 message ForeignMessageArenaLite { |
129 optional int32 c = 1; | 129 optional int32 c = 1; |
130 } | 130 } |
OLD | NEW |