-
Notifications
You must be signed in to change notification settings - Fork 5
/
test.pb.go
615 lines (565 loc) · 28.1 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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: test.proto
package test
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
_ "google.golang.org/protobuf/types/known/timestamppb"
math "math"
time "time"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
var _ = time.Kitchen
// 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Mode int32
const (
Mode_UNKNOWN Mode = 0
Mode_ON Mode = 1
Mode_OFF Mode = 2
)
var Mode_name = map[int32]string{
0: "UNKNOWN",
1: "ON",
2: "OFF",
}
var Mode_value = map[string]int32{
"UNKNOWN": 0,
"ON": 1,
"OFF": 2,
}
func (x Mode) String() string {
return proto.EnumName(Mode_name, int32(x))
}
func (Mode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{0}
}
// Test message definition.
type Test struct {
// Str string field
Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"str1"`
// Int32 int32 field
Int32 int32 `protobuf:"varint,2,opt,name=Int32,proto3" json:"Int32,omitempty"`
// Int64 int64 field
Int64 int64 `protobuf:"varint,3,opt,name=Int64,proto3" json:"Int64,omitempty"`
// Float float field
Float float32 `protobuf:"fixed32,4,opt,name=Float,proto3" json:"Float,omitempty"`
// Double double field
Double float64 `protobuf:"fixed64,5,opt,name=Double,proto3" json:"Double,omitempty"`
// Bool bool field
Bool bool `protobuf:"varint,6,opt,name=Bool,proto3" json:"Bool,omitempty"`
// bytes byte[] field
Bytes []byte `protobuf:"bytes,7,opt,name=bytes,proto3" json:"bytes,omitempty"`
// Timestamp time.Time field
Timestamp time.Time `protobuf:"bytes,8,opt,name=Timestamp,proto3,stdtime" json:"Timestamp"`
// Timestamp time.Time field
TimestampMissing time.Time `protobuf:"bytes,9,opt,name=TimestampMissing,proto3,stdtime" json:"TimestampMissing"`
// TimestampNullable *time.Time field
TimestampNullable *time.Time `protobuf:"bytes,10,opt,name=TimestampNullable,proto3,stdtime" json:"TimestampNullable,omitempty"`
// TimestampNullableWithNilValue *time.Time field
TimestampNullableWithNilValue *time.Time `protobuf:"bytes,11,opt,name=TimestampNullableWithNilValue,proto3,stdtime" json:"TimestampNullableWithNilValue,omitempty"`
// DurationStandard time.Duration field (standard)
DurationStandard time.Duration `protobuf:"varint,12,opt,name=DurationStandard,proto3,stdduration" json:"DurationStandard,omitempty"`
// DurationStandardMissing time.Duration field (standard) missing in input data
DurationStandardMissing time.Duration `protobuf:"varint,13,opt,name=DurationStandardMissing,proto3,stdduration" json:"DurationStandardMissing,omitempty"`
// DurationCustom time.Duration field (with casttype)
DurationCustom Duration `protobuf:"varint,14,opt,name=DurationCustom,proto3,casttype=Duration" json:"DurationCustom,omitempty"`
// DurationCustomMissing time.Duration field (with casttype) missing in input data
DurationCustomMissing Duration `protobuf:"varint,15,opt,name=DurationCustomMissing,proto3,casttype=Duration" json:"DurationCustomMissing,omitempty"`
// StringList []string field
StringList []string `protobuf:"bytes,16,rep,name=StringList,proto3" json:"StringList,omitempty"`
// StringListEmpty []string field
StringListEmpty []string `protobuf:"bytes,17,rep,name=StringListEmpty,proto3" json:"StringListEmpty,omitempty"`
// BoolCustomList []bool field
BoolCustomList []BoolCustom `protobuf:"varint,18,rep,packed,name=BoolCustomList,proto3,customtype=BoolCustom" json:"BoolCustomList,omitempty"`
// BytesList [][]byte field
BytesList [][]byte `protobuf:"bytes,19,rep,name=BytesList,proto3" json:"BytesList,omitempty"`
// TimestampList []time.Time field
TimestampList []*time.Time `protobuf:"bytes,20,rep,name=TimestampList,proto3,stdtime" json:"TimestampList,omitempty"`
// DurationCustomList []time.Duration field
DurationCustomList []Duration `protobuf:"varint,21,rep,packed,name=DurationCustomList,proto3,casttype=Duration" json:"DurationCustomList,omitempty"`
// Nested nested message field, non-nullable
Nested Nested `protobuf:"bytes,22,opt,name=Nested,proto3" json:"Nested"`
// NestedNullable nested message field, nullable
NestedNullable *Nested `protobuf:"bytes,23,opt,name=NestedNullable,proto3" json:"NestedNullable,omitempty"`
// NestedNullableWithNilValue nested message field, with no value set
NestedNullableWithNilValue *Nested `protobuf:"bytes,24,opt,name=NestedNullableWithNilValue,proto3" json:"NestedNullableWithNilValue,omitempty"`
// NestedList nested message array
NestedList []Nested `protobuf:"bytes,25,rep,name=NestedList,proto3" json:"NestedList"`
// NestedListNullable nested message array
NestedListNullable []*Nested `protobuf:"bytes,26,rep,name=NestedListNullable,proto3" json:"NestedListNullable,omitempty"`
// Map normal map
Map map[string]string `protobuf:"bytes,27,rep,name=Map,proto3" json:"Map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// MapObject is the object map
MapObject map[string]Nested `protobuf:"bytes,29,rep,name=MapObject,proto3" json:"MapObject" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// MapObjectNullable is the object map with nullable values
MapObjectNullable map[string]*Nested `protobuf:"bytes,30,rep,name=MapObjectNullable,proto3" json:"MapObjectNullable,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Mode is the enum value
Mode Mode `protobuf:"varint,31,opt,name=Mode,proto3,enum=test.Mode" json:"Mode,omitempty"`
// Excluded is the excluded field
Excluded bool `protobuf:"varint,32,opt,name=Excluded,proto3" json:"Excluded,omitempty"`
// Types that are valid to be assigned to OneOf:
//
// *Test_Branch1
// *Test_Branch2
// *Test_Branch3
OneOf isTest_OneOf `protobuf_oneof:"OneOf"`
// Types that are valid to be assigned to OneOfWithEmptyMessage:
//
// *Test_EmptyMessageBranch
// *Test_StringBranch
OneOfWithEmptyMessage isTest_OneOfWithEmptyMessage `protobuf_oneof:"OneOfWithEmptyMessage"`
// EmbeddedField encapsulates fields which can be shared among various types
EmbeddedField `protobuf:"bytes,38,opt,name=EmbeddedField,proto3,embedded=EmbeddedField" json:""`
*MaxAgeDuration `protobuf:"bytes,39,opt,name=EmbedNullable,proto3,embedded=EmbedNullable" json:""`
// BoolCustomOverride []bool field, gogoproto.customtype is not set but there
// is custom_type override in the configuration
StringOverride string `protobuf:"bytes,40,opt,name=StringOverride,proto3" json:"StringOverride,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Test) Reset() { *m = Test{} }
func (m *Test) String() string { return proto.CompactTextString(m) }
func (*Test) ProtoMessage() {}
func (*Test) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{0}
}
func (m *Test) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Test.Unmarshal(m, b)
}
func (m *Test) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Test.Marshal(b, m, deterministic)
}
func (m *Test) XXX_Merge(src proto.Message) {
xxx_messageInfo_Test.Merge(m, src)
}
func (m *Test) XXX_Size() int {
return xxx_messageInfo_Test.Size(m)
}
func (m *Test) XXX_DiscardUnknown() {
xxx_messageInfo_Test.DiscardUnknown(m)
}
var xxx_messageInfo_Test proto.InternalMessageInfo
type isTest_OneOf interface {
isTest_OneOf()
}
type isTest_OneOfWithEmptyMessage interface {
isTest_OneOfWithEmptyMessage()
}
type Test_Branch1 struct {
Branch1 *Branch1 `protobuf:"bytes,33,opt,name=Branch1,proto3,oneof" json:"Branch1,omitempty"`
}
type Test_Branch2 struct {
Branch2 *Branch2 `protobuf:"bytes,34,opt,name=Branch2,proto3,oneof" json:"Branch2,omitempty"`
}
type Test_Branch3 struct {
Branch3 string `protobuf:"bytes,35,opt,name=Branch3,proto3,oneof" json:"Branch3,omitempty"`
}
type Test_EmptyMessageBranch struct {
EmptyMessageBranch *EmptyMessageBranch `protobuf:"bytes,36,opt,name=EmptyMessageBranch,proto3,oneof" json:"EmptyMessageBranch,omitempty"`
}
type Test_StringBranch struct {
StringBranch string `protobuf:"bytes,37,opt,name=StringBranch,proto3,oneof" json:"StringBranch,omitempty"`
}
func (*Test_Branch1) isTest_OneOf() {}
func (*Test_Branch2) isTest_OneOf() {}
func (*Test_Branch3) isTest_OneOf() {}
func (*Test_EmptyMessageBranch) isTest_OneOfWithEmptyMessage() {}
func (*Test_StringBranch) isTest_OneOfWithEmptyMessage() {}
func (m *Test) GetOneOf() isTest_OneOf {
if m != nil {
return m.OneOf
}
return nil
}
func (m *Test) GetOneOfWithEmptyMessage() isTest_OneOfWithEmptyMessage {
if m != nil {
return m.OneOfWithEmptyMessage
}
return nil
}
func (m *Test) GetBranch1() *Branch1 {
if x, ok := m.GetOneOf().(*Test_Branch1); ok {
return x.Branch1
}
return nil
}
func (m *Test) GetBranch2() *Branch2 {
if x, ok := m.GetOneOf().(*Test_Branch2); ok {
return x.Branch2
}
return nil
}
func (m *Test) GetBranch3() string {
if x, ok := m.GetOneOf().(*Test_Branch3); ok {
return x.Branch3
}
return ""
}
func (m *Test) GetEmptyMessageBranch() *EmptyMessageBranch {
if x, ok := m.GetOneOfWithEmptyMessage().(*Test_EmptyMessageBranch); ok {
return x.EmptyMessageBranch
}
return nil
}
func (m *Test) GetStringBranch() string {
if x, ok := m.GetOneOfWithEmptyMessage().(*Test_StringBranch); ok {
return x.StringBranch
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*Test) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*Test_Branch1)(nil),
(*Test_Branch2)(nil),
(*Test_Branch3)(nil),
(*Test_EmptyMessageBranch)(nil),
(*Test_StringBranch)(nil),
}
}
type MaxAgeDuration struct {
Value Duration `protobuf:"varint,1,opt,name=Value,proto3,casttype=Duration" json:"max_age"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MaxAgeDuration) Reset() { *m = MaxAgeDuration{} }
func (m *MaxAgeDuration) String() string { return proto.CompactTextString(m) }
func (*MaxAgeDuration) ProtoMessage() {}
func (*MaxAgeDuration) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{1}
}
func (m *MaxAgeDuration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MaxAgeDuration.Unmarshal(m, b)
}
func (m *MaxAgeDuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MaxAgeDuration.Marshal(b, m, deterministic)
}
func (m *MaxAgeDuration) XXX_Merge(src proto.Message) {
xxx_messageInfo_MaxAgeDuration.Merge(m, src)
}
func (m *MaxAgeDuration) XXX_Size() int {
return xxx_messageInfo_MaxAgeDuration.Size(m)
}
func (m *MaxAgeDuration) XXX_DiscardUnknown() {
xxx_messageInfo_MaxAgeDuration.DiscardUnknown(m)
}
var xxx_messageInfo_MaxAgeDuration proto.InternalMessageInfo
// EmptyMessageBranch message for empty oneof branch
type EmptyMessageBranch struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmptyMessageBranch) Reset() { *m = EmptyMessageBranch{} }
func (m *EmptyMessageBranch) String() string { return proto.CompactTextString(m) }
func (*EmptyMessageBranch) ProtoMessage() {}
func (*EmptyMessageBranch) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{2}
}
func (m *EmptyMessageBranch) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmptyMessageBranch.Unmarshal(m, b)
}
func (m *EmptyMessageBranch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmptyMessageBranch.Marshal(b, m, deterministic)
}
func (m *EmptyMessageBranch) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmptyMessageBranch.Merge(m, src)
}
func (m *EmptyMessageBranch) XXX_Size() int {
return xxx_messageInfo_EmptyMessageBranch.Size(m)
}
func (m *EmptyMessageBranch) XXX_DiscardUnknown() {
xxx_messageInfo_EmptyMessageBranch.DiscardUnknown(m)
}
var xxx_messageInfo_EmptyMessageBranch proto.InternalMessageInfo
// Nested message definition
type Nested struct {
// Str string field
Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"`
// Nested repeated nested messages
NestedList []*OtherNested `protobuf:"bytes,2,rep,name=NestedList,proto3" json:"NestedList,omitempty"`
// Nested map repeated nested messages
Map map[string]string `protobuf:"bytes,3,rep,name=Map,proto3" json:"Map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// MapObjectNested nested object map
MapObjectNested map[string]OtherNested `protobuf:"bytes,4,rep,name=MapObjectNested,proto3" json:"MapObjectNested" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Nested) Reset() { *m = Nested{} }
func (m *Nested) String() string { return proto.CompactTextString(m) }
func (*Nested) ProtoMessage() {}
func (*Nested) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{3}
}
func (m *Nested) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Nested.Unmarshal(m, b)
}
func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
}
func (m *Nested) XXX_Merge(src proto.Message) {
xxx_messageInfo_Nested.Merge(m, src)
}
func (m *Nested) XXX_Size() int {
return xxx_messageInfo_Nested.Size(m)
}
func (m *Nested) XXX_DiscardUnknown() {
xxx_messageInfo_Nested.DiscardUnknown(m)
}
var xxx_messageInfo_Nested proto.InternalMessageInfo
// OtherNested message nested into nested message
type OtherNested struct {
// Str string field
Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *OtherNested) Reset() { *m = OtherNested{} }
func (m *OtherNested) String() string { return proto.CompactTextString(m) }
func (*OtherNested) ProtoMessage() {}
func (*OtherNested) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{4}
}
func (m *OtherNested) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_OtherNested.Unmarshal(m, b)
}
func (m *OtherNested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_OtherNested.Marshal(b, m, deterministic)
}
func (m *OtherNested) XXX_Merge(src proto.Message) {
xxx_messageInfo_OtherNested.Merge(m, src)
}
func (m *OtherNested) XXX_Size() int {
return xxx_messageInfo_OtherNested.Size(m)
}
func (m *OtherNested) XXX_DiscardUnknown() {
xxx_messageInfo_OtherNested.DiscardUnknown(m)
}
var xxx_messageInfo_OtherNested proto.InternalMessageInfo
// Branch1 message is OneOf branch 1
type Branch1 struct {
// Str string field
Str string `protobuf:"bytes,1,opt,name=Str,proto3" json:"Str,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Branch1) Reset() { *m = Branch1{} }
func (m *Branch1) String() string { return proto.CompactTextString(m) }
func (*Branch1) ProtoMessage() {}
func (*Branch1) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{5}
}
func (m *Branch1) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Branch1.Unmarshal(m, b)
}
func (m *Branch1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Branch1.Marshal(b, m, deterministic)
}
func (m *Branch1) XXX_Merge(src proto.Message) {
xxx_messageInfo_Branch1.Merge(m, src)
}
func (m *Branch1) XXX_Size() int {
return xxx_messageInfo_Branch1.Size(m)
}
func (m *Branch1) XXX_DiscardUnknown() {
xxx_messageInfo_Branch1.DiscardUnknown(m)
}
var xxx_messageInfo_Branch1 proto.InternalMessageInfo
// Branch2 message is OneOf branch 2
type Branch2 struct {
// Int32 int field
Int32 int32 `protobuf:"varint,1,opt,name=Int32,proto3" json:"Int32,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Branch2) Reset() { *m = Branch2{} }
func (m *Branch2) String() string { return proto.CompactTextString(m) }
func (*Branch2) ProtoMessage() {}
func (*Branch2) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{6}
}
func (m *Branch2) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Branch2.Unmarshal(m, b)
}
func (m *Branch2) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Branch2.Marshal(b, m, deterministic)
}
func (m *Branch2) XXX_Merge(src proto.Message) {
xxx_messageInfo_Branch2.Merge(m, src)
}
func (m *Branch2) XXX_Size() int {
return xxx_messageInfo_Branch2.Size(m)
}
func (m *Branch2) XXX_DiscardUnknown() {
xxx_messageInfo_Branch2.DiscardUnknown(m)
}
var xxx_messageInfo_Branch2 proto.InternalMessageInfo
// EmbeddedField encapsulates fields which can be shared among various types
type EmbeddedField struct {
// EmbeddedString string field
EmbeddedString string `protobuf:"bytes,1,opt,name=EmbeddedString,proto3" json:"embedded_string"`
// Nested EmbeddedNestedField field
EmbeddedNestedField *EmbeddedNestedField `protobuf:"bytes,2,opt,name=EmbeddedNestedField,proto3" json:"EmbeddedNestedField,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmbeddedField) Reset() { *m = EmbeddedField{} }
func (m *EmbeddedField) String() string { return proto.CompactTextString(m) }
func (*EmbeddedField) ProtoMessage() {}
func (*EmbeddedField) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{7}
}
func (m *EmbeddedField) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmbeddedField.Unmarshal(m, b)
}
func (m *EmbeddedField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmbeddedField.Marshal(b, m, deterministic)
}
func (m *EmbeddedField) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmbeddedField.Merge(m, src)
}
func (m *EmbeddedField) XXX_Size() int {
return xxx_messageInfo_EmbeddedField.Size(m)
}
func (m *EmbeddedField) XXX_DiscardUnknown() {
xxx_messageInfo_EmbeddedField.DiscardUnknown(m)
}
var xxx_messageInfo_EmbeddedField proto.InternalMessageInfo
type EmbeddedNestedField struct {
// EmbeddedNestedString string field
EmbeddedNestedString string `protobuf:"bytes,1,opt,name=EmbeddedNestedString,proto3" json:"embedded_nested_string"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EmbeddedNestedField) Reset() { *m = EmbeddedNestedField{} }
func (m *EmbeddedNestedField) String() string { return proto.CompactTextString(m) }
func (*EmbeddedNestedField) ProtoMessage() {}
func (*EmbeddedNestedField) Descriptor() ([]byte, []int) {
return fileDescriptor_c161fcfdc0c3ff1e, []int{8}
}
func (m *EmbeddedNestedField) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EmbeddedNestedField.Unmarshal(m, b)
}
func (m *EmbeddedNestedField) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EmbeddedNestedField.Marshal(b, m, deterministic)
}
func (m *EmbeddedNestedField) XXX_Merge(src proto.Message) {
xxx_messageInfo_EmbeddedNestedField.Merge(m, src)
}
func (m *EmbeddedNestedField) XXX_Size() int {
return xxx_messageInfo_EmbeddedNestedField.Size(m)
}
func (m *EmbeddedNestedField) XXX_DiscardUnknown() {
xxx_messageInfo_EmbeddedNestedField.DiscardUnknown(m)
}
var xxx_messageInfo_EmbeddedNestedField proto.InternalMessageInfo
func init() {
proto.RegisterEnum("test.Mode", Mode_name, Mode_value)
proto.RegisterType((*Test)(nil), "test.Test")
proto.RegisterMapType((map[string]string)(nil), "test.Test.MapEntry")
proto.RegisterMapType((map[string]Nested)(nil), "test.Test.MapObjectEntry")
proto.RegisterMapType((map[string]*Nested)(nil), "test.Test.MapObjectNullableEntry")
proto.RegisterType((*MaxAgeDuration)(nil), "test.MaxAgeDuration")
proto.RegisterType((*EmptyMessageBranch)(nil), "test.EmptyMessageBranch")
proto.RegisterType((*Nested)(nil), "test.Nested")
proto.RegisterMapType((map[string]string)(nil), "test.Nested.MapEntry")
proto.RegisterMapType((map[string]OtherNested)(nil), "test.Nested.MapObjectNestedEntry")
proto.RegisterType((*OtherNested)(nil), "test.OtherNested")
proto.RegisterType((*Branch1)(nil), "test.Branch1")
proto.RegisterType((*Branch2)(nil), "test.Branch2")
proto.RegisterType((*EmbeddedField)(nil), "test.EmbeddedField")
proto.RegisterType((*EmbeddedNestedField)(nil), "test.EmbeddedNestedField")
}
func init() { proto.RegisterFile("test.proto", fileDescriptor_c161fcfdc0c3ff1e) }
var fileDescriptor_c161fcfdc0c3ff1e = []byte{
// 1158 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x72, 0x1a, 0x47,
0x17, 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