blob: d731089dcffd4815a5fd549551f5a99deff6a768 [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 (
Herbie Ongcddf8192018-11-28 18:25:20 -08007 proto "github.com/golang/protobuf/proto"
8 any "github.com/golang/protobuf/ptypes/any"
9 duration "github.com/golang/protobuf/ptypes/duration"
10 empty "github.com/golang/protobuf/ptypes/empty"
11 _struct "github.com/golang/protobuf/ptypes/struct"
12 timestamp "github.com/golang/protobuf/ptypes/timestamp"
13 wrappers "github.com/golang/protobuf/ptypes/wrappers"
Herbie Ong70651952018-12-13 14:19:50 -080014 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
15 prototype "github.com/golang/protobuf/v2/reflect/prototype"
16 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Herbie Ongcddf8192018-11-28 18:25:20 -080017)
18
Herbie Ongcddf8192018-11-28 18:25:20 -080019// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
Herbie Ong70651952018-12-13 14:19:50 -080023const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
Herbie Ongcddf8192018-11-28 18:25:20 -080024
25type Enum int32
26
27const (
28 Enum_UNKNOWN Enum = 0
29 Enum_FIRST Enum = 1
30 Enum_SECOND Enum = 2
31 Enum_TENTH Enum = 10
32)
33
Herbie Ong70651952018-12-13 14:19:50 -080034type xxx_Enum Enum
35
36func (e Enum) ProtoReflect() protoreflect.Enum {
37 return (xxx_Enum)(e)
38}
39func (e xxx_Enum) Type() protoreflect.EnumType {
40 return xxx_Test_ProtoFile_EnumTypes[0]
41}
42func (e xxx_Enum) Number() protoreflect.EnumNumber {
43 return protoreflect.EnumNumber(e)
44}
45
Herbie Ongcddf8192018-11-28 18:25:20 -080046var Enum_name = map[int32]string{
47 0: "UNKNOWN",
48 1: "FIRST",
49 2: "SECOND",
50 10: "TENTH",
51}
52
53var Enum_value = map[string]int32{
54 "UNKNOWN": 0,
55 "FIRST": 1,
56 "SECOND": 2,
57 "TENTH": 10,
58}
59
60func (x Enum) Enum() *Enum {
61 p := new(Enum)
62 *p = x
63 return p
64}
65
66func (x Enum) String() string {
67 return proto.EnumName(Enum_name, int32(x))
68}
69
70func (x *Enum) UnmarshalJSON(data []byte) error {
71 value, err := proto.UnmarshalJSONEnum(Enum_value, data, "Enum")
72 if err != nil {
73 return err
74 }
75 *x = Enum(value)
76 return nil
77}
78
79func (Enum) EnumDescriptor() ([]byte, []int) {
80 return fileDescriptor_c8d7acc1bcec9a72, []int{0}
81}
82
83type Enums_NestedEnum int32
84
85const (
86 Enums_UNO Enums_NestedEnum = 1
87 Enums_DOS Enums_NestedEnum = 2
88 Enums_DIEZ Enums_NestedEnum = 10
89)
90
Herbie Ong70651952018-12-13 14:19:50 -080091type xxx_Enums_NestedEnum Enums_NestedEnum
92
93func (e Enums_NestedEnum) ProtoReflect() protoreflect.Enum {
94 return (xxx_Enums_NestedEnum)(e)
95}
96func (e xxx_Enums_NestedEnum) Type() protoreflect.EnumType {
97 return xxx_Test_ProtoFile_EnumTypes[1]
98}
99func (e xxx_Enums_NestedEnum) Number() protoreflect.EnumNumber {
100 return protoreflect.EnumNumber(e)
101}
102
Herbie Ongcddf8192018-11-28 18:25:20 -0800103var Enums_NestedEnum_name = map[int32]string{
104 1: "UNO",
105 2: "DOS",
106 10: "DIEZ",
107}
108
109var Enums_NestedEnum_value = map[string]int32{
110 "UNO": 1,
111 "DOS": 2,
112 "DIEZ": 10,
113}
114
115func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
116 p := new(Enums_NestedEnum)
117 *p = x
118 return p
119}
120
121func (x Enums_NestedEnum) String() string {
122 return proto.EnumName(Enums_NestedEnum_name, int32(x))
123}
124
125func (x *Enums_NestedEnum) UnmarshalJSON(data []byte) error {
126 value, err := proto.UnmarshalJSONEnum(Enums_NestedEnum_value, data, "Enums_NestedEnum")
127 if err != nil {
128 return err
129 }
130 *x = Enums_NestedEnum(value)
131 return nil
132}
133
134func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
135 return fileDescriptor_c8d7acc1bcec9a72, []int{2, 0}
136}
137
138// Scalars contains optional scalar fields.
139type Scalars struct {
140 OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
141 OptInt32 *int32 `protobuf:"varint,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
142 OptInt64 *int64 `protobuf:"varint,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
143 OptUint32 *uint32 `protobuf:"varint,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
144 OptUint64 *uint64 `protobuf:"varint,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
145 OptSint32 *int32 `protobuf:"zigzag32,6,opt,name=opt_sint32,json=optSint32" json:"opt_sint32,omitempty"`
146 OptSint64 *int64 `protobuf:"zigzag64,7,opt,name=opt_sint64,json=optSint64" json:"opt_sint64,omitempty"`
147 OptFixed32 *uint32 `protobuf:"fixed32,8,opt,name=opt_fixed32,json=optFixed32" json:"opt_fixed32,omitempty"`
148 OptFixed64 *uint64 `protobuf:"fixed64,9,opt,name=opt_fixed64,json=optFixed64" json:"opt_fixed64,omitempty"`
149 OptSfixed32 *int32 `protobuf:"fixed32,10,opt,name=opt_sfixed32,json=optSfixed32" json:"opt_sfixed32,omitempty"`
150 OptSfixed64 *int64 `protobuf:"fixed64,11,opt,name=opt_sfixed64,json=optSfixed64" json:"opt_sfixed64,omitempty"`
151 OptFloat *float32 `protobuf:"fixed32,20,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
152 OptDouble *float64 `protobuf:"fixed64,21,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
153 OptBytes []byte `protobuf:"bytes,14,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
154 OptString *string `protobuf:"bytes,13,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
155 XXX_NoUnkeyedLiteral struct{} `json:"-"`
156 XXX_unrecognized []byte `json:"-"`
157 XXX_sizecache int32 `json:"-"`
158}
159
Herbie Ong70651952018-12-13 14:19:50 -0800160type xxx_Scalars struct{ m *Scalars }
161
162func (m *Scalars) ProtoReflect() protoreflect.Message {
163 return xxx_Scalars{m}
164}
165func (m xxx_Scalars) Type() protoreflect.MessageType {
166 return xxx_Test_ProtoFile_MessageTypes[0].Type
167}
168func (m xxx_Scalars) KnownFields() protoreflect.KnownFields {
169 return xxx_Test_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
170}
171func (m xxx_Scalars) UnknownFields() protoreflect.UnknownFields {
172 return xxx_Test_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
173}
174func (m xxx_Scalars) Interface() protoreflect.ProtoMessage {
175 return m.m
176}
177
Herbie Ongcddf8192018-11-28 18:25:20 -0800178func (m *Scalars) Reset() { *m = Scalars{} }
179func (m *Scalars) String() string { return proto.CompactTextString(m) }
180func (*Scalars) ProtoMessage() {}
181func (*Scalars) Descriptor() ([]byte, []int) {
182 return fileDescriptor_c8d7acc1bcec9a72, []int{0}
183}
184
185func (m *Scalars) XXX_Unmarshal(b []byte) error {
186 return xxx_messageInfo_Scalars.Unmarshal(m, b)
187}
188func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
189 return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
190}
191func (m *Scalars) XXX_Merge(src proto.Message) {
192 xxx_messageInfo_Scalars.Merge(m, src)
193}
194func (m *Scalars) XXX_Size() int {
195 return xxx_messageInfo_Scalars.Size(m)
196}
197func (m *Scalars) XXX_DiscardUnknown() {
198 xxx_messageInfo_Scalars.DiscardUnknown(m)
199}
200
201var xxx_messageInfo_Scalars proto.InternalMessageInfo
202
203func (m *Scalars) GetOptBool() bool {
204 if m != nil && m.OptBool != nil {
205 return *m.OptBool
206 }
207 return false
208}
209
210func (m *Scalars) GetOptInt32() int32 {
211 if m != nil && m.OptInt32 != nil {
212 return *m.OptInt32
213 }
214 return 0
215}
216
217func (m *Scalars) GetOptInt64() int64 {
218 if m != nil && m.OptInt64 != nil {
219 return *m.OptInt64
220 }
221 return 0
222}
223
224func (m *Scalars) GetOptUint32() uint32 {
225 if m != nil && m.OptUint32 != nil {
226 return *m.OptUint32
227 }
228 return 0
229}
230
231func (m *Scalars) GetOptUint64() uint64 {
232 if m != nil && m.OptUint64 != nil {
233 return *m.OptUint64
234 }
235 return 0
236}
237
238func (m *Scalars) GetOptSint32() int32 {
239 if m != nil && m.OptSint32 != nil {
240 return *m.OptSint32
241 }
242 return 0
243}
244
245func (m *Scalars) GetOptSint64() int64 {
246 if m != nil && m.OptSint64 != nil {
247 return *m.OptSint64
248 }
249 return 0
250}
251
252func (m *Scalars) GetOptFixed32() uint32 {
253 if m != nil && m.OptFixed32 != nil {
254 return *m.OptFixed32
255 }
256 return 0
257}
258
259func (m *Scalars) GetOptFixed64() uint64 {
260 if m != nil && m.OptFixed64 != nil {
261 return *m.OptFixed64
262 }
263 return 0
264}
265
266func (m *Scalars) GetOptSfixed32() int32 {
267 if m != nil && m.OptSfixed32 != nil {
268 return *m.OptSfixed32
269 }
270 return 0
271}
272
273func (m *Scalars) GetOptSfixed64() int64 {
274 if m != nil && m.OptSfixed64 != nil {
275 return *m.OptSfixed64
276 }
277 return 0
278}
279
280func (m *Scalars) GetOptFloat() float32 {
281 if m != nil && m.OptFloat != nil {
282 return *m.OptFloat
283 }
284 return 0
285}
286
287func (m *Scalars) GetOptDouble() float64 {
288 if m != nil && m.OptDouble != nil {
289 return *m.OptDouble
290 }
291 return 0
292}
293
294func (m *Scalars) GetOptBytes() []byte {
295 if m != nil {
296 return m.OptBytes
297 }
298 return nil
299}
300
301func (m *Scalars) GetOptString() string {
302 if m != nil && m.OptString != nil {
303 return *m.OptString
304 }
305 return ""
306}
307
308// Message contains repeated fields.
309type Repeats struct {
310 RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
311 RptInt32 []int32 `protobuf:"varint,2,rep,name=rpt_int32,json=rptInt32" json:"rpt_int32,omitempty"`
312 RptInt64 []int64 `protobuf:"varint,3,rep,name=rpt_int64,json=rptInt64" json:"rpt_int64,omitempty"`
313 RptUint32 []uint32 `protobuf:"varint,4,rep,name=rpt_uint32,json=rptUint32" json:"rpt_uint32,omitempty"`
314 RptUint64 []uint64 `protobuf:"varint,5,rep,name=rpt_uint64,json=rptUint64" json:"rpt_uint64,omitempty"`
315 RptFloat []float32 `protobuf:"fixed32,6,rep,name=rpt_float,json=rptFloat" json:"rpt_float,omitempty"`
316 RptDouble []float64 `protobuf:"fixed64,7,rep,name=rpt_double,json=rptDouble" json:"rpt_double,omitempty"`
317 RptString []string `protobuf:"bytes,15,rep,name=rpt_string,json=rptString" json:"rpt_string,omitempty"`
318 RptBytes [][]byte `protobuf:"bytes,14,rep,name=rpt_bytes,json=rptBytes" json:"rpt_bytes,omitempty"`
319 XXX_NoUnkeyedLiteral struct{} `json:"-"`
320 XXX_unrecognized []byte `json:"-"`
321 XXX_sizecache int32 `json:"-"`
322}
323
Herbie Ong70651952018-12-13 14:19:50 -0800324type xxx_Repeats struct{ m *Repeats }
325
326func (m *Repeats) ProtoReflect() protoreflect.Message {
327 return xxx_Repeats{m}
328}
329func (m xxx_Repeats) Type() protoreflect.MessageType {
330 return xxx_Test_ProtoFile_MessageTypes[1].Type
331}
332func (m xxx_Repeats) KnownFields() protoreflect.KnownFields {
333 return xxx_Test_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
334}
335func (m xxx_Repeats) UnknownFields() protoreflect.UnknownFields {
336 return xxx_Test_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
337}
338func (m xxx_Repeats) Interface() protoreflect.ProtoMessage {
339 return m.m
340}
341
Herbie Ongcddf8192018-11-28 18:25:20 -0800342func (m *Repeats) Reset() { *m = Repeats{} }
343func (m *Repeats) String() string { return proto.CompactTextString(m) }
344func (*Repeats) ProtoMessage() {}
345func (*Repeats) Descriptor() ([]byte, []int) {
346 return fileDescriptor_c8d7acc1bcec9a72, []int{1}
347}
348
349func (m *Repeats) XXX_Unmarshal(b []byte) error {
350 return xxx_messageInfo_Repeats.Unmarshal(m, b)
351}
352func (m *Repeats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
353 return xxx_messageInfo_Repeats.Marshal(b, m, deterministic)
354}
355func (m *Repeats) XXX_Merge(src proto.Message) {
356 xxx_messageInfo_Repeats.Merge(m, src)
357}
358func (m *Repeats) XXX_Size() int {
359 return xxx_messageInfo_Repeats.Size(m)
360}
361func (m *Repeats) XXX_DiscardUnknown() {
362 xxx_messageInfo_Repeats.DiscardUnknown(m)
363}
364
365var xxx_messageInfo_Repeats proto.InternalMessageInfo
366
367func (m *Repeats) GetRptBool() []bool {
368 if m != nil {
369 return m.RptBool
370 }
371 return nil
372}
373
374func (m *Repeats) GetRptInt32() []int32 {
375 if m != nil {
376 return m.RptInt32
377 }
378 return nil
379}
380
381func (m *Repeats) GetRptInt64() []int64 {
382 if m != nil {
383 return m.RptInt64
384 }
385 return nil
386}
387
388func (m *Repeats) GetRptUint32() []uint32 {
389 if m != nil {
390 return m.RptUint32
391 }
392 return nil
393}
394
395func (m *Repeats) GetRptUint64() []uint64 {
396 if m != nil {
397 return m.RptUint64
398 }
399 return nil
400}
401
402func (m *Repeats) GetRptFloat() []float32 {
403 if m != nil {
404 return m.RptFloat
405 }
406 return nil
407}
408
409func (m *Repeats) GetRptDouble() []float64 {
410 if m != nil {
411 return m.RptDouble
412 }
413 return nil
414}
415
416func (m *Repeats) GetRptString() []string {
417 if m != nil {
418 return m.RptString
419 }
420 return nil
421}
422
423func (m *Repeats) GetRptBytes() [][]byte {
424 if m != nil {
425 return m.RptBytes
426 }
427 return nil
428}
429
430// Message contains enum fields.
431type Enums struct {
432 OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
433 RptEnum []Enum `protobuf:"varint,2,rep,name=rpt_enum,json=rptEnum,enum=pb2.Enum" json:"rpt_enum,omitempty"`
434 OptNestedEnum *Enums_NestedEnum `protobuf:"varint,3,opt,name=opt_nested_enum,json=optNestedEnum,enum=pb2.Enums_NestedEnum" json:"opt_nested_enum,omitempty"`
435 RptNestedEnum []Enums_NestedEnum `protobuf:"varint,4,rep,name=rpt_nested_enum,json=rptNestedEnum,enum=pb2.Enums_NestedEnum" json:"rpt_nested_enum,omitempty"`
436 XXX_NoUnkeyedLiteral struct{} `json:"-"`
437 XXX_unrecognized []byte `json:"-"`
438 XXX_sizecache int32 `json:"-"`
439}
440
Herbie Ong70651952018-12-13 14:19:50 -0800441type xxx_Enums struct{ m *Enums }
442
443func (m *Enums) ProtoReflect() protoreflect.Message {
444 return xxx_Enums{m}
445}
446func (m xxx_Enums) Type() protoreflect.MessageType {
447 return xxx_Test_ProtoFile_MessageTypes[2].Type
448}
449func (m xxx_Enums) KnownFields() protoreflect.KnownFields {
450 return xxx_Test_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
451}
452func (m xxx_Enums) UnknownFields() protoreflect.UnknownFields {
453 return xxx_Test_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
454}
455func (m xxx_Enums) Interface() protoreflect.ProtoMessage {
456 return m.m
457}
458
Herbie Ongcddf8192018-11-28 18:25:20 -0800459func (m *Enums) Reset() { *m = Enums{} }
460func (m *Enums) String() string { return proto.CompactTextString(m) }
461func (*Enums) ProtoMessage() {}
462func (*Enums) Descriptor() ([]byte, []int) {
463 return fileDescriptor_c8d7acc1bcec9a72, []int{2}
464}
465
466func (m *Enums) XXX_Unmarshal(b []byte) error {
467 return xxx_messageInfo_Enums.Unmarshal(m, b)
468}
469func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
470 return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
471}
472func (m *Enums) XXX_Merge(src proto.Message) {
473 xxx_messageInfo_Enums.Merge(m, src)
474}
475func (m *Enums) XXX_Size() int {
476 return xxx_messageInfo_Enums.Size(m)
477}
478func (m *Enums) XXX_DiscardUnknown() {
479 xxx_messageInfo_Enums.DiscardUnknown(m)
480}
481
482var xxx_messageInfo_Enums proto.InternalMessageInfo
483
484func (m *Enums) GetOptEnum() Enum {
485 if m != nil && m.OptEnum != nil {
486 return *m.OptEnum
487 }
488 return Enum_UNKNOWN
489}
490
491func (m *Enums) GetRptEnum() []Enum {
492 if m != nil {
493 return m.RptEnum
494 }
495 return nil
496}
497
498func (m *Enums) GetOptNestedEnum() Enums_NestedEnum {
499 if m != nil && m.OptNestedEnum != nil {
500 return *m.OptNestedEnum
501 }
502 return Enums_UNO
503}
504
505func (m *Enums) GetRptNestedEnum() []Enums_NestedEnum {
506 if m != nil {
507 return m.RptNestedEnum
508 }
509 return nil
510}
511
512// Message contains message and group fields.
513type Nests struct {
514 OptNested *Nested `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
515 Optgroup *Nests_OptGroup `protobuf:"group,2,opt,name=OptGroup,json=optgroup" json:"optgroup,omitempty"`
516 RptNested []*Nested `protobuf:"bytes,3,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
517 Rptgroup []*Nests_RptGroup `protobuf:"group,4,rep,name=RptGroup,json=rptgroup" json:"rptgroup,omitempty"`
518 XXX_NoUnkeyedLiteral struct{} `json:"-"`
519 XXX_unrecognized []byte `json:"-"`
520 XXX_sizecache int32 `json:"-"`
521}
522
Herbie Ong70651952018-12-13 14:19:50 -0800523type xxx_Nests struct{ m *Nests }
524
525func (m *Nests) ProtoReflect() protoreflect.Message {
526 return xxx_Nests{m}
527}
528func (m xxx_Nests) Type() protoreflect.MessageType {
529 return xxx_Test_ProtoFile_MessageTypes[3].Type
530}
531func (m xxx_Nests) KnownFields() protoreflect.KnownFields {
532 return xxx_Test_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
533}
534func (m xxx_Nests) UnknownFields() protoreflect.UnknownFields {
535 return xxx_Test_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
536}
537func (m xxx_Nests) Interface() protoreflect.ProtoMessage {
538 return m.m
539}
540
Herbie Ongcddf8192018-11-28 18:25:20 -0800541func (m *Nests) Reset() { *m = Nests{} }
542func (m *Nests) String() string { return proto.CompactTextString(m) }
543func (*Nests) ProtoMessage() {}
544func (*Nests) Descriptor() ([]byte, []int) {
545 return fileDescriptor_c8d7acc1bcec9a72, []int{3}
546}
547
548func (m *Nests) XXX_Unmarshal(b []byte) error {
549 return xxx_messageInfo_Nests.Unmarshal(m, b)
550}
551func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
552 return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
553}
554func (m *Nests) XXX_Merge(src proto.Message) {
555 xxx_messageInfo_Nests.Merge(m, src)
556}
557func (m *Nests) XXX_Size() int {
558 return xxx_messageInfo_Nests.Size(m)
559}
560func (m *Nests) XXX_DiscardUnknown() {
561 xxx_messageInfo_Nests.DiscardUnknown(m)
562}
563
564var xxx_messageInfo_Nests proto.InternalMessageInfo
565
566func (m *Nests) GetOptNested() *Nested {
567 if m != nil {
568 return m.OptNested
569 }
570 return nil
571}
572
573func (m *Nests) GetOptgroup() *Nests_OptGroup {
574 if m != nil {
575 return m.Optgroup
576 }
577 return nil
578}
579
580func (m *Nests) GetRptNested() []*Nested {
581 if m != nil {
582 return m.RptNested
583 }
584 return nil
585}
586
587func (m *Nests) GetRptgroup() []*Nests_RptGroup {
588 if m != nil {
589 return m.Rptgroup
590 }
591 return nil
592}
593
Herbie Ongcddf8192018-11-28 18:25:20 -0800594// Message type used as submessage.
595type Nested struct {
596 OptString *string `protobuf:"bytes,1,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
597 OptNested *Nested `protobuf:"bytes,2,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
598 XXX_NoUnkeyedLiteral struct{} `json:"-"`
599 XXX_unrecognized []byte `json:"-"`
600 XXX_sizecache int32 `json:"-"`
601}
602
Herbie Ong70651952018-12-13 14:19:50 -0800603type xxx_Nested struct{ m *Nested }
604
605func (m *Nested) ProtoReflect() protoreflect.Message {
606 return xxx_Nested{m}
607}
608func (m xxx_Nested) Type() protoreflect.MessageType {
609 return xxx_Test_ProtoFile_MessageTypes[4].Type
610}
611func (m xxx_Nested) KnownFields() protoreflect.KnownFields {
612 return xxx_Test_ProtoFile_MessageTypes[4].KnownFieldsOf(m.m)
613}
614func (m xxx_Nested) UnknownFields() protoreflect.UnknownFields {
615 return xxx_Test_ProtoFile_MessageTypes[4].UnknownFieldsOf(m.m)
616}
617func (m xxx_Nested) Interface() protoreflect.ProtoMessage {
618 return m.m
619}
620
Herbie Ongcddf8192018-11-28 18:25:20 -0800621func (m *Nested) Reset() { *m = Nested{} }
622func (m *Nested) String() string { return proto.CompactTextString(m) }
623func (*Nested) ProtoMessage() {}
624func (*Nested) Descriptor() ([]byte, []int) {
625 return fileDescriptor_c8d7acc1bcec9a72, []int{4}
626}
627
628func (m *Nested) XXX_Unmarshal(b []byte) error {
629 return xxx_messageInfo_Nested.Unmarshal(m, b)
630}
631func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
632 return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
633}
634func (m *Nested) XXX_Merge(src proto.Message) {
635 xxx_messageInfo_Nested.Merge(m, src)
636}
637func (m *Nested) XXX_Size() int {
638 return xxx_messageInfo_Nested.Size(m)
639}
640func (m *Nested) XXX_DiscardUnknown() {
641 xxx_messageInfo_Nested.DiscardUnknown(m)
642}
643
644var xxx_messageInfo_Nested proto.InternalMessageInfo
645
646func (m *Nested) GetOptString() string {
647 if m != nil && m.OptString != nil {
648 return *m.OptString
649 }
650 return ""
651}
652
653func (m *Nested) GetOptNested() *Nested {
654 if m != nil {
655 return m.OptNested
656 }
657 return nil
658}
659
660// Message contains required fields.
661type Requireds struct {
662 ReqBool *bool `protobuf:"varint,1,req,name=req_bool,json=reqBool" json:"req_bool,omitempty"`
663 ReqFixed32 *uint32 `protobuf:"fixed32,2,req,name=req_fixed32,json=reqFixed32" json:"req_fixed32,omitempty"`
664 ReqFixed64 *uint64 `protobuf:"fixed64,3,req,name=req_fixed64,json=reqFixed64" json:"req_fixed64,omitempty"`
665 ReqSfixed32 *int32 `protobuf:"fixed32,4,req,name=req_sfixed32,json=reqSfixed32" json:"req_sfixed32,omitempty"`
666 ReqSfixed64 *int64 `protobuf:"fixed64,5,req,name=req_sfixed64,json=reqSfixed64" json:"req_sfixed64,omitempty"`
667 ReqFloat *float32 `protobuf:"fixed32,6,req,name=req_float,json=reqFloat" json:"req_float,omitempty"`
668 ReqDouble *float64 `protobuf:"fixed64,7,req,name=req_double,json=reqDouble" json:"req_double,omitempty"`
669 ReqString *string `protobuf:"bytes,8,req,name=req_string,json=reqString" json:"req_string,omitempty"`
670 ReqBytes []byte `protobuf:"bytes,9,req,name=req_bytes,json=reqBytes" json:"req_bytes,omitempty"`
671 ReqEnum *Enum `protobuf:"varint,10,req,name=req_enum,json=reqEnum,enum=pb2.Enum" json:"req_enum,omitempty"`
672 ReqNested *Nested `protobuf:"bytes,11,req,name=req_nested,json=reqNested" json:"req_nested,omitempty"`
673 XXX_NoUnkeyedLiteral struct{} `json:"-"`
674 XXX_unrecognized []byte `json:"-"`
675 XXX_sizecache int32 `json:"-"`
676}
677
Herbie Ong70651952018-12-13 14:19:50 -0800678type xxx_Requireds struct{ m *Requireds }
679
680func (m *Requireds) ProtoReflect() protoreflect.Message {
681 return xxx_Requireds{m}
682}
683func (m xxx_Requireds) Type() protoreflect.MessageType {
684 return xxx_Test_ProtoFile_MessageTypes[5].Type
685}
686func (m xxx_Requireds) KnownFields() protoreflect.KnownFields {
687 return xxx_Test_ProtoFile_MessageTypes[5].KnownFieldsOf(m.m)
688}
689func (m xxx_Requireds) UnknownFields() protoreflect.UnknownFields {
690 return xxx_Test_ProtoFile_MessageTypes[5].UnknownFieldsOf(m.m)
691}
692func (m xxx_Requireds) Interface() protoreflect.ProtoMessage {
693 return m.m
694}
695
Herbie Ongcddf8192018-11-28 18:25:20 -0800696func (m *Requireds) Reset() { *m = Requireds{} }
697func (m *Requireds) String() string { return proto.CompactTextString(m) }
698func (*Requireds) ProtoMessage() {}
699func (*Requireds) Descriptor() ([]byte, []int) {
700 return fileDescriptor_c8d7acc1bcec9a72, []int{5}
701}
702
703func (m *Requireds) XXX_Unmarshal(b []byte) error {
704 return xxx_messageInfo_Requireds.Unmarshal(m, b)
705}
706func (m *Requireds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
707 return xxx_messageInfo_Requireds.Marshal(b, m, deterministic)
708}
709func (m *Requireds) XXX_Merge(src proto.Message) {
710 xxx_messageInfo_Requireds.Merge(m, src)
711}
712func (m *Requireds) XXX_Size() int {
713 return xxx_messageInfo_Requireds.Size(m)
714}
715func (m *Requireds) XXX_DiscardUnknown() {
716 xxx_messageInfo_Requireds.DiscardUnknown(m)
717}
718
719var xxx_messageInfo_Requireds proto.InternalMessageInfo
720
721func (m *Requireds) GetReqBool() bool {
722 if m != nil && m.ReqBool != nil {
723 return *m.ReqBool
724 }
725 return false
726}
727
728func (m *Requireds) GetReqFixed32() uint32 {
729 if m != nil && m.ReqFixed32 != nil {
730 return *m.ReqFixed32
731 }
732 return 0
733}
734
735func (m *Requireds) GetReqFixed64() uint64 {
736 if m != nil && m.ReqFixed64 != nil {
737 return *m.ReqFixed64
738 }
739 return 0
740}
741
742func (m *Requireds) GetReqSfixed32() int32 {
743 if m != nil && m.ReqSfixed32 != nil {
744 return *m.ReqSfixed32
745 }
746 return 0
747}
748
749func (m *Requireds) GetReqSfixed64() int64 {
750 if m != nil && m.ReqSfixed64 != nil {
751 return *m.ReqSfixed64
752 }
753 return 0
754}
755
756func (m *Requireds) GetReqFloat() float32 {
757 if m != nil && m.ReqFloat != nil {
758 return *m.ReqFloat
759 }
760 return 0
761}
762
763func (m *Requireds) GetReqDouble() float64 {
764 if m != nil && m.ReqDouble != nil {
765 return *m.ReqDouble
766 }
767 return 0
768}
769
770func (m *Requireds) GetReqString() string {
771 if m != nil && m.ReqString != nil {
772 return *m.ReqString
773 }
774 return ""
775}
776
777func (m *Requireds) GetReqBytes() []byte {
778 if m != nil {
779 return m.ReqBytes
780 }
781 return nil
782}
783
784func (m *Requireds) GetReqEnum() Enum {
785 if m != nil && m.ReqEnum != nil {
786 return *m.ReqEnum
787 }
788 return Enum_UNKNOWN
789}
790
791func (m *Requireds) GetReqNested() *Nested {
792 if m != nil {
793 return m.ReqNested
794 }
795 return nil
796}
797
Herbie Ong800c9902018-12-06 15:28:53 -0800798// Message contains both required and optional fields.
799type PartialRequired struct {
800 ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"`
801 OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
802 XXX_NoUnkeyedLiteral struct{} `json:"-"`
803 XXX_unrecognized []byte `json:"-"`
804 XXX_sizecache int32 `json:"-"`
805}
806
Herbie Ong70651952018-12-13 14:19:50 -0800807type xxx_PartialRequired struct{ m *PartialRequired }
808
809func (m *PartialRequired) ProtoReflect() protoreflect.Message {
810 return xxx_PartialRequired{m}
811}
812func (m xxx_PartialRequired) Type() protoreflect.MessageType {
813 return xxx_Test_ProtoFile_MessageTypes[6].Type
814}
815func (m xxx_PartialRequired) KnownFields() protoreflect.KnownFields {
816 return xxx_Test_ProtoFile_MessageTypes[6].KnownFieldsOf(m.m)
817}
818func (m xxx_PartialRequired) UnknownFields() protoreflect.UnknownFields {
819 return xxx_Test_ProtoFile_MessageTypes[6].UnknownFieldsOf(m.m)
820}
821func (m xxx_PartialRequired) Interface() protoreflect.ProtoMessage {
822 return m.m
823}
824
Herbie Ong800c9902018-12-06 15:28:53 -0800825func (m *PartialRequired) Reset() { *m = PartialRequired{} }
826func (m *PartialRequired) String() string { return proto.CompactTextString(m) }
827func (*PartialRequired) ProtoMessage() {}
828func (*PartialRequired) Descriptor() ([]byte, []int) {
829 return fileDescriptor_c8d7acc1bcec9a72, []int{6}
830}
831
832func (m *PartialRequired) XXX_Unmarshal(b []byte) error {
833 return xxx_messageInfo_PartialRequired.Unmarshal(m, b)
834}
835func (m *PartialRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
836 return xxx_messageInfo_PartialRequired.Marshal(b, m, deterministic)
837}
838func (m *PartialRequired) XXX_Merge(src proto.Message) {
839 xxx_messageInfo_PartialRequired.Merge(m, src)
840}
841func (m *PartialRequired) XXX_Size() int {
842 return xxx_messageInfo_PartialRequired.Size(m)
843}
844func (m *PartialRequired) XXX_DiscardUnknown() {
845 xxx_messageInfo_PartialRequired.DiscardUnknown(m)
846}
847
848var xxx_messageInfo_PartialRequired proto.InternalMessageInfo
849
850func (m *PartialRequired) GetReqString() string {
851 if m != nil && m.ReqString != nil {
852 return *m.ReqString
853 }
854 return ""
855}
856
857func (m *PartialRequired) GetOptString() string {
858 if m != nil && m.OptString != nil {
859 return *m.OptString
860 }
861 return ""
862}
863
Herbie Ongcddf8192018-11-28 18:25:20 -0800864// Message contains oneof field.
865type Oneofs struct {
866 // Types that are valid to be assigned to Union:
867 // *Oneofs_Str
868 // *Oneofs_Msg
869 Union isOneofs_Union `protobuf_oneof:"union"`
870 XXX_NoUnkeyedLiteral struct{} `json:"-"`
871 XXX_unrecognized []byte `json:"-"`
872 XXX_sizecache int32 `json:"-"`
873}
874
Herbie Ong70651952018-12-13 14:19:50 -0800875type xxx_Oneofs struct{ m *Oneofs }
876
877func (m *Oneofs) ProtoReflect() protoreflect.Message {
878 return xxx_Oneofs{m}
879}
880func (m xxx_Oneofs) Type() protoreflect.MessageType {
881 return xxx_Test_ProtoFile_MessageTypes[7].Type
882}
883func (m xxx_Oneofs) KnownFields() protoreflect.KnownFields {
884 return xxx_Test_ProtoFile_MessageTypes[7].KnownFieldsOf(m.m)
885}
886func (m xxx_Oneofs) UnknownFields() protoreflect.UnknownFields {
887 return xxx_Test_ProtoFile_MessageTypes[7].UnknownFieldsOf(m.m)
888}
889func (m xxx_Oneofs) Interface() protoreflect.ProtoMessage {
890 return m.m
891}
892
Herbie Ongcddf8192018-11-28 18:25:20 -0800893func (m *Oneofs) Reset() { *m = Oneofs{} }
894func (m *Oneofs) String() string { return proto.CompactTextString(m) }
895func (*Oneofs) ProtoMessage() {}
896func (*Oneofs) Descriptor() ([]byte, []int) {
Herbie Ong800c9902018-12-06 15:28:53 -0800897 return fileDescriptor_c8d7acc1bcec9a72, []int{7}
Herbie Ongcddf8192018-11-28 18:25:20 -0800898}
899
900func (m *Oneofs) XXX_Unmarshal(b []byte) error {
901 return xxx_messageInfo_Oneofs.Unmarshal(m, b)
902}
903func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
904 return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
905}
906func (m *Oneofs) XXX_Merge(src proto.Message) {
907 xxx_messageInfo_Oneofs.Merge(m, src)
908}
909func (m *Oneofs) XXX_Size() int {
910 return xxx_messageInfo_Oneofs.Size(m)
911}
912func (m *Oneofs) XXX_DiscardUnknown() {
913 xxx_messageInfo_Oneofs.DiscardUnknown(m)
914}
915
916var xxx_messageInfo_Oneofs proto.InternalMessageInfo
917
918type isOneofs_Union interface {
919 isOneofs_Union()
920}
921
922type Oneofs_Str struct {
923 Str string `protobuf:"bytes,1,opt,name=str,oneof"`
924}
925
926type Oneofs_Msg struct {
927 Msg *Nested `protobuf:"bytes,2,opt,name=msg,oneof"`
928}
929
930func (*Oneofs_Str) isOneofs_Union() {}
931
932func (*Oneofs_Msg) isOneofs_Union() {}
933
934func (m *Oneofs) GetUnion() isOneofs_Union {
935 if m != nil {
936 return m.Union
937 }
938 return nil
939}
940
941func (m *Oneofs) GetStr() string {
942 if x, ok := m.GetUnion().(*Oneofs_Str); ok {
943 return x.Str
944 }
945 return ""
946}
947
948func (m *Oneofs) GetMsg() *Nested {
949 if x, ok := m.GetUnion().(*Oneofs_Msg); ok {
950 return x.Msg
951 }
952 return nil
953}
954
Herbie Ong70651952018-12-13 14:19:50 -0800955// XXX_OneofWrappers is for the internal use of the proto package.
956func (*Oneofs) XXX_OneofWrappers() []interface{} {
957 return []interface{}{
Herbie Ongcddf8192018-11-28 18:25:20 -0800958 (*Oneofs_Str)(nil),
959 (*Oneofs_Msg)(nil),
960 }
961}
962
Herbie Ongcddf8192018-11-28 18:25:20 -0800963// Message contains map fields.
964type Maps struct {
965 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"`
966 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"`
967 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"`
968 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"`
969 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"`
970 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"`
971 XXX_NoUnkeyedLiteral struct{} `json:"-"`
972 XXX_unrecognized []byte `json:"-"`
973 XXX_sizecache int32 `json:"-"`
974}
975
Herbie Ong70651952018-12-13 14:19:50 -0800976type xxx_Maps struct{ m *Maps }
977
978func (m *Maps) ProtoReflect() protoreflect.Message {
979 return xxx_Maps{m}
980}
981func (m xxx_Maps) Type() protoreflect.MessageType {
982 return xxx_Test_ProtoFile_MessageTypes[8].Type
983}
984func (m xxx_Maps) KnownFields() protoreflect.KnownFields {
985 return xxx_Test_ProtoFile_MessageTypes[8].KnownFieldsOf(m.m)
986}
987func (m xxx_Maps) UnknownFields() protoreflect.UnknownFields {
988 return xxx_Test_ProtoFile_MessageTypes[8].UnknownFieldsOf(m.m)
989}
990func (m xxx_Maps) Interface() protoreflect.ProtoMessage {
991 return m.m
992}
993
Herbie Ongcddf8192018-11-28 18:25:20 -0800994func (m *Maps) Reset() { *m = Maps{} }
995func (m *Maps) String() string { return proto.CompactTextString(m) }
996func (*Maps) ProtoMessage() {}
997func (*Maps) Descriptor() ([]byte, []int) {
Herbie Ong800c9902018-12-06 15:28:53 -0800998 return fileDescriptor_c8d7acc1bcec9a72, []int{8}
Herbie Ongcddf8192018-11-28 18:25:20 -0800999}
1000
1001func (m *Maps) XXX_Unmarshal(b []byte) error {
1002 return xxx_messageInfo_Maps.Unmarshal(m, b)
1003}
1004func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1005 return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
1006}
1007func (m *Maps) XXX_Merge(src proto.Message) {
1008 xxx_messageInfo_Maps.Merge(m, src)
1009}
1010func (m *Maps) XXX_Size() int {
1011 return xxx_messageInfo_Maps.Size(m)
1012}
1013func (m *Maps) XXX_DiscardUnknown() {
1014 xxx_messageInfo_Maps.DiscardUnknown(m)
1015}
1016
1017var xxx_messageInfo_Maps proto.InternalMessageInfo
1018
1019func (m *Maps) GetInt32ToStr() map[int32]string {
1020 if m != nil {
1021 return m.Int32ToStr
1022 }
1023 return nil
1024}
1025
1026func (m *Maps) GetSfixed64ToBool() map[int64]bool {
1027 if m != nil {
1028 return m.Sfixed64ToBool
1029 }
1030 return nil
1031}
1032
1033func (m *Maps) GetBoolToUint32() map[bool]uint32 {
1034 if m != nil {
1035 return m.BoolToUint32
1036 }
1037 return nil
1038}
1039
1040func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
1041 if m != nil {
1042 return m.Uint64ToEnum
1043 }
1044 return nil
1045}
1046
1047func (m *Maps) GetStrToNested() map[string]*Nested {
1048 if m != nil {
1049 return m.StrToNested
1050 }
1051 return nil
1052}
1053
1054func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
1055 if m != nil {
1056 return m.StrToOneofs
1057 }
1058 return nil
1059}
1060
Herbie Ong800c9902018-12-06 15:28:53 -08001061// Following messages are for testing required field nested in optional, repeated and map fields.
1062type NestedWithRequired struct {
1063 ReqString *string `protobuf:"bytes,1,req,name=req_string,json=reqString" json:"req_string,omitempty"`
1064 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1065 XXX_unrecognized []byte `json:"-"`
1066 XXX_sizecache int32 `json:"-"`
1067}
1068
Herbie Ong70651952018-12-13 14:19:50 -08001069type xxx_NestedWithRequired struct{ m *NestedWithRequired }
1070
1071func (m *NestedWithRequired) ProtoReflect() protoreflect.Message {
1072 return xxx_NestedWithRequired{m}
1073}
1074func (m xxx_NestedWithRequired) Type() protoreflect.MessageType {
1075 return xxx_Test_ProtoFile_MessageTypes[9].Type
1076}
1077func (m xxx_NestedWithRequired) KnownFields() protoreflect.KnownFields {
1078 return xxx_Test_ProtoFile_MessageTypes[9].KnownFieldsOf(m.m)
1079}
1080func (m xxx_NestedWithRequired) UnknownFields() protoreflect.UnknownFields {
1081 return xxx_Test_ProtoFile_MessageTypes[9].UnknownFieldsOf(m.m)
1082}
1083func (m xxx_NestedWithRequired) Interface() protoreflect.ProtoMessage {
1084 return m.m
1085}
1086
Herbie Ong800c9902018-12-06 15:28:53 -08001087func (m *NestedWithRequired) Reset() { *m = NestedWithRequired{} }
1088func (m *NestedWithRequired) String() string { return proto.CompactTextString(m) }
1089func (*NestedWithRequired) ProtoMessage() {}
1090func (*NestedWithRequired) Descriptor() ([]byte, []int) {
1091 return fileDescriptor_c8d7acc1bcec9a72, []int{9}
1092}
1093
1094func (m *NestedWithRequired) XXX_Unmarshal(b []byte) error {
1095 return xxx_messageInfo_NestedWithRequired.Unmarshal(m, b)
1096}
1097func (m *NestedWithRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1098 return xxx_messageInfo_NestedWithRequired.Marshal(b, m, deterministic)
1099}
1100func (m *NestedWithRequired) XXX_Merge(src proto.Message) {
1101 xxx_messageInfo_NestedWithRequired.Merge(m, src)
1102}
1103func (m *NestedWithRequired) XXX_Size() int {
1104 return xxx_messageInfo_NestedWithRequired.Size(m)
1105}
1106func (m *NestedWithRequired) XXX_DiscardUnknown() {
1107 xxx_messageInfo_NestedWithRequired.DiscardUnknown(m)
1108}
1109
1110var xxx_messageInfo_NestedWithRequired proto.InternalMessageInfo
1111
1112func (m *NestedWithRequired) GetReqString() string {
1113 if m != nil && m.ReqString != nil {
1114 return *m.ReqString
1115 }
1116 return ""
1117}
1118
1119type IndirectRequired struct {
1120 OptNested *NestedWithRequired `protobuf:"bytes,1,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
1121 RptNested []*NestedWithRequired `protobuf:"bytes,2,rep,name=rpt_nested,json=rptNested" json:"rpt_nested,omitempty"`
1122 StrToNested map[string]*NestedWithRequired `protobuf:"bytes,3,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"`
1123 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1124 XXX_unrecognized []byte `json:"-"`
1125 XXX_sizecache int32 `json:"-"`
1126}
1127
Herbie Ong70651952018-12-13 14:19:50 -08001128type xxx_IndirectRequired struct{ m *IndirectRequired }
1129
1130func (m *IndirectRequired) ProtoReflect() protoreflect.Message {
1131 return xxx_IndirectRequired{m}
1132}
1133func (m xxx_IndirectRequired) Type() protoreflect.MessageType {
1134 return xxx_Test_ProtoFile_MessageTypes[10].Type
1135}
1136func (m xxx_IndirectRequired) KnownFields() protoreflect.KnownFields {
1137 return xxx_Test_ProtoFile_MessageTypes[10].KnownFieldsOf(m.m)
1138}
1139func (m xxx_IndirectRequired) UnknownFields() protoreflect.UnknownFields {
1140 return xxx_Test_ProtoFile_MessageTypes[10].UnknownFieldsOf(m.m)
1141}
1142func (m xxx_IndirectRequired) Interface() protoreflect.ProtoMessage {
1143 return m.m
1144}
1145
Herbie Ong800c9902018-12-06 15:28:53 -08001146func (m *IndirectRequired) Reset() { *m = IndirectRequired{} }
1147func (m *IndirectRequired) String() string { return proto.CompactTextString(m) }
1148func (*IndirectRequired) ProtoMessage() {}
1149func (*IndirectRequired) Descriptor() ([]byte, []int) {
1150 return fileDescriptor_c8d7acc1bcec9a72, []int{10}
1151}
1152
1153func (m *IndirectRequired) XXX_Unmarshal(b []byte) error {
1154 return xxx_messageInfo_IndirectRequired.Unmarshal(m, b)
1155}
1156func (m *IndirectRequired) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1157 return xxx_messageInfo_IndirectRequired.Marshal(b, m, deterministic)
1158}
1159func (m *IndirectRequired) XXX_Merge(src proto.Message) {
1160 xxx_messageInfo_IndirectRequired.Merge(m, src)
1161}
1162func (m *IndirectRequired) XXX_Size() int {
1163 return xxx_messageInfo_IndirectRequired.Size(m)
1164}
1165func (m *IndirectRequired) XXX_DiscardUnknown() {
1166 xxx_messageInfo_IndirectRequired.DiscardUnknown(m)
1167}
1168
1169var xxx_messageInfo_IndirectRequired proto.InternalMessageInfo
1170
1171func (m *IndirectRequired) GetOptNested() *NestedWithRequired {
1172 if m != nil {
1173 return m.OptNested
1174 }
1175 return nil
1176}
1177
1178func (m *IndirectRequired) GetRptNested() []*NestedWithRequired {
1179 if m != nil {
1180 return m.RptNested
1181 }
1182 return nil
1183}
1184
1185func (m *IndirectRequired) GetStrToNested() map[string]*NestedWithRequired {
1186 if m != nil {
1187 return m.StrToNested
1188 }
1189 return nil
1190}
1191
Herbie Ongcddf8192018-11-28 18:25:20 -08001192// Message contains well-known type fields.
1193type KnownTypes struct {
1194 OptBool *wrappers.BoolValue `protobuf:"bytes,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
1195 OptInt32 *wrappers.Int32Value `protobuf:"bytes,2,opt,name=opt_int32,json=optInt32" json:"opt_int32,omitempty"`
1196 OptInt64 *wrappers.Int64Value `protobuf:"bytes,3,opt,name=opt_int64,json=optInt64" json:"opt_int64,omitempty"`
1197 OptUint32 *wrappers.UInt32Value `protobuf:"bytes,4,opt,name=opt_uint32,json=optUint32" json:"opt_uint32,omitempty"`
1198 OptUint64 *wrappers.UInt64Value `protobuf:"bytes,5,opt,name=opt_uint64,json=optUint64" json:"opt_uint64,omitempty"`
1199 OptFloat *wrappers.FloatValue `protobuf:"bytes,6,opt,name=opt_float,json=optFloat" json:"opt_float,omitempty"`
1200 OptDouble *wrappers.DoubleValue `protobuf:"bytes,7,opt,name=opt_double,json=optDouble" json:"opt_double,omitempty"`
1201 OptString *wrappers.StringValue `protobuf:"bytes,8,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
1202 OptBytes *wrappers.BytesValue `protobuf:"bytes,9,opt,name=opt_bytes,json=optBytes" json:"opt_bytes,omitempty"`
1203 OptDuration *duration.Duration `protobuf:"bytes,20,opt,name=opt_duration,json=optDuration" json:"opt_duration,omitempty"`
1204 OptTimestamp *timestamp.Timestamp `protobuf:"bytes,21,opt,name=opt_timestamp,json=optTimestamp" json:"opt_timestamp,omitempty"`
1205 OptStruct *_struct.Struct `protobuf:"bytes,25,opt,name=opt_struct,json=optStruct" json:"opt_struct,omitempty"`
1206 OptList *_struct.ListValue `protobuf:"bytes,26,opt,name=opt_list,json=optList" json:"opt_list,omitempty"`
1207 OptValue *_struct.Value `protobuf:"bytes,27,opt,name=opt_value,json=optValue" json:"opt_value,omitempty"`
1208 OptEmpty *empty.Empty `protobuf:"bytes,30,opt,name=opt_empty,json=optEmpty" json:"opt_empty,omitempty"`
1209 OptAny *any.Any `protobuf:"bytes,32,opt,name=opt_any,json=optAny" json:"opt_any,omitempty"`
1210 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1211 XXX_unrecognized []byte `json:"-"`
1212 XXX_sizecache int32 `json:"-"`
1213}
1214
Herbie Ong70651952018-12-13 14:19:50 -08001215type xxx_KnownTypes struct{ m *KnownTypes }
1216
1217func (m *KnownTypes) ProtoReflect() protoreflect.Message {
1218 return xxx_KnownTypes{m}
1219}
1220func (m xxx_KnownTypes) Type() protoreflect.MessageType {
1221 return xxx_Test_ProtoFile_MessageTypes[11].Type
1222}
1223func (m xxx_KnownTypes) KnownFields() protoreflect.KnownFields {
1224 return xxx_Test_ProtoFile_MessageTypes[11].KnownFieldsOf(m.m)
1225}
1226func (m xxx_KnownTypes) UnknownFields() protoreflect.UnknownFields {
1227 return xxx_Test_ProtoFile_MessageTypes[11].UnknownFieldsOf(m.m)
1228}
1229func (m xxx_KnownTypes) Interface() protoreflect.ProtoMessage {
1230 return m.m
1231}
1232
Herbie Ongcddf8192018-11-28 18:25:20 -08001233func (m *KnownTypes) Reset() { *m = KnownTypes{} }
1234func (m *KnownTypes) String() string { return proto.CompactTextString(m) }
1235func (*KnownTypes) ProtoMessage() {}
1236func (*KnownTypes) Descriptor() ([]byte, []int) {
Herbie Ong800c9902018-12-06 15:28:53 -08001237 return fileDescriptor_c8d7acc1bcec9a72, []int{11}
Herbie Ongcddf8192018-11-28 18:25:20 -08001238}
1239
1240func (m *KnownTypes) XXX_Unmarshal(b []byte) error {
1241 return xxx_messageInfo_KnownTypes.Unmarshal(m, b)
1242}
1243func (m *KnownTypes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1244 return xxx_messageInfo_KnownTypes.Marshal(b, m, deterministic)
1245}
1246func (m *KnownTypes) XXX_Merge(src proto.Message) {
1247 xxx_messageInfo_KnownTypes.Merge(m, src)
1248}
1249func (m *KnownTypes) XXX_Size() int {
1250 return xxx_messageInfo_KnownTypes.Size(m)
1251}
1252func (m *KnownTypes) XXX_DiscardUnknown() {
1253 xxx_messageInfo_KnownTypes.DiscardUnknown(m)
1254}
1255
1256var xxx_messageInfo_KnownTypes proto.InternalMessageInfo
1257
1258func (m *KnownTypes) GetOptBool() *wrappers.BoolValue {
1259 if m != nil {
1260 return m.OptBool
1261 }
1262 return nil
1263}
1264
1265func (m *KnownTypes) GetOptInt32() *wrappers.Int32Value {
1266 if m != nil {
1267 return m.OptInt32
1268 }
1269 return nil
1270}
1271
1272func (m *KnownTypes) GetOptInt64() *wrappers.Int64Value {
1273 if m != nil {
1274 return m.OptInt64
1275 }
1276 return nil
1277}
1278
1279func (m *KnownTypes) GetOptUint32() *wrappers.UInt32Value {
1280 if m != nil {
1281 return m.OptUint32
1282 }
1283 return nil
1284}
1285
1286func (m *KnownTypes) GetOptUint64() *wrappers.UInt64Value {
1287 if m != nil {
1288 return m.OptUint64
1289 }
1290 return nil
1291}
1292
1293func (m *KnownTypes) GetOptFloat() *wrappers.FloatValue {
1294 if m != nil {
1295 return m.OptFloat
1296 }
1297 return nil
1298}
1299
1300func (m *KnownTypes) GetOptDouble() *wrappers.DoubleValue {
1301 if m != nil {
1302 return m.OptDouble
1303 }
1304 return nil
1305}
1306
1307func (m *KnownTypes) GetOptString() *wrappers.StringValue {
1308 if m != nil {
1309 return m.OptString
1310 }
1311 return nil
1312}
1313
1314func (m *KnownTypes) GetOptBytes() *wrappers.BytesValue {
1315 if m != nil {
1316 return m.OptBytes
1317 }
1318 return nil
1319}
1320
1321func (m *KnownTypes) GetOptDuration() *duration.Duration {
1322 if m != nil {
1323 return m.OptDuration
1324 }
1325 return nil
1326}
1327
1328func (m *KnownTypes) GetOptTimestamp() *timestamp.Timestamp {
1329 if m != nil {
1330 return m.OptTimestamp
1331 }
1332 return nil
1333}
1334
1335func (m *KnownTypes) GetOptStruct() *_struct.Struct {
1336 if m != nil {
1337 return m.OptStruct
1338 }
1339 return nil
1340}
1341
1342func (m *KnownTypes) GetOptList() *_struct.ListValue {
1343 if m != nil {
1344 return m.OptList
1345 }
1346 return nil
1347}
1348
1349func (m *KnownTypes) GetOptValue() *_struct.Value {
1350 if m != nil {
1351 return m.OptValue
1352 }
1353 return nil
1354}
1355
1356func (m *KnownTypes) GetOptEmpty() *empty.Empty {
1357 if m != nil {
1358 return m.OptEmpty
1359 }
1360 return nil
1361}
1362
1363func (m *KnownTypes) GetOptAny() *any.Any {
1364 if m != nil {
1365 return m.OptAny
1366 }
1367 return nil
1368}
1369
Herbie Ong70651952018-12-13 14:19:50 -08001370type Nests_OptGroup struct {
1371 OptBool *bool `protobuf:"varint,1,opt,name=opt_bool,json=optBool" json:"opt_bool,omitempty"`
1372 OptString *string `protobuf:"bytes,2,opt,name=opt_string,json=optString" json:"opt_string,omitempty"`
1373 OptNested *Nested `protobuf:"bytes,3,opt,name=opt_nested,json=optNested" json:"opt_nested,omitempty"`
1374 Optnestedgroup *Nests_OptGroup_OptNestedGroup `protobuf:"group,4,opt,name=OptNestedGroup,json=optnestedgroup" json:"optnestedgroup,omitempty"`
1375 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1376 XXX_unrecognized []byte `json:"-"`
1377 XXX_sizecache int32 `json:"-"`
1378}
1379
1380type xxx_Nests_OptGroup struct{ m *Nests_OptGroup }
1381
1382func (m *Nests_OptGroup) ProtoReflect() protoreflect.Message {
1383 return xxx_Nests_OptGroup{m}
1384}
1385func (m xxx_Nests_OptGroup) Type() protoreflect.MessageType {
1386 return xxx_Test_ProtoFile_MessageTypes[12].Type
1387}
1388func (m xxx_Nests_OptGroup) KnownFields() protoreflect.KnownFields {
1389 return xxx_Test_ProtoFile_MessageTypes[12].KnownFieldsOf(m.m)
1390}
1391func (m xxx_Nests_OptGroup) UnknownFields() protoreflect.UnknownFields {
1392 return xxx_Test_ProtoFile_MessageTypes[12].UnknownFieldsOf(m.m)
1393}
1394func (m xxx_Nests_OptGroup) Interface() protoreflect.ProtoMessage {
1395 return m.m
1396}
1397
1398func (m *Nests_OptGroup) Reset() { *m = Nests_OptGroup{} }
1399func (m *Nests_OptGroup) String() string { return proto.CompactTextString(m) }
1400func (*Nests_OptGroup) ProtoMessage() {}
1401func (*Nests_OptGroup) Descriptor() ([]byte, []int) {
1402 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0}
1403}
1404
1405func (m *Nests_OptGroup) XXX_Unmarshal(b []byte) error {
1406 return xxx_messageInfo_Nests_OptGroup.Unmarshal(m, b)
1407}
1408func (m *Nests_OptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1409 return xxx_messageInfo_Nests_OptGroup.Marshal(b, m, deterministic)
1410}
1411func (m *Nests_OptGroup) XXX_Merge(src proto.Message) {
1412 xxx_messageInfo_Nests_OptGroup.Merge(m, src)
1413}
1414func (m *Nests_OptGroup) XXX_Size() int {
1415 return xxx_messageInfo_Nests_OptGroup.Size(m)
1416}
1417func (m *Nests_OptGroup) XXX_DiscardUnknown() {
1418 xxx_messageInfo_Nests_OptGroup.DiscardUnknown(m)
1419}
1420
1421var xxx_messageInfo_Nests_OptGroup proto.InternalMessageInfo
1422
1423func (m *Nests_OptGroup) GetOptBool() bool {
1424 if m != nil && m.OptBool != nil {
1425 return *m.OptBool
1426 }
1427 return false
1428}
1429
1430func (m *Nests_OptGroup) GetOptString() string {
1431 if m != nil && m.OptString != nil {
1432 return *m.OptString
1433 }
1434 return ""
1435}
1436
1437func (m *Nests_OptGroup) GetOptNested() *Nested {
1438 if m != nil {
1439 return m.OptNested
1440 }
1441 return nil
1442}
1443
1444func (m *Nests_OptGroup) GetOptnestedgroup() *Nests_OptGroup_OptNestedGroup {
1445 if m != nil {
1446 return m.Optnestedgroup
1447 }
1448 return nil
1449}
1450
1451type Nests_RptGroup struct {
1452 RptBool []bool `protobuf:"varint,1,rep,name=rpt_bool,json=rptBool" json:"rpt_bool,omitempty"`
1453 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1454 XXX_unrecognized []byte `json:"-"`
1455 XXX_sizecache int32 `json:"-"`
1456}
1457
1458type xxx_Nests_RptGroup struct{ m *Nests_RptGroup }
1459
1460func (m *Nests_RptGroup) ProtoReflect() protoreflect.Message {
1461 return xxx_Nests_RptGroup{m}
1462}
1463func (m xxx_Nests_RptGroup) Type() protoreflect.MessageType {
1464 return xxx_Test_ProtoFile_MessageTypes[13].Type
1465}
1466func (m xxx_Nests_RptGroup) KnownFields() protoreflect.KnownFields {
1467 return xxx_Test_ProtoFile_MessageTypes[13].KnownFieldsOf(m.m)
1468}
1469func (m xxx_Nests_RptGroup) UnknownFields() protoreflect.UnknownFields {
1470 return xxx_Test_ProtoFile_MessageTypes[13].UnknownFieldsOf(m.m)
1471}
1472func (m xxx_Nests_RptGroup) Interface() protoreflect.ProtoMessage {
1473 return m.m
1474}
1475
1476func (m *Nests_RptGroup) Reset() { *m = Nests_RptGroup{} }
1477func (m *Nests_RptGroup) String() string { return proto.CompactTextString(m) }
1478func (*Nests_RptGroup) ProtoMessage() {}
1479func (*Nests_RptGroup) Descriptor() ([]byte, []int) {
1480 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 1}
1481}
1482
1483func (m *Nests_RptGroup) XXX_Unmarshal(b []byte) error {
1484 return xxx_messageInfo_Nests_RptGroup.Unmarshal(m, b)
1485}
1486func (m *Nests_RptGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1487 return xxx_messageInfo_Nests_RptGroup.Marshal(b, m, deterministic)
1488}
1489func (m *Nests_RptGroup) XXX_Merge(src proto.Message) {
1490 xxx_messageInfo_Nests_RptGroup.Merge(m, src)
1491}
1492func (m *Nests_RptGroup) XXX_Size() int {
1493 return xxx_messageInfo_Nests_RptGroup.Size(m)
1494}
1495func (m *Nests_RptGroup) XXX_DiscardUnknown() {
1496 xxx_messageInfo_Nests_RptGroup.DiscardUnknown(m)
1497}
1498
1499var xxx_messageInfo_Nests_RptGroup proto.InternalMessageInfo
1500
1501func (m *Nests_RptGroup) GetRptBool() []bool {
1502 if m != nil {
1503 return m.RptBool
1504 }
1505 return nil
1506}
1507
1508type Nests_OptGroup_OptNestedGroup struct {
1509 OptEnum *Enum `protobuf:"varint,1,opt,name=opt_enum,json=optEnum,enum=pb2.Enum" json:"opt_enum,omitempty"`
1510 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1511 XXX_unrecognized []byte `json:"-"`
1512 XXX_sizecache int32 `json:"-"`
1513}
1514
1515type xxx_Nests_OptGroup_OptNestedGroup struct {
1516 m *Nests_OptGroup_OptNestedGroup
1517}
1518
1519func (m *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message {
1520 return xxx_Nests_OptGroup_OptNestedGroup{m}
1521}
1522func (m xxx_Nests_OptGroup_OptNestedGroup) Type() protoreflect.MessageType {
1523 return xxx_Test_ProtoFile_MessageTypes[14].Type
1524}
1525func (m xxx_Nests_OptGroup_OptNestedGroup) KnownFields() protoreflect.KnownFields {
1526 return xxx_Test_ProtoFile_MessageTypes[14].KnownFieldsOf(m.m)
1527}
1528func (m xxx_Nests_OptGroup_OptNestedGroup) UnknownFields() protoreflect.UnknownFields {
1529 return xxx_Test_ProtoFile_MessageTypes[14].UnknownFieldsOf(m.m)
1530}
1531func (m xxx_Nests_OptGroup_OptNestedGroup) Interface() protoreflect.ProtoMessage {
1532 return m.m
1533}
1534
1535func (m *Nests_OptGroup_OptNestedGroup) Reset() { *m = Nests_OptGroup_OptNestedGroup{} }
1536func (m *Nests_OptGroup_OptNestedGroup) String() string { return proto.CompactTextString(m) }
1537func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {}
1538func (*Nests_OptGroup_OptNestedGroup) Descriptor() ([]byte, []int) {
1539 return fileDescriptor_c8d7acc1bcec9a72, []int{3, 0, 0}
1540}
1541
1542func (m *Nests_OptGroup_OptNestedGroup) XXX_Unmarshal(b []byte) error {
1543 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Unmarshal(m, b)
1544}
1545func (m *Nests_OptGroup_OptNestedGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1546 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Marshal(b, m, deterministic)
1547}
1548func (m *Nests_OptGroup_OptNestedGroup) XXX_Merge(src proto.Message) {
1549 xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Merge(m, src)
1550}
1551func (m *Nests_OptGroup_OptNestedGroup) XXX_Size() int {
1552 return xxx_messageInfo_Nests_OptGroup_OptNestedGroup.Size(m)
1553}
1554func (m *Nests_OptGroup_OptNestedGroup) XXX_DiscardUnknown() {
1555 xxx_messageInfo_Nests_OptGroup_OptNestedGroup.DiscardUnknown(m)
1556}
1557
1558var xxx_messageInfo_Nests_OptGroup_OptNestedGroup proto.InternalMessageInfo
1559
1560func (m *Nests_OptGroup_OptNestedGroup) GetOptEnum() Enum {
1561 if m != nil && m.OptEnum != nil {
1562 return *m.OptEnum
1563 }
1564 return Enum_UNKNOWN
1565}
1566
Herbie Ongcddf8192018-11-28 18:25:20 -08001567func init() {
Herbie Ong70651952018-12-13 14:19:50 -08001568 proto.RegisterFile("encoding/textpb/testprotos/pb2/test.proto", fileDescriptor_c8d7acc1bcec9a72)
Herbie Ongcddf8192018-11-28 18:25:20 -08001569 proto.RegisterEnum("pb2.Enum", Enum_name, Enum_value)
1570 proto.RegisterEnum("pb2.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
1571 proto.RegisterType((*Scalars)(nil), "pb2.Scalars")
1572 proto.RegisterType((*Repeats)(nil), "pb2.Repeats")
1573 proto.RegisterType((*Enums)(nil), "pb2.Enums")
1574 proto.RegisterType((*Nests)(nil), "pb2.Nests")
Herbie Ongcddf8192018-11-28 18:25:20 -08001575 proto.RegisterType((*Nested)(nil), "pb2.Nested")
1576 proto.RegisterType((*Requireds)(nil), "pb2.Requireds")
Herbie Ong800c9902018-12-06 15:28:53 -08001577 proto.RegisterType((*PartialRequired)(nil), "pb2.PartialRequired")
Herbie Ongcddf8192018-11-28 18:25:20 -08001578 proto.RegisterType((*Oneofs)(nil), "pb2.Oneofs")
1579 proto.RegisterType((*Maps)(nil), "pb2.Maps")
1580 proto.RegisterMapType((map[bool]uint32)(nil), "pb2.Maps.BoolToUint32Entry")
1581 proto.RegisterMapType((map[int32]string)(nil), "pb2.Maps.Int32ToStrEntry")
1582 proto.RegisterMapType((map[int64]bool)(nil), "pb2.Maps.Sfixed64ToBoolEntry")
1583 proto.RegisterMapType((map[string]*Nested)(nil), "pb2.Maps.StrToNestedEntry")
1584 proto.RegisterMapType((map[string]*Oneofs)(nil), "pb2.Maps.StrToOneofsEntry")
1585 proto.RegisterMapType((map[uint64]Enum)(nil), "pb2.Maps.Uint64ToEnumEntry")
Herbie Ong800c9902018-12-06 15:28:53 -08001586 proto.RegisterType((*NestedWithRequired)(nil), "pb2.NestedWithRequired")
1587 proto.RegisterType((*IndirectRequired)(nil), "pb2.IndirectRequired")
1588 proto.RegisterMapType((map[string]*NestedWithRequired)(nil), "pb2.IndirectRequired.StrToNestedEntry")
Herbie Ongcddf8192018-11-28 18:25:20 -08001589 proto.RegisterType((*KnownTypes)(nil), "pb2.KnownTypes")
Herbie Ong70651952018-12-13 14:19:50 -08001590 proto.RegisterType((*Nests_OptGroup)(nil), "pb2.Nests.OptGroup")
1591 proto.RegisterType((*Nests_RptGroup)(nil), "pb2.Nests.RptGroup")
1592 proto.RegisterType((*Nests_OptGroup_OptNestedGroup)(nil), "pb2.Nests.OptGroup.OptNestedGroup")
Herbie Ongcddf8192018-11-28 18:25:20 -08001593}
1594
1595var fileDescriptor_c8d7acc1bcec9a72 = []byte{
Herbie Ong7c624e22018-12-13 14:41:22 -08001596 // 1629 bytes of a gzipped FileDescriptorProto
1597 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xdd, 0x6e, 0xdb, 0x46,
1598 0x16, 0x0e, 0x49, 0xfd, 0x8e, 0xfc, 0xa3, 0x30, 0xc9, 0xae, 0x2c, 0x27, 0x31, 0x23, 0x64, 0x17,
1599 0xdc, 0x00, 0x91, 0x00, 0x59, 0x11, 0x8c, 0x75, 0x7e, 0x60, 0xaf, 0xed, 0xc4, 0xc9, 0xd6, 0x2e,
1600 0x28, 0xb9, 0x01, 0x72, 0x63, 0x48, 0xd6, 0x58, 0x21, 0x2a, 0x71, 0xa8, 0xe1, 0x30, 0x89, 0xde,
1601 0xa3, 0xcf, 0xd0, 0x3e, 0x44, 0xdf, 0xa4, 0x2f, 0xd1, 0x9b, 0x5e, 0x14, 0xe8, 0x4d, 0x71, 0x66,
1602 0x38, 0xe4, 0x90, 0x92, 0x0c, 0xdf, 0x71, 0xe6, 0x9c, 0xef, 0x9b, 0x99, 0xf3, 0xab, 0x23, 0xf4,
1603 0x1f, 0xec, 0x5d, 0x91, 0x91, 0xeb, 0x8d, 0x5b, 0x0c, 0x7f, 0x63, 0xfe, 0xb0, 0xc5, 0x70, 0xc0,
1604 0x7c, 0x4a, 0x18, 0x09, 0x5a, 0xfe, 0xb0, 0xcd, 0x97, 0x4d, 0xbe, 0x36, 0x0d, 0x7f, 0xd8, 0xae,
1605 0x6f, 0x8d, 0x09, 0x19, 0x4f, 0x70, 0x8b, 0x6f, 0x0d, 0xc3, 0xeb, 0xd6, 0xc0, 0x9b, 0x0b, 0x79,
1606 0x7d, 0x3b, 0x2b, 0xc2, 0x53, 0x9f, 0x49, 0xe1, 0xe3, 0xac, 0x70, 0x14, 0xd2, 0x01, 0x73, 0x89,
1607 0x17, 0xc9, 0x1f, 0x66, 0xe5, 0x01, 0xa3, 0xe1, 0x55, 0x74, 0x74, 0x7d, 0x27, 0x2b, 0x65, 0xee,
1608 0x14, 0x07, 0x6c, 0x30, 0xf5, 0x57, 0xd1, 0x7f, 0xa5, 0x03, 0xdf, 0xc7, 0x34, 0x10, 0xf2, 0xc6,
1609 0x6f, 0x06, 0x2a, 0xf6, 0xae, 0x06, 0x93, 0x01, 0x0d, 0xcc, 0x2d, 0x54, 0x22, 0x3e, 0xbb, 0x1c,
1610 0x12, 0x32, 0xa9, 0x69, 0x96, 0x66, 0x97, 0x9c, 0x22, 0xf1, 0xd9, 0x21, 0x21, 0x13, 0x73, 0x1b,
1611 0x95, 0x41, 0xe4, 0x7a, 0x6c, 0xb7, 0x5d, 0xd3, 0x2d, 0xcd, 0xce, 0x3b, 0xa0, 0x7b, 0x0a, 0x6b,
1612 0x45, 0xd8, 0xed, 0xd4, 0x0c, 0x4b, 0xb3, 0x0d, 0x29, 0xec, 0x76, 0xcc, 0x47, 0x08, 0x81, 0x30,
1613 0x14, 0xd0, 0x9c, 0xa5, 0xd9, 0xeb, 0x0e, 0xa8, 0x5f, 0xf0, 0x0d, 0x55, 0xdc, 0xed, 0xd4, 0xf2,
1614 0x96, 0x66, 0xe7, 0x62, 0x71, 0x82, 0x0e, 0x04, 0xba, 0x60, 0x69, 0xf6, 0x5d, 0x2e, 0xee, 0xa5,
1615 0xd0, 0x81, 0x40, 0x17, 0x2d, 0xcd, 0x36, 0x63, 0x71, 0xb7, 0x63, 0xee, 0xa0, 0x0a, 0x88, 0xaf,
1616 0xdd, 0x6f, 0x78, 0xb4, 0xdb, 0xae, 0x95, 0x2c, 0xcd, 0x2e, 0x3a, 0x80, 0x38, 0x11, 0x3b, 0x29,
1617 0x85, 0x6e, 0xa7, 0x56, 0xb6, 0x34, 0xbb, 0x90, 0x28, 0x74, 0x3b, 0xe6, 0x13, 0xb4, 0xc6, 0x0f,
1618 0x90, 0x14, 0xc8, 0xd2, 0xec, 0x4d, 0x07, 0x40, 0xbd, 0x68, 0x2b, 0xad, 0xd2, 0xed, 0xd4, 0x2a,
1619 0x96, 0x66, 0x57, 0x15, 0x95, 0x6e, 0x47, 0x1a, 0xe8, 0x7a, 0x42, 0x06, 0xac, 0x76, 0xdf, 0xd2,
1620 0x6c, 0x9d, 0x1b, 0xe8, 0x04, 0xd6, 0xf2, 0x0d, 0x23, 0x12, 0x0e, 0x27, 0xb8, 0xf6, 0xc0, 0xd2,
1621 0x6c, 0x8d, 0xbf, 0xe1, 0x88, 0x6f, 0x48, 0xec, 0x70, 0xce, 0x70, 0x50, 0xdb, 0xb0, 0x34, 0x7b,
1622 0x8d, 0x63, 0x0f, 0x61, 0x1d, 0xbf, 0x9f, 0x51, 0xd7, 0x1b, 0xd7, 0xd6, 0x2d, 0xcd, 0x2e, 0x8b,
1623 0xf7, 0xf3, 0x8d, 0xc6, 0x4f, 0x3a, 0x2a, 0x3a, 0xd8, 0xc7, 0x03, 0xc6, 0x9d, 0x4b, 0x13, 0xe7,
1624 0x1a, 0xe0, 0x5c, 0x9a, 0x38, 0x97, 0x2a, 0xce, 0x35, 0xc0, 0xb9, 0x54, 0x71, 0x2e, 0x55, 0x9c,
1625 0x6b, 0x80, 0x73, 0xa9, 0xe2, 0x5c, 0xaa, 0x3a, 0xd7, 0x00, 0xe7, 0x52, 0xd5, 0xb9, 0x54, 0x75,
1626 0xae, 0x01, 0xce, 0xa5, 0xb1, 0x73, 0x23, 0x6a, 0x61, 0x96, 0x82, 0x65, 0x80, 0x59, 0xa8, 0x62,
1627 0x16, 0x9a, 0x98, 0xa5, 0x68, 0x19, 0x60, 0x16, 0x1a, 0x9b, 0x25, 0x12, 0x47, 0x2f, 0xdf, 0xb4,
1628 0x0c, 0x78, 0x39, 0x95, 0x2f, 0x97, 0xd4, 0xd2, 0x6a, 0x06, 0x58, 0x8d, 0x46, 0x56, 0x6b, 0xfc,
1629 0xa5, 0xa1, 0xfc, 0xb1, 0x17, 0x4e, 0x03, 0xf3, 0xa9, 0x88, 0x78, 0xec, 0x85, 0x53, 0x1e, 0xf1,
1630 0x1b, 0xed, 0x72, 0xd3, 0x1f, 0xb6, 0x9b, 0x20, 0xe5, 0xc1, 0x0f, 0x1f, 0xa0, 0x45, 0xa5, 0x16,
1631 0x98, 0x27, 0xad, 0x45, 0x23, 0xad, 0x57, 0x68, 0x13, 0xb8, 0x3c, 0x1c, 0x30, 0x3c, 0x12, 0xca,
1632 0x06, 0xa7, 0x7c, 0x10, 0x2b, 0x07, 0xcd, 0x33, 0x2e, 0xe5, 0xc0, 0x75, 0xe2, 0xb3, 0x64, 0x09,
1633 0x70, 0x9a, 0x81, 0xe7, 0xf8, 0x59, 0xab, 0xe0, 0x54, 0x85, 0x37, 0x6c, 0x84, 0x14, 0xb2, 0x22,
1634 0x32, 0x2e, 0xce, 0xce, 0xab, 0x1a, 0x7c, 0x1c, 0x9d, 0xf7, 0xaa, 0xba, 0x59, 0x42, 0xb9, 0xa3,
1635 0xd3, 0xe3, 0x4f, 0x55, 0xd4, 0xf8, 0xdd, 0x40, 0x79, 0x50, 0x0d, 0xcc, 0x67, 0x22, 0x7a, 0xc4,
1636 0x91, 0xfc, 0xfd, 0x95, 0x76, 0x85, 0x9f, 0x26, 0xa8, 0x78, 0x28, 0x89, 0x4f, 0xb3, 0xc5, 0x2d,
1637 0x35, 0xa6, 0x24, 0xf4, 0x79, 0xfe, 0xa3, 0xf6, 0xbd, 0x58, 0x33, 0x68, 0x9e, 0xfb, 0xec, 0x2d,
1638 0x88, 0x9c, 0x58, 0x09, 0xc8, 0x93, 0xf7, 0xf0, 0xc0, 0xc9, 0x92, 0x53, 0x95, 0x9c, 0x4a, 0x72,
1639 0x78, 0x74, 0x9a, 0xdc, 0x89, 0xc9, 0xa5, 0x52, 0xfd, 0x0f, 0x0d, 0x95, 0xe4, 0x99, 0x37, 0x95,
1640 0xad, 0x74, 0x7e, 0xe8, 0x99, 0xfc, 0xc8, 0x18, 0xc0, 0xb8, 0xd1, 0x00, 0xef, 0xd1, 0x06, 0xf1,
1641 0x99, 0x50, 0x95, 0x37, 0x05, 0x33, 0x34, 0x96, 0x98, 0x01, 0x3e, 0x04, 0x4c, 0x5c, 0x3c, 0x83,
1642 0xac, 0x77, 0xd1, 0x46, 0x5a, 0xe3, 0x76, 0x81, 0x58, 0xff, 0x17, 0x2a, 0x39, 0xca, 0xab, 0x57,
1643 0xe4, 0xb3, 0xb3, 0x41, 0x71, 0x80, 0xe9, 0x17, 0x3c, 0xba, 0xbc, 0x76, 0xf1, 0x64, 0xd4, 0xe8,
1644 0xa1, 0x42, 0xf4, 0x88, 0xb4, 0x3d, 0xb4, 0x9b, 0xed, 0xa1, 0xdf, 0x64, 0x8f, 0xc6, 0x9f, 0x3a,
1645 0x2a, 0x3b, 0x78, 0x16, 0xba, 0x14, 0x8f, 0x44, 0x75, 0xc1, 0x33, 0x79, 0x1b, 0x9d, 0xdf, 0x06,
1646 0xcf, 0xb8, 0x0f, 0x76, 0x50, 0x05, 0x44, 0xb2, 0x82, 0xea, 0x96, 0x0e, 0x45, 0x98, 0xe2, 0x99,
1647 0x52, 0x84, 0x63, 0x05, 0x5e, 0x63, 0x74, 0x28, 0xc2, 0x52, 0x41, 0x14, 0x61, 0x50, 0x88, 0x8b,
1648 0x70, 0xce, 0xd2, 0xa1, 0x08, 0x53, 0x3c, 0x53, 0x8b, 0x70, 0xa2, 0xc2, 0x6b, 0x8d, 0x0e, 0x45,
1649 0x38, 0x56, 0x89, 0xaa, 0x0d, 0x1c, 0x13, 0x55, 0x1b, 0x9d, 0x57, 0x1b, 0x3c, 0x4b, 0xaa, 0x0d,
1650 0x9e, 0x25, 0xd5, 0x46, 0xe7, 0xd5, 0x06, 0xcf, 0x94, 0x6a, 0x03, 0xf4, 0xc2, 0x6e, 0x25, 0x4b,
1651 0xe7, 0xd5, 0x06, 0xcf, 0x94, 0x6a, 0x03, 0xaf, 0xe7, 0xd5, 0xa6, 0x6c, 0xe9, 0xbc, 0xda, 0xe0,
1652 0x99, 0xa8, 0xd1, 0x4f, 0x85, 0x69, 0xb8, 0x6b, 0x91, 0xa5, 0x67, 0xab, 0x07, 0x9e, 0xf1, 0x8c,
1653 0x7d, 0x26, 0x4e, 0x88, 0x4c, 0x5f, 0xb1, 0xf4, 0xc5, 0x74, 0xc1, 0xb3, 0xc8, 0xf4, 0xe7, 0x68,
1654 0xf3, 0xfb, 0x01, 0x65, 0xee, 0x60, 0x22, 0x1d, 0x90, 0xb9, 0xa0, 0x96, 0xbd, 0xe0, 0xcd, 0x79,
1655 0xd0, 0x38, 0x41, 0x85, 0x73, 0x0f, 0x93, 0xeb, 0xc0, 0x34, 0x91, 0x11, 0x30, 0x2a, 0x22, 0xe3,
1656 0xdd, 0x1d, 0x07, 0x16, 0xe6, 0x0e, 0x32, 0xa6, 0xc1, 0x78, 0x49, 0x38, 0x80, 0xc2, 0x34, 0x18,
1657 0x1f, 0x16, 0x51, 0x3e, 0xf4, 0x5c, 0xe2, 0x35, 0x7e, 0x2d, 0xa0, 0xdc, 0x77, 0x03, 0x3f, 0x30,
1658 0xf7, 0xd1, 0x1a, 0xef, 0x00, 0x97, 0x8c, 0x5c, 0x0a, 0x3e, 0x48, 0xff, 0x2d, 0x8e, 0x05, 0x85,
1659 0x26, 0xef, 0x2d, 0x7d, 0xd2, 0x63, 0xf4, 0xd8, 0x63, 0x74, 0xee, 0x20, 0x37, 0xde, 0x30, 0xdf,
1660 0xa2, 0xaa, 0xf4, 0x23, 0xe0, 0x79, 0x4c, 0xe9, 0x9c, 0xe0, 0x51, 0x42, 0x20, 0xdd, 0xda, 0x27,
1661 0x10, 0x64, 0x82, 0x64, 0x23, 0x48, 0x6d, 0x9a, 0x07, 0x68, 0x03, 0xc0, 0x40, 0x12, 0x75, 0x28,
1662 0x51, 0x86, 0xb6, 0x13, 0x1a, 0xd0, 0xeb, 0x13, 0xd1, 0xae, 0x04, 0xc9, 0xda, 0x50, 0xd9, 0x02,
1663 0x0a, 0xd1, 0xbd, 0x80, 0x24, 0x2e, 0xca, 0x29, 0x0a, 0xd1, 0xcc, 0xfa, 0x04, 0xdc, 0x18, 0x51,
1664 0x84, 0xca, 0x96, 0xf9, 0x1a, 0xad, 0x07, 0x8c, 0x02, 0x3e, 0x72, 0x6e, 0x9e, 0x33, 0xd4, 0x95,
1665 0xb7, 0x30, 0xda, 0x27, 0xb2, 0x7a, 0x03, 0x41, 0x25, 0x48, 0x76, 0x14, 0x3c, 0xe1, 0x3e, 0xe2,
1666 0x9d, 0x72, 0x11, 0x2f, 0x1c, 0xa8, 0xe2, 0xc5, 0x4e, 0xfd, 0x15, 0xda, 0xcc, 0x58, 0xdb, 0xac,
1667 0x22, 0xe3, 0x47, 0x3c, 0xe7, 0x5e, 0xce, 0x3b, 0xf0, 0x69, 0xde, 0x47, 0xf9, 0x2f, 0x83, 0x49,
1668 0x88, 0xa3, 0xd8, 0x10, 0x8b, 0xff, 0xea, 0x7b, 0x5a, 0xfd, 0x00, 0xdd, 0x5b, 0x62, 0x6b, 0x95,
1669 0xa2, 0xba, 0x84, 0xa2, 0xa4, 0x52, 0xbc, 0x41, 0x77, 0x17, 0xec, 0xac, 0x12, 0x94, 0x96, 0x10,
1670 0xac, 0xab, 0x04, 0xef, 0xd1, 0xdd, 0x05, 0x2b, 0xab, 0x04, 0x39, 0x41, 0xb0, 0xa3, 0x12, 0xa4,
1671 0xd2, 0x4c, 0xe1, 0xfa, 0x80, 0xaa, 0x59, 0x7b, 0xab, 0x54, 0x65, 0x41, 0xf5, 0x44, 0xa5, 0xca,
1672 0x64, 0xe2, 0x12, 0x32, 0xc5, 0xf8, 0xb7, 0x25, 0x13, 0x10, 0x85, 0xac, 0xb1, 0x8b, 0x4c, 0x71,
1673 0xc2, 0x47, 0x97, 0x7d, 0xbe, 0x65, 0x66, 0x37, 0x7e, 0xd1, 0x51, 0xf5, 0xd4, 0x1b, 0xb9, 0x14,
1674 0x5f, 0xb1, 0x18, 0xd3, 0x5d, 0xd2, 0xd8, 0xff, 0xa9, 0x3c, 0x41, 0x3d, 0x40, 0xed, 0x71, 0xdd,
1675 0x54, 0xcf, 0x16, 0x39, 0xb7, 0x1a, 0x47, 0x95, 0xde, 0x98, 0x09, 0x71, 0x91, 0x67, 0xff, 0xe6,
1676 0xd0, 0xec, 0xed, 0x6e, 0x0e, 0xf7, 0xfa, 0xc7, 0x5b, 0xf9, 0xe7, 0x79, 0xda, 0xa4, 0x2b, 0x2f,
1677 0xa9, 0x98, 0xf7, 0xe7, 0x22, 0x42, 0x1f, 0x3c, 0xf2, 0xd5, 0xeb, 0xcf, 0x7d, 0x1c, 0x98, 0x2f,
1678 0x32, 0xbf, 0x1a, 0x20, 0xa3, 0xc4, 0xac, 0xd4, 0x94, 0xb3, 0x12, 0xaf, 0x0e, 0x3f, 0x00, 0x41,
1679 0xf2, 0x8b, 0x62, 0x2f, 0x3b, 0x08, 0x41, 0x2d, 0xc8, 0xe2, 0x78, 0xbe, 0x09, 0x60, 0x32, 0x25,
1680 0xed, 0x65, 0xa7, 0xa4, 0x15, 0xc8, 0x6e, 0x27, 0x85, 0xec, 0x76, 0xcc, 0xfd, 0x85, 0x11, 0xaa,
1681 0xd2, 0x7e, 0xb8, 0x00, 0xbd, 0x50, 0x4e, 0x55, 0x06, 0xac, 0xfd, 0x85, 0x01, 0x6b, 0x15, 0x58,
1682 0x1e, 0xac, 0x8c, 0x5f, 0x7b, 0xea, 0xe0, 0x52, 0x58, 0x71, 0x67, 0xde, 0x41, 0x93, 0x3b, 0x8b,
1683 0x86, 0xba, 0x9f, 0x9a, 0x6a, 0x8a, 0x2b, 0x8e, 0x15, 0xed, 0x35, 0x39, 0x36, 0x6a, 0xb7, 0xfb,
1684 0xa9, 0x76, 0x55, 0x5a, 0x01, 0x16, 0x19, 0x90, 0x80, 0xa3, 0x5e, 0xb7, 0xa7, 0x0e, 0x4c, 0xe5,
1685 0x15, 0x77, 0xe6, 0xad, 0x39, 0xb9, 0xb3, 0xe8, 0xd4, 0x2f, 0xc5, 0x24, 0x27, 0x07, 0x70, 0x3e,
1686 0xa9, 0x41, 0xd7, 0x5a, 0xb8, 0x75, 0xa4, 0xc0, 0x87, 0x3c, 0xb9, 0x30, 0xdf, 0x20, 0xf8, 0x45,
1687 0x7f, 0x19, 0x0f, 0xe0, 0x7c, 0x94, 0x5b, 0x16, 0x55, 0x7d, 0xa9, 0xe1, 0xc0, 0x71, 0xf1, 0x4a,
1688 0x66, 0xad, 0x98, 0xef, 0x6b, 0x5b, 0x51, 0x60, 0x2f, 0x79, 0x75, 0x78, 0xc5, 0xe4, 0x83, 0xc3,
1689 0x2b, 0x26, 0x23, 0x79, 0xe2, 0x06, 0xac, 0x56, 0x5f, 0x71, 0xe6, 0xff, 0xdd, 0x80, 0x25, 0x91,
1690 0x0c, 0x2b, 0x73, 0x57, 0xd8, 0x49, 0xa4, 0xd1, 0x36, 0xc7, 0xfd, 0x63, 0x01, 0x97, 0x98, 0x88,
1691 0x7f, 0x49, 0x10, 0xff, 0x03, 0xa3, 0xf6, 0x78, 0x05, 0xe8, 0x18, 0xa4, 0x1c, 0xc4, 0xbf, 0xcc,
1692 0xe7, 0x08, 0x0e, 0xbd, 0x1c, 0x78, 0xf3, 0x9a, 0xc5, 0x21, 0xf7, 0x17, 0x20, 0x07, 0xde, 0xdc,
1693 0x29, 0x10, 0x9f, 0x1d, 0x78, 0xf3, 0x67, 0x2f, 0x50, 0x8e, 0x37, 0xce, 0x0a, 0x2a, 0x5e, 0x9c,
1694 0x7d, 0x38, 0x3b, 0xff, 0x78, 0x56, 0xbd, 0x63, 0x96, 0x51, 0xfe, 0xe4, 0xd4, 0xe9, 0xf5, 0xab,
1695 0x9a, 0x89, 0x50, 0xa1, 0x77, 0xfc, 0xbf, 0xf3, 0xb3, 0xa3, 0xaa, 0x0e, 0xdb, 0xfd, 0xe3, 0xb3,
1696 0xfe, 0xbb, 0x2a, 0x3a, 0x7c, 0xfd, 0xe9, 0xe5, 0xd8, 0x65, 0x9f, 0xc3, 0x61, 0xf3, 0x8a, 0x4c,
1697 0x5b, 0x63, 0x32, 0x19, 0x78, 0xe3, 0xe4, 0x6f, 0x8f, 0x2f, 0xed, 0xd6, 0xcd, 0x7f, 0xe8, 0xfc,
1698 0x1d, 0x00, 0x00, 0xff, 0xff, 0xcc, 0x1a, 0x6e, 0x85, 0xf1, 0x11, 0x00, 0x00,
Herbie Ongcddf8192018-11-28 18:25:20 -08001699}
Herbie Ong70651952018-12-13 14:19:50 -08001700
1701func init() {
1702 xxx_Test_ProtoFile_FileDesc.Enums = xxx_Test_ProtoFile_EnumDescs[0:1]
1703 xxx_Test_ProtoFile_FileDesc.Messages = xxx_Test_ProtoFile_MessageDescs[0:12]
1704 xxx_Test_ProtoFile_MessageDescs[2].Enums = xxx_Test_ProtoFile_EnumDescs[1:2]
1705 xxx_Test_ProtoFile_MessageDescs[3].Messages = xxx_Test_ProtoFile_MessageDescs[12:14]
1706 xxx_Test_ProtoFile_MessageDescs[8].Messages = xxx_Test_ProtoFile_MessageDescs[15:21]
1707 xxx_Test_ProtoFile_MessageDescs[10].Messages = xxx_Test_ProtoFile_MessageDescs[21:22]
1708 xxx_Test_ProtoFile_MessageDescs[12].Messages = xxx_Test_ProtoFile_MessageDescs[14:15]
1709 xxx_Test_ProtoFile_MessageDescs[2].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1710 xxx_Test_ProtoFile_MessageDescs[2].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1711 xxx_Test_ProtoFile_MessageDescs[2].Fields[2].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
1712 xxx_Test_ProtoFile_MessageDescs[2].Fields[3].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
1713 xxx_Test_ProtoFile_MessageDescs[3].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1714 xxx_Test_ProtoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[12].Type
1715 xxx_Test_ProtoFile_MessageDescs[3].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1716 xxx_Test_ProtoFile_MessageDescs[3].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[13].Type
1717 xxx_Test_ProtoFile_MessageDescs[4].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1718 xxx_Test_ProtoFile_MessageDescs[5].Fields[9].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1719 xxx_Test_ProtoFile_MessageDescs[5].Fields[10].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1720 xxx_Test_ProtoFile_MessageDescs[7].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1721 xxx_Test_ProtoFile_MessageDescs[8].Fields[0].MessageType = xxx_Test_ProtoFile_MessageDescs[15].Reference()
1722 xxx_Test_ProtoFile_MessageDescs[8].Fields[1].MessageType = xxx_Test_ProtoFile_MessageDescs[16].Reference()
1723 xxx_Test_ProtoFile_MessageDescs[8].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[17].Reference()
1724 xxx_Test_ProtoFile_MessageDescs[8].Fields[3].MessageType = xxx_Test_ProtoFile_MessageDescs[18].Reference()
1725 xxx_Test_ProtoFile_MessageDescs[8].Fields[4].MessageType = xxx_Test_ProtoFile_MessageDescs[19].Reference()
1726 xxx_Test_ProtoFile_MessageDescs[8].Fields[5].MessageType = xxx_Test_ProtoFile_MessageDescs[20].Reference()
1727 xxx_Test_ProtoFile_MessageDescs[10].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1728 xxx_Test_ProtoFile_MessageDescs[10].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1729 xxx_Test_ProtoFile_MessageDescs[10].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[21].Reference()
1730 xxx_Test_ProtoFile_MessageDescs[11].Fields[0].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BoolValue)(nil))
1731 xxx_Test_ProtoFile_MessageDescs[11].Fields[1].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int32Value)(nil))
1732 xxx_Test_ProtoFile_MessageDescs[11].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int64Value)(nil))
1733 xxx_Test_ProtoFile_MessageDescs[11].Fields[3].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt32Value)(nil))
1734 xxx_Test_ProtoFile_MessageDescs[11].Fields[4].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt64Value)(nil))
1735 xxx_Test_ProtoFile_MessageDescs[11].Fields[5].MessageType = protoimpl.X.MessageTypeOf((*wrappers.FloatValue)(nil))
1736 xxx_Test_ProtoFile_MessageDescs[11].Fields[6].MessageType = protoimpl.X.MessageTypeOf((*wrappers.DoubleValue)(nil))
1737 xxx_Test_ProtoFile_MessageDescs[11].Fields[7].MessageType = protoimpl.X.MessageTypeOf((*wrappers.StringValue)(nil))
1738 xxx_Test_ProtoFile_MessageDescs[11].Fields[8].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BytesValue)(nil))
1739 xxx_Test_ProtoFile_MessageDescs[11].Fields[9].MessageType = protoimpl.X.MessageTypeOf((*duration.Duration)(nil))
1740 xxx_Test_ProtoFile_MessageDescs[11].Fields[10].MessageType = protoimpl.X.MessageTypeOf((*timestamp.Timestamp)(nil))
1741 xxx_Test_ProtoFile_MessageDescs[11].Fields[11].MessageType = protoimpl.X.MessageTypeOf((*_struct.Struct)(nil))
1742 xxx_Test_ProtoFile_MessageDescs[11].Fields[12].MessageType = protoimpl.X.MessageTypeOf((*_struct.ListValue)(nil))
1743 xxx_Test_ProtoFile_MessageDescs[11].Fields[13].MessageType = protoimpl.X.MessageTypeOf((*_struct.Value)(nil))
1744 xxx_Test_ProtoFile_MessageDescs[11].Fields[14].MessageType = protoimpl.X.MessageTypeOf((*empty.Empty)(nil))
1745 xxx_Test_ProtoFile_MessageDescs[11].Fields[15].MessageType = protoimpl.X.MessageTypeOf((*any.Any)(nil))
1746 xxx_Test_ProtoFile_MessageDescs[12].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1747 xxx_Test_ProtoFile_MessageDescs[12].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[14].Type
1748 xxx_Test_ProtoFile_MessageDescs[14].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1749 xxx_Test_ProtoFile_MessageDescs[18].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1750 xxx_Test_ProtoFile_MessageDescs[19].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1751 xxx_Test_ProtoFile_MessageDescs[20].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[7].Type
1752 xxx_Test_ProtoFile_MessageDescs[21].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1753 var err error
1754 Test_ProtoFile, err = prototype.NewFile(&xxx_Test_ProtoFile_FileDesc)
1755 if err != nil {
1756 panic(err)
1757 }
1758}
1759
1760const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
1761
1762var Test_ProtoFile protoreflect.FileDescriptor
1763
1764var xxx_Test_ProtoFile_FileDesc = prototype.File{
1765 Syntax: protoreflect.Proto2,
1766 Path: "encoding/textpb/testprotos/pb2/test.proto",
1767 Package: "pb2",
1768 Imports: []protoreflect.FileImport{
1769 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/any.proto", "google.protobuf")},
1770 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/empty.proto", "google.protobuf")},
1771 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/duration.proto", "google.protobuf")},
1772 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/struct.proto", "google.protobuf")},
1773 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/timestamp.proto", "google.protobuf")},
1774 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/wrappers.proto", "google.protobuf")},
1775 },
1776}
1777var xxx_Test_ProtoFile_EnumTypes = [2]protoreflect.EnumType{
1778 prototype.GoEnum(
1779 xxx_Test_ProtoFile_EnumDescs[0].Reference(),
1780 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
1781 return Enum(n)
1782 },
1783 ),
1784 prototype.GoEnum(
1785 xxx_Test_ProtoFile_EnumDescs[1].Reference(),
1786 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
1787 return Enums_NestedEnum(n)
1788 },
1789 ),
1790}
1791var xxx_Test_ProtoFile_EnumDescs = [2]prototype.Enum{
1792 {
1793 Name: "Enum",
1794 Values: []prototype.EnumValue{
1795 {Name: "UNKNOWN", Number: 0},
1796 {Name: "FIRST", Number: 1},
1797 {Name: "SECOND", Number: 2},
1798 {Name: "TENTH", Number: 10},
1799 },
1800 },
1801 {
1802 Name: "NestedEnum",
1803 Values: []prototype.EnumValue{
1804 {Name: "UNO", Number: 1},
1805 {Name: "DOS", Number: 2},
1806 {Name: "DIEZ", Number: 10},
1807 },
1808 },
1809}
1810var xxx_Test_ProtoFile_MessageTypes = [22]protoimpl.MessageType{
1811 {Type: prototype.GoMessage(
1812 xxx_Test_ProtoFile_MessageDescs[0].Reference(),
1813 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1814 return new(Scalars)
1815 },
1816 )},
1817 {Type: prototype.GoMessage(
1818 xxx_Test_ProtoFile_MessageDescs[1].Reference(),
1819 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1820 return new(Repeats)
1821 },
1822 )},
1823 {Type: prototype.GoMessage(
1824 xxx_Test_ProtoFile_MessageDescs[2].Reference(),
1825 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1826 return new(Enums)
1827 },
1828 )},
1829 {Type: prototype.GoMessage(
1830 xxx_Test_ProtoFile_MessageDescs[3].Reference(),
1831 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1832 return new(Nests)
1833 },
1834 )},
1835 {Type: prototype.GoMessage(
1836 xxx_Test_ProtoFile_MessageDescs[4].Reference(),
1837 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1838 return new(Nested)
1839 },
1840 )},
1841 {Type: prototype.GoMessage(
1842 xxx_Test_ProtoFile_MessageDescs[5].Reference(),
1843 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1844 return new(Requireds)
1845 },
1846 )},
1847 {Type: prototype.GoMessage(
1848 xxx_Test_ProtoFile_MessageDescs[6].Reference(),
1849 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1850 return new(PartialRequired)
1851 },
1852 )},
1853 {Type: prototype.GoMessage(
1854 xxx_Test_ProtoFile_MessageDescs[7].Reference(),
1855 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1856 return new(Oneofs)
1857 },
1858 )},
1859 {Type: prototype.GoMessage(
1860 xxx_Test_ProtoFile_MessageDescs[8].Reference(),
1861 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1862 return new(Maps)
1863 },
1864 )},
1865 {Type: prototype.GoMessage(
1866 xxx_Test_ProtoFile_MessageDescs[9].Reference(),
1867 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1868 return new(NestedWithRequired)
1869 },
1870 )},
1871 {Type: prototype.GoMessage(
1872 xxx_Test_ProtoFile_MessageDescs[10].Reference(),
1873 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1874 return new(IndirectRequired)
1875 },
1876 )},
1877 {Type: prototype.GoMessage(
1878 xxx_Test_ProtoFile_MessageDescs[11].Reference(),
1879 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1880 return new(KnownTypes)
1881 },
1882 )},
1883 {Type: prototype.GoMessage(
1884 xxx_Test_ProtoFile_MessageDescs[12].Reference(),
1885 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1886 return new(Nests_OptGroup)
1887 },
1888 )},
1889 {Type: prototype.GoMessage(
1890 xxx_Test_ProtoFile_MessageDescs[13].Reference(),
1891 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1892 return new(Nests_RptGroup)
1893 },
1894 )},
1895 {Type: prototype.GoMessage(
1896 xxx_Test_ProtoFile_MessageDescs[14].Reference(),
1897 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1898 return new(Nests_OptGroup_OptNestedGroup)
1899 },
1900 )},
1901 { /* no message type for Maps_Int32ToStrEntry */ },
1902 { /* no message type for Maps_Sfixed64ToBoolEntry */ },
1903 { /* no message type for Maps_BoolToUint32Entry */ },
1904 { /* no message type for Maps_Uint64ToEnumEntry */ },
1905 { /* no message type for Maps_StrToNestedEntry */ },
1906 { /* no message type for Maps_StrToOneofsEntry */ },
1907 { /* no message type for IndirectRequired_StrToNestedEntry */ },
1908}
1909var xxx_Test_ProtoFile_MessageDescs = [22]prototype.Message{
1910 {
1911 Name: "Scalars",
1912 Fields: []prototype.Field{
1913 {
1914 Name: "opt_bool",
1915 Number: 1,
1916 Cardinality: protoreflect.Optional,
1917 Kind: protoreflect.BoolKind,
1918 JSONName: "optBool",
1919 IsPacked: prototype.False,
1920 },
1921 {
1922 Name: "opt_int32",
1923 Number: 2,
1924 Cardinality: protoreflect.Optional,
1925 Kind: protoreflect.Int32Kind,
1926 JSONName: "optInt32",
1927 IsPacked: prototype.False,
1928 },
1929 {
1930 Name: "opt_int64",
1931 Number: 3,
1932 Cardinality: protoreflect.Optional,
1933 Kind: protoreflect.Int64Kind,
1934 JSONName: "optInt64",
1935 IsPacked: prototype.False,
1936 },
1937 {
1938 Name: "opt_uint32",
1939 Number: 4,
1940 Cardinality: protoreflect.Optional,
1941 Kind: protoreflect.Uint32Kind,
1942 JSONName: "optUint32",
1943 IsPacked: prototype.False,
1944 },
1945 {
1946 Name: "opt_uint64",
1947 Number: 5,
1948 Cardinality: protoreflect.Optional,
1949 Kind: protoreflect.Uint64Kind,
1950 JSONName: "optUint64",
1951 IsPacked: prototype.False,
1952 },
1953 {
1954 Name: "opt_sint32",
1955 Number: 6,
1956 Cardinality: protoreflect.Optional,
1957 Kind: protoreflect.Sint32Kind,
1958 JSONName: "optSint32",
1959 IsPacked: prototype.False,
1960 },
1961 {
1962 Name: "opt_sint64",
1963 Number: 7,
1964 Cardinality: protoreflect.Optional,
1965 Kind: protoreflect.Sint64Kind,
1966 JSONName: "optSint64",
1967 IsPacked: prototype.False,
1968 },
1969 {
1970 Name: "opt_fixed32",
1971 Number: 8,
1972 Cardinality: protoreflect.Optional,
1973 Kind: protoreflect.Fixed32Kind,
1974 JSONName: "optFixed32",
1975 IsPacked: prototype.False,
1976 },
1977 {
1978 Name: "opt_fixed64",
1979 Number: 9,
1980 Cardinality: protoreflect.Optional,
1981 Kind: protoreflect.Fixed64Kind,
1982 JSONName: "optFixed64",
1983 IsPacked: prototype.False,
1984 },
1985 {
1986 Name: "opt_sfixed32",
1987 Number: 10,
1988 Cardinality: protoreflect.Optional,
1989 Kind: protoreflect.Sfixed32Kind,
1990 JSONName: "optSfixed32",
1991 IsPacked: prototype.False,
1992 },
1993 {
1994 Name: "opt_sfixed64",
1995 Number: 11,
1996 Cardinality: protoreflect.Optional,
1997 Kind: protoreflect.Sfixed64Kind,
1998 JSONName: "optSfixed64",
1999 IsPacked: prototype.False,
2000 },
2001 {
2002 Name: "opt_float",
2003 Number: 20,
2004 Cardinality: protoreflect.Optional,
2005 Kind: protoreflect.FloatKind,
2006 JSONName: "optFloat",
2007 IsPacked: prototype.False,
2008 },
2009 {
2010 Name: "opt_double",
2011 Number: 21,
2012 Cardinality: protoreflect.Optional,
2013 Kind: protoreflect.DoubleKind,
2014 JSONName: "optDouble",
2015 IsPacked: prototype.False,
2016 },
2017 {
2018 Name: "opt_bytes",
2019 Number: 14,
2020 Cardinality: protoreflect.Optional,
2021 Kind: protoreflect.BytesKind,
2022 JSONName: "optBytes",
2023 IsPacked: prototype.False,
2024 },
2025 {
2026 Name: "opt_string",
2027 Number: 13,
2028 Cardinality: protoreflect.Optional,
2029 Kind: protoreflect.StringKind,
2030 JSONName: "optString",
2031 IsPacked: prototype.False,
2032 },
2033 },
2034 },
2035 {
2036 Name: "Repeats",
2037 Fields: []prototype.Field{
2038 {
2039 Name: "rpt_bool",
2040 Number: 1,
2041 Cardinality: protoreflect.Repeated,
2042 Kind: protoreflect.BoolKind,
2043 JSONName: "rptBool",
2044 IsPacked: prototype.False,
2045 },
2046 {
2047 Name: "rpt_int32",
2048 Number: 2,
2049 Cardinality: protoreflect.Repeated,
2050 Kind: protoreflect.Int32Kind,
2051 JSONName: "rptInt32",
2052 IsPacked: prototype.False,
2053 },
2054 {
2055 Name: "rpt_int64",
2056 Number: 3,
2057 Cardinality: protoreflect.Repeated,
2058 Kind: protoreflect.Int64Kind,
2059 JSONName: "rptInt64",
2060 IsPacked: prototype.False,
2061 },
2062 {
2063 Name: "rpt_uint32",
2064 Number: 4,
2065 Cardinality: protoreflect.Repeated,
2066 Kind: protoreflect.Uint32Kind,
2067 JSONName: "rptUint32",
2068 IsPacked: prototype.False,
2069 },
2070 {
2071 Name: "rpt_uint64",
2072 Number: 5,
2073 Cardinality: protoreflect.Repeated,
2074 Kind: protoreflect.Uint64Kind,
2075 JSONName: "rptUint64",
2076 IsPacked: prototype.False,
2077 },
2078 {
2079 Name: "rpt_float",
2080 Number: 6,
2081 Cardinality: protoreflect.Repeated,
2082 Kind: protoreflect.FloatKind,
2083 JSONName: "rptFloat",
2084 IsPacked: prototype.False,
2085 },
2086 {
2087 Name: "rpt_double",
2088 Number: 7,
2089 Cardinality: protoreflect.Repeated,
2090 Kind: protoreflect.DoubleKind,
2091 JSONName: "rptDouble",
2092 IsPacked: prototype.False,
2093 },
2094 {
2095 Name: "rpt_string",
2096 Number: 15,
2097 Cardinality: protoreflect.Repeated,
2098 Kind: protoreflect.StringKind,
2099 JSONName: "rptString",
2100 IsPacked: prototype.False,
2101 },
2102 {
2103 Name: "rpt_bytes",
2104 Number: 14,
2105 Cardinality: protoreflect.Repeated,
2106 Kind: protoreflect.BytesKind,
2107 JSONName: "rptBytes",
2108 IsPacked: prototype.False,
2109 },
2110 },
2111 },
2112 {
2113 Name: "Enums",
2114 Fields: []prototype.Field{
2115 {
2116 Name: "opt_enum",
2117 Number: 1,
2118 Cardinality: protoreflect.Optional,
2119 Kind: protoreflect.EnumKind,
2120 JSONName: "optEnum",
2121 IsPacked: prototype.False,
2122 },
2123 {
2124 Name: "rpt_enum",
2125 Number: 2,
2126 Cardinality: protoreflect.Repeated,
2127 Kind: protoreflect.EnumKind,
2128 JSONName: "rptEnum",
2129 IsPacked: prototype.False,
2130 },
2131 {
2132 Name: "opt_nested_enum",
2133 Number: 3,
2134 Cardinality: protoreflect.Optional,
2135 Kind: protoreflect.EnumKind,
2136 JSONName: "optNestedEnum",
2137 IsPacked: prototype.False,
2138 },
2139 {
2140 Name: "rpt_nested_enum",
2141 Number: 4,
2142 Cardinality: protoreflect.Repeated,
2143 Kind: protoreflect.EnumKind,
2144 JSONName: "rptNestedEnum",
2145 IsPacked: prototype.False,
2146 },
2147 },
2148 },
2149 {
2150 Name: "Nests",
2151 Fields: []prototype.Field{
2152 {
2153 Name: "opt_nested",
2154 Number: 1,
2155 Cardinality: protoreflect.Optional,
2156 Kind: protoreflect.MessageKind,
2157 JSONName: "optNested",
2158 IsPacked: prototype.False,
2159 },
2160 {
2161 Name: "optgroup",
2162 Number: 2,
2163 Cardinality: protoreflect.Optional,
2164 Kind: protoreflect.GroupKind,
2165 JSONName: "optgroup",
2166 IsPacked: prototype.False,
2167 },
2168 {
2169 Name: "rpt_nested",
2170 Number: 3,
2171 Cardinality: protoreflect.Repeated,
2172 Kind: protoreflect.MessageKind,
2173 JSONName: "rptNested",
2174 IsPacked: prototype.False,
2175 },
2176 {
2177 Name: "rptgroup",
2178 Number: 4,
2179 Cardinality: protoreflect.Repeated,
2180 Kind: protoreflect.GroupKind,
2181 JSONName: "rptgroup",
2182 IsPacked: prototype.False,
2183 },
2184 },
Herbie Ong7c624e22018-12-13 14:41:22 -08002185 ReservedNames: []protoreflect.Name{"reserved_field"},
Herbie Ong70651952018-12-13 14:19:50 -08002186 },
2187 {
2188 Name: "Nested",
2189 Fields: []prototype.Field{
2190 {
2191 Name: "opt_string",
2192 Number: 1,
2193 Cardinality: protoreflect.Optional,
2194 Kind: protoreflect.StringKind,
2195 JSONName: "optString",
2196 IsPacked: prototype.False,
2197 },
2198 {
2199 Name: "opt_nested",
2200 Number: 2,
2201 Cardinality: protoreflect.Optional,
2202 Kind: protoreflect.MessageKind,
2203 JSONName: "optNested",
2204 IsPacked: prototype.False,
2205 },
2206 },
2207 },
2208 {
2209 Name: "Requireds",
2210 Fields: []prototype.Field{
2211 {
2212 Name: "req_bool",
2213 Number: 1,
2214 Cardinality: protoreflect.Required,
2215 Kind: protoreflect.BoolKind,
2216 JSONName: "reqBool",
2217 IsPacked: prototype.False,
2218 },
2219 {
2220 Name: "req_fixed32",
2221 Number: 2,
2222 Cardinality: protoreflect.Required,
2223 Kind: protoreflect.Fixed32Kind,
2224 JSONName: "reqFixed32",
2225 IsPacked: prototype.False,
2226 },
2227 {
2228 Name: "req_fixed64",
2229 Number: 3,
2230 Cardinality: protoreflect.Required,
2231 Kind: protoreflect.Fixed64Kind,
2232 JSONName: "reqFixed64",
2233 IsPacked: prototype.False,
2234 },
2235 {
2236 Name: "req_sfixed32",
2237 Number: 4,
2238 Cardinality: protoreflect.Required,
2239 Kind: protoreflect.Sfixed32Kind,
2240 JSONName: "reqSfixed32",
2241 IsPacked: prototype.False,
2242 },
2243 {
2244 Name: "req_sfixed64",
2245 Number: 5,
2246 Cardinality: protoreflect.Required,
2247 Kind: protoreflect.Sfixed64Kind,
2248 JSONName: "reqSfixed64",
2249 IsPacked: prototype.False,
2250 },
2251 {
2252 Name: "req_float",
2253 Number: 6,
2254 Cardinality: protoreflect.Required,
2255 Kind: protoreflect.FloatKind,
2256 JSONName: "reqFloat",
2257 IsPacked: prototype.False,
2258 },
2259 {
2260 Name: "req_double",
2261 Number: 7,
2262 Cardinality: protoreflect.Required,
2263 Kind: protoreflect.DoubleKind,
2264 JSONName: "reqDouble",
2265 IsPacked: prototype.False,
2266 },
2267 {
2268 Name: "req_string",
2269 Number: 8,
2270 Cardinality: protoreflect.Required,
2271 Kind: protoreflect.StringKind,
2272 JSONName: "reqString",
2273 IsPacked: prototype.False,
2274 },
2275 {
2276 Name: "req_bytes",
2277 Number: 9,
2278 Cardinality: protoreflect.Required,
2279 Kind: protoreflect.BytesKind,
2280 JSONName: "reqBytes",
2281 IsPacked: prototype.False,
2282 },
2283 {
2284 Name: "req_enum",
2285 Number: 10,
2286 Cardinality: protoreflect.Required,
2287 Kind: protoreflect.EnumKind,
2288 JSONName: "reqEnum",
2289 IsPacked: prototype.False,
2290 },
2291 {
2292 Name: "req_nested",
2293 Number: 11,
2294 Cardinality: protoreflect.Required,
2295 Kind: protoreflect.MessageKind,
2296 JSONName: "reqNested",
2297 IsPacked: prototype.False,
2298 },
2299 },
2300 },
2301 {
2302 Name: "PartialRequired",
2303 Fields: []prototype.Field{
2304 {
2305 Name: "req_string",
2306 Number: 1,
2307 Cardinality: protoreflect.Required,
2308 Kind: protoreflect.StringKind,
2309 JSONName: "reqString",
2310 IsPacked: prototype.False,
2311 },
2312 {
2313 Name: "opt_string",
2314 Number: 2,
2315 Cardinality: protoreflect.Optional,
2316 Kind: protoreflect.StringKind,
2317 JSONName: "optString",
2318 IsPacked: prototype.False,
2319 },
2320 },
2321 },
2322 {
2323 Name: "Oneofs",
2324 Fields: []prototype.Field{
2325 {
2326 Name: "str",
2327 Number: 1,
2328 Cardinality: protoreflect.Optional,
2329 Kind: protoreflect.StringKind,
2330 JSONName: "str",
2331 OneofName: "union",
2332 IsPacked: prototype.False,
2333 },
2334 {
2335 Name: "msg",
2336 Number: 2,
2337 Cardinality: protoreflect.Optional,
2338 Kind: protoreflect.MessageKind,
2339 JSONName: "msg",
2340 OneofName: "union",
2341 IsPacked: prototype.False,
2342 },
2343 },
2344 Oneofs: []prototype.Oneof{
2345 {Name: "union"},
2346 },
2347 },
2348 {
2349 Name: "Maps",
2350 Fields: []prototype.Field{
2351 {
2352 Name: "int32_to_str",
2353 Number: 1,
2354 Cardinality: protoreflect.Repeated,
2355 Kind: protoreflect.MessageKind,
2356 JSONName: "int32ToStr",
2357 IsPacked: prototype.False,
2358 },
2359 {
2360 Name: "sfixed64_to_bool",
2361 Number: 2,
2362 Cardinality: protoreflect.Repeated,
2363 Kind: protoreflect.MessageKind,
2364 JSONName: "sfixed64ToBool",
2365 IsPacked: prototype.False,
2366 },
2367 {
2368 Name: "bool_to_uint32",
2369 Number: 3,
2370 Cardinality: protoreflect.Repeated,
2371 Kind: protoreflect.MessageKind,
2372 JSONName: "boolToUint32",
2373 IsPacked: prototype.False,
2374 },
2375 {
2376 Name: "uint64_to_enum",
2377 Number: 4,
2378 Cardinality: protoreflect.Repeated,
2379 Kind: protoreflect.MessageKind,
2380 JSONName: "uint64ToEnum",
2381 IsPacked: prototype.False,
2382 },
2383 {
2384 Name: "str_to_nested",
2385 Number: 5,
2386 Cardinality: protoreflect.Repeated,
2387 Kind: protoreflect.MessageKind,
2388 JSONName: "strToNested",
2389 IsPacked: prototype.False,
2390 },
2391 {
2392 Name: "str_to_oneofs",
2393 Number: 6,
2394 Cardinality: protoreflect.Repeated,
2395 Kind: protoreflect.MessageKind,
2396 JSONName: "strToOneofs",
2397 IsPacked: prototype.False,
2398 },
2399 },
2400 },
2401 {
2402 Name: "NestedWithRequired",
2403 Fields: []prototype.Field{
2404 {
2405 Name: "req_string",
2406 Number: 1,
2407 Cardinality: protoreflect.Required,
2408 Kind: protoreflect.StringKind,
2409 JSONName: "reqString",
2410 IsPacked: prototype.False,
2411 },
2412 },
2413 },
2414 {
2415 Name: "IndirectRequired",
2416 Fields: []prototype.Field{
2417 {
2418 Name: "opt_nested",
2419 Number: 1,
2420 Cardinality: protoreflect.Optional,
2421 Kind: protoreflect.MessageKind,
2422 JSONName: "optNested",
2423 IsPacked: prototype.False,
2424 },
2425 {
2426 Name: "rpt_nested",
2427 Number: 2,
2428 Cardinality: protoreflect.Repeated,
2429 Kind: protoreflect.MessageKind,
2430 JSONName: "rptNested",
2431 IsPacked: prototype.False,
2432 },
2433 {
2434 Name: "str_to_nested",
2435 Number: 3,
2436 Cardinality: protoreflect.Repeated,
2437 Kind: protoreflect.MessageKind,
2438 JSONName: "strToNested",
2439 IsPacked: prototype.False,
2440 },
2441 },
2442 },
2443 {
2444 Name: "KnownTypes",
2445 Fields: []prototype.Field{
2446 {
2447 Name: "opt_bool",
2448 Number: 1,
2449 Cardinality: protoreflect.Optional,
2450 Kind: protoreflect.MessageKind,
2451 JSONName: "optBool",
2452 IsPacked: prototype.False,
2453 },
2454 {
2455 Name: "opt_int32",
2456 Number: 2,
2457 Cardinality: protoreflect.Optional,
2458 Kind: protoreflect.MessageKind,
2459 JSONName: "optInt32",
2460 IsPacked: prototype.False,
2461 },
2462 {
2463 Name: "opt_int64",
2464 Number: 3,
2465 Cardinality: protoreflect.Optional,
2466 Kind: protoreflect.MessageKind,
2467 JSONName: "optInt64",
2468 IsPacked: prototype.False,
2469 },
2470 {
2471 Name: "opt_uint32",
2472 Number: 4,
2473 Cardinality: protoreflect.Optional,
2474 Kind: protoreflect.MessageKind,
2475 JSONName: "optUint32",
2476 IsPacked: prototype.False,
2477 },
2478 {
2479 Name: "opt_uint64",
2480 Number: 5,
2481 Cardinality: protoreflect.Optional,
2482 Kind: protoreflect.MessageKind,
2483 JSONName: "optUint64",
2484 IsPacked: prototype.False,
2485 },
2486 {
2487 Name: "opt_float",
2488 Number: 6,
2489 Cardinality: protoreflect.Optional,
2490 Kind: protoreflect.MessageKind,
2491 JSONName: "optFloat",
2492 IsPacked: prototype.False,
2493 },
2494 {
2495 Name: "opt_double",
2496 Number: 7,
2497 Cardinality: protoreflect.Optional,
2498 Kind: protoreflect.MessageKind,
2499 JSONName: "optDouble",
2500 IsPacked: prototype.False,
2501 },
2502 {
2503 Name: "opt_string",
2504 Number: 8,
2505 Cardinality: protoreflect.Optional,
2506 Kind: protoreflect.MessageKind,
2507 JSONName: "optString",
2508 IsPacked: prototype.False,
2509 },
2510 {
2511 Name: "opt_bytes",
2512 Number: 9,
2513 Cardinality: protoreflect.Optional,
2514 Kind: protoreflect.MessageKind,
2515 JSONName: "optBytes",
2516 IsPacked: prototype.False,
2517 },
2518 {
2519 Name: "opt_duration",
2520 Number: 20,
2521 Cardinality: protoreflect.Optional,
2522 Kind: protoreflect.MessageKind,
2523 JSONName: "optDuration",
2524 IsPacked: prototype.False,
2525 },
2526 {
2527 Name: "opt_timestamp",
2528 Number: 21,
2529 Cardinality: protoreflect.Optional,
2530 Kind: protoreflect.MessageKind,
2531 JSONName: "optTimestamp",
2532 IsPacked: prototype.False,
2533 },
2534 {
2535 Name: "opt_struct",
2536 Number: 25,
2537 Cardinality: protoreflect.Optional,
2538 Kind: protoreflect.MessageKind,
2539 JSONName: "optStruct",
2540 IsPacked: prototype.False,
2541 },
2542 {
2543 Name: "opt_list",
2544 Number: 26,
2545 Cardinality: protoreflect.Optional,
2546 Kind: protoreflect.MessageKind,
2547 JSONName: "optList",
2548 IsPacked: prototype.False,
2549 },
2550 {
2551 Name: "opt_value",
2552 Number: 27,
2553 Cardinality: protoreflect.Optional,
2554 Kind: protoreflect.MessageKind,
2555 JSONName: "optValue",
2556 IsPacked: prototype.False,
2557 },
2558 {
2559 Name: "opt_empty",
2560 Number: 30,
2561 Cardinality: protoreflect.Optional,
2562 Kind: protoreflect.MessageKind,
2563 JSONName: "optEmpty",
2564 IsPacked: prototype.False,
2565 },
2566 {
2567 Name: "opt_any",
2568 Number: 32,
2569 Cardinality: protoreflect.Optional,
2570 Kind: protoreflect.MessageKind,
2571 JSONName: "optAny",
2572 IsPacked: prototype.False,
2573 },
2574 },
2575 },
2576 {
2577 Name: "OptGroup",
2578 Fields: []prototype.Field{
2579 {
2580 Name: "opt_bool",
2581 Number: 1,
2582 Cardinality: protoreflect.Optional,
2583 Kind: protoreflect.BoolKind,
2584 JSONName: "optBool",
2585 IsPacked: prototype.False,
2586 },
2587 {
2588 Name: "opt_string",
2589 Number: 2,
2590 Cardinality: protoreflect.Optional,
2591 Kind: protoreflect.StringKind,
2592 JSONName: "optString",
2593 IsPacked: prototype.False,
2594 },
2595 {
2596 Name: "opt_nested",
2597 Number: 3,
2598 Cardinality: protoreflect.Optional,
2599 Kind: protoreflect.MessageKind,
2600 JSONName: "optNested",
2601 IsPacked: prototype.False,
2602 },
2603 {
2604 Name: "optnestedgroup",
2605 Number: 4,
2606 Cardinality: protoreflect.Optional,
2607 Kind: protoreflect.GroupKind,
2608 JSONName: "optnestedgroup",
2609 IsPacked: prototype.False,
2610 },
2611 },
2612 },
2613 {
2614 Name: "RptGroup",
2615 Fields: []prototype.Field{
2616 {
2617 Name: "rpt_bool",
2618 Number: 1,
2619 Cardinality: protoreflect.Repeated,
2620 Kind: protoreflect.BoolKind,
2621 JSONName: "rptBool",
2622 IsPacked: prototype.False,
2623 },
2624 },
2625 },
2626 {
2627 Name: "OptNestedGroup",
2628 Fields: []prototype.Field{
2629 {
2630 Name: "opt_enum",
2631 Number: 1,
2632 Cardinality: protoreflect.Optional,
2633 Kind: protoreflect.EnumKind,
2634 JSONName: "optEnum",
2635 IsPacked: prototype.False,
2636 },
2637 },
2638 },
2639 {
2640 Name: "Int32ToStrEntry",
2641 Fields: []prototype.Field{
2642 {
2643 Name: "key",
2644 Number: 1,
2645 Cardinality: protoreflect.Optional,
2646 Kind: protoreflect.Int32Kind,
2647 JSONName: "key",
2648 IsPacked: prototype.False,
2649 },
2650 {
2651 Name: "value",
2652 Number: 2,
2653 Cardinality: protoreflect.Optional,
2654 Kind: protoreflect.StringKind,
2655 JSONName: "value",
2656 IsPacked: prototype.False,
2657 },
2658 },
2659 IsMapEntry: true,
2660 },
2661 {
2662 Name: "Sfixed64ToBoolEntry",
2663 Fields: []prototype.Field{
2664 {
2665 Name: "key",
2666 Number: 1,
2667 Cardinality: protoreflect.Optional,
2668 Kind: protoreflect.Sfixed64Kind,
2669 JSONName: "key",
2670 IsPacked: prototype.False,
2671 },
2672 {
2673 Name: "value",
2674 Number: 2,
2675 Cardinality: protoreflect.Optional,
2676 Kind: protoreflect.BoolKind,
2677 JSONName: "value",
2678 IsPacked: prototype.False,
2679 },
2680 },
2681 IsMapEntry: true,
2682 },
2683 {
2684 Name: "BoolToUint32Entry",
2685 Fields: []prototype.Field{
2686 {
2687 Name: "key",
2688 Number: 1,
2689 Cardinality: protoreflect.Optional,
2690 Kind: protoreflect.BoolKind,
2691 JSONName: "key",
2692 IsPacked: prototype.False,
2693 },
2694 {
2695 Name: "value",
2696 Number: 2,
2697 Cardinality: protoreflect.Optional,
2698 Kind: protoreflect.Uint32Kind,
2699 JSONName: "value",
2700 IsPacked: prototype.False,
2701 },
2702 },
2703 IsMapEntry: true,
2704 },
2705 {
2706 Name: "Uint64ToEnumEntry",
2707 Fields: []prototype.Field{
2708 {
2709 Name: "key",
2710 Number: 1,
2711 Cardinality: protoreflect.Optional,
2712 Kind: protoreflect.Uint64Kind,
2713 JSONName: "key",
2714 IsPacked: prototype.False,
2715 },
2716 {
2717 Name: "value",
2718 Number: 2,
2719 Cardinality: protoreflect.Optional,
2720 Kind: protoreflect.EnumKind,
2721 JSONName: "value",
2722 IsPacked: prototype.False,
2723 },
2724 },
2725 IsMapEntry: true,
2726 },
2727 {
2728 Name: "StrToNestedEntry",
2729 Fields: []prototype.Field{
2730 {
2731 Name: "key",
2732 Number: 1,
2733 Cardinality: protoreflect.Optional,
2734 Kind: protoreflect.StringKind,
2735 JSONName: "key",
2736 IsPacked: prototype.False,
2737 },
2738 {
2739 Name: "value",
2740 Number: 2,
2741 Cardinality: protoreflect.Optional,
2742 Kind: protoreflect.MessageKind,
2743 JSONName: "value",
2744 IsPacked: prototype.False,
2745 },
2746 },
2747 IsMapEntry: true,
2748 },
2749 {
2750 Name: "StrToOneofsEntry",
2751 Fields: []prototype.Field{
2752 {
2753 Name: "key",
2754 Number: 1,
2755 Cardinality: protoreflect.Optional,
2756 Kind: protoreflect.StringKind,
2757 JSONName: "key",
2758 IsPacked: prototype.False,
2759 },
2760 {
2761 Name: "value",
2762 Number: 2,
2763 Cardinality: protoreflect.Optional,
2764 Kind: protoreflect.MessageKind,
2765 JSONName: "value",
2766 IsPacked: prototype.False,
2767 },
2768 },
2769 IsMapEntry: true,
2770 },
2771 {
2772 Name: "StrToNestedEntry",
2773 Fields: []prototype.Field{
2774 {
2775 Name: "key",
2776 Number: 1,
2777 Cardinality: protoreflect.Optional,
2778 Kind: protoreflect.StringKind,
2779 JSONName: "key",
2780 IsPacked: prototype.False,
2781 },
2782 {
2783 Name: "value",
2784 Number: 2,
2785 Cardinality: protoreflect.Optional,
2786 Kind: protoreflect.MessageKind,
2787 JSONName: "value",
2788 IsPacked: prototype.False,
2789 },
2790 },
2791 IsMapEntry: true,
2792 },
2793}