-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.pb.go
executable file
·1187 lines (1099 loc) · 51.6 KB
/
test.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
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated by protoc-gen-go.
// source: proto3_20160225_2fc053c5/test.proto
// DO NOT EDIT!
/*
Package proto3_20160225_2fc053c5 is a generated protocol buffer package.
It is generated from these files:
proto3_20160225_2fc053c5/test.proto
It has these top-level messages:
SiblingMessage
Message
*/
package proto3_20160225_2fc053c5
import proto "github.com/xjz9600/protobuf/internal/protolegacy"
import fmt "fmt"
import 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.
const _ = proto.ProtoPackageIsVersion1
type SiblingEnum int32
const (
SiblingEnum_ALPHA SiblingEnum = 0
SiblingEnum_BRAVO SiblingEnum = 10
SiblingEnum_CHARLIE SiblingEnum = 200
)
var SiblingEnum_name = map[int32]string{
0: "ALPHA",
10: "BRAVO",
200: "CHARLIE",
}
var SiblingEnum_value = map[string]int32{
"ALPHA": 0,
"BRAVO": 10,
"CHARLIE": 200,
}
func (x SiblingEnum) String() string {
return proto.EnumName(SiblingEnum_name, int32(x))
}
func (SiblingEnum) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type Message_ChildEnum int32
const (
Message_ALPHA Message_ChildEnum = 0
Message_BRAVO Message_ChildEnum = 1
Message_CHARLIE Message_ChildEnum = 2
)
var Message_ChildEnum_name = map[int32]string{
0: "ALPHA",
1: "BRAVO",
2: "CHARLIE",
}
var Message_ChildEnum_value = map[string]int32{
"ALPHA": 0,
"BRAVO": 1,
"CHARLIE": 2,
}
func (x Message_ChildEnum) String() string {
return proto.EnumName(Message_ChildEnum_name, int32(x))
}
func (Message_ChildEnum) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
type SiblingMessage struct {
F1 string `protobuf:"bytes,1,opt,name=f1" json:"f1,omitempty"`
F2 []string `protobuf:"bytes,2,rep,name=f2" json:"f2,omitempty"`
F3 *Message `protobuf:"bytes,3,opt,name=f3" json:"f3,omitempty"`
}
func (m *SiblingMessage) Reset() { *m = SiblingMessage{} }
func (m *SiblingMessage) String() string { return proto.CompactTextString(m) }
func (*SiblingMessage) ProtoMessage() {}
func (*SiblingMessage) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *SiblingMessage) GetF3() *Message {
if m != nil {
return m.F3
}
return nil
}
type Message struct {
// Optional fields.
OptionalBool bool `protobuf:"varint,100,opt,name=optional_bool,json=optionalBool" json:"optional_bool,omitempty"`
OptionalInt32 int32 `protobuf:"varint,101,opt,name=optional_int32,json=optionalInt32" json:"optional_int32,omitempty"`
OptionalSint32 int32 `protobuf:"zigzag32,102,opt,name=optional_sint32,json=optionalSint32" json:"optional_sint32,omitempty"`
OptionalUint32 uint32 `protobuf:"varint,103,opt,name=optional_uint32,json=optionalUint32" json:"optional_uint32,omitempty"`
OptionalInt64 int64 `protobuf:"varint,104,opt,name=optional_int64,json=optionalInt64" json:"optional_int64,omitempty"`
OptionalSint64 int64 `protobuf:"zigzag64,105,opt,name=optional_sint64,json=optionalSint64" json:"optional_sint64,omitempty"`
OptionalUint64 uint64 `protobuf:"varint,106,opt,name=optional_uint64,json=optionalUint64" json:"optional_uint64,omitempty"`
OptionalFixed32 uint32 `protobuf:"fixed32,107,opt,name=optional_fixed32,json=optionalFixed32" json:"optional_fixed32,omitempty"`
OptionalSfixed32 int32 `protobuf:"fixed32,108,opt,name=optional_sfixed32,json=optionalSfixed32" json:"optional_sfixed32,omitempty"`
OptionalFloat float32 `protobuf:"fixed32,109,opt,name=optional_float,json=optionalFloat" json:"optional_float,omitempty"`
OptionalFixed64 uint64 `protobuf:"fixed64,110,opt,name=optional_fixed64,json=optionalFixed64" json:"optional_fixed64,omitempty"`
OptionalSfixed64 int64 `protobuf:"fixed64,111,opt,name=optional_sfixed64,json=optionalSfixed64" json:"optional_sfixed64,omitempty"`
OptionalDouble float64 `protobuf:"fixed64,112,opt,name=optional_double,json=optionalDouble" json:"optional_double,omitempty"`
OptionalString string `protobuf:"bytes,113,opt,name=optional_string,json=optionalString" json:"optional_string,omitempty"`
OptionalBytes []byte `protobuf:"bytes,114,opt,name=optional_bytes,json=optionalBytes,proto3" json:"optional_bytes,omitempty"`
OptionalChildEnum Message_ChildEnum `protobuf:"varint,115,opt,name=optional_child_enum,json=optionalChildEnum,enum=google.golang.org.proto3_20160225.Message_ChildEnum" json:"optional_child_enum,omitempty"`
OptionalChildMessage *Message_ChildMessage `protobuf:"bytes,116,opt,name=optional_child_message,json=optionalChildMessage" json:"optional_child_message,omitempty"`
OptionalSiblingEnum SiblingEnum `protobuf:"varint,117,opt,name=optional_sibling_enum,json=optionalSiblingEnum,enum=google.golang.org.proto3_20160225.SiblingEnum" json:"optional_sibling_enum,omitempty"`
OptionalSiblingMessage *SiblingMessage `protobuf:"bytes,118,opt,name=optional_sibling_message,json=optionalSiblingMessage" json:"optional_sibling_message,omitempty"`
// Repeated fields.
RepeatedBool []bool `protobuf:"varint,200,rep,name=repeated_bool,json=repeatedBool" json:"repeated_bool,omitempty"`
RepeatedInt32 []int32 `protobuf:"varint,201,rep,name=repeated_int32,json=repeatedInt32" json:"repeated_int32,omitempty"`
RepeatedSint32 []int32 `protobuf:"zigzag32,202,rep,name=repeated_sint32,json=repeatedSint32" json:"repeated_sint32,omitempty"`
RepeatedUint32 []uint32 `protobuf:"varint,203,rep,name=repeated_uint32,json=repeatedUint32" json:"repeated_uint32,omitempty"`
RepeatedInt64 []int64 `protobuf:"varint,204,rep,name=repeated_int64,json=repeatedInt64" json:"repeated_int64,omitempty"`
RepeatedSint64 []int64 `protobuf:"zigzag64,205,rep,name=repeated_sint64,json=repeatedSint64" json:"repeated_sint64,omitempty"`
RepeatedUint64 []uint64 `protobuf:"varint,206,rep,name=repeated_uint64,json=repeatedUint64" json:"repeated_uint64,omitempty"`
RepeatedFixed32 []uint32 `protobuf:"fixed32,207,rep,name=repeated_fixed32,json=repeatedFixed32" json:"repeated_fixed32,omitempty"`
RepeatedSfixed32 []int32 `protobuf:"fixed32,208,rep,name=repeated_sfixed32,json=repeatedSfixed32" json:"repeated_sfixed32,omitempty"`
RepeatedFloat []float32 `protobuf:"fixed32,209,rep,name=repeated_float,json=repeatedFloat" json:"repeated_float,omitempty"`
RepeatedFixed64 []uint64 `protobuf:"fixed64,210,rep,name=repeated_fixed64,json=repeatedFixed64" json:"repeated_fixed64,omitempty"`
RepeatedSfixed64 []int64 `protobuf:"fixed64,211,rep,name=repeated_sfixed64,json=repeatedSfixed64" json:"repeated_sfixed64,omitempty"`
RepeatedDouble []float64 `protobuf:"fixed64,212,rep,name=repeated_double,json=repeatedDouble" json:"repeated_double,omitempty"`
RepeatedString []string `protobuf:"bytes,213,rep,name=repeated_string,json=repeatedString" json:"repeated_string,omitempty"`
RepeatedBytes [][]byte `protobuf:"bytes,214,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"`
RepeatedChildEnum []Message_ChildEnum `protobuf:"varint,215,rep,name=repeated_child_enum,json=repeatedChildEnum,enum=google.golang.org.proto3_20160225.Message_ChildEnum" json:"repeated_child_enum,omitempty"`
RepeatedChildMessage []*Message_ChildMessage `protobuf:"bytes,216,rep,name=repeated_child_message,json=repeatedChildMessage" json:"repeated_child_message,omitempty"`
RepeatedSiblingEnum []SiblingEnum `protobuf:"varint,217,rep,name=repeated_sibling_enum,json=repeatedSiblingEnum,enum=google.golang.org.proto3_20160225.SiblingEnum" json:"repeated_sibling_enum,omitempty"`
RepeatedSiblingMessage []*SiblingMessage `protobuf:"bytes,218,rep,name=repeated_sibling_message,json=repeatedSiblingMessage" json:"repeated_sibling_message,omitempty"`
// Map fields.
MapBoolBool map[bool]bool `protobuf:"bytes,300,rep,name=map_bool_bool,json=mapBoolBool" json:"map_bool_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapBoolInt32 map[bool]int32 `protobuf:"bytes,301,rep,name=map_bool_int32,json=mapBoolInt32" json:"map_bool_int32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapBoolSint32 map[bool]int32 `protobuf:"bytes,302,rep,name=map_bool_sint32,json=mapBoolSint32" json:"map_bool_sint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"zigzag32,2,opt,name=value"`
MapBoolUint32 map[bool]uint32 `protobuf:"bytes,303,rep,name=map_bool_uint32,json=mapBoolUint32" json:"map_bool_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapBoolInt64 map[bool]int64 `protobuf:"bytes,304,rep,name=map_bool_int64,json=mapBoolInt64" json:"map_bool_int64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapBoolSint64 map[bool]int64 `protobuf:"bytes,305,rep,name=map_bool_sint64,json=mapBoolSint64" json:"map_bool_sint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"zigzag64,2,opt,name=value"`
MapBoolUint64 map[bool]uint64 `protobuf:"bytes,306,rep,name=map_bool_uint64,json=mapBoolUint64" json:"map_bool_uint64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapBoolFixed32 map[bool]uint32 `protobuf:"bytes,307,rep,name=map_bool_fixed32,json=mapBoolFixed32" json:"map_bool_fixed32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapBoolSfixed32 map[bool]int32 `protobuf:"bytes,308,rep,name=map_bool_sfixed32,json=mapBoolSfixed32" json:"map_bool_sfixed32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapBoolFloat map[bool]float32 `protobuf:"bytes,309,rep,name=map_bool_float,json=mapBoolFloat" json:"map_bool_float,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed32,2,opt,name=value"`
MapBoolFixed64 map[bool]uint64 `protobuf:"bytes,310,rep,name=map_bool_fixed64,json=mapBoolFixed64" json:"map_bool_fixed64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapBoolSfixed64 map[bool]int64 `protobuf:"bytes,311,rep,name=map_bool_sfixed64,json=mapBoolSfixed64" json:"map_bool_sfixed64,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapBoolDouble map[bool]float64 `protobuf:"bytes,312,rep,name=map_bool_double,json=mapBoolDouble" json:"map_bool_double,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"fixed64,2,opt,name=value"`
MapBoolString map[bool]string `protobuf:"bytes,313,rep,name=map_bool_string,json=mapBoolString" json:"map_bool_string,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapBoolBytes map[bool][]byte `protobuf:"bytes,314,rep,name=map_bool_bytes,json=mapBoolBytes" json:"map_bool_bytes,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value,proto3"`
MapBoolChildEnum map[bool]Message_ChildEnum `protobuf:"bytes,315,rep,name=map_bool_child_enum,json=mapBoolChildEnum" json:"map_bool_child_enum,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=google.golang.org.proto3_20160225.Message_ChildEnum"`
MapBoolChildMessage map[bool]*Message_ChildMessage `protobuf:"bytes,316,rep,name=map_bool_child_message,json=mapBoolChildMessage" json:"map_bool_child_message,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapBoolSiblingEnum map[bool]SiblingEnum `protobuf:"bytes,317,rep,name=map_bool_sibling_enum,json=mapBoolSiblingEnum" json:"map_bool_sibling_enum,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=google.golang.org.proto3_20160225.SiblingEnum"`
MapBoolSiblingMessage map[bool]*SiblingMessage `protobuf:"bytes,318,rep,name=map_bool_sibling_message,json=mapBoolSiblingMessage" json:"map_bool_sibling_message,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
MapInt32Bool map[int32]bool `protobuf:"bytes,319,rep,name=map_int32_bool,json=mapInt32Bool" json:"map_int32_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapSint32Bool map[int32]bool `protobuf:"bytes,320,rep,name=map_sint32_bool,json=mapSint32Bool" json:"map_sint32_bool,omitempty" protobuf_key:"zigzag32,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint32Bool map[uint32]bool `protobuf:"bytes,321,rep,name=map_uint32_bool,json=mapUint32Bool" json:"map_uint32_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapInt64Bool map[int64]bool `protobuf:"bytes,322,rep,name=map_int64_bool,json=mapInt64Bool" json:"map_int64_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapSint64Bool map[int64]bool `protobuf:"bytes,323,rep,name=map_sint64_bool,json=mapSint64Bool" json:"map_sint64_bool,omitempty" protobuf_key:"zigzag64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapUint64Bool map[uint64]bool `protobuf:"bytes,324,rep,name=map_uint64_bool,json=mapUint64Bool" json:"map_uint64_bool,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapFixed32Bool map[uint32]bool `protobuf:"bytes,325,rep,name=map_fixed32_bool,json=mapFixed32Bool" json:"map_fixed32_bool,omitempty" protobuf_key:"fixed32,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
MapStringBool map[string]bool `protobuf:"bytes,326,rep,name=map_string_bool,json=mapStringBool" json:"map_string_bool,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
// Oneof fields.
//
// Types that are valid to be assigned to OneofUnion:
// *Message_OneofBool
// *Message_OneofInt32
// *Message_OneofSint32
// *Message_OneofUint32
// *Message_OneofInt64
// *Message_OneofSint64
// *Message_OneofUint64
// *Message_OneofFixed32
// *Message_OneofSfixed32
// *Message_OneofFloat
// *Message_OneofFixed64
// *Message_OneofSfixed64
// *Message_OneofDouble
// *Message_OneofString
// *Message_OneofBytes
// *Message_OneofChildEnum
// *Message_OneofChildMessage
// *Message_OneofSiblingEnum
// *Message_OneofSiblingMessage
// *Message_OneofString1
// *Message_OneofString2
// *Message_OneofString3
OneofUnion isMessage_OneofUnion `protobuf_oneof:"oneof_union"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type isMessage_OneofUnion interface{ isMessage_OneofUnion() }
type Message_OneofBool struct {
OneofBool bool `protobuf:"varint,400,opt,name=oneof_bool,json=oneofBool,oneof"`
}
type Message_OneofInt32 struct {
OneofInt32 int32 `protobuf:"varint,401,opt,name=oneof_int32,json=oneofInt32,oneof"`
}
type Message_OneofSint32 struct {
OneofSint32 int32 `protobuf:"zigzag32,402,opt,name=oneof_sint32,json=oneofSint32,oneof"`
}
type Message_OneofUint32 struct {
OneofUint32 uint32 `protobuf:"varint,403,opt,name=oneof_uint32,json=oneofUint32,oneof"`
}
type Message_OneofInt64 struct {
OneofInt64 int64 `protobuf:"varint,404,opt,name=oneof_int64,json=oneofInt64,oneof"`
}
type Message_OneofSint64 struct {
OneofSint64 int64 `protobuf:"zigzag64,405,opt,name=oneof_sint64,json=oneofSint64,oneof"`
}
type Message_OneofUint64 struct {
OneofUint64 uint64 `protobuf:"varint,406,opt,name=oneof_uint64,json=oneofUint64,oneof"`
}
type Message_OneofFixed32 struct {
OneofFixed32 uint32 `protobuf:"fixed32,407,opt,name=oneof_fixed32,json=oneofFixed32,oneof"`
}
type Message_OneofSfixed32 struct {
OneofSfixed32 int32 `protobuf:"fixed32,408,opt,name=oneof_sfixed32,json=oneofSfixed32,oneof"`
}
type Message_OneofFloat struct {
OneofFloat float32 `protobuf:"fixed32,409,opt,name=oneof_float,json=oneofFloat,oneof"`
}
type Message_OneofFixed64 struct {
OneofFixed64 uint64 `protobuf:"fixed64,410,opt,name=oneof_fixed64,json=oneofFixed64,oneof"`
}
type Message_OneofSfixed64 struct {
OneofSfixed64 int64 `protobuf:"fixed64,411,opt,name=oneof_sfixed64,json=oneofSfixed64,oneof"`
}
type Message_OneofDouble struct {
OneofDouble float64 `protobuf:"fixed64,412,opt,name=oneof_double,json=oneofDouble,oneof"`
}
type Message_OneofString struct {
OneofString string `protobuf:"bytes,413,opt,name=oneof_string,json=oneofString,oneof"`
}
type Message_OneofBytes struct {
OneofBytes []byte `protobuf:"bytes,414,opt,name=oneof_bytes,json=oneofBytes,proto3,oneof"`
}
type Message_OneofChildEnum struct {
OneofChildEnum Message_ChildEnum `protobuf:"varint,415,opt,name=oneof_child_enum,json=oneofChildEnum,enum=google.golang.org.proto3_20160225.Message_ChildEnum,oneof"`
}
type Message_OneofChildMessage struct {
OneofChildMessage *Message_ChildMessage `protobuf:"bytes,416,opt,name=oneof_child_message,json=oneofChildMessage,oneof"`
}
type Message_OneofSiblingEnum struct {
OneofSiblingEnum SiblingEnum `protobuf:"varint,417,opt,name=oneof_sibling_enum,json=oneofSiblingEnum,enum=google.golang.org.proto3_20160225.SiblingEnum,oneof"`
}
type Message_OneofSiblingMessage struct {
OneofSiblingMessage *SiblingMessage `protobuf:"bytes,418,opt,name=oneof_sibling_message,json=oneofSiblingMessage,oneof"`
}
type Message_OneofString1 struct {
OneofString1 string `protobuf:"bytes,419,opt,name=oneof_string1,json=oneofString1,oneof"`
}
type Message_OneofString2 struct {
OneofString2 string `protobuf:"bytes,420,opt,name=oneof_string2,json=oneofString2,oneof"`
}
type Message_OneofString3 struct {
OneofString3 string `protobuf:"bytes,421,opt,name=oneof_string3,json=oneofString3,oneof"`
}
func (*Message_OneofBool) isMessage_OneofUnion() {}
func (*Message_OneofInt32) isMessage_OneofUnion() {}
func (*Message_OneofSint32) isMessage_OneofUnion() {}
func (*Message_OneofUint32) isMessage_OneofUnion() {}
func (*Message_OneofInt64) isMessage_OneofUnion() {}
func (*Message_OneofSint64) isMessage_OneofUnion() {}
func (*Message_OneofUint64) isMessage_OneofUnion() {}
func (*Message_OneofFixed32) isMessage_OneofUnion() {}
func (*Message_OneofSfixed32) isMessage_OneofUnion() {}
func (*Message_OneofFloat) isMessage_OneofUnion() {}
func (*Message_OneofFixed64) isMessage_OneofUnion() {}
func (*Message_OneofSfixed64) isMessage_OneofUnion() {}
func (*Message_OneofDouble) isMessage_OneofUnion() {}
func (*Message_OneofString) isMessage_OneofUnion() {}
func (*Message_OneofBytes) isMessage_OneofUnion() {}
func (*Message_OneofChildEnum) isMessage_OneofUnion() {}
func (*Message_OneofChildMessage) isMessage_OneofUnion() {}
func (*Message_OneofSiblingEnum) isMessage_OneofUnion() {}
func (*Message_OneofSiblingMessage) isMessage_OneofUnion() {}
func (*Message_OneofString1) isMessage_OneofUnion() {}
func (*Message_OneofString2) isMessage_OneofUnion() {}
func (*Message_OneofString3) isMessage_OneofUnion() {}
func (m *Message) GetOneofUnion() isMessage_OneofUnion {
if m != nil {
return m.OneofUnion
}
return nil
}
func (m *Message) GetOptionalChildMessage() *Message_ChildMessage {
if m != nil {
return m.OptionalChildMessage
}
return nil
}
func (m *Message) GetOptionalSiblingMessage() *SiblingMessage {
if m != nil {
return m.OptionalSiblingMessage
}
return nil
}
func (m *Message) GetRepeatedChildMessage() []*Message_ChildMessage {
if m != nil {
return m.RepeatedChildMessage
}
return nil
}
func (m *Message) GetRepeatedSiblingMessage() []*SiblingMessage {
if m != nil {
return m.RepeatedSiblingMessage
}
return nil
}
func (m *Message) GetMapBoolBool() map[bool]bool {
if m != nil {
return m.MapBoolBool
}
return nil
}
func (m *Message) GetMapBoolInt32() map[bool]int32 {
if m != nil {
return m.MapBoolInt32
}
return nil
}
func (m *Message) GetMapBoolSint32() map[bool]int32 {
if m != nil {
return m.MapBoolSint32
}
return nil
}
func (m *Message) GetMapBoolUint32() map[bool]uint32 {
if m != nil {
return m.MapBoolUint32
}
return nil
}
func (m *Message) GetMapBoolInt64() map[bool]int64 {
if m != nil {
return m.MapBoolInt64
}
return nil
}
func (m *Message) GetMapBoolSint64() map[bool]int64 {
if m != nil {
return m.MapBoolSint64
}
return nil
}
func (m *Message) GetMapBoolUint64() map[bool]uint64 {
if m != nil {
return m.MapBoolUint64
}
return nil
}
func (m *Message) GetMapBoolFixed32() map[bool]uint32 {
if m != nil {
return m.MapBoolFixed32
}
return nil
}
func (m *Message) GetMapBoolSfixed32() map[bool]int32 {
if m != nil {
return m.MapBoolSfixed32
}
return nil
}
func (m *Message) GetMapBoolFloat() map[bool]float32 {
if m != nil {
return m.MapBoolFloat
}
return nil
}
func (m *Message) GetMapBoolFixed64() map[bool]uint64 {
if m != nil {
return m.MapBoolFixed64
}
return nil
}
func (m *Message) GetMapBoolSfixed64() map[bool]int64 {
if m != nil {
return m.MapBoolSfixed64
}
return nil
}
func (m *Message) GetMapBoolDouble() map[bool]float64 {
if m != nil {
return m.MapBoolDouble
}
return nil
}
func (m *Message) GetMapBoolString() map[bool]string {
if m != nil {
return m.MapBoolString
}
return nil
}
func (m *Message) GetMapBoolBytes() map[bool][]byte {
if m != nil {
return m.MapBoolBytes
}
return nil
}
func (m *Message) GetMapBoolChildEnum() map[bool]Message_ChildEnum {
if m != nil {
return m.MapBoolChildEnum
}
return nil
}
func (m *Message) GetMapBoolChildMessage() map[bool]*Message_ChildMessage {
if m != nil {
return m.MapBoolChildMessage
}
return nil
}
func (m *Message) GetMapBoolSiblingEnum() map[bool]SiblingEnum {
if m != nil {
return m.MapBoolSiblingEnum
}
return nil
}
func (m *Message) GetMapBoolSiblingMessage() map[bool]*SiblingMessage {
if m != nil {
return m.MapBoolSiblingMessage
}
return nil
}
func (m *Message) GetMapInt32Bool() map[int32]bool {
if m != nil {
return m.MapInt32Bool
}
return nil
}
func (m *Message) GetMapSint32Bool() map[int32]bool {
if m != nil {
return m.MapSint32Bool
}
return nil
}
func (m *Message) GetMapUint32Bool() map[uint32]bool {
if m != nil {
return m.MapUint32Bool
}
return nil
}
func (m *Message) GetMapInt64Bool() map[int64]bool {
if m != nil {
return m.MapInt64Bool
}
return nil
}
func (m *Message) GetMapSint64Bool() map[int64]bool {
if m != nil {
return m.MapSint64Bool
}
return nil
}
func (m *Message) GetMapUint64Bool() map[uint64]bool {
if m != nil {
return m.MapUint64Bool
}
return nil
}
func (m *Message) GetMapFixed32Bool() map[uint32]bool {
if m != nil {
return m.MapFixed32Bool
}
return nil
}
func (m *Message) GetMapStringBool() map[string]bool {
if m != nil {
return m.MapStringBool
}
return nil
}
func (m *Message) GetOneofBool() bool {
if x, ok := m.GetOneofUnion().(*Message_OneofBool); ok {
return x.OneofBool
}
return false
}
func (m *Message) GetOneofInt32() int32 {
if x, ok := m.GetOneofUnion().(*Message_OneofInt32); ok {
return x.OneofInt32
}
return 0
}
func (m *Message) GetOneofSint32() int32 {
if x, ok := m.GetOneofUnion().(*Message_OneofSint32); ok {
return x.OneofSint32
}
return 0
}
func (m *Message) GetOneofUint32() uint32 {
if x, ok := m.GetOneofUnion().(*Message_OneofUint32); ok {
return x.OneofUint32
}
return 0
}
func (m *Message) GetOneofInt64() int64 {
if x, ok := m.GetOneofUnion().(*Message_OneofInt64); ok {
return x.OneofInt64
}
return 0
}
func (m *Message) GetOneofSint64() int64 {
if x, ok := m.GetOneofUnion().(*Message_OneofSint64); ok {
return x.OneofSint64
}
return 0
}
func (m *Message) GetOneofUint64() uint64 {
if x, ok := m.GetOneofUnion().(*Message_OneofUint64); ok {
return x.OneofUint64
}
return 0
}
func (m *Message) GetOneofFixed32() uint32 {
if x, ok := m.GetOneofUnion().(*Message_OneofFixed32); ok {
return x.OneofFixed32
}
return 0
}
func (m *Message) GetOneofSfixed32() int32 {
if x, ok := m.GetOneofUnion().(*Message_OneofSfixed32); ok {
return x.OneofSfixed32
}
return 0
}
func (m *Message) GetOneofFloat() float32 {
if x, ok := m.GetOneofUnion().(*Message_OneofFloat); ok {
return x.OneofFloat
}
return 0
}
func (m *Message) GetOneofFixed64() uint64 {
if x, ok := m.GetOneofUnion().(*Message_OneofFixed64); ok {
return x.OneofFixed64
}
return 0
}
func (m *Message) GetOneofSfixed64() int64 {
if x, ok := m.GetOneofUnion().(*Message_OneofSfixed64); ok {
return x.OneofSfixed64
}
return 0
}
func (m *Message) GetOneofDouble() float64 {
if x, ok := m.GetOneofUnion().(*Message_OneofDouble); ok {
return x.OneofDouble
}
return 0
}
func (m *Message) GetOneofString() string {
if x, ok := m.GetOneofUnion().(*Message_OneofString); ok {
return x.OneofString
}
return ""
}
func (m *Message) GetOneofBytes() []byte {
if x, ok := m.GetOneofUnion().(*Message_OneofBytes); ok {
return x.OneofBytes
}
return nil
}
func (m *Message) GetOneofChildEnum() Message_ChildEnum {
if x, ok := m.GetOneofUnion().(*Message_OneofChildEnum); ok {
return x.OneofChildEnum
}
return Message_ALPHA
}
func (m *Message) GetOneofChildMessage() *Message_ChildMessage {
if x, ok := m.GetOneofUnion().(*Message_OneofChildMessage); ok {
return x.OneofChildMessage
}
return nil
}
func (m *Message) GetOneofSiblingEnum() SiblingEnum {
if x, ok := m.GetOneofUnion().(*Message_OneofSiblingEnum); ok {
return x.OneofSiblingEnum
}
return SiblingEnum_ALPHA
}
func (m *Message) GetOneofSiblingMessage() *SiblingMessage {
if x, ok := m.GetOneofUnion().(*Message_OneofSiblingMessage); ok {
return x.OneofSiblingMessage
}
return nil
}
func (m *Message) GetOneofString1() string {
if x, ok := m.GetOneofUnion().(*Message_OneofString1); ok {
return x.OneofString1
}
return ""
}
func (m *Message) GetOneofString2() string {
if x, ok := m.GetOneofUnion().(*Message_OneofString2); ok {
return x.OneofString2
}
return ""
}
func (m *Message) GetOneofString3() string {
if x, ok := m.GetOneofUnion().(*Message_OneofString3); ok {
return x.OneofString3
}
return ""
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*Message) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _Message_OneofMarshaler, _Message_OneofUnmarshaler, _Message_OneofSizer, []interface{}{
(*Message_OneofBool)(nil),
(*Message_OneofInt32)(nil),
(*Message_OneofSint32)(nil),
(*Message_OneofUint32)(nil),
(*Message_OneofInt64)(nil),
(*Message_OneofSint64)(nil),
(*Message_OneofUint64)(nil),
(*Message_OneofFixed32)(nil),
(*Message_OneofSfixed32)(nil),
(*Message_OneofFloat)(nil),
(*Message_OneofFixed64)(nil),
(*Message_OneofSfixed64)(nil),
(*Message_OneofDouble)(nil),
(*Message_OneofString)(nil),
(*Message_OneofBytes)(nil),
(*Message_OneofChildEnum)(nil),
(*Message_OneofChildMessage)(nil),
(*Message_OneofSiblingEnum)(nil),
(*Message_OneofSiblingMessage)(nil),
(*Message_OneofString1)(nil),
(*Message_OneofString2)(nil),
(*Message_OneofString3)(nil),
}
}
func _Message_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*Message)
// oneof_union
switch x := m.OneofUnion.(type) {
case *Message_OneofBool:
t := uint64(0)
if x.OneofBool {
t = 1
}
b.EncodeVarint(400<<3 | proto.WireVarint)
b.EncodeVarint(t)
case *Message_OneofInt32:
b.EncodeVarint(401<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofInt32))
case *Message_OneofSint32:
b.EncodeVarint(402<<3 | proto.WireVarint)
b.EncodeZigzag32(uint64(x.OneofSint32))
case *Message_OneofUint32:
b.EncodeVarint(403<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofUint32))
case *Message_OneofInt64:
b.EncodeVarint(404<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofInt64))
case *Message_OneofSint64:
b.EncodeVarint(405<<3 | proto.WireVarint)
b.EncodeZigzag64(uint64(x.OneofSint64))
case *Message_OneofUint64:
b.EncodeVarint(406<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofUint64))
case *Message_OneofFixed32:
b.EncodeVarint(407<<3 | proto.WireFixed32)
b.EncodeFixed32(uint64(x.OneofFixed32))
case *Message_OneofSfixed32:
b.EncodeVarint(408<<3 | proto.WireFixed32)
b.EncodeFixed32(uint64(x.OneofSfixed32))
case *Message_OneofFloat:
b.EncodeVarint(409<<3 | proto.WireFixed32)
b.EncodeFixed32(uint64(math.Float32bits(x.OneofFloat)))
case *Message_OneofFixed64:
b.EncodeVarint(410<<3 | proto.WireFixed64)
b.EncodeFixed64(uint64(x.OneofFixed64))
case *Message_OneofSfixed64:
b.EncodeVarint(411<<3 | proto.WireFixed64)
b.EncodeFixed64(uint64(x.OneofSfixed64))
case *Message_OneofDouble:
b.EncodeVarint(412<<3 | proto.WireFixed64)
b.EncodeFixed64(math.Float64bits(x.OneofDouble))
case *Message_OneofString:
b.EncodeVarint(413<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofString)
case *Message_OneofBytes:
b.EncodeVarint(414<<3 | proto.WireBytes)
b.EncodeRawBytes(x.OneofBytes)
case *Message_OneofChildEnum:
b.EncodeVarint(415<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofChildEnum))
case *Message_OneofChildMessage:
b.EncodeVarint(416<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.OneofChildMessage); err != nil {
return err
}
case *Message_OneofSiblingEnum:
b.EncodeVarint(417<<3 | proto.WireVarint)
b.EncodeVarint(uint64(x.OneofSiblingEnum))
case *Message_OneofSiblingMessage:
b.EncodeVarint(418<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.OneofSiblingMessage); err != nil {
return err
}
case *Message_OneofString1:
b.EncodeVarint(419<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofString1)
case *Message_OneofString2:
b.EncodeVarint(420<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofString2)
case *Message_OneofString3:
b.EncodeVarint(421<<3 | proto.WireBytes)
b.EncodeStringBytes(x.OneofString3)
case nil:
default:
return fmt.Errorf("Message.OneofUnion has unexpected type %T", x)
}
return nil
}
func _Message_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*Message)
switch tag {
case 400: // oneof_union.oneof_bool
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofBool{x != 0}
return true, err
case 401: // oneof_union.oneof_int32
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofInt32{int32(x)}
return true, err
case 402: // oneof_union.oneof_sint32
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeZigzag32()
m.OneofUnion = &Message_OneofSint32{int32(x)}
return true, err
case 403: // oneof_union.oneof_uint32
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofUint32{uint32(x)}
return true, err
case 404: // oneof_union.oneof_int64
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofInt64{int64(x)}
return true, err
case 405: // oneof_union.oneof_sint64
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeZigzag64()
m.OneofUnion = &Message_OneofSint64{int64(x)}
return true, err
case 406: // oneof_union.oneof_uint64
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofUint64{x}
return true, err
case 407: // oneof_union.oneof_fixed32
if wire != proto.WireFixed32 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed32()
m.OneofUnion = &Message_OneofFixed32{uint32(x)}
return true, err
case 408: // oneof_union.oneof_sfixed32
if wire != proto.WireFixed32 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed32()
m.OneofUnion = &Message_OneofSfixed32{int32(x)}
return true, err
case 409: // oneof_union.oneof_float
if wire != proto.WireFixed32 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed32()
m.OneofUnion = &Message_OneofFloat{math.Float32frombits(uint32(x))}
return true, err
case 410: // oneof_union.oneof_fixed64
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.OneofUnion = &Message_OneofFixed64{x}
return true, err
case 411: // oneof_union.oneof_sfixed64
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.OneofUnion = &Message_OneofSfixed64{int64(x)}
return true, err
case 412: // oneof_union.oneof_double
if wire != proto.WireFixed64 {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeFixed64()
m.OneofUnion = &Message_OneofDouble{math.Float64frombits(x)}
return true, err
case 413: // oneof_union.oneof_string
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofUnion = &Message_OneofString{x}
return true, err
case 414: // oneof_union.oneof_bytes
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeRawBytes(true)
m.OneofUnion = &Message_OneofBytes{x}
return true, err
case 415: // oneof_union.oneof_child_enum
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofChildEnum{Message_ChildEnum(x)}
return true, err
case 416: // oneof_union.oneof_child_message
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Message_ChildMessage)
err := b.DecodeMessage(msg)
m.OneofUnion = &Message_OneofChildMessage{msg}
return true, err
case 417: // oneof_union.oneof_sibling_enum
if wire != proto.WireVarint {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeVarint()
m.OneofUnion = &Message_OneofSiblingEnum{SiblingEnum(x)}
return true, err
case 418: // oneof_union.oneof_sibling_message
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(SiblingMessage)
err := b.DecodeMessage(msg)
m.OneofUnion = &Message_OneofSiblingMessage{msg}
return true, err
case 419: // oneof_union.oneof_string1
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofUnion = &Message_OneofString1{x}
return true, err
case 420: // oneof_union.oneof_string2
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofUnion = &Message_OneofString2{x}
return true, err
case 421: // oneof_union.oneof_string3
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
x, err := b.DecodeStringBytes()
m.OneofUnion = &Message_OneofString3{x}
return true, err
default:
return false, nil
}
}
func _Message_OneofSizer(msg proto.Message) (n int) {
m := msg.(*Message)
// oneof_union
switch x := m.OneofUnion.(type) {
case *Message_OneofBool:
n += proto.SizeVarint(400<<3 | proto.WireVarint)
n += 1
case *Message_OneofInt32:
n += proto.SizeVarint(401<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.OneofInt32))
case *Message_OneofSint32:
n += proto.SizeVarint(402<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64((uint32(x.OneofSint32) << 1) ^ uint32((int32(x.OneofSint32) >> 31))))
case *Message_OneofUint32:
n += proto.SizeVarint(403<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.OneofUint32))
case *Message_OneofInt64:
n += proto.SizeVarint(404<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.OneofInt64))
case *Message_OneofSint64:
n += proto.SizeVarint(405<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(uint64(x.OneofSint64<<1) ^ uint64((int64(x.OneofSint64) >> 63))))
case *Message_OneofUint64:
n += proto.SizeVarint(406<<3 | proto.WireVarint)
n += proto.SizeVarint(uint64(x.OneofUint64))
case *Message_OneofFixed32:
n += proto.SizeVarint(407<<3 | proto.WireFixed32)
n += 4
case *Message_OneofSfixed32:
n += proto.SizeVarint(408<<3 | proto.WireFixed32)
n += 4
case *Message_OneofFloat:
n += proto.SizeVarint(409<<3 | proto.WireFixed32)
n += 4
case *Message_OneofFixed64:
n += proto.SizeVarint(410<<3 | proto.WireFixed64)
n += 8
case *Message_OneofSfixed64:
n += proto.SizeVarint(411<<3 | proto.WireFixed64)
n += 8
case *Message_OneofDouble:
n += proto.SizeVarint(412<<3 | proto.WireFixed64)
n += 8
case *Message_OneofString:
n += proto.SizeVarint(413<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.OneofString)))
n += len(x.OneofString)
case *Message_OneofBytes:
n += proto.SizeVarint(414<<3 | proto.WireBytes)
n += proto.SizeVarint(uint64(len(x.OneofBytes)))