Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 1 | // Protocol Buffers - Google's data interchange format |
| 2 | // Copyright 2008 Google Inc. All rights reserved. |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 3 | // |
Joshua Haberman | 200c958 | 2023-09-08 17:42:37 -0700 | [diff] [blame] | 4 | // Use of this source code is governed by a BSD-style |
| 5 | // license that can be found in the LICENSE file or at |
| 6 | // https://developers.google.com/open-source/licenses/bsd |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 7 | |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 8 | syntax = "proto2"; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 9 | |
Thomas Van Lenten | bc9880b | 2022-08-23 14:05:47 -0400 | [diff] [blame] | 10 | package objc.protobuf.tests.startup; |
Thomas Van Lenten | 5cf61b7 | 2022-08-29 16:37:36 -0400 | [diff] [blame] | 11 | option objc_class_prefix = "TestObjCStartup"; |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 12 | |
Thomas Van Lenten | 5cf61b7 | 2022-08-29 16:37:36 -0400 | [diff] [blame] | 13 | message Message { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 14 | extensions 1 to max; |
| 15 | } |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 16 | |
Thomas Van Lenten | 5cf61b7 | 2022-08-29 16:37:36 -0400 | [diff] [blame] | 17 | extend Message { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 18 | // Singular |
| 19 | optional int32 optional_int32_extension = 1; |
| 20 | repeated int32 repeated_int32_extension = 2; |
| 21 | } |
Thomas Van Lenten | 30650d8 | 2015-05-01 08:57:16 -0400 | [diff] [blame] | 22 | |
Thomas Van Lenten | 5cf61b7 | 2022-08-29 16:37:36 -0400 | [diff] [blame] | 23 | message Nested { |
| 24 | extend Message { |
Thomas Van Lenten | d846b0b | 2015-06-08 16:24:57 -0400 | [diff] [blame] | 25 | optional string nested_string_extension = 3; |
| 26 | } |
| 27 | } |