blob: e60f1c9875ec35632a9be13a85307156ec11f38f [file] [log] [blame]
Damien Neil302cb322019-06-19 15:22:13 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: messageset/msetextpb/msetextpb.proto
3
4package msetextpb
5
6import (
7 messagesetpb "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb"
8 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
9 protoiface "google.golang.org/protobuf/runtime/protoiface"
10 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070011 reflect "reflect"
Damien Neil302cb322019-06-19 15:22:13 -070012 sync "sync"
13)
14
15const (
16 // Verify that runtime/protoimpl is sufficiently up-to-date.
17 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
18 // Verify that this generated code is sufficiently up-to-date.
19 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
20)
21
22type Ext1 struct {
23 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070024 sizeCache protoimpl.SizeCache
25 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -070026 Ext1Field1 *int32 `protobuf:"varint,1,opt,name=ext1_field1,json=ext1Field1" json:"ext1_field1,omitempty"`
27 Ext1Field2 *int32 `protobuf:"varint,2,opt,name=ext1_field2,json=ext1Field2" json:"ext1_field2,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070028}
29
30func (x *Ext1) Reset() {
31 *x = Ext1{}
32}
33
34func (x *Ext1) String() string {
35 return protoimpl.X.MessageStringOf(x)
36}
37
38func (*Ext1) ProtoMessage() {}
39
40func (x *Ext1) ProtoReflect() protoreflect.Message {
41 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[0]
42 if protoimpl.UnsafeEnabled && x != nil {
43 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
44 if ms.LoadMessageInfo() == nil {
45 ms.StoreMessageInfo(mi)
46 }
47 return ms
48 }
49 return mi.MessageOf(x)
50}
51
Joe Tsai43761bd2019-07-17 18:06:47 -070052// Deprecated: Use Ext1.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -070053func (*Ext1) Descriptor() ([]byte, []int) {
54 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{0}
55}
56
57func (x *Ext1) GetExt1Field1() int32 {
58 if x != nil && x.Ext1Field1 != nil {
59 return *x.Ext1Field1
60 }
61 return 0
62}
63
64func (x *Ext1) GetExt1Field2() int32 {
65 if x != nil && x.Ext1Field2 != nil {
66 return *x.Ext1Field2
67 }
68 return 0
69}
70
71type Ext2 struct {
72 state protoimpl.MessageState
Damien Neil302cb322019-06-19 15:22:13 -070073 sizeCache protoimpl.SizeCache
74 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -070075 Ext2Field1 *int32 `protobuf:"varint,1,opt,name=ext2_field1,json=ext2Field1" json:"ext2_field1,omitempty"`
Damien Neil302cb322019-06-19 15:22:13 -070076}
77
78func (x *Ext2) Reset() {
79 *x = Ext2{}
80}
81
82func (x *Ext2) String() string {
83 return protoimpl.X.MessageStringOf(x)
84}
85
86func (*Ext2) ProtoMessage() {}
87
88func (x *Ext2) ProtoReflect() protoreflect.Message {
89 mi := &file_messageset_msetextpb_msetextpb_proto_msgTypes[1]
90 if protoimpl.UnsafeEnabled && x != nil {
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 if ms.LoadMessageInfo() == nil {
93 ms.StoreMessageInfo(mi)
94 }
95 return ms
96 }
97 return mi.MessageOf(x)
98}
99
Joe Tsai43761bd2019-07-17 18:06:47 -0700100// Deprecated: Use Ext2.ProtoReflect.Descriptor instead.
Damien Neil302cb322019-06-19 15:22:13 -0700101func (*Ext2) Descriptor() ([]byte, []int) {
102 return file_messageset_msetextpb_msetextpb_proto_rawDescGZIP(), []int{1}
103}
104
105func (x *Ext2) GetExt2Field1() int32 {
106 if x != nil && x.Ext2Field1 != nil {
107 return *x.Ext2Field1
108 }
109 return 0
110}
111
112var file_messageset_msetextpb_msetextpb_proto_extDescs = []protoiface.ExtensionDescV1{
113 {
114 ExtendedType: (*messagesetpb.MessageSet)(nil),
115 ExtensionType: (*Ext1)(nil),
116 Field: 1000,
117 Name: "goproto.proto.messageset.Ext1.message_set_extension",
118 Tag: "bytes,1000,opt,name=message_set_extension",
119 Filename: "messageset/msetextpb/msetextpb.proto",
120 },
121 {
122 ExtendedType: (*messagesetpb.MessageSet)(nil),
123 ExtensionType: (*Ext2)(nil),
124 Field: 1001,
125 Name: "goproto.proto.messageset.Ext2.message_set_extension",
126 Tag: "bytes,1001,opt,name=message_set_extension",
127 Filename: "messageset/msetextpb/msetextpb.proto",
128 },
129}
Damien Neil302cb322019-06-19 15:22:13 -0700130
Joe Tsai4a7d6332019-08-06 16:45:11 -0700131// Extension fields to messagesetpb.MessageSet.
132var (
133 // optional goproto.proto.messageset.Ext1 message_set_extension = 1000;
134 E_Ext1_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[0]
135 // optional goproto.proto.messageset.Ext2 message_set_extension = 1001;
Damien Neil302cb322019-06-19 15:22:13 -0700136 E_Ext2_MessageSetExtension = &file_messageset_msetextpb_msetextpb_proto_extDescs[1]
137)
Joe Tsai4a7d6332019-08-06 16:45:11 -0700138
Damien Neil302cb322019-06-19 15:22:13 -0700139var File_messageset_msetextpb_msetextpb_proto protoreflect.FileDescriptor
140
141var file_messageset_msetextpb_msetextpb_proto_rawDesc = []byte{
142 0x0a, 0x24, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65,
143 0x74, 0x65, 0x78, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
144 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
145 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74,
146 0x1a, 0x29, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x65, 0x73,
147 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x70, 0x62, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
148 0x65, 0x5f, 0x73, 0x65, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc3, 0x01, 0x0a, 0x04,
149 0x45, 0x78, 0x74, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69, 0x65,
150 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31, 0x46,
151 0x69, 0x65, 0x6c, 0x64, 0x31, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x74, 0x31, 0x5f, 0x66, 0x69,
152 0x65, 0x6c, 0x64, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x78, 0x74, 0x31,
153 0x46, 0x69, 0x65, 0x6c, 0x64, 0x32, 0x32, 0x79, 0x0a, 0x15, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
154 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
155 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
156 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61,
157 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe8, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67,
158 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73,
159 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74, 0x31, 0x52, 0x13, 0x6d, 0x65,
160 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f,
161 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x04, 0x45, 0x78, 0x74, 0x32, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78,
162 0x74, 0x32, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52,
163 0x0a, 0x65, 0x78, 0x74, 0x32, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x31, 0x32, 0x79, 0x0a, 0x15, 0x6d,
164 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
165 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
166 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e,
167 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x18, 0xe9, 0x07, 0x20, 0x01, 0x28,
168 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
169 0x6f, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x65, 0x74, 0x2e, 0x45, 0x78, 0x74,
170 0x32, 0x52, 0x13, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x53, 0x65, 0x74, 0x45, 0x78, 0x74,
171 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x45, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
172 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74,
173 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65,
174 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
175 0x73, 0x65, 0x74, 0x2f, 0x6d, 0x73, 0x65, 0x74, 0x65, 0x78, 0x74, 0x70, 0x62,
176}
177
178var (
179 file_messageset_msetextpb_msetextpb_proto_rawDescOnce sync.Once
180 file_messageset_msetextpb_msetextpb_proto_rawDescData = file_messageset_msetextpb_msetextpb_proto_rawDesc
181)
182
183func file_messageset_msetextpb_msetextpb_proto_rawDescGZIP() []byte {
184 file_messageset_msetextpb_msetextpb_proto_rawDescOnce.Do(func() {
185 file_messageset_msetextpb_msetextpb_proto_rawDescData = protoimpl.X.CompressGZIP(file_messageset_msetextpb_msetextpb_proto_rawDescData)
186 })
187 return file_messageset_msetextpb_msetextpb_proto_rawDescData
188}
189
190var file_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
191var file_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
192 (*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
193 (*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
194 (*messagesetpb.MessageSet)(nil), // 2: goproto.proto.messageset.MessageSet
195}
196var file_messageset_msetextpb_msetextpb_proto_depIdxs = []int32{
197 2, // goproto.proto.messageset.Ext1.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
198 2, // goproto.proto.messageset.Ext2.message_set_extension:extendee -> goproto.proto.messageset.MessageSet
199 0, // goproto.proto.messageset.Ext1.message_set_extension:type_name -> goproto.proto.messageset.Ext1
200 1, // goproto.proto.messageset.Ext2.message_set_extension:type_name -> goproto.proto.messageset.Ext2
201 4, // starting offset of method output_type sub-list
202 4, // starting offset of method input_type sub-list
203 2, // starting offset of extension type_name sub-list
204 0, // starting offset of extension extendee sub-list
205 0, // starting offset of field type_name sub-list
206}
207
208func init() { file_messageset_msetextpb_msetextpb_proto_init() }
209func file_messageset_msetextpb_msetextpb_proto_init() {
210 if File_messageset_msetextpb_msetextpb_proto != nil {
211 return
212 }
213 if !protoimpl.UnsafeEnabled {
214 file_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
215 switch v := v.(*Ext1); i {
216 case 0:
217 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700218 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700219 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700220 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700221 return &v.unknownFields
222 default:
223 return nil
224 }
225 }
226 file_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
227 switch v := v.(*Ext2); i {
228 case 0:
229 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700230 case 1:
Damien Neil302cb322019-06-19 15:22:13 -0700231 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700232 case 2:
Damien Neil302cb322019-06-19 15:22:13 -0700233 return &v.unknownFields
234 default:
235 return nil
236 }
237 }
238 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700239 type x struct{}
Damien Neil302cb322019-06-19 15:22:13 -0700240 out := protoimpl.TypeBuilder{
241 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700242 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Damien Neil302cb322019-06-19 15:22:13 -0700243 RawDescriptor: file_messageset_msetextpb_msetextpb_proto_rawDesc,
244 NumEnums: 0,
245 NumMessages: 2,
246 NumExtensions: 2,
247 NumServices: 0,
248 },
249 GoTypes: file_messageset_msetextpb_msetextpb_proto_goTypes,
250 DependencyIndexes: file_messageset_msetextpb_msetextpb_proto_depIdxs,
251 MessageInfos: file_messageset_msetextpb_msetextpb_proto_msgTypes,
252 LegacyExtensions: file_messageset_msetextpb_msetextpb_proto_extDescs,
253 }.Build()
254 File_messageset_msetextpb_msetextpb_proto = out.File
255 file_messageset_msetextpb_msetextpb_proto_rawDesc = nil
256 file_messageset_msetextpb_msetextpb_proto_goTypes = nil
257 file_messageset_msetextpb_msetextpb_proto_depIdxs = nil
258}