blob: 2bf12e436568e0d5ab8ff8e693407b6dcf68af3c [file] [log] [blame]
Thomas Van Lenten30650d82015-05-01 08:57:16 -04001// Protocol Buffers - Google's data interchange format
2// Copyright 2008 Google Inc. All rights reserved.
Thomas Van Lenten30650d82015-05-01 08:57:16 -04003//
Joshua Haberman200c9582023-09-08 17:42:37 -07004// 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 Lenten30650d82015-05-01 08:57:16 -04007
Thomas Van Lentend846b0b2015-06-08 16:24:57 -04008syntax = "proto2";
Thomas Van Lenten30650d82015-05-01 08:57:16 -04009
Thomas Van Lentenbc9880b2022-08-23 14:05:47 -040010package objc.protobuf.tests.startup;
Thomas Van Lenten5cf61b72022-08-29 16:37:36 -040011option objc_class_prefix = "TestObjCStartup";
Thomas Van Lenten30650d82015-05-01 08:57:16 -040012
Thomas Van Lenten5cf61b72022-08-29 16:37:36 -040013message Message {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040014 extensions 1 to max;
15}
Thomas Van Lenten30650d82015-05-01 08:57:16 -040016
Thomas Van Lenten5cf61b72022-08-29 16:37:36 -040017extend Message {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040018 // Singular
19 optional int32 optional_int32_extension = 1;
20 repeated int32 repeated_int32_extension = 2;
21}
Thomas Van Lenten30650d82015-05-01 08:57:16 -040022
Thomas Van Lenten5cf61b72022-08-29 16:37:36 -040023message Nested {
24 extend Message {
Thomas Van Lentend846b0b2015-06-08 16:24:57 -040025 optional string nested_string_extension = 3;
26 }
27}