1
2
3
4
5
6
7
8 package sub
9
10 import (
11 sub2 "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2"
12 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
13 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
14 math "math"
15 reflect "reflect"
16 sync "sync"
17 )
18
19
20
21 type Sub2Message = sub2.Sub2Message
22
23 type E int32
24
25 const (
26 E_ZERO E = 0
27 )
28
29
30 var (
31 E_name = map[int32]string{
32 0: "ZERO",
33 }
34 E_value = map[string]int32{
35 "ZERO": 0,
36 }
37 )
38
39 func (x E) Enum() *E {
40 p := new(E)
41 *p = x
42 return p
43 }
44
45 func (x E) String() string {
46 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
47 }
48
49 func (E) Descriptor() protoreflect.EnumDescriptor {
50 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0].Descriptor()
51 }
52
53 func (E) Type() protoreflect.EnumType {
54 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[0]
55 }
56
57 func (x E) Number() protoreflect.EnumNumber {
58 return protoreflect.EnumNumber(x)
59 }
60
61
62 func (x *E) UnmarshalJSON(b []byte) error {
63 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
64 if err != nil {
65 return err
66 }
67 *x = E(num)
68 return nil
69 }
70
71
72 func (E) EnumDescriptor() ([]byte, []int) {
73 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0}
74 }
75
76 type M_Subenum int32
77
78 const (
79 M_M_ZERO M_Subenum = 0
80 )
81
82
83 var (
84 M_Subenum_name = map[int32]string{
85 0: "M_ZERO",
86 }
87 M_Subenum_value = map[string]int32{
88 "M_ZERO": 0,
89 }
90 )
91
92 func (x M_Subenum) Enum() *M_Subenum {
93 p := new(M_Subenum)
94 *p = x
95 return p
96 }
97
98 func (x M_Subenum) String() string {
99 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
100 }
101
102 func (M_Subenum) Descriptor() protoreflect.EnumDescriptor {
103 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1].Descriptor()
104 }
105
106 func (M_Subenum) Type() protoreflect.EnumType {
107 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[1]
108 }
109
110 func (x M_Subenum) Number() protoreflect.EnumNumber {
111 return protoreflect.EnumNumber(x)
112 }
113
114
115 func (x *M_Subenum) UnmarshalJSON(b []byte) error {
116 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
117 if err != nil {
118 return err
119 }
120 *x = M_Subenum(num)
121 return nil
122 }
123
124
125 func (M_Subenum) EnumDescriptor() ([]byte, []int) {
126 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
127 }
128
129 type M_Submessage_Submessage_Subenum int32
130
131 const (
132 M_Submessage_M_SUBMESSAGE_ZERO M_Submessage_Submessage_Subenum = 0
133 )
134
135
136 var (
137 M_Submessage_Submessage_Subenum_name = map[int32]string{
138 0: "M_SUBMESSAGE_ZERO",
139 }
140 M_Submessage_Submessage_Subenum_value = map[string]int32{
141 "M_SUBMESSAGE_ZERO": 0,
142 }
143 )
144
145 func (x M_Submessage_Submessage_Subenum) Enum() *M_Submessage_Submessage_Subenum {
146 p := new(M_Submessage_Submessage_Subenum)
147 *p = x
148 return p
149 }
150
151 func (x M_Submessage_Submessage_Subenum) String() string {
152 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
153 }
154
155 func (M_Submessage_Submessage_Subenum) Descriptor() protoreflect.EnumDescriptor {
156 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2].Descriptor()
157 }
158
159 func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType {
160 return &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes[2]
161 }
162
163 func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber {
164 return protoreflect.EnumNumber(x)
165 }
166
167
168 func (x *M_Submessage_Submessage_Subenum) UnmarshalJSON(b []byte) error {
169 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
170 if err != nil {
171 return err
172 }
173 *x = M_Submessage_Submessage_Subenum(num)
174 return nil
175 }
176
177
178 func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
179 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0}
180 }
181
182 type M struct {
183 state protoimpl.MessageState
184 sizeCache protoimpl.SizeCache
185 unknownFields protoimpl.UnknownFields
186 extensionFields protoimpl.ExtensionFields
187
188
189 M2 *M2 `protobuf:"bytes,1,opt,name=m2" json:"m2,omitempty"`
190 S *string `protobuf:"bytes,4,opt,name=s,def=default" json:"s,omitempty"`
191 B []byte `protobuf:"bytes,5,opt,name=b,def=default" json:"b,omitempty"`
192 F *float64 `protobuf:"fixed64,6,opt,name=f,def=nan" json:"f,omitempty"`
193
194
195
196
197 OneofField isM_OneofField `protobuf_oneof:"oneof_field"`
198 }
199
200
201 const (
202 Default_M_S = string("default")
203 )
204
205
206 var (
207 Default_M_B = []byte("default")
208 Default_M_F = float64(math.NaN())
209 )
210
211 func (x *M) Reset() {
212 *x = M{}
213 if protoimpl.UnsafeEnabled {
214 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0]
215 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
216 ms.StoreMessageInfo(mi)
217 }
218 }
219
220 func (x *M) String() string {
221 return protoimpl.X.MessageStringOf(x)
222 }
223
224 func (*M) ProtoMessage() {}
225
226 func (x *M) ProtoReflect() protoreflect.Message {
227 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0]
228 if protoimpl.UnsafeEnabled && x != nil {
229 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
230 if ms.LoadMessageInfo() == nil {
231 ms.StoreMessageInfo(mi)
232 }
233 return ms
234 }
235 return mi.MessageOf(x)
236 }
237
238
239 func (*M) Descriptor() ([]byte, []int) {
240 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0}
241 }
242
243 func (x *M) GetM2() *M2 {
244 if x != nil {
245 return x.M2
246 }
247 return nil
248 }
249
250 func (x *M) GetS() string {
251 if x != nil && x.S != nil {
252 return *x.S
253 }
254 return Default_M_S
255 }
256
257 func (x *M) GetB() []byte {
258 if x != nil && x.B != nil {
259 return x.B
260 }
261 return append([]byte(nil), Default_M_B...)
262 }
263
264 func (x *M) GetF() float64 {
265 if x != nil && x.F != nil {
266 return *x.F
267 }
268 return Default_M_F
269 }
270
271 func (m *M) GetOneofField() isM_OneofField {
272 if m != nil {
273 return m.OneofField
274 }
275 return nil
276 }
277
278 func (x *M) GetOneofInt32() int32 {
279 if x, ok := x.GetOneofField().(*M_OneofInt32); ok {
280 return x.OneofInt32
281 }
282 return 0
283 }
284
285 func (x *M) GetOneofInt64() int64 {
286 if x, ok := x.GetOneofField().(*M_OneofInt64); ok {
287 return x.OneofInt64
288 }
289 return 0
290 }
291
292 type isM_OneofField interface {
293 isM_OneofField()
294 }
295
296 type M_OneofInt32 struct {
297 OneofInt32 int32 `protobuf:"varint,2,opt,name=oneof_int32,json=oneofInt32,oneof"`
298 }
299
300 type M_OneofInt64 struct {
301 OneofInt64 int64 `protobuf:"varint,3,opt,name=oneof_int64,json=oneofInt64,oneof"`
302 }
303
304 func (*M_OneofInt32) isM_OneofField() {}
305
306 func (*M_OneofInt64) isM_OneofField() {}
307
308 type M_Submessage struct {
309 state protoimpl.MessageState
310 sizeCache protoimpl.SizeCache
311 unknownFields protoimpl.UnknownFields
312
313
314
315
316
317 SubmessageOneofField isM_Submessage_SubmessageOneofField `protobuf_oneof:"submessage_oneof_field"`
318 }
319
320 func (x *M_Submessage) Reset() {
321 *x = M_Submessage{}
322 if protoimpl.UnsafeEnabled {
323 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1]
324 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
325 ms.StoreMessageInfo(mi)
326 }
327 }
328
329 func (x *M_Submessage) String() string {
330 return protoimpl.X.MessageStringOf(x)
331 }
332
333 func (*M_Submessage) ProtoMessage() {}
334
335 func (x *M_Submessage) ProtoReflect() protoreflect.Message {
336 mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1]
337 if protoimpl.UnsafeEnabled && x != nil {
338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
339 if ms.LoadMessageInfo() == nil {
340 ms.StoreMessageInfo(mi)
341 }
342 return ms
343 }
344 return mi.MessageOf(x)
345 }
346
347
348 func (*M_Submessage) Descriptor() ([]byte, []int) {
349 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
350 }
351
352 func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
353 if m != nil {
354 return m.SubmessageOneofField
355 }
356 return nil
357 }
358
359 func (x *M_Submessage) GetSubmessageOneofInt32() int32 {
360 if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt32); ok {
361 return x.SubmessageOneofInt32
362 }
363 return 0
364 }
365
366 func (x *M_Submessage) GetSubmessageOneofInt64() int64 {
367 if x, ok := x.GetSubmessageOneofField().(*M_Submessage_SubmessageOneofInt64); ok {
368 return x.SubmessageOneofInt64
369 }
370 return 0
371 }
372
373 type isM_Submessage_SubmessageOneofField interface {
374 isM_Submessage_SubmessageOneofField()
375 }
376
377 type M_Submessage_SubmessageOneofInt32 struct {
378 SubmessageOneofInt32 int32 `protobuf:"varint,1,opt,name=submessage_oneof_int32,json=submessageOneofInt32,oneof"`
379 }
380
381 type M_Submessage_SubmessageOneofInt64 struct {
382 SubmessageOneofInt64 int64 `protobuf:"varint,2,opt,name=submessage_oneof_int64,json=submessageOneofInt64,oneof"`
383 }
384
385 func (*M_Submessage_SubmessageOneofInt32) isM_Submessage_SubmessageOneofField() {}
386
387 func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {}
388
389 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes = []protoimpl.ExtensionInfo{
390 {
391 ExtendedType: (*M)(nil),
392 ExtensionType: (*string)(nil),
393 Field: 100,
394 Name: "goproto.protoc.import_public.sub.extension_field",
395 Tag: "bytes,100,opt,name=extension_field",
396 Filename: "cmd/protoc-gen-go/testdata/import_public/sub/a.proto",
397 },
398 }
399
400
401 var (
402
403 E_ExtensionField = &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes[0]
404 )
405
406 var File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto protoreflect.FileDescriptor
407
408 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc = []byte{
409 0x0a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e,
410 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70,
411 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x61,
412 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
413 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75,
414 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x1a, 0x34, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72,
415 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74,
416 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c,
417 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x35,
418 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67,
419 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72,
420 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x32, 0x2f, 0x61, 0x2e,
421 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb6, 0x03, 0x0a, 0x01, 0x4d, 0x12, 0x34, 0x0a, 0x02, 0x6d,
422 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
423 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f,
424 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e, 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x32, 0x52, 0x02, 0x6d,
425 0x32, 0x12, 0x15, 0x0a, 0x01, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x3a, 0x07, 0x64, 0x65,
426 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x73, 0x12, 0x15, 0x0a, 0x01, 0x62, 0x18, 0x05, 0x20,
427 0x01, 0x28, 0x0c, 0x3a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x01, 0x62, 0x12,
428 0x11, 0x0a, 0x01, 0x66, 0x18, 0x06, 0x20, 0x01, 0x28, 0x01, 0x3a, 0x03, 0x6e, 0x61, 0x6e, 0x52,
429 0x01, 0x66, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33,
430 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66,
431 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x21, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69,
432 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0a, 0x6f, 0x6e,
433 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x1a, 0xc3, 0x01, 0x0a, 0x0a, 0x53, 0x75, 0x62,
434 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65,
435 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x33,
436 0x32, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65,
437 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12,
438 0x36, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x6e,
439 0x65, 0x6f, 0x66, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48,
440 0x00, 0x52, 0x14, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x6e, 0x65,
441 0x6f, 0x66, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x22, 0x2b, 0x0a, 0x12, 0x53, 0x75, 0x62, 0x6d, 0x65,
442 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x15, 0x0a,
443 0x11, 0x4d, 0x5f, 0x53, 0x55, 0x42, 0x4d, 0x45, 0x53, 0x53, 0x41, 0x47, 0x45, 0x5f, 0x5a, 0x45,
444 0x52, 0x4f, 0x10, 0x00, 0x42, 0x18, 0x0a, 0x16, 0x73, 0x75, 0x62, 0x6d, 0x65, 0x73, 0x73, 0x61,
445 0x67, 0x65, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x22, 0x15,
446 0x0a, 0x07, 0x53, 0x75, 0x62, 0x65, 0x6e, 0x75, 0x6d, 0x12, 0x0a, 0x0a, 0x06, 0x4d, 0x5f, 0x5a,
447 0x45, 0x52, 0x4f, 0x10, 0x00, 0x2a, 0x08, 0x08, 0x64, 0x10, 0x80, 0x80, 0x80, 0x80, 0x02, 0x42,
448 0x0d, 0x0a, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x2a, 0x0d,
449 0x0a, 0x01, 0x45, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x3a, 0x4c, 0x0a,
450 0x0f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64,
451 0x12, 0x23, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
452 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2e,
453 0x73, 0x75, 0x62, 0x2e, 0x4d, 0x18, 0x64, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x65, 0x78, 0x74,
454 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x42, 0x49, 0x5a, 0x47, 0x67,
455 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
456 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x63, 0x6d, 0x64, 0x2f, 0x70, 0x72,
457 0x6f, 0x74, 0x6f, 0x63, 0x2d, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x65, 0x73, 0x74,
458 0x64, 0x61, 0x74, 0x61, 0x2f, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c,
459 0x69, 0x63, 0x2f, 0x73, 0x75, 0x62, 0x50, 0x01,
460 }
461
462 var (
463 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce sync.Once
464 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData = file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc
465 )
466
467 func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP() []byte {
468 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescOnce.Do(func() {
469 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData)
470 })
471 return file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescData
472 }
473
474 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
475 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
476 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = []interface{}{
477 (E)(0),
478 (M_Subenum)(0),
479 (M_Submessage_Submessage_Subenum)(0),
480 (*M)(nil),
481 (*M_Submessage)(nil),
482 (*M2)(nil),
483 }
484 var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = []int32{
485 5,
486 3,
487 2,
488 2,
489 2,
490 1,
491 0,
492 }
493
494 func init() { file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() }
495 func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() {
496 if File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto != nil {
497 return
498 }
499 file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init()
500 if !protoimpl.UnsafeEnabled {
501 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
502 switch v := v.(*M); i {
503 case 0:
504 return &v.state
505 case 1:
506 return &v.sizeCache
507 case 2:
508 return &v.unknownFields
509 case 3:
510 return &v.extensionFields
511 default:
512 return nil
513 }
514 }
515 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
516 switch v := v.(*M_Submessage); i {
517 case 0:
518 return &v.state
519 case 1:
520 return &v.sizeCache
521 case 2:
522 return &v.unknownFields
523 default:
524 return nil
525 }
526 }
527 }
528 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []interface{}{
529 (*M_OneofInt32)(nil),
530 (*M_OneofInt64)(nil),
531 }
532 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []interface{}{
533 (*M_Submessage_SubmessageOneofInt32)(nil),
534 (*M_Submessage_SubmessageOneofInt64)(nil),
535 }
536 type x struct{}
537 out := protoimpl.TypeBuilder{
538 File: protoimpl.DescBuilder{
539 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
540 RawDescriptor: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc,
541 NumEnums: 3,
542 NumMessages: 2,
543 NumExtensions: 1,
544 NumServices: 0,
545 },
546 GoTypes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes,
547 DependencyIndexes: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs,
548 EnumInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes,
549 MessageInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes,
550 ExtensionInfos: file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_extTypes,
551 }.Build()
552 File_cmd_protoc_gen_go_testdata_import_public_sub_a_proto = out.File
553 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc = nil
554 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = nil
555 file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_depIdxs = nil
556 }
557
View as plain text