-
Notifications
You must be signed in to change notification settings - Fork 1
/
types_test.go
593 lines (529 loc) · 21.2 KB
/
types_test.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: types_test.proto
package protoid
import proto "github.com/golang/protobuf/proto"
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.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type TestEnum int32
const (
TestEnum_VAL_0 TestEnum = 0
TestEnum_VAL_1 TestEnum = 1
)
var TestEnum_name = map[int32]string{
0: "VAL_0",
1: "VAL_1",
}
var TestEnum_value = map[string]int32{
"VAL_0": 0,
"VAL_1": 1,
}
func (x TestEnum) String() string {
return proto.EnumName(TestEnum_name, int32(x))
}
func (TestEnum) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{0}
}
type SingleString struct {
TheString string `protobuf:"bytes,1,opt,name=the_string,json=theString" json:"the_string,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleString) Reset() { *m = SingleString{} }
func (m *SingleString) String() string { return proto.CompactTextString(m) }
func (*SingleString) ProtoMessage() {}
func (*SingleString) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{0}
}
func (m *SingleString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleString.Unmarshal(m, b)
}
func (m *SingleString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleString.Marshal(b, m, deterministic)
}
func (dst *SingleString) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleString.Merge(dst, src)
}
func (m *SingleString) XXX_Size() int {
return xxx_messageInfo_SingleString.Size(m)
}
func (m *SingleString) XXX_DiscardUnknown() {
xxx_messageInfo_SingleString.DiscardUnknown(m)
}
var xxx_messageInfo_SingleString proto.InternalMessageInfo
func (m *SingleString) GetTheString() string {
if m != nil {
return m.TheString
}
return ""
}
type TwoStrings struct {
String_1 string `protobuf:"bytes,1,opt,name=string_1,json=string1" json:"string_1,omitempty"`
String_2 string `protobuf:"bytes,2,opt,name=string_2,json=string2" json:"string_2,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TwoStrings) Reset() { *m = TwoStrings{} }
func (m *TwoStrings) String() string { return proto.CompactTextString(m) }
func (*TwoStrings) ProtoMessage() {}
func (*TwoStrings) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{1}
}
func (m *TwoStrings) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TwoStrings.Unmarshal(m, b)
}
func (m *TwoStrings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TwoStrings.Marshal(b, m, deterministic)
}
func (dst *TwoStrings) XXX_Merge(src proto.Message) {
xxx_messageInfo_TwoStrings.Merge(dst, src)
}
func (m *TwoStrings) XXX_Size() int {
return xxx_messageInfo_TwoStrings.Size(m)
}
func (m *TwoStrings) XXX_DiscardUnknown() {
xxx_messageInfo_TwoStrings.DiscardUnknown(m)
}
var xxx_messageInfo_TwoStrings proto.InternalMessageInfo
func (m *TwoStrings) GetString_1() string {
if m != nil {
return m.String_1
}
return ""
}
func (m *TwoStrings) GetString_2() string {
if m != nil {
return m.String_2
}
return ""
}
type SingleInt32 struct {
TheInt32 int32 `protobuf:"varint,1,opt,name=the_int32,json=theInt32" json:"the_int32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleInt32) Reset() { *m = SingleInt32{} }
func (m *SingleInt32) String() string { return proto.CompactTextString(m) }
func (*SingleInt32) ProtoMessage() {}
func (*SingleInt32) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{2}
}
func (m *SingleInt32) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleInt32.Unmarshal(m, b)
}
func (m *SingleInt32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleInt32.Marshal(b, m, deterministic)
}
func (dst *SingleInt32) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleInt32.Merge(dst, src)
}
func (m *SingleInt32) XXX_Size() int {
return xxx_messageInfo_SingleInt32.Size(m)
}
func (m *SingleInt32) XXX_DiscardUnknown() {
xxx_messageInfo_SingleInt32.DiscardUnknown(m)
}
var xxx_messageInfo_SingleInt32 proto.InternalMessageInfo
func (m *SingleInt32) GetTheInt32() int32 {
if m != nil {
return m.TheInt32
}
return 0
}
type SingleBool struct {
TheBool bool `protobuf:"varint,1,opt,name=the_bool,json=theBool" json:"the_bool,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleBool) Reset() { *m = SingleBool{} }
func (m *SingleBool) String() string { return proto.CompactTextString(m) }
func (*SingleBool) ProtoMessage() {}
func (*SingleBool) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{3}
}
func (m *SingleBool) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleBool.Unmarshal(m, b)
}
func (m *SingleBool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleBool.Marshal(b, m, deterministic)
}
func (dst *SingleBool) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleBool.Merge(dst, src)
}
func (m *SingleBool) XXX_Size() int {
return xxx_messageInfo_SingleBool.Size(m)
}
func (m *SingleBool) XXX_DiscardUnknown() {
xxx_messageInfo_SingleBool.DiscardUnknown(m)
}
var xxx_messageInfo_SingleBool proto.InternalMessageInfo
func (m *SingleBool) GetTheBool() bool {
if m != nil {
return m.TheBool
}
return false
}
type SingleFixed32 struct {
TheFixed32 uint32 `protobuf:"fixed32,1,opt,name=the_fixed32,json=theFixed32" json:"the_fixed32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleFixed32) Reset() { *m = SingleFixed32{} }
func (m *SingleFixed32) String() string { return proto.CompactTextString(m) }
func (*SingleFixed32) ProtoMessage() {}
func (*SingleFixed32) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{4}
}
func (m *SingleFixed32) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleFixed32.Unmarshal(m, b)
}
func (m *SingleFixed32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleFixed32.Marshal(b, m, deterministic)
}
func (dst *SingleFixed32) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleFixed32.Merge(dst, src)
}
func (m *SingleFixed32) XXX_Size() int {
return xxx_messageInfo_SingleFixed32.Size(m)
}
func (m *SingleFixed32) XXX_DiscardUnknown() {
xxx_messageInfo_SingleFixed32.DiscardUnknown(m)
}
var xxx_messageInfo_SingleFixed32 proto.InternalMessageInfo
func (m *SingleFixed32) GetTheFixed32() uint32 {
if m != nil {
return m.TheFixed32
}
return 0
}
type SingleFixed64 struct {
TheFixed64 uint64 `protobuf:"fixed64,1,opt,name=the_fixed64,json=theFixed64" json:"the_fixed64,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleFixed64) Reset() { *m = SingleFixed64{} }
func (m *SingleFixed64) String() string { return proto.CompactTextString(m) }
func (*SingleFixed64) ProtoMessage() {}
func (*SingleFixed64) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{5}
}
func (m *SingleFixed64) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleFixed64.Unmarshal(m, b)
}
func (m *SingleFixed64) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleFixed64.Marshal(b, m, deterministic)
}
func (dst *SingleFixed64) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleFixed64.Merge(dst, src)
}
func (m *SingleFixed64) XXX_Size() int {
return xxx_messageInfo_SingleFixed64.Size(m)
}
func (m *SingleFixed64) XXX_DiscardUnknown() {
xxx_messageInfo_SingleFixed64.DiscardUnknown(m)
}
var xxx_messageInfo_SingleFixed64 proto.InternalMessageInfo
func (m *SingleFixed64) GetTheFixed64() uint64 {
if m != nil {
return m.TheFixed64
}
return 0
}
type RepeatedString struct {
MyString []string `protobuf:"bytes,1,rep,name=my_string,json=myString" json:"my_string,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepeatedString) Reset() { *m = RepeatedString{} }
func (m *RepeatedString) String() string { return proto.CompactTextString(m) }
func (*RepeatedString) ProtoMessage() {}
func (*RepeatedString) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{6}
}
func (m *RepeatedString) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepeatedString.Unmarshal(m, b)
}
func (m *RepeatedString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepeatedString.Marshal(b, m, deterministic)
}
func (dst *RepeatedString) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepeatedString.Merge(dst, src)
}
func (m *RepeatedString) XXX_Size() int {
return xxx_messageInfo_RepeatedString.Size(m)
}
func (m *RepeatedString) XXX_DiscardUnknown() {
xxx_messageInfo_RepeatedString.DiscardUnknown(m)
}
var xxx_messageInfo_RepeatedString proto.InternalMessageInfo
func (m *RepeatedString) GetMyString() []string {
if m != nil {
return m.MyString
}
return nil
}
type RepeatedInt32 struct {
MyInt32S []int32 `protobuf:"varint,1,rep,packed,name=my_int32s,json=myInt32s" json:"my_int32s,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepeatedInt32) Reset() { *m = RepeatedInt32{} }
func (m *RepeatedInt32) String() string { return proto.CompactTextString(m) }
func (*RepeatedInt32) ProtoMessage() {}
func (*RepeatedInt32) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{7}
}
func (m *RepeatedInt32) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepeatedInt32.Unmarshal(m, b)
}
func (m *RepeatedInt32) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepeatedInt32.Marshal(b, m, deterministic)
}
func (dst *RepeatedInt32) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepeatedInt32.Merge(dst, src)
}
func (m *RepeatedInt32) XXX_Size() int {
return xxx_messageInfo_RepeatedInt32.Size(m)
}
func (m *RepeatedInt32) XXX_DiscardUnknown() {
xxx_messageInfo_RepeatedInt32.DiscardUnknown(m)
}
var xxx_messageInfo_RepeatedInt32 proto.InternalMessageInfo
func (m *RepeatedInt32) GetMyInt32S() []int32 {
if m != nil {
return m.MyInt32S
}
return nil
}
type SingleEnum struct {
TheEnum TestEnum `protobuf:"varint,1,opt,name=the_enum,json=theEnum,enum=protoid.TestEnum" json:"the_enum,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleEnum) Reset() { *m = SingleEnum{} }
func (m *SingleEnum) String() string { return proto.CompactTextString(m) }
func (*SingleEnum) ProtoMessage() {}
func (*SingleEnum) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{8}
}
func (m *SingleEnum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleEnum.Unmarshal(m, b)
}
func (m *SingleEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleEnum.Marshal(b, m, deterministic)
}
func (dst *SingleEnum) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleEnum.Merge(dst, src)
}
func (m *SingleEnum) XXX_Size() int {
return xxx_messageInfo_SingleEnum.Size(m)
}
func (m *SingleEnum) XXX_DiscardUnknown() {
xxx_messageInfo_SingleEnum.DiscardUnknown(m)
}
var xxx_messageInfo_SingleEnum proto.InternalMessageInfo
func (m *SingleEnum) GetTheEnum() TestEnum {
if m != nil {
return m.TheEnum
}
return TestEnum_VAL_0
}
type RepeatedEnum struct {
TheEnums TestEnum `protobuf:"varint,1,opt,name=the_enums,json=theEnums,enum=protoid.TestEnum" json:"the_enums,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepeatedEnum) Reset() { *m = RepeatedEnum{} }
func (m *RepeatedEnum) String() string { return proto.CompactTextString(m) }
func (*RepeatedEnum) ProtoMessage() {}
func (*RepeatedEnum) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{9}
}
func (m *RepeatedEnum) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepeatedEnum.Unmarshal(m, b)
}
func (m *RepeatedEnum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepeatedEnum.Marshal(b, m, deterministic)
}
func (dst *RepeatedEnum) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepeatedEnum.Merge(dst, src)
}
func (m *RepeatedEnum) XXX_Size() int {
return xxx_messageInfo_RepeatedEnum.Size(m)
}
func (m *RepeatedEnum) XXX_DiscardUnknown() {
xxx_messageInfo_RepeatedEnum.DiscardUnknown(m)
}
var xxx_messageInfo_RepeatedEnum proto.InternalMessageInfo
func (m *RepeatedEnum) GetTheEnums() TestEnum {
if m != nil {
return m.TheEnums
}
return TestEnum_VAL_0
}
type SingleEmbedded struct {
MySingleString *SingleString `protobuf:"bytes,1,opt,name=my_single_string,json=mySingleString" json:"my_single_string,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleEmbedded) Reset() { *m = SingleEmbedded{} }
func (m *SingleEmbedded) String() string { return proto.CompactTextString(m) }
func (*SingleEmbedded) ProtoMessage() {}
func (*SingleEmbedded) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{10}
}
func (m *SingleEmbedded) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleEmbedded.Unmarshal(m, b)
}
func (m *SingleEmbedded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleEmbedded.Marshal(b, m, deterministic)
}
func (dst *SingleEmbedded) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleEmbedded.Merge(dst, src)
}
func (m *SingleEmbedded) XXX_Size() int {
return xxx_messageInfo_SingleEmbedded.Size(m)
}
func (m *SingleEmbedded) XXX_DiscardUnknown() {
xxx_messageInfo_SingleEmbedded.DiscardUnknown(m)
}
var xxx_messageInfo_SingleEmbedded proto.InternalMessageInfo
func (m *SingleEmbedded) GetMySingleString() *SingleString {
if m != nil {
return m.MySingleString
}
return nil
}
type RepeatedEmbedded struct {
MySingleStrings []*SingleString `protobuf:"bytes,1,rep,name=my_single_strings,json=mySingleStrings" json:"my_single_strings,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RepeatedEmbedded) Reset() { *m = RepeatedEmbedded{} }
func (m *RepeatedEmbedded) String() string { return proto.CompactTextString(m) }
func (*RepeatedEmbedded) ProtoMessage() {}
func (*RepeatedEmbedded) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{11}
}
func (m *RepeatedEmbedded) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RepeatedEmbedded.Unmarshal(m, b)
}
func (m *RepeatedEmbedded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RepeatedEmbedded.Marshal(b, m, deterministic)
}
func (dst *RepeatedEmbedded) XXX_Merge(src proto.Message) {
xxx_messageInfo_RepeatedEmbedded.Merge(dst, src)
}
func (m *RepeatedEmbedded) XXX_Size() int {
return xxx_messageInfo_RepeatedEmbedded.Size(m)
}
func (m *RepeatedEmbedded) XXX_DiscardUnknown() {
xxx_messageInfo_RepeatedEmbedded.DiscardUnknown(m)
}
var xxx_messageInfo_RepeatedEmbedded proto.InternalMessageInfo
func (m *RepeatedEmbedded) GetMySingleStrings() []*SingleString {
if m != nil {
return m.MySingleStrings
}
return nil
}
type SingleBytes struct {
TheBytes []byte `protobuf:"bytes,1,opt,name=the_bytes,json=theBytes,proto3" json:"the_bytes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SingleBytes) Reset() { *m = SingleBytes{} }
func (m *SingleBytes) String() string { return proto.CompactTextString(m) }
func (*SingleBytes) ProtoMessage() {}
func (*SingleBytes) Descriptor() ([]byte, []int) {
return fileDescriptor_types_test_90bf5b8a360ba076, []int{12}
}
func (m *SingleBytes) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SingleBytes.Unmarshal(m, b)
}
func (m *SingleBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SingleBytes.Marshal(b, m, deterministic)
}
func (dst *SingleBytes) XXX_Merge(src proto.Message) {
xxx_messageInfo_SingleBytes.Merge(dst, src)
}
func (m *SingleBytes) XXX_Size() int {
return xxx_messageInfo_SingleBytes.Size(m)
}
func (m *SingleBytes) XXX_DiscardUnknown() {
xxx_messageInfo_SingleBytes.DiscardUnknown(m)
}
var xxx_messageInfo_SingleBytes proto.InternalMessageInfo
func (m *SingleBytes) GetTheBytes() []byte {
if m != nil {
return m.TheBytes
}
return nil
}
func init() {
proto.RegisterType((*SingleString)(nil), "protoid.SingleString")
proto.RegisterType((*TwoStrings)(nil), "protoid.TwoStrings")
proto.RegisterType((*SingleInt32)(nil), "protoid.SingleInt32")
proto.RegisterType((*SingleBool)(nil), "protoid.SingleBool")
proto.RegisterType((*SingleFixed32)(nil), "protoid.SingleFixed32")
proto.RegisterType((*SingleFixed64)(nil), "protoid.SingleFixed64")
proto.RegisterType((*RepeatedString)(nil), "protoid.RepeatedString")
proto.RegisterType((*RepeatedInt32)(nil), "protoid.RepeatedInt32")
proto.RegisterType((*SingleEnum)(nil), "protoid.SingleEnum")
proto.RegisterType((*RepeatedEnum)(nil), "protoid.RepeatedEnum")
proto.RegisterType((*SingleEmbedded)(nil), "protoid.SingleEmbedded")
proto.RegisterType((*RepeatedEmbedded)(nil), "protoid.RepeatedEmbedded")
proto.RegisterType((*SingleBytes)(nil), "protoid.SingleBytes")
proto.RegisterEnum("protoid.TestEnum", TestEnum_name, TestEnum_value)
}
func init() { proto.RegisterFile("types_test.proto", fileDescriptor_types_test_90bf5b8a360ba076) }
var fileDescriptor_types_test_90bf5b8a360ba076 = []byte{
// 403 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xcf, 0x8b, 0xda, 0x40,
0x14, 0xae, 0x2d, 0x9a, 0xe4, 0xa9, 0x69, 0x1c, 0x28, 0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