| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- // Protos/unittest_swift_fieldorder.proto - test proto
- //
- // This source file is part of the Swift.org open source project
- //
- // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
- // Licensed under Apache License v2.0 with Runtime Library Exception
- //
- // See http://swift.org/LICENSE.txt for license information
- // See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
- //
- // -----------------------------------------------------------------------------
- ///
- /// Check that fields get properly ordered when serializing
- ///
- // -----------------------------------------------------------------------------
- syntax = "proto2";
- package swift.protobuf;
- message TestFieldOrderings {
- optional string my_string = 11;
- extensions 2 to 8;
- optional int64 my_int = 1;
- extensions 12 to 55;
- optional float my_float = 101;
- message NestedMessage {
- optional int64 oo = 2;
- optional int32 bb = 1;
- }
- oneof options {
- int64 oneof_int64 = 60;
- bool oneof_bool = 9;
- string oneof_string = 150;
- int32 oneof_int32 = 10;
- }
- optional NestedMessage optional_nested_message = 200;
- }
- extend TestFieldOrderings {
- optional string my_extension_string = 50;
- optional int32 my_extension_int = 5;
- }
|