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 25 matching lines...) Expand all Loading... |
36 syntax = "proto2"; | 36 syntax = "proto2"; |
37 | 37 |
38 // Some generic_services option(s) added automatically. | 38 // Some generic_services option(s) added automatically. |
39 // See: http://go/proto2-generic-services-default | 39 // See: http://go/proto2-generic-services-default |
40 option java_generic_services = true; // auto-added | 40 option java_generic_services = true; // auto-added |
41 | 41 |
42 package io_protocol_tests; | 42 package io_protocol_tests; |
43 | 43 |
44 option java_package = "com.google.protobuf"; | 44 option java_package = "com.google.protobuf"; |
45 option java_outer_classname = "TestBadIdentifiersProto"; | 45 option java_outer_classname = "TestBadIdentifiersProto"; |
46 option java_generate_equals_and_hash = true; | |
47 | 46 |
48 message TestMessage { | 47 message TestMessage { |
49 optional string cached_size = 1; | 48 optional string cached_size = 1; |
50 optional string serialized_size = 2; | 49 optional string serialized_size = 2; |
51 optional string class = 3; | 50 optional string class = 3; |
52 } | 51 } |
53 | 52 |
54 message Descriptor { | 53 message Descriptor { |
55 option no_standard_descriptor_accessor = true; | 54 option no_standard_descriptor_accessor = true; |
56 optional string descriptor = 1; | 55 optional string descriptor = 1; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } // NO_PROTO3 | 159 } // NO_PROTO3 |
161 } | 160 } |
162 | 161 |
163 message TestMapField { | 162 message TestMapField { |
164 message MapField {} | 163 message MapField {} |
165 message Pair {} | 164 message Pair {} |
166 message Message {} | 165 message Message {} |
167 | 166 |
168 map<int32, int32> map_field = 1; | 167 map<int32, int32> map_field = 1; |
169 } | 168 } |
OLD | NEW |