/
desc_test1.pb.go
732 lines (641 loc) · 30.1 KB
/
desc_test1.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: desc_test1.proto
package testprotos
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Comment for NestedEnum
type TestMessage_NestedEnum int32
const (
// Comment for VALUE1
TestMessage_VALUE1 TestMessage_NestedEnum = 1
// Comment for VALUE2
TestMessage_VALUE2 TestMessage_NestedEnum = 2
)
var TestMessage_NestedEnum_name = map[int32]string{
1: "VALUE1",
2: "VALUE2",
}
var TestMessage_NestedEnum_value = map[string]int32{
"VALUE1": 1,
"VALUE2": 2,
}
func (x TestMessage_NestedEnum) Enum() *TestMessage_NestedEnum {
p := new(TestMessage_NestedEnum)
*p = x
return p
}
func (x TestMessage_NestedEnum) String() string {
return proto.EnumName(TestMessage_NestedEnum_name, int32(x))
}
func (x *TestMessage_NestedEnum) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(TestMessage_NestedEnum_value, data, "TestMessage_NestedEnum")
if err != nil {
return err
}
*x = TestMessage_NestedEnum(value)
return nil
}
func (TestMessage_NestedEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0, 0}
}
// Comment for DeeplyNestedEnum
type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum int32
const (
// Comment for VALUE1
TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 1
// Comment for VALUE2
TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE2 TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum = 2
)
var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name = map[int32]string{
1: "VALUE1",
2: "VALUE2",
}
var TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value = map[string]int32{
"VALUE1": 1,
"VALUE2": 2,
}
func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) Enum() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum {
p := new(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum)
*p = x
return p
}
func (x TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) String() string {
return proto.EnumName(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name, int32(x))
}
func (x *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value, data, "TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum")
if err != nil {
return err
}
*x = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum(value)
return nil
}
func (TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0, 0, 0, 0, 0}
}
// Comment for TestMessage
type TestMessage struct {
// Comment for nm
Nm *TestMessage_NestedMessage `protobuf:"bytes,1,opt,name=nm" json:"nm,omitempty"`
// Comment for anm
Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,2,opt,name=anm" json:"anm,omitempty"`
// Comment for yanm
Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,3,opt,name=yanm" json:"yanm,omitempty"`
// Comment for ne
Ne []TestMessage_NestedEnum `protobuf:"varint,4,rep,name=ne,enum=testprotos.TestMessage_NestedEnum" json:"ne,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestMessage) Reset() { *m = TestMessage{} }
func (m *TestMessage) String() string { return proto.CompactTextString(m) }
func (*TestMessage) ProtoMessage() {}
func (*TestMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0}
}
func (m *TestMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestMessage.Unmarshal(m, b)
}
func (m *TestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestMessage.Marshal(b, m, deterministic)
}
func (m *TestMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestMessage.Merge(m, src)
}
func (m *TestMessage) XXX_Size() int {
return xxx_messageInfo_TestMessage.Size(m)
}
func (m *TestMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestMessage proto.InternalMessageInfo
func (m *TestMessage) GetNm() *TestMessage_NestedMessage {
if m != nil {
return m.Nm
}
return nil
}
func (m *TestMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage {
if m != nil {
return m.Anm
}
return nil
}
func (m *TestMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage {
if m != nil {
return m.Yanm
}
return nil
}
func (m *TestMessage) GetNe() []TestMessage_NestedEnum {
if m != nil {
return m.Ne
}
return nil
}
// Comment for NestedMessage
type TestMessage_NestedMessage struct {
// Comment for anm
Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,1,opt,name=anm" json:"anm,omitempty"`
// Comment for yanm
Yanm *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,2,opt,name=yanm" json:"yanm,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestMessage_NestedMessage) Reset() { *m = TestMessage_NestedMessage{} }
func (m *TestMessage_NestedMessage) String() string { return proto.CompactTextString(m) }
func (*TestMessage_NestedMessage) ProtoMessage() {}
func (*TestMessage_NestedMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0, 0}
}
func (m *TestMessage_NestedMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestMessage_NestedMessage.Unmarshal(m, b)
}
func (m *TestMessage_NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestMessage_NestedMessage.Marshal(b, m, deterministic)
}
func (m *TestMessage_NestedMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestMessage_NestedMessage.Merge(m, src)
}
func (m *TestMessage_NestedMessage) XXX_Size() int {
return xxx_messageInfo_TestMessage_NestedMessage.Size(m)
}
func (m *TestMessage_NestedMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestMessage_NestedMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestMessage_NestedMessage proto.InternalMessageInfo
func (m *TestMessage_NestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage {
if m != nil {
return m.Anm
}
return nil
}
func (m *TestMessage_NestedMessage) GetYanm() *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage {
if m != nil {
return m.Yanm
}
return nil
}
// Comment for AnotherNestedMessage
type TestMessage_NestedMessage_AnotherNestedMessage struct {
// Comment for yanm
Yanm []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage `protobuf:"bytes,1,rep,name=yanm" json:"yanm,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) Reset() {
*m = TestMessage_NestedMessage_AnotherNestedMessage{}
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) String() string {
return proto.CompactTextString(m)
}
func (*TestMessage_NestedMessage_AnotherNestedMessage) ProtoMessage() {}
func (*TestMessage_NestedMessage_AnotherNestedMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0, 0, 0}
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Unmarshal(m, b)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Marshal(b, m, deterministic)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Merge(m, src)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_Size() int {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.Size(m)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage proto.InternalMessageInfo
func (m *TestMessage_NestedMessage_AnotherNestedMessage) GetYanm() []*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage {
if m != nil {
return m.Yanm
}
return nil
}
var E_TestMessage_NestedMessage_AnotherNestedMessage_Flags = &proto.ExtensionDesc{
ExtendedType: (*AnotherTestMessage)(nil),
ExtensionType: ([]bool)(nil),
Field: 200,
Name: "testprotos.TestMessage.NestedMessage.AnotherNestedMessage.flags",
Tag: "varint,200,rep,packed,name=flags",
Filename: "desc_test1.proto",
}
// Comment for YetAnotherNestedMessage
type TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage struct {
// Comment for foo
Foo *string `protobuf:"bytes,1,opt,name=foo" json:"foo,omitempty"`
// Comment for bar
Bar *int32 `protobuf:"varint,2,opt,name=bar" json:"bar,omitempty"`
// Comment for baz
Baz []byte `protobuf:"bytes,3,opt,name=baz" json:"baz,omitempty"`
// Comment for dne
Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,4,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"`
// Comment for anm
Anm *TestMessage_NestedMessage_AnotherNestedMessage `protobuf:"bytes,5,opt,name=anm" json:"anm,omitempty"`
// Comment for nm
Nm *TestMessage_NestedMessage `protobuf:"bytes,6,opt,name=nm" json:"nm,omitempty"`
// Comment for tm
Tm *TestMessage `protobuf:"bytes,7,opt,name=tm" json:"tm,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Reset() {
*m = TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage{}
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) String() string {
return proto.CompactTextString(m)
}
func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) ProtoMessage() {}
func (*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{0, 0, 0, 0}
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Unmarshal(m, b)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Marshal(b, m, deterministic)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Merge(m, src)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_Size() int {
return xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.Size(m)
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) XXX_DiscardUnknown() {
xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage.DiscardUnknown(m)
}
var xxx_messageInfo_TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage proto.InternalMessageInfo
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetFoo() string {
if m != nil && m.Foo != nil {
return *m.Foo
}
return ""
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBar() int32 {
if m != nil && m.Bar != nil {
return *m.Bar
}
return 0
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetBaz() []byte {
if m != nil {
return m.Baz
}
return nil
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum {
if m != nil && m.Dne != nil {
return *m.Dne
}
return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetAnm() *TestMessage_NestedMessage_AnotherNestedMessage {
if m != nil {
return m.Anm
}
return nil
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetNm() *TestMessage_NestedMessage {
if m != nil {
return m.Nm
}
return nil
}
func (m *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage) GetTm() *TestMessage {
if m != nil {
return m.Tm
}
return nil
}
// Comment for AnotherTestMessage
type AnotherTestMessage struct {
// Comment for dne
Dne *TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum `protobuf:"varint,1,opt,name=dne,enum=testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum" json:"dne,omitempty"`
// Comment for map_field1
MapField1 map[int32]string `protobuf:"bytes,2,rep,name=map_field1,json=mapField1" json:"map_field1,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Comment for map_field2
MapField2 map[int64]float32 `protobuf:"bytes,3,rep,name=map_field2,json=mapField2" json:"map_field2,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
// Comment for map_field3
MapField3 map[uint32]bool `protobuf:"bytes,4,rep,name=map_field3,json=mapField3" json:"map_field3,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
// Comment for map_field4
MapField4 map[string]*AnotherTestMessage `protobuf:"bytes,5,rep,name=map_field4,json=mapField4" json:"map_field4,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
Rocknroll *AnotherTestMessage_RockNRoll `protobuf:"group,6,opt,name=RockNRoll,json=rocknroll" json:"rocknroll,omitempty"`
// Comment for atmoo
//
// Types that are valid to be assigned to Atmoo:
// *AnotherTestMessage_Str
// *AnotherTestMessage_Int
Atmoo isAnotherTestMessage_Atmoo `protobuf_oneof:"atmoo"`
Withoptions *AnotherTestMessage_WithOptions `protobuf:"group,9,opt,name=WithOptions,json=withoptions" json:"withoptions,omitempty"` // Deprecated: Do not use.
XXX_NoUnkeyedLiteral struct{} `json:"-"`
proto.XXX_InternalExtensions `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnotherTestMessage) Reset() { *m = AnotherTestMessage{} }
func (m *AnotherTestMessage) String() string { return proto.CompactTextString(m) }
func (*AnotherTestMessage) ProtoMessage() {}
func (*AnotherTestMessage) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{1}
}
var extRange_AnotherTestMessage = []proto.ExtensionRange{
{Start: 100, End: 200},
}
func (*AnotherTestMessage) ExtensionRangeArray() []proto.ExtensionRange {
return extRange_AnotherTestMessage
}
func (m *AnotherTestMessage) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnotherTestMessage.Unmarshal(m, b)
}
func (m *AnotherTestMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnotherTestMessage.Marshal(b, m, deterministic)
}
func (m *AnotherTestMessage) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnotherTestMessage.Merge(m, src)
}
func (m *AnotherTestMessage) XXX_Size() int {
return xxx_messageInfo_AnotherTestMessage.Size(m)
}
func (m *AnotherTestMessage) XXX_DiscardUnknown() {
xxx_messageInfo_AnotherTestMessage.DiscardUnknown(m)
}
var xxx_messageInfo_AnotherTestMessage proto.InternalMessageInfo
func (m *AnotherTestMessage) GetDne() TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum {
if m != nil && m.Dne != nil {
return *m.Dne
}
return TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_VALUE1
}
func (m *AnotherTestMessage) GetMapField1() map[int32]string {
if m != nil {
return m.MapField1
}
return nil
}
func (m *AnotherTestMessage) GetMapField2() map[int64]float32 {
if m != nil {
return m.MapField2
}
return nil
}
func (m *AnotherTestMessage) GetMapField3() map[uint32]bool {
if m != nil {
return m.MapField3
}
return nil
}
func (m *AnotherTestMessage) GetMapField4() map[string]*AnotherTestMessage {
if m != nil {
return m.MapField4
}
return nil
}
func (m *AnotherTestMessage) GetRocknroll() *AnotherTestMessage_RockNRoll {
if m != nil {
return m.Rocknroll
}
return nil
}
type isAnotherTestMessage_Atmoo interface {
isAnotherTestMessage_Atmoo()
}
type AnotherTestMessage_Str struct {
Str string `protobuf:"bytes,7,opt,name=str,oneof"`
}
type AnotherTestMessage_Int struct {
Int int64 `protobuf:"varint,8,opt,name=int,oneof"`
}
func (*AnotherTestMessage_Str) isAnotherTestMessage_Atmoo() {}
func (*AnotherTestMessage_Int) isAnotherTestMessage_Atmoo() {}
func (m *AnotherTestMessage) GetAtmoo() isAnotherTestMessage_Atmoo {
if m != nil {
return m.Atmoo
}
return nil
}
func (m *AnotherTestMessage) GetStr() string {
if x, ok := m.GetAtmoo().(*AnotherTestMessage_Str); ok {
return x.Str
}
return ""
}
func (m *AnotherTestMessage) GetInt() int64 {
if x, ok := m.GetAtmoo().(*AnotherTestMessage_Int); ok {
return x.Int
}
return 0
}
// Deprecated: Do not use.
func (m *AnotherTestMessage) GetWithoptions() *AnotherTestMessage_WithOptions {
if m != nil {
return m.Withoptions
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*AnotherTestMessage) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*AnotherTestMessage_Str)(nil),
(*AnotherTestMessage_Int)(nil),
}
}
// Comment for RockNRoll
type AnotherTestMessage_RockNRoll struct {
// Comment for beatles
Beatles *string `protobuf:"bytes,1,opt,name=beatles" json:"beatles,omitempty"`
// Comment for stones
Stones *string `protobuf:"bytes,2,opt,name=stones" json:"stones,omitempty"`
// Comment for doors
Doors *string `protobuf:"bytes,3,opt,name=doors" json:"doors,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnotherTestMessage_RockNRoll) Reset() { *m = AnotherTestMessage_RockNRoll{} }
func (m *AnotherTestMessage_RockNRoll) String() string { return proto.CompactTextString(m) }
func (*AnotherTestMessage_RockNRoll) ProtoMessage() {}
func (*AnotherTestMessage_RockNRoll) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{1, 4}
}
func (m *AnotherTestMessage_RockNRoll) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnotherTestMessage_RockNRoll.Unmarshal(m, b)
}
func (m *AnotherTestMessage_RockNRoll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnotherTestMessage_RockNRoll.Marshal(b, m, deterministic)
}
func (m *AnotherTestMessage_RockNRoll) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnotherTestMessage_RockNRoll.Merge(m, src)
}
func (m *AnotherTestMessage_RockNRoll) XXX_Size() int {
return xxx_messageInfo_AnotherTestMessage_RockNRoll.Size(m)
}
func (m *AnotherTestMessage_RockNRoll) XXX_DiscardUnknown() {
xxx_messageInfo_AnotherTestMessage_RockNRoll.DiscardUnknown(m)
}
var xxx_messageInfo_AnotherTestMessage_RockNRoll proto.InternalMessageInfo
func (m *AnotherTestMessage_RockNRoll) GetBeatles() string {
if m != nil && m.Beatles != nil {
return *m.Beatles
}
return ""
}
func (m *AnotherTestMessage_RockNRoll) GetStones() string {
if m != nil && m.Stones != nil {
return *m.Stones
}
return ""
}
func (m *AnotherTestMessage_RockNRoll) GetDoors() string {
if m != nil && m.Doors != nil {
return *m.Doors
}
return ""
}
// Comment for WithOptions
type AnotherTestMessage_WithOptions struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AnotherTestMessage_WithOptions) Reset() { *m = AnotherTestMessage_WithOptions{} }
func (m *AnotherTestMessage_WithOptions) String() string { return proto.CompactTextString(m) }
func (*AnotherTestMessage_WithOptions) ProtoMessage() {}
func (*AnotherTestMessage_WithOptions) Descriptor() ([]byte, []int) {
return fileDescriptor_550618e6d7083528, []int{1, 5}
}
func (m *AnotherTestMessage_WithOptions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AnotherTestMessage_WithOptions.Unmarshal(m, b)
}
func (m *AnotherTestMessage_WithOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AnotherTestMessage_WithOptions.Marshal(b, m, deterministic)
}
func (m *AnotherTestMessage_WithOptions) XXX_Merge(src proto.Message) {
xxx_messageInfo_AnotherTestMessage_WithOptions.Merge(m, src)
}
func (m *AnotherTestMessage_WithOptions) XXX_Size() int {
return xxx_messageInfo_AnotherTestMessage_WithOptions.Size(m)
}
func (m *AnotherTestMessage_WithOptions) XXX_DiscardUnknown() {
xxx_messageInfo_AnotherTestMessage_WithOptions.DiscardUnknown(m)
}
var xxx_messageInfo_AnotherTestMessage_WithOptions proto.InternalMessageInfo
var E_Xtm = &proto.ExtensionDesc{
ExtendedType: (*AnotherTestMessage)(nil),
ExtensionType: (*TestMessage)(nil),
Field: 100,
Name: "testprotos.xtm",
Tag: "bytes,100,opt,name=xtm",
Filename: "desc_test1.proto",
}
var E_Xs = &proto.ExtensionDesc{
ExtendedType: (*AnotherTestMessage)(nil),
ExtensionType: (*string)(nil),
Field: 101,
Name: "testprotos.xs",
Tag: "bytes,101,opt,name=xs",
Filename: "desc_test1.proto",
}
var E_Xi = &proto.ExtensionDesc{
ExtendedType: (*AnotherTestMessage)(nil),
ExtensionType: (*int32)(nil),
Field: 102,
Name: "testprotos.xi",
Tag: "varint,102,opt,name=xi",
Filename: "desc_test1.proto",
}
var E_Xui = &proto.ExtensionDesc{
ExtendedType: (*AnotherTestMessage)(nil),
ExtensionType: (*uint64)(nil),
Field: 103,
Name: "testprotos.xui",
Tag: "varint,103,opt,name=xui",
Filename: "desc_test1.proto",
}
func init() {
proto.RegisterEnum("testprotos.TestMessage_NestedEnum", TestMessage_NestedEnum_name, TestMessage_NestedEnum_value)
proto.RegisterEnum("testprotos.TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum", TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_name, TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage_DeeplyNestedEnum_value)
proto.RegisterType((*TestMessage)(nil), "testprotos.TestMessage")
proto.RegisterType((*TestMessage_NestedMessage)(nil), "testprotos.TestMessage.NestedMessage")
proto.RegisterExtension(E_TestMessage_NestedMessage_AnotherNestedMessage_Flags)
proto.RegisterType((*TestMessage_NestedMessage_AnotherNestedMessage)(nil), "testprotos.TestMessage.NestedMessage.AnotherNestedMessage")
proto.RegisterType((*TestMessage_NestedMessage_AnotherNestedMessage_YetAnotherNestedMessage)(nil), "testprotos.TestMessage.NestedMessage.AnotherNestedMessage.YetAnotherNestedMessage")
proto.RegisterType((*AnotherTestMessage)(nil), "testprotos.AnotherTestMessage")
proto.RegisterMapType((map[int32]string)(nil), "testprotos.AnotherTestMessage.MapField1Entry")
proto.RegisterMapType((map[int64]float32)(nil), "testprotos.AnotherTestMessage.MapField2Entry")
proto.RegisterMapType((map[uint32]bool)(nil), "testprotos.AnotherTestMessage.MapField3Entry")
proto.RegisterMapType((map[string]*AnotherTestMessage)(nil), "testprotos.AnotherTestMessage.MapField4Entry")
proto.RegisterType((*AnotherTestMessage_RockNRoll)(nil), "testprotos.AnotherTestMessage.RockNRoll")
proto.RegisterType((*AnotherTestMessage_WithOptions)(nil), "testprotos.AnotherTestMessage.WithOptions")
proto.RegisterExtension(E_Xtm)
proto.RegisterExtension(E_Xs)
proto.RegisterExtension(E_Xi)
proto.RegisterExtension(E_Xui)
}
func init() { proto.RegisterFile("desc_test1.proto", fileDescriptor_550618e6d7083528) }
var fileDescriptor_550618e6d7083528 = []byte{
// 733 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x94, 0xdd, 0x6e, 0xda, 0x48,
0x14, 0xc7, 0xd7, 0x63, 0x4c, 0xf0, 0x61, 0x13, 0xa1, 0x51, 0xb4, 0xb1, 0xb8, 0x58, 0x21, 0xb4,
0xab, 0x45, 0x91, 0xd6, 0x2c, 0x86, 0x95, 0x5a, 0xd4, 0x9b, 0xa0, 0x26, 0x6a, 0xa5, 0x24, 0xad,
0xa6, 0x5f, 0x6a, 0x55, 0x29, 0x72, 0x60, 0x00, 0x37, 0xf6, 0x0c, 0xf2, 0x0c, 0x2d, 0xe4, 0x2d,
0xfa, 0x06, 0xbd, 0xe8, 0xc3, 0xb4, 0xef, 0xd0, 0x37, 0xe9, 0x4d, 0x35, 0x03, 0x04, 0xf3, 0x91,
0x38, 0xa9, 0x92, 0xde, 0xcd, 0x19, 0x9f, 0xff, 0xef, 0x9c, 0xe3, 0x73, 0xe6, 0x40, 0xa1, 0x43,
0x45, 0xfb, 0x44, 0x52, 0x21, 0x6b, 0xee, 0x20, 0xe6, 0x92, 0x63, 0x50, 0x86, 0x3e, 0x8a, 0xf2,
0xf7, 0x1c, 0xe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