| 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 oneof foo { | 689 oneof foo { |
| 690 int32 foo_int = 1; | 690 int32 foo_int = 1; |
| 691 string foo_string = 2; | 691 string foo_string = 2; |
| 692 NestedMessage foo_message = 3; | 692 NestedMessage foo_message = 3; |
| 693 } | 693 } |
| 694 message NestedMessage { | 694 message NestedMessage { |
| 695 required double required_double = 1; | 695 required double required_double = 1; |
| 696 } | 696 } |
| 697 } | 697 } |
| 698 | 698 |
| 699 |
| 699 // Test messages for packed fields | 700 // Test messages for packed fields |
| 700 | 701 |
| 701 message TestPackedTypes { | 702 message TestPackedTypes { |
| 702 repeated int32 packed_int32 = 90 [packed = true]; | 703 repeated int32 packed_int32 = 90 [packed = true]; |
| 703 repeated int64 packed_int64 = 91 [packed = true]; | 704 repeated int64 packed_int64 = 91 [packed = true]; |
| 704 repeated uint32 packed_uint32 = 92 [packed = true]; | 705 repeated uint32 packed_uint32 = 92 [packed = true]; |
| 705 repeated uint64 packed_uint64 = 93 [packed = true]; | 706 repeated uint64 packed_uint64 = 93 [packed = true]; |
| 706 repeated sint32 packed_sint32 = 94 [packed = true]; | 707 repeated sint32 packed_sint32 = 94 [packed = true]; |
| 707 repeated sint64 packed_sint64 = 95 [packed = true]; | 708 repeated sint64 packed_sint64 = 95 [packed = true]; |
| 708 repeated fixed32 packed_fixed32 = 96 [packed = true]; | 709 repeated fixed32 packed_fixed32 = 96 [packed = true]; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 869 | 870 |
| 870 service TestService { | 871 service TestService { |
| 871 rpc Foo(FooRequest) returns (FooResponse); | 872 rpc Foo(FooRequest) returns (FooResponse); |
| 872 rpc Bar(BarRequest) returns (BarResponse); | 873 rpc Bar(BarRequest) returns (BarResponse); |
| 873 } | 874 } |
| 874 | 875 |
| 875 | 876 |
| 876 message BarRequest {} | 877 message BarRequest {} |
| 877 message BarResponse {} | 878 message BarResponse {} |
| 878 | 879 |
| OLD | NEW |