| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- // Protos/unittest_swift_extension.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
- //
- // -----------------------------------------------------------------------------
- ///
- /// Test handling of extensions to deeply nested messages.
- ///
- // -----------------------------------------------------------------------------
- syntax = "proto2";
- package protobuf_unittest.extend;
- message Foo {
- message Bar {
- message Baz {
- optional int32 a = 1;
- extensions 100 to 1000;
- }
- }
- }
- extend Foo.Bar.Baz {
- optional string b = 100;
- optional group C = 101 {
- optional int64 c = 999;
- // extensions 10 to 20;
- }
- }
- /*
- extend Foo.Bar.Baz.C {
- optional bool d = 12;
- }
- */
|