...
1// Copyright 2019 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5syntax = "proto2";
6
7package goproto.proto.messageset;
8
9option go_package = "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb";
10
11import "internal/testprotos/messageset/messagesetpb/message_set.proto";
12
13message Ext1 {
14 extend MessageSet {
15 optional Ext1 message_set_extension = 1000;
16 }
17 optional int32 ext1_field1 = 1;
18 optional int32 ext1_field2 = 2;
19}
20
21message Ext2 {
22 extend MessageSet {
23 optional Ext2 message_set_extension = 1001;
24 }
25 optional int32 ext2_field1 = 1;
26}
27
28message ExtRequired {
29 extend MessageSet {
30 optional ExtRequired message_set_extension = 1002;
31 }
32 required int32 required_field1 = 1;
33}
34
35message ExtLargeNumber {
36 extend MessageSet {
37 optional ExtLargeNumber message_set_extension = 536870912; // 1<<29
38 }
39}
View as plain text