blob: e06f5f3a22b3d38adf29c218aa7a9d30add2e11d [file] [log] [blame]
Herbie Ongcddf8192018-11-28 18:25:20 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: encoding/textpb/testprotos/pb2/test.proto
3
4package pb2
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 any "github.com/golang/protobuf/ptypes/any"
10 duration "github.com/golang/protobuf/ptypes/duration"
11 empty "github.com/golang/protobuf/ptypes/empty"
12 _struct "github.com/golang/protobuf/ptypes/struct"
13 timestamp "github.com/golang/protobuf/ptypes/timestamp"
14 wrappers "github.com/golang/protobuf/ptypes/wrappers"
15 math "math"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
28
29type Enum int32
30
31const (
32 Enum_UNKNOWN Enum = 0
33 Enum_FIRST Enum = 1
34 Enum_SECOND Enum = 2
35 Enum_TENTH Enum = 10
36)
37
38var Enum_name = map[int32]string{
39 0: "UNKNOWN",
40 1: "FIRST",
41 2: "SECOND",
42 10: "TENTH",
43}
44
45var Enum_value = map[string]int32{
46 "UNKNOWN": 0,
47 "FIRST": 1,
48 "SECOND": 2,
49 "TENTH": 10,
50}
51
52func (x Enum) Enum() *Enum {
53 p := new(Enum)
54 *p = x
55 return p
56}
57
58func (x Enum) String() string {
59 return proto.EnumName(Enum_name, int32(x))
60}
61
62func (x *Enum) UnmarshalJSON(data []byte) error {
63 value, err := proto.UnmarshalJSONEnum(Enum_value, data, "Enum")
64 if err != nil {
65 return err
66 }
67 *x = Enum(value)
68 return nil
69}
70
71func (Enum) EnumDescriptor() ([]byte, []int) {
72 return fileDescriptor_c8d7acc1bcec9a72, []int{0}
73}
74
75type Enums_NestedEnum int32
76
77const (
78 Enums_UNO Enums_NestedEnum = 1
79 Enums_DOS Enums_NestedEnum = 2
80 Enums_DIEZ Enums_NestedEnum = 10
81)
82
83var Enums_NestedEnum_name = map[int32]string{
84 1: "UNO",
85 2: "DOS",
86 10: "DIEZ",
87}
88
89var Enums_NestedEnum_value = map[string]int32{
90 "UNO": 1,
91 "DOS": 2,
92 "DIEZ": 10,
93}
94
95func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
96 p := new(Enums_NestedEnum)
97 *p = x
98 return p
99}
100
101func (x Enums_NestedEnum) String() string {
102 return proto.EnumName(Enums_NestedEnum_name, int32(x))
103}
104
105func (x *Enums_NestedEnum) UnmarshalJSON(data []byte) error {
106 value, err := proto.UnmarshalJSONEnum(Enums_NestedEnum_value, data, "Enums_NestedEnum")
107 if err != nil {
108 return err
109 }
110 *x = Enums_NestedEnum(value)
111 return nil
112}
113
114func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
115 return fileDescriptor_c8d7acc1bcec9a72, []int{2, 0}
116}
117
118// Scalars contains optional scalar fields.
119type Scalars struct {
120 OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
121 OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
122 OptInt64 *int64 `protobuf:"varint,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
123 OptUint32 *uint32 `protobuf:"varint,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
124 OptUint64 *uint64 `protobuf:"varint,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
125 OptSint32 *int32 `protobuf:"zigzag32,6,opt,name=opt_sint32,json=optSint32" json:"opt_sint32,omitempty"`
126 OptSint64 *int64 `protobuf:"zigzag64,7,opt,name=opt_sint64,json=optSint64" json:"opt_sint64,omitempty"`
127 OptFixed32 *uint32 `protobuf:"fixed32,8,opt,name=opt_fixed32,json=optFixed32" json:"opt_fixed32,omitempty"`
128 OptFixed64 *uint64 `protobuf:"fixed64,9,opt,name=opt_fixed64,json=optFixed64" json:"opt_fixed64,omitempty"`
129 OptSfixed32 *int32 `protobuf:"fixed32,10,opt,name=opt_sfixed32,json=optSfixed32" json:"opt_sfixed32,omitempty"`
130 OptSfixed64 *int64 `protobuf:"fixed64,11,opt,name=opt_sfixed64,json=optSfixed64" json:"opt_sfixed64,omitempty"`
131 OptFloat *float32 `protobuf:"fixed32,20,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
132 OptDouble *float64 `protobuf:"fixed64,21,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
133 OptBytes []byte `protobuf:"bytes,14,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
134 OptString *string `protobuf:"bytes,13,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
135 XXX_NoUnkeyedLiteral struct{} `json:"-"`
136 XXX_unrecognized []byte `json:"-"`
137 XXX_sizecache int32 `json:"-"`
138}
139
140func (m *Scalars) Reset() { *m = Scalars{} }
141func (m *Scalars) String() string { return proto.CompactTextString(m) }
142func (*Scalars) ProtoMessage() {}
143func (*Scalars) Descriptor() ([]byte, []int) {
144 return fileDescriptor_c8d7acc1bcec9a72, []int{0}
145}
146
147func (m *Scalars) XXX_Unmarshal(b []byte) error {
148 return xxx_messageInfo_Scalars.Unmarshal(m, b)
149}
150func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
151 return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
152}
153func (m *Scalars) XXX_Merge(src proto.Message) {
154 xxx_messageInfo_Scalars.Merge(m, src)
155}
156func (m *Scalars) XXX_Size() int {
157 return xxx_messageInfo_Scalars.Size(m)
158}
159func (m *Scalars) XXX_DiscardUnknown() {
160 xxx_messageInfo_Scalars.DiscardUnknown(m)
161}
162
163var xxx_messageInfo_Scalars proto.InternalMessageInfo
164
165func (m *Scalars) GetOptBool() bool {
166 if m != nil && m.OptBool != nil {
167 return *m.OptBool
168 }
169 return false
170}
171
172func (m *Scalars) GetOptInt32() int32 {
173 if m != nil && m.OptInt32 != nil {
174 return *m.OptInt32
175 }
176 return 0
177}
178
179func (m *Scalars) GetOptInt64() int64 {
180 if m != nil && m.OptInt64 != nil {
181 return *m.OptInt64
182 }
183 return 0
184}
185
186func (m *Scalars) GetOptUint32() uint32 {
187 if m != nil && m.OptUint32 != nil {
188 return *m.OptUint32
189 }
190 return 0
191}
192
193func (m *Scalars) GetOptUint64() uint64 {
194 if m != nil && m.OptUint64 != nil {
195 return *m.OptUint64
196 }
197 return 0
198}
199
200func (m *Scalars) GetOptSint32() int32 {
201 if m != nil && m.OptSint32 != nil {
202 return *m.OptSint32
203 }
204 return 0
205}
206
207func (m *Scalars) GetOptSint64() int64 {
208 if m != nil && m.OptSint64 != nil {
209 return *m.OptSint64
210 }
211 return 0
212}
213
214func (m *Scalars) GetOptFixed32() uint32 {
215 if m != nil && m.OptFixed32 != nil {
216 return *m.OptFixed32
217 }
218 return 0
219}
220
221func (m *Scalars) GetOptFixed64() uint64 {
222 if m != nil && m.OptFixed64 != nil {
223 return *m.OptFixed64
224 }
225 return 0
226}
227
228func (m *Scalars) GetOptSfixed32() int32 {
229 if m != nil && m.OptSfixed32 != nil {
230 return *m.OptSfixed32
231 }
232 return 0
233}
234
235func (m *Scalars) GetOptSfixed64() int64 {
236 if m != nil && m.OptSfixed64 != nil {
237 return *m.OptSfixed64
238 }
239 return 0
240}
241
242func (m *Scalars) GetOptFloat() float32 {
243 if m != nil && m.OptFloat != nil {
244 return *m.OptFloat
245 }
246 return 0
247}
248
249func (m *Scalars) GetOptDouble() float64 {
250 if m != nil && m.OptDouble != nil {
251 return *m.OptDouble
252 }
253 return 0
254}
255
256func (m *Scalars) GetOptBytes() []byte {
257 if m != nil {
258 return m.OptBytes
259 }
260 return nil
261}
262
263func (m *Scalars) GetOptString() string {
264 if m != nil && m.OptString != nil {
265 return *m.OptString
266 }
267 return ""
268}
269
270// Message contains repeated fields.
271type Repeats struct {
272 RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
273 RptInt32 []int32 `protobuf:"varint,2,rep,name=rpt_int32,json=rptInt32" json:"rpt_int32,omitempty"`
274 RptInt64 []int64 `protobuf:"varint,3,rep,name=rpt_int64,json=rptInt64" json:"rpt_int64,omitempty"`
275 RptUint32 []uint32 `protobuf:"varint,4,rep,name=rpt_uint32,json=rptUint32" json:"rpt_uint32,omitempty"`
276 RptUint64 []uint64 `protobuf:"varint,5,rep,name=rpt_uint64,json=rptUint64" json:"rpt_uint64,omitempty"`
277 RptFloat []float32 `protobuf:"fixed32,6,rep,name=rpt_float,json=rptFloat" json:"rpt_float,omitempty"`
278 RptDouble []float64 `protobuf:"fixed64,7,rep,name=rpt_double,json=rptDouble" json:"rpt_double,omitempty"`
279 RptString []string `protobuf:"bytes,15,rep,name=rpt_string,json=rptString" json:"rpt_string,omitempty"`
280 RptBytes [][]byte `protobuf:"bytes,14,rep,name=rpt_bytes,json=rptBytes" json:"rpt_bytes,omitempty"`
281 XXX_NoUnkeyedLiteral struct{} `json:"-"`
282 XXX_unrecognized []byte `json:"-"`
283 XXX_sizecache int32 `json:"-"`
284}
285
286func (m *Repeats) Reset() { *m = Repeats{} }
287func (m *Repeats) String() string { return proto.CompactTextString(m) }
288func (*Repeats) ProtoMessage() {}
289func (*Repeats) Descriptor() ([]byte, []int) {
290 return fileDescriptor_c8d7acc1bcec9a72, []int{1}
291}
292
293func (m *Repeats) XXX_Unmarshal(b []byte) error {
294 return xxx_messageInfo_Repeats.Unmarshal(m, b)
295}
296func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
297 return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
298}
299func (m *Repeats) XXX_Merge(src proto.Message) {
300 xxx_messageInfo_Repeats.Merge(m, src)
301}
302func (m *Repeats) XXX_Size() int {
303 return xxx_messageInfo_Repeats.Size(m)
304}
305func (m *Repeats) XXX_DiscardUnknown() {
306 xxx_messageInfo_Repeats.DiscardUnknown(m)
307}
308
309var xxx_messageInfo_Repeats proto.InternalMessageInfo
310
311func (m *Repeats) GetRptBool() []bool {
312 if m != nil {
313 return m.RptBool
314 }
315 return nil
316}
317
318func (m *Repeats) GetRptInt32() []int32 {
319 if m != nil {
320 return m.RptInt32
321 }
322 return nil
323}
324
325func (m *Repeats) GetRptInt64() []int64 {
326 if m != nil {
327 return m.RptInt64
328 }
329 return nil
330}
331
332func (m *Repeats) GetRptUint32() []uint32 {
333 if m != nil {
334 return m.RptUint32
335 }
336 return nil
337}
338
339func (m *Repeats) GetRptUint64() []uint64 {
340 if m != nil {
341 return m.RptUint64
342 }
343 return nil
344}
345
346func (m *Repeats) GetRptFloat() []float32 {
347 if m != nil {
348 return m.RptFloat
349 }
350 return nil
351}
352
353func (m *Repeats) GetRptDouble() []float64 {
354 if m != nil {
355 return m.RptDouble
356 }
357 return nil
358}
359
360func (m *Repeats) GetRptString() []string {
361 if m != nil {
362 return m.RptString
363 }
364 return nil
365}
366
367func (m *Repeats) GetRptBytes() [][]byte {
368 if m != nil {
369 return m.RptBytes
370 }
371 return nil
372}
373
374// Message contains enum fields.
375type Enums struct {
376 OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
377 RptEnum []Enum `protobuf:"varint,2,rep,name=rpt_enum,json=rptEnum,enum=pb2.Enum" json:"rpt_enum,omitempty"`
378 OptNestedEnum *Enums_NestedEnum `protobuf:"varint,3,opt,name=opt_nested_enum,json=optNestedEnum,enum=pb2.Enums_NestedEnum" json:"opt_nested_enum,omitempty"`
379 RptNestedEnum []Enums_NestedEnum `protobuf:"varint,4,rep,name=rpt_nested_enum,json=rptNestedEnum,enum=pb2.Enums_NestedEnum" json:"rpt_nested_enum,omitempty"`
380 XXX_NoUnkeyedLiteral struct{} `json:"-"`
381 XXX_unrecognized []byte `json:"-"`
382 XXX_sizecache int32 `json:"-"`
383}
384
385func (m *Enums) Reset() { *m = Enums{} }
386func (m *Enums) String() string { return proto.CompactTextString(m) }
387func (*Enums) ProtoMessage() {}
388func (*Enums) Descriptor() ([]byte, []int) {
389 return fileDescriptor_c8d7acc1bcec9a72, []int{2}
390}
391
392func (m *Enums) XXX_Unmarshal(b []byte) error {
393 return xxx_messageInfo_Enums.Unmarshal(m, b)
394}
395func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
396 return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
397}
398func (m *Enums) XXX_Merge(src proto.Message) {
399 xxx_messageInfo_Enums.Merge(m, src)
400}
401func (m *Enums) XXX_Size() int {
402 return xxx_messageInfo_Enums.Size(m)
403}
404func (m *Enums) XXX_DiscardUnknown() {
405 xxx_messageInfo_Enums.DiscardUnknown(m)
406}
407
408var xxx_messageInfo_Enums proto.InternalMessageInfo
409
410func (m *Enums) GetOptEnum() Enum {
411 if m != nil && m.OptEnum != nil {
412 return *m.OptEnum
413 }
414 return Enum_UNKNOWN
415}
416
417func (m *Enums) GetRptEnum() []Enum {
418 if m != nil {
419 return m.RptEnum
420 }
421 return nil
422}
423
424func (m *Enums) GetOptNestedEnum() Enums_NestedEnum {
425 if m != nil && m.OptNestedEnum != nil {
426 return *m.OptNestedEnum
427 }
428 return Enums_UNO
429}
430
431func (m *Enums) GetRptNestedEnum() []Enums_NestedEnum {
432 if m != nil {
433 return m.RptNestedEnum
434 }
435 return nil
436}
437
438// Message contains message and group fields.
439type Nests struct {
440 OptNested *Nested `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
441 Optgroup *Nests_OptGroup `protobuf:"group,2,opt,name=OptGroup,json=optgroup" json:"optgroup,omitempty"`
442 RptNested []*Nested `protobuf:"bytes,3,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
443 Rptgroup []*Nests_RptGroup `protobuf:"group,4,rep,name=RptGroup,json=rptgroup" json:"rptgroup,omitempty"`
444 XXX_NoUnkeyedLiteral struct{} `json:"-"`
445 XXX_unrecognized []byte `json:"-"`
446 XXX_sizecache int32 `json:"-"`
447}
448
449func (m *Nests) Reset() { *m = Nests{} }
450func (m *Nests) String() string { return proto.CompactTextString(m) }
451func (*Nests) ProtoMessage() {}
452func (*Nests) Descriptor() ([]byte, []int) {
453 return fileDescriptor_c8d7acc1bcec9a72, []int{3}
454}
455
456func (m *Nests) XXX_Unmarshal(b []byte) error {
457 return xxx_messageInfo_Nests.Unmarshal(m, b)
458}
459func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
460 return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
461}
462func (m *Nests) XXX_Merge(src proto.Message) {
463 xxx_messageInfo_Nests.Merge(m, src)
464}
465func (m *Nests) XXX_Size() int {
466 return xxx_messageInfo_Nests.Size(m)
467}
468func (m *Nests) XXX_DiscardUnknown() {
469 xxx_messageInfo_Nests.DiscardUnknown(m)
470}
471
472var xxx_messageInfo_Nests proto.InternalMessageInfo
473
474func (m *Nests) GetOptNested() *Nested {
475 if m != nil {
476 return m.OptNested
477 }
478 return nil
479}
480
481func (m *Nests) GetOptgroup() *Nests_OptGroup {
482 if m != nil {
483 return m.Optgroup
484 }
485 return nil
486}
487
488func (m *Nests) GetRptNested() []*Nested {
489 if m != nil {
490 return m.RptNested
491 }
492 return nil
493}
494
495func (m *Nests) GetRptgroup() []*Nests_RptGroup {
496 if m != nil {
497 return m.Rptgroup
498 }
499 return nil
500}
501
502type Nests_OptGroup struct {
503 OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
504 OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
505 OptNested *Nested `protobuf:"bytes,3,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
506 Optnestedgroup *Nests_OptGroup_OptNestedGroup `protobuf:"group,4,opt,name=OptNestedGroup,json=optnestedgroup" json:"optnestedgroup,omitempty"`
507 XXX_NoUnkeyedLiteral struct{} `json:"-"`
508 XXX_unrecognized []byte `json:"-"`
509 XXX_sizecache int32 `json:"-"`
510}
511
512func (m *Nests_OptGroup) Reset() { *m = Nests_OptGroup{} }
513func (m *Nests_OptGroup) String() string { return proto.CompactTextString(m) }
514func (*Nests_OptGroup) ProtoMessage() {}
515func (*Nests_OptGroup) Descriptor() ([]byte, []int) {
516 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0}
517}
518
519func (m *Nests_OptGroup) XXX_Unmarshal(b []byte) error {
520 return xxx_messageInfo_Nests_OptGroup.Unmarshal(m, b)
521}
522func (m *Nests_OptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
523 return xxx_messageInfo_Nests_OptGroup.Marshal(b, m, deterministic)
524}
525func (m *Nests_OptGroup) XXX_Merge(src proto.Message) {
526 xxx_messageInfo_Nests_OptGroup.Merge(m, src)
527}
528func (m *Nests_OptGroup) XXX_Size() int {
529 return xxx_messageInfo_Nests_OptGroup.Size(m)
530}
531func (m *Nests_OptGroup) XXX_DiscardUnknown() {
532 xxx_messageInfo_Nests_OptGroup.DiscardUnknown(m)
533}
534
535var xxx_messageInfo_Nests_OptGroup proto.InternalMessageInfo
536
537func (m *Nests_OptGroup) GetOptBool() bool {
538 if m != nil && m.OptBool != nil {
539 return *m.OptBool
540 }
541 return false
542}
543
544func (m *Nests_OptGroup) GetOptString() string {
545 if m != nil && m.OptString != nil {
546 return *m.OptString
547 }
548 return ""
549}
550
551func (m *Nests_OptGroup) GetOptNested() *Nested {
552 if m != nil {
553 return m.OptNested
554 }
555 return nil
556}
557
558func (m *Nests_OptGroup) GetOptnestedgroup() *Nests_OptGroup_OptNestedGroup {
559 if m != nil {
560 return m.Optnestedgroup
561 }
562 return nil
563}
564
565type Nests_OptGroup_OptNestedGroup struct {
566 OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
567 XXX_NoUnkeyedLiteral struct{} `json:"-"`
568 XXX_unrecognized []byte `json:"-"`
569 XXX_sizecache int32 `json:"-"`
570}
571
572func (m *Nests_OptGroup_OptNestedGroup) Reset() { *m = Nests_OptGroup_OptNestedGroup{} }
573func (m *Nests_OptGroup_OptNestedGroup) String() string { return proto.CompactTextString(m) }
574func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {}
575func (*Nests_OptGroup_OptNestedGroup) Descriptor() ([]byte, []int) {
576 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0, 0}
577}
578
579func (m *Nests_OptGroup_OptNestedGroup) XXX_Unmarshal(b []byte) error {
580 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Unmarshal(m, b)
581}
582func (m *Nests_OptGroup_OptNestedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
583 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Marshal(b, m, deterministic)
584}
585func (m *Nests_OptGroup_OptNestedGroup) XXX_Merge(src proto.Message) {
586 xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Merge(m, src)
587}
588func (m *Nests_OptGroup_OptNestedGroup) XXX_Size() int {
589 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Size(m)
590}
591func (m *Nests_OptGroup_OptNestedGroup) XXX_DiscardUnknown() {
592 xxx_messageInfo_Nests_OptGroup_OptNestedGroup.DiscardUnknown(m)
593}
594
595var xxx_messageInfo_Nests_OptGroup_OptNestedGroup proto.InternalMessageInfo
596
597func (m *Nests_OptGroup_OptNestedGroup) GetOptEnum() Enum {
598 if m != nil && m.OptEnum != nil {
599 return *m.OptEnum
600 }
601 return Enum_UNKNOWN
602}
603
604type Nests_RptGroup struct {
605 RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
606 XXX_NoUnkeyedLiteral struct{} `json:"-"`
607 XXX_unrecognized []byte `json:"-"`
608 XXX_sizecache int32 `json:"-"`
609}
610
611func (m *Nests_RptGroup) Reset() { *m = Nests_RptGroup{} }
612func (m *Nests_RptGroup) String() string { return proto.CompactTextString(m) }
613func (*Nests_RptGroup) ProtoMessage() {}
614func (*Nests_RptGroup) Descriptor() ([]byte, []int) {
615 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 1}
616}
617
618func (m *Nests_RptGroup) XXX_Unmarshal(b []byte) error {
619 return xxx_messageInfo_Nests_RptGroup.Unmarshal(m, b)
620}
621func (m *Nests_RptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
622 return xxx_messageInfo_Nests_RptGroup.Marshal(b, m, deterministic)
623}
624func (m *Nests_RptGroup) XXX_Merge(src proto.Message) {
625 xxx_messageInfo_Nests_RptGroup.Merge(m, src)
626}
627func (m *Nests_RptGroup) XXX_Size() int {
628 return xxx_messageInfo_Nests_RptGroup.Size(m)
629}
630func (m *Nests_RptGroup) XXX_DiscardUnknown() {
631 xxx_messageInfo_Nests_RptGroup.DiscardUnknown(m)
632}
633
634var xxx_messageInfo_Nests_RptGroup proto.InternalMessageInfo
635
636func (m *Nests_RptGroup) GetRptBool() []bool {
637 if m != nil {
638 return m.RptBool
639 }
640 return nil
641}
642
643// Message type used as submessage.
644type Nested struct {
645 OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
646 OptNested *Nested `protobuf:"bytes,2,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
647 XXX_NoUnkeyedLiteral struct{} `json:"-"`
648 XXX_unrecognized []byte `json:"-"`
649 XXX_sizecache int32 `json:"-"`
650}
651
652func (m *Nested) Reset() { *m = Nested{} }
653func (m *Nested) String() string { return proto.CompactTextString(m) }
654func (*Nested) ProtoMessage() {}
655func (*Nested) Descriptor() ([]byte, []int) {
656 return fileDescriptor_c8d7acc1bcec9a72, []int{4}
657}
658
659func (m *Nested) XXX_Unmarshal(b []byte) error {
660 return xxx_messageInfo_Nested.Unmarshal(m, b)
661}
662func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
663 return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
664}
665func (m *Nested) XXX_Merge(src proto.Message) {
666 xxx_messageInfo_Nested.Merge(m, src)
667}
668func (m *Nested) XXX_Size() int {
669 return xxx_messageInfo_Nested.Size(m)
670}
671func (m *Nested) XXX_DiscardUnknown() {
672 xxx_messageInfo_Nested.DiscardUnknown(m)
673}
674
675var xxx_messageInfo_Nested proto.InternalMessageInfo
676
677func (m *Nested) GetOptString() string {
678 if m != nil && m.OptString != nil {
679 return *m.OptString
680 }
681 return ""
682}
683
684func (m *Nested) GetOptNested() *Nested {
685 if m != nil {
686 return m.OptNested
687 }
688 return nil
689}
690
691// Message contains required fields.
692type Requireds struct {
693 ReqBool *bool `protobuf:"varint,1,req,name=req_bool,json=reqBool" json:"req_bool,omitempty"`
694 ReqFixed32 *uint32 `protobuf:"fixed32,2,req,name=req_fixed32,json=reqFixed32" json:"req_fixed32,omitempty"`
695 ReqFixed64 *uint64 `protobuf:"fixed64,3,req,name=req_fixed64,json=reqFixed64" json:"req_fixed64,omitempty"`
696 ReqSfixed32 *int32 `protobuf:"fixed32,4,req,name=req_sfixed32,json=reqSfixed32" json:"req_sfixed32,omitempty"`
697 ReqSfixed64 *int64 `protobuf:"fixed64,5,req,name=req_sfixed64,json=reqSfixed64" json:"req_sfixed64,omitempty"`
698 ReqFloat *float32 `protobuf:"fixed32,6,req,name=req_float,json=reqFloat" json:"req_float,omitempty"`
699 ReqDouble *float64 `protobuf:"fixed64,7,req,name=req_double,json=reqDouble" json:"req_double,omitempty"`
700 ReqString *string `protobuf:"bytes,8,req,name=req_string,json=reqString" json:"req_string,omitempty"`
701 ReqBytes []byte `protobuf:"bytes,9,req,name=req_bytes,json=reqBytes" json:"req_bytes,omitempty"`
702 ReqEnum *Enum `protobuf:"varint,10,req,name=req_enum,json=reqEnum,enum=pb2.Enum" json:"req_enum,omitempty"`
703 ReqNested *Nested `protobuf:"bytes,11,req,name=req_nested,json=reqNested" json:"req_nested,omitempty"`
704 XXX_NoUnkeyedLiteral struct{} `json:"-"`
705 XXX_unrecognized []byte `json:"-"`
706 XXX_sizecache int32 `json:"-"`
707}
708
709func (m *Requireds) Reset() { *m = Requireds{} }
710func (m *Requireds) String() string { return proto.CompactTextString(m) }
711func (*Requireds) ProtoMessage() {}
712func (*Requireds) Descriptor() ([]byte, []int) {
713 return fileDescriptor_c8d7acc1bcec9a72, []int{5}
714}
715
716func (m *Requireds) XXX_Unmarshal(b []byte) error {
717 return xxx_messageInfo_Requireds.Unmarshal(m, b)
718}
719func (m *Requireds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
720 return xxx_messageInfo_Requireds.Marshal(b, m, deterministic)
721}
722func (m *Requireds) XXX_Merge(src proto.Message) {
723 xxx_messageInfo_Requireds.Merge(m, src)
724}
725func (m *Requireds) XXX_Size() int {
726 return xxx_messageInfo_Requireds.Size(m)
727}
728func (m *Requireds) XXX_DiscardUnknown() {
729 xxx_messageInfo_Requireds.DiscardUnknown(m)
730}
731
732var xxx_messageInfo_Requireds proto.InternalMessageInfo
733
734func (m *Requireds) GetReqBool() bool {
735 if m != nil && m.ReqBool != nil {
736 return *m.ReqBool
737 }
738 return false
739}
740
741func (m *Requireds) GetReqFixed32() uint32 {
742 if m != nil && m.ReqFixed32 != nil {
743 return *m.ReqFixed32
744 }
745 return 0
746}
747
748func (m *Requireds) GetReqFixed64() uint64 {
749 if m != nil && m.ReqFixed64 != nil {
750 return *m.ReqFixed64
751 }
752 return 0
753}
754
755func (m *Requireds) GetReqSfixed32() int32 {
756 if m != nil && m.ReqSfixed32 != nil {
757 return *m.ReqSfixed32
758 }
759 return 0
760}
761
762func (m *Requireds) GetReqSfixed64() int64 {
763 if m != nil && m.ReqSfixed64 != nil {
764 return *m.ReqSfixed64
765 }
766 return 0
767}
768
769func (m *Requireds) GetReqFloat() float32 {
770 if m != nil && m.ReqFloat != nil {
771 return *m.ReqFloat
772 }
773 return 0
774}
775
776func (m *Requireds) GetReqDouble() float64 {
777 if m != nil && m.ReqDouble != nil {
778 return *m.ReqDouble
779 }
780 return 0
781}
782
783func (m *Requireds) GetReqString() string {
784 if m != nil && m.ReqString != nil {
785 return *m.ReqString
786 }
787 return ""
788}
789
790func (m *Requireds) GetReqBytes() []byte {
791 if m != nil {
792 return m.ReqBytes
793 }
794 return nil
795}
796
797func (m *Requireds) GetReqEnum() Enum {
798 if m != nil && m.ReqEnum != nil {
799 return *m.ReqEnum
800 }
801 return Enum_UNKNOWN
802}
803
804func (m *Requireds) GetReqNested() *Nested {
805 if m != nil {
806 return m.ReqNested
807 }
808 return nil
809}
810
811// Message contains oneof field.
812type Oneofs struct {
813 // Types that are valid to be assigned to Union:
814 // *Oneofs_Str
815 // *Oneofs_Msg
816 Union isOneofs_Union `protobuf_oneof:"union"`
817 XXX_NoUnkeyedLiteral struct{} `json:"-"`
818 XXX_unrecognized []byte `json:"-"`
819 XXX_sizecache int32 `json:"-"`
820}
821
822func (m *Oneofs) Reset() { *m = Oneofs{} }
823func (m *Oneofs) String() string { return proto.CompactTextString(m) }
824func (*Oneofs) ProtoMessage() {}
825func (*Oneofs) Descriptor() ([]byte, []int) {
826 return fileDescriptor_c8d7acc1bcec9a72, []int{6}
827}
828
829func (m *Oneofs) XXX_Unmarshal(b []byte) error {
830 return xxx_messageInfo_Oneofs.Unmarshal(m, b)
831}
832func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
833 return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
834}
835func (m *Oneofs) XXX_Merge(src proto.Message) {
836 xxx_messageInfo_Oneofs.Merge(m, src)
837}
838func (m *Oneofs) XXX_Size() int {
839 return xxx_messageInfo_Oneofs.Size(m)
840}
841func (m *Oneofs) XXX_DiscardUnknown() {
842 xxx_messageInfo_Oneofs.DiscardUnknown(m)
843}
844
845var xxx_messageInfo_Oneofs proto.InternalMessageInfo
846
847type isOneofs_Union interface {
848 isOneofs_Union()
849}
850
851type Oneofs_Str struct {
852 Str string `protobuf:"bytes,1,opt,name=str,oneof"`
853}
854
855type Oneofs_Msg struct {
856 Msg *Nested `protobuf:"bytes,2,opt,name=msg,oneof"`
857}
858
859func (*Oneofs_Str) isOneofs_Union() {}
860
861func (*Oneofs_Msg) isOneofs_Union() {}
862
863func (m *Oneofs) GetUnion() isOneofs_Union {
864 if m != nil {
865 return m.Union
866 }
867 return nil
868}
869
870func (m *Oneofs) GetStr() string {
871 if x, ok := m.GetUnion().(*Oneofs_Str); ok {
872 return x.Str
873 }
874 return ""
875}
876
877func (m *Oneofs) GetMsg() *Nested {
878 if x, ok := m.GetUnion().(*Oneofs_Msg); ok {
879 return x.Msg
880 }
881 return nil
882}
883
884// XXX_OneofFuncs is for the internal use of the proto package.
885func (*Oneofs) 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{}) {
886 return _Oneofs_OneofMarshaler, _Oneofs_OneofUnmarshaler, _Oneofs_OneofSizer, []interface{}{
887 (*Oneofs_Str)(nil),
888 (*Oneofs_Msg)(nil),
889 }
890}
891
892func _Oneofs_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
893 m := msg.(*Oneofs)
894 // union
895 switch x := m.Union.(type) {
896 case *Oneofs_Str:
897 b.EncodeVarint(1<<3 | proto.WireBytes)
898 b.EncodeStringBytes(x.Str)
899 case *Oneofs_Msg:
900 b.EncodeVarint(2<<3 | proto.WireBytes)
901 if err := b.EncodeMessage(x.Msg); err != nil {
902 return err
903 }
904 case nil:
905 default:
906 return fmt.Errorf("Oneofs.Union has unexpected type %T", x)
907 }
908 return nil
909}
910
911func _Oneofs_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
912 m := msg.(*Oneofs)
913 switch tag {
914 case 1: // union.str
915 if wire != proto.WireBytes {
916 return true, proto.ErrInternalBadWireType
917 }
918 x, err := b.DecodeStringBytes()
919 m.Union = &Oneofs_Str{x}
920 return true, err
921 case 2: // union.msg
922 if wire != proto.WireBytes {
923 return true, proto.ErrInternalBadWireType
924 }
925 msg := new(Nested)
926 err := b.DecodeMessage(msg)
927 m.Union = &Oneofs_Msg{msg}
928 return true, err
929 default:
930 return false, nil
931 }
932}
933
934func _Oneofs_OneofSizer(msg proto.Message) (n int) {
935 m := msg.(*Oneofs)
936 // union
937 switch x := m.Union.(type) {
938 case *Oneofs_Str:
939 n += 1 // tag and wire
940 n += proto.SizeVarint(uint64(len(x.Str)))
941 n += len(x.Str)
942 case *Oneofs_Msg:
943 s := proto.Size(x.Msg)
944 n += 1 // tag and wire
945 n += proto.SizeVarint(uint64(s))
946 n += s
947 case nil:
948 default:
949 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
950 }
951 return n
952}
953
954// Message contains map fields.
955type Maps struct {
956 Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
957 Sfixed64ToBool map[int64]bool `protobuf:"bytes,2,rep,name=sfixed64_to_bool,json=sfixed64ToBool" json:"sfixed64_to_bool,omitempty" protobuf_key:"fixed64,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
958 BoolToUint32 map[bool]uint32 `protobuf:"bytes,3,rep,name=bool_to_uint32,json=boolToUint32" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`
959 Uint64ToEnum map[uint64]Enum `protobuf:"bytes,4,rep,name=uint64_to_enum,json=uint64ToEnum" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"varint,2,opt,name=value,enum=pb2.Enum"`
960 StrToNested map[string]*Nested `protobuf:"bytes,5,rep,name=str_to_nested,json=strToNested" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
961 StrToOneofs map[string]*Oneofs `protobuf:"bytes,6,rep,name=str_to_oneofs,json=strToOneofs" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
962 XXX_NoUnkeyedLiteral struct{} `json:"-"`
963 XXX_unrecognized []byte `json:"-"`
964 XXX_sizecache int32 `json:"-"`
965}
966
967func (m *Maps) Reset() { *m = Maps{} }
968func (m *Maps) String() string { return proto.CompactTextString(m) }
969func (*Maps) ProtoMessage() {}
970func (*Maps) Descriptor() ([]byte, []int) {
971 return fileDescriptor_c8d7acc1bcec9a72, []int{7}
972}
973
974func (m *Maps) XXX_Unmarshal(b []byte) error {
975 return xxx_messageInfo_Maps.Unmarshal(m, b)
976}
977func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
978 return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
979}
980func (m *Maps) XXX_Merge(src proto.Message) {
981 xxx_messageInfo_Maps.Merge(m, src)
982}
983func (m *Maps) XXX_Size() int {
984 return xxx_messageInfo_Maps.Size(m)
985}
986func (m *Maps) XXX_DiscardUnknown() {
987 xxx_messageInfo_Maps.DiscardUnknown(m)
988}
989
990var xxx_messageInfo_Maps proto.InternalMessageInfo
991
992func (m *Maps) GetInt32ToStr() map[int32]string {
993 if m != nil {
994 return m.Int32ToStr
995 }
996 return nil
997}
998
999func (m *Maps) GetSfixed64ToBool() map[int64]bool {
1000 if m != nil {
1001 return m.Sfixed64ToBool
1002 }
1003 return nil
1004}
1005
1006func (m *Maps) GetBoolToUint32() map[bool]uint32 {
1007 if m != nil {
1008 return m.BoolToUint32
1009 }
1010 return nil
1011}
1012
1013func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
1014 if m != nil {
1015 return m.Uint64ToEnum
1016 }
1017 return nil
1018}
1019
1020func (m *Maps) GetStrToNested() map[string]*Nested {
1021 if m != nil {
1022 return m.StrToNested
1023 }
1024 return nil
1025}
1026
1027func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
1028 if m != nil {
1029 return m.StrToOneofs
1030 }
1031 return nil
1032}
1033
1034// Message contains well-known type fields.
1035type KnownTypes struct {
1036 OptBool *wrappers.BoolValue `protobuf:"bytes,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
1037 OptInt32 *wrappers.Int32Value `protobuf:"bytes,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
1038 OptInt64 *wrappers.Int64Value `protobuf:"bytes,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
1039 OptUint32 *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
1040 OptUint64 *wrappers.UInt64Value `protobuf:"bytes,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
1041 OptFloat *wrappers.FloatValue `protobuf:"bytes,6,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
1042 OptDouble *wrappers.DoubleValue `protobuf:"bytes,7,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
1043 OptString *wrappers.StringValue `protobuf:"bytes,8,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
1044 OptBytes *wrappers.BytesValue `protobuf:"bytes,9,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
1045 OptDuration *duration.Duration `protobuf:"bytes,20,opt,name=opt_duration,json=optDuration" json:"opt_duration,omitempty"`
1046 OptTimestamp *timestamp.Timestamp `protobuf:"bytes,21,opt,name=opt_timestamp,json=optTimestamp" json:"opt_timestamp,omitempty"`
1047 OptStruct *_struct.Struct `protobuf:"bytes,25,opt,name=opt_struct,json=optStruct" json:"opt_struct,omitempty"`
1048 OptList *_struct.ListValue `protobuf:"bytes,26,opt,name=opt_list,json=optList" json:"opt_list,omitempty"`
1049 OptValue *_struct.Value `protobuf:"bytes,27,opt,name=opt_value,json=optValue" json:"opt_value,omitempty"`
1050 OptEmpty *empty.Empty `protobuf:"bytes,30,opt,name=opt_empty,json=optEmpty" json:"opt_empty,omitempty"`
1051 OptAny *any.Any `protobuf:"bytes,32,opt,name=opt_any,json=optAny" json:"opt_any,omitempty"`
1052 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1053 XXX_unrecognized []byte `json:"-"`
1054 XXX_sizecache int32 `json:"-"`
1055}
1056
1057func (m *KnownTypes) Reset() { *m = KnownTypes{} }
1058func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
1059func (*KnownTypes) ProtoMessage() {}
1060func (*KnownTypes) Descriptor() ([]byte, []int) {
1061 return fileDescriptor_c8d7acc1bcec9a72, []int{8}
1062}
1063
1064func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
1065 return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
1066}
1067func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1068 return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
1069}
1070func (m *KnownTypes) XXX_Merge(src proto.Message) {
1071 xxx_messageInfo_KnownTypes.Merge(m, src)
1072}
1073func (m *KnownTypes) XXX_Size() int {
1074 return xxx_messageInfo_KnownTypes.Size(m)
1075}
1076func (m *KnownTypes) XXX_DiscardUnknown() {
1077 xxx_messageInfo_KnownTypes.DiscardUnknown(m)
1078}
1079
1080var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
1081
1082func (m *KnownTypes) GetOptBool() *wrappers.BoolValue {
1083 if m != nil {
1084 return m.OptBool
1085 }
1086 return nil
1087}
1088
1089func (m *KnownTypes) GetOptInt32() *wrappers.Int32Value {
1090 if m != nil {
1091 return m.OptInt32
1092 }
1093 return nil
1094}
1095
1096func (m *KnownTypes) GetOptInt64() *wrappers.Int64Value {
1097 if m != nil {
1098 return m.OptInt64
1099 }
1100 return nil
1101}
1102
1103func (m *KnownTypes) GetOptUint32() *wrappers.UInt32Value {
1104 if m != nil {
1105 return m.OptUint32
1106 }
1107 return nil
1108}
1109
1110func (m *KnownTypes) GetOptUint64() *wrappers.UInt64Value {
1111 if m != nil {
1112 return m.OptUint64
1113 }
1114 return nil
1115}
1116
1117func (m *KnownTypes) GetOptFloat() *wrappers.FloatValue {
1118 if m != nil {
1119 return m.OptFloat
1120 }
1121 return nil
1122}
1123
1124func (m *KnownTypes) GetOptDouble() *wrappers.DoubleValue {
1125 if m != nil {
1126 return m.OptDouble
1127 }
1128 return nil
1129}
1130
1131func (m *KnownTypes) GetOptString() *wrappers.StringValue {
1132 if m != nil {
1133 return m.OptString
1134 }
1135 return nil
1136}
1137
1138func (m *KnownTypes) GetOptBytes() *wrappers.BytesValue {
1139 if m != nil {
1140 return m.OptBytes
1141 }
1142 return nil
1143}
1144
1145func (m *KnownTypes) GetOptDuration() *duration.Duration {
1146 if m != nil {
1147 return m.OptDuration
1148 }
1149 return nil
1150}
1151
1152func (m *KnownTypes) GetOptTimestamp() *timestamp.Timestamp {
1153 if m != nil {
1154 return m.OptTimestamp
1155 }
1156 return nil
1157}
1158
1159func (m *KnownTypes) GetOptStruct() *_struct.Struct {
1160 if m != nil {
1161 return m.OptStruct
1162 }
1163 return nil
1164}
1165
1166func (m *KnownTypes) GetOptList() *_struct.ListValue {
1167 if m != nil {
1168 return m.OptList
1169 }
1170 return nil
1171}
1172
1173func (m *KnownTypes) GetOptValue() *_struct.Value {
1174 if m != nil {
1175 return m.OptValue
1176 }
1177 return nil
1178}
1179
1180func (m *KnownTypes) GetOptEmpty() *empty.Empty {
1181 if m != nil {
1182 return m.OptEmpty
1183 }
1184 return nil
1185}
1186
1187func (m *KnownTypes) GetOptAny() *any.Any {
1188 if m != nil {
1189 return m.OptAny
1190 }
1191 return nil
1192}
1193
1194func init() {
1195 proto.RegisterEnum("pb2.Enum", Enum_name, Enum_value)
1196 proto.RegisterEnum("pb2.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
1197 proto.RegisterType((*Scalars)(nil), "pb2.Scalars")
1198 proto.RegisterType((*Repeats)(nil), "pb2.Repeats")
1199 proto.RegisterType((*Enums)(nil), "pb2.Enums")
1200 proto.RegisterType((*Nests)(nil), "pb2.Nests")
1201 proto.RegisterType((*Nests_OptGroup)(nil), "pb2.Nests.OptGroup")
1202 proto.RegisterType((*Nests_OptGroup_OptNestedGroup)(nil), "pb2.Nests.OptGroup.OptNestedGroup")
1203 proto.RegisterType((*Nests_RptGroup)(nil), "pb2.Nests.RptGroup")
1204 proto.RegisterType((*Nested)(nil), "pb2.Nested")
1205 proto.RegisterType((*Requireds)(nil), "pb2.Requireds")
1206 proto.RegisterType((*Oneofs)(nil), "pb2.Oneofs")
1207 proto.RegisterType((*Maps)(nil), "pb2.Maps")
1208 proto.RegisterMapType((map[bool]uint32)(nil), "pb2.Maps.BoolToUint32Entry")
1209 proto.RegisterMapType((map[int32]string)(nil), "pb2.Maps.Int32ToStrEntry")
1210 proto.RegisterMapType((map[int64]bool)(nil), "pb2.Maps.Sfixed64ToBoolEntry")
1211 proto.RegisterMapType((map[string]*Nested)(nil), "pb2.Maps.StrToNestedEntry")
1212 proto.RegisterMapType((map[string]*Oneofs)(nil), "pb2.Maps.StrToOneofsEntry")
1213 proto.RegisterMapType((map[uint64]Enum)(nil), "pb2.Maps.Uint64ToEnumEntry")
1214 proto.RegisterType((*KnownTypes)(nil), "pb2.KnownTypes")
1215}
1216
1217func init() {
1218 proto.RegisterFile("encoding/textpb/testprotos/pb2/test.proto", fileDescriptor_c8d7acc1bcec9a72)
1219}
1220
1221var fileDescriptor_c8d7acc1bcec9a72 = []byte{
1222 // 1521 bytes of a gzipped FileDescriptorProto
1223 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xdb, 0x6e, 0xdb, 0x46,
1224 0x10, 0x0d, 0x49, 0x5d, 0x57, 0xbe, 0x28, 0x4c, 0xd2, 0xd2, 0x72, 0x12, 0x33, 0x42, 0x0a, 0xb0,
1225 0x01, 0x2a, 0x01, 0x8a, 0x22, 0x18, 0x75, 0x2e, 0xb0, 0x6b, 0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0xee, 0x92, 0x32, 0x98,
1237 0xc6, 0x9e, 0x78, 0xda, 0xb2, 0x74, 0x5b, 0x73, 0xf2, 0x2e, 0xf8, 0xbe, 0x85, 0xb1, 0x62, 0xec,
1238 0xb4, 0x2d, 0xc3, 0xd6, 0x1c, 0x23, 0x36, 0x76, 0xda, 0xe6, 0x03, 0x42, 0xc0, 0x18, 0x4a, 0x68,
1239 0xce, 0xd6, 0x9c, 0x4d, 0x17, 0xdc, 0x2f, 0x70, 0x42, 0x35, 0x77, 0xda, 0x56, 0xde, 0xd6, 0x9c,
1240 0x5c, 0x62, 0x4e, 0xd1, 0x81, 0x44, 0x17, 0x6c, 0xcd, 0xb9, 0x8d, 0xe6, 0xee, 0x02, 0x3a, 0x90,
1241 0xe8, 0xa2, 0xad, 0x39, 0x66, 0x62, 0xee, 0xb4, 0xcd, 0x3d, 0x52, 0x01, 0xf3, 0xf5, 0xf8, 0x33,
1242 0xbd, 0x7a, 0xda, 0xb2, 0x4a, 0xb6, 0xe6, 0x14, 0x5d, 0x40, 0x9c, 0xca, 0x99, 0x05, 0x87, 0x4e,
1243 0xdb, 0x2a, 0xdb, 0x9a, 0x53, 0x48, 0x1d, 0x3a, 0x6d, 0xf3, 0x11, 0xd9, 0xc0, 0x00, 0x31, 0x05,
1244 0xb1, 0x35, 0x67, 0xdb, 0x05, 0x50, 0x37, 0x9a, 0x5a, 0x74, 0xe9, 0xb4, 0xad, 0x8a, 0xad, 0x39,
1245 0x55, 0xc5, 0xa5, 0xd3, 0x8e, 0x0b, 0x74, 0x3d, 0x61, 0x7d, 0x61, 0xdd, 0xb5, 0x35, 0x47, 0xc7,
1246 0x02, 0x9d, 0xc2, 0x38, 0xce, 0xe1, 0x8a, 0x85, 0x83, 0x09, 0xb5, 0xee, 0xd9, 0x9a, 0xa3, 0x61,
1247 0x0e, 0xc7, 0x38, 0x11, 0x63, 0x07, 0x73, 0x41, 0x03, 0x6b, 0xcb, 0xd6, 0x9c, 0x0d, 0xc4, 0x1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d2, 0x59, 0x38, 0xe6, 0xf4, 0x4a, 0xaa, 0x09, 0x9d, 0xc5, 0xd1, 0x75, 0x8c, 0x4e,
1271 0x67, 0x58, 0xf3, 0x3d, 0x52, 0x01, 0x53, 0xac, 0x98, 0xba, 0xad, 0x83, 0xe8, 0x72, 0x3a, 0x53,
1272 0x44, 0x37, 0x71, 0x40, 0x4d, 0xd1, 0x41, 0x74, 0x63, 0x07, 0x29, 0xba, 0xe0, 0x90, 0x88, 0x6e,
1273 0xce, 0xd6, 0x41, 0x74, 0x39, 0x9d, 0xa9, 0xa2, 0x9b, 0xba, 0xa0, 0xb6, 0xe8, 0x20, 0xba, 0x89,
1274 0x4b, 0xa4, 0x2e, 0x10, 0x26, 0x52, 0x17, 0x1d, 0xd5, 0x85, 0xce, 0x52, 0x75, 0xa1, 0xb3, 0x54,
1275 0x5d, 0x74, 0x54, 0x17, 0x3a, 0x53, 0xd4, 0x05, 0xe8, 0x65, 0xdd, 0x4a, 0xb6, 0x8e, 0xea, 0x42,
1276 0x67, 0x8a, 0xba, 0x40, 0xf6, 0xa8, 0x2e, 0x65, 0x5b, 0x47, 0x75, 0xa1, 0x33, 0xa9, 0xc9, 0x8f,
1277 0x65, 0x69, 0xb0, 0x95, 0xc4, 0xd6, 0xb3, 0x6a, 0x41, 0x67, 0x78, 0x42, 0x9f, 0xc8, 0x08, 0x51,
1278 0xe9, 0x2b, 0xb6, 0xbe, 0x7c, 0x3c, 0xe8, 0x2c, 0x2a, 0xfd, 0x29, 0x29, 0x9c, 0x7b, 0x94, 0x5d,
1279 0x07, 0xa6, 0x49, 0x8c, 0x40, 0x70, 0xd9, 0xc8, 0x37, 0xb7, 0x5c, 0x18, 0x98, 0x7b, 0xc4, 0x98,
1280 0x06, 0xa3, 0x15, 0xdd, 0x03, 0x87, 0x69, 0x30, 0x3a, 0x2a, 0x92, 0x7c, 0xe8, 0x8d, 0x99, 0x57,
1281 0xff, 0xb3, 0x40, 0x72, 0x3f, 0xf5, 0xfd,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75, 0x05, 0x45, 0x49, 0xa5, 0x78, 0x45,
1293 0x6e, 0x2f, 0xd5, 0x59, 0x25, 0x28, 0xad, 0x20, 0xd8, 0x54, 0x09, 0xde, 0x91, 0xdb, 0x4b, 0x55,
1294 0x56, 0x09, 0x72, 0x92, 0x60, 0x4f, 0x25, 0x58, 0x38, 0x15, 0x0a, 0xd7, 0x7b, 0x52, 0xcd, 0xd6,
1295 0x5b, 0xa5, 0x2a, 0x4b, 0xaa, 0x47, 0x2a, 0x55, 0xe6, 0xe0, 0xac, 0x20, 0x53, 0x8a, 0xff, 0xa5,
1296 0x64, 0x12, 0xa2, 0x90, 0xd5, 0xff, 0x28, 0x12, 0xf2, 0xde, 0x63, 0x9f, 0xbc, 0xde, 0xdc, 0xa7,
1297 0x81, 0xf9, 0x2c, 0x73, 0xeb, 0x40, 0xcb, 0xe5, 0x5b, 0xbb, 0x11, 0xbf, 0xb5, 0x71, 0xfb, 0xfe,
1298 0x0c, 0x04, 0xe9, 0x8d, 0xb4, 0x9f, 0x7d, 0x48, 0xc3, 0x66, 0xcd, 0xe2, 0x70, 0x43, 0x48, 0x60,
1299 0xfa, 0xca, 0xde, 0xcf, 0xbe, 0xb2, 0xd7, 0x20, 0x3b, 0xed, 0x05, 0x64, 0xa7, 0x6d, 0x1e, 0x2c,
1300 0x3d, 0xc1, 0x2b, 0xad, 0xfb, 0x4b, 0xd0, 0x0b, 0x25, 0xaa, 0xf2, 0x40, 0x3f, 0x58, 0x7a, 0xa0,
1301 0xaf, 0x03, 0xc7, 0x81, 0x95, 0xe7, 0xfb, 0xbe, 0xfa, 0xf0, 0x2d, 0xac, 0x59, 0x33, 0x2a, 0x72,
1302 0xba, 0x66, 0x29, 0xd0, 0x07, 0x0b, 0xaf, 0xe2, 0xe2, 0x9a, 0xb0, 0x52, 0xae, 0xd3, 0xb0, 0x91,
1303 0x7c, 0x1f, 0x2c, 0x5c, 0x7b, 0xa5, 0x35, 0x60, 0x29, 0xe6, 0x29, 0x38, 0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, 0xc3,
1315 0x74, 0xef, 0xe4, 0xac, 0xf7, 0xa6, 0x4a, 0x8e, 0x5e, 0x7e, 0x78, 0x3e, 0x1a, 0x8b, 0x5f, 0xc3,
1316 0x41, 0x63, 0xc8, 0xa6, 0xcd, 0x11, 0x9b, 0xf4, 0xbd, 0x51, 0xfa, 0xd9, 0xfc, 0xb1, 0xd5, 0xbc,
1317 0xf9, 0x0f, 0x81, 0xff, 0x03, 0x00, 0x00, 0xff, 0xff, 0x64, 0x29, 0xf9, 0x97, 0x31, 0x10, 0x00,
1318 0x00,
1319}