blob: 16221855687475a89ceab256b5dde5ab4f8001b8 [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 Ong800c9902018-12-06 15:28:53 -08001596 // 1614 bytes of a gzipped FileDescriptorProto
1597 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x58, 0xdd, 0x6e, 0xdb, 0x36,
1598 0x14, 0xae, 0x24, 0xff, 0xd2, 0xf9, 0x71, 0xd5, 0x76, 0x73, 0x9c, 0xb6, 0x51, 0x8d, 0x6e, 0xd0,
1599 0x0a, 0xd4, 0x06, 0x1c, 0xd7, 0x08, 0x96, 0xfe, 0x20, 0x59, 0x92, 0x36, 0xed, 0x96, 0x0c, 0xb2,
1600 0xb3, 0x02, 0xbd, 0x09, 0xec, 0x84, 0x71, 0x85, 0xd9, 0xa2, 0x4c, 0x51, 0x6d, 0xfd, 0x1e, 0x7b,
1601 0x86, 0xed, 0x21, 0xf6, 0x26, 0xbb, 0xd9, 0x4b, 0xec, 0x62, 0xc0, 0x6e, 0x86, 0x43, 0x8a, 0x12,
1602 0x25, 0xdb, 0x41, 0xee, 0x44, 0x9e, 0xf3, 0x7d, 0xe4, 0xf9, 0xe1, 0x39, 0x3e, 0x46, 0xdf, 0x61,
1603 0xef, 0x82, 0x5c, 0xba, 0xde, 0xa8, 0xc5, 0xf0, 0x17, 0xe6, 0x0f, 0x5b, 0x0c, 0x07, 0xcc, 0xa7,
1604 0x84, 0x91, 0xa0, 0xe5, 0x0f, 0xdb, 0x7c, 0xd9, 0xe4, 0x6b, 0xd3, 0xf0, 0x87, 0xed, 0xfa, 0xc6,
1605 0x88, 0x90, 0xd1, 0x18, 0xb7, 0xf8, 0xd6, 0x30, 0xbc, 0x6a, 0x0d, 0xbc, 0x99, 0x90, 0xd7, 0x37,
1606 0xb3, 0x22, 0x3c, 0xf1, 0x99, 0x14, 0x3e, 0xcc, 0x0a, 0x2f, 0x43, 0x3a, 0x60, 0x2e, 0xf1, 0x22,
1607 0xf9, 0xfd, 0xac, 0x3c, 0x60, 0x34, 0xbc, 0x88, 0x8e, 0xae, 0x6f, 0x65, 0xa5, 0xcc, 0x9d, 0xe0,
1608 0x80, 0x0d, 0x26, 0xfe, 0x32, 0xfa, 0xcf, 0x74, 0xe0, 0xfb, 0x98, 0x06, 0x42, 0xde, 0xf8, 0xcb,
1609 0x40, 0xc5, 0xde, 0xc5, 0x60, 0x3c, 0xa0, 0x81, 0xb9, 0x81, 0x4a, 0xc4, 0x67, 0xe7, 0x43, 0x42,
1610 0xc6, 0x35, 0xcd, 0xd2, 0xec, 0x92, 0x53, 0x24, 0x3e, 0xdb, 0x27, 0x64, 0x6c, 0x6e, 0xa2, 0x32,
1611 0x88, 0x5c, 0x8f, 0x6d, 0xb7, 0x6b, 0xba, 0xa5, 0xd9, 0x79, 0x07, 0x74, 0x8f, 0x61, 0xad, 0x08,
1612 0xbb, 0x9d, 0x9a, 0x61, 0x69, 0xb6, 0x21, 0x85, 0xdd, 0x8e, 0xf9, 0x00, 0x21, 0x10, 0x86, 0x02,
1613 0x9a, 0xb3, 0x34, 0x7b, 0xd5, 0x01, 0xf5, 0x33, 0xbe, 0xa1, 0x8a, 0xbb, 0x9d, 0x5a, 0xde, 0xd2,
1614 0xec, 0x5c, 0x2c, 0x4e, 0xd0, 0x81, 0x40, 0x17, 0x2c, 0xcd, 0xbe, 0xcd, 0xc5, 0xbd, 0x14, 0x3a,
1615 0x10, 0xe8, 0xa2, 0xa5, 0xd9, 0x66, 0x2c, 0xee, 0x76, 0xcc, 0x2d, 0x54, 0x01, 0xf1, 0x95, 0xfb,
1616 0x05, 0x5f, 0x6e, 0xb7, 0x6b, 0x25, 0x4b, 0xb3, 0x8b, 0x0e, 0x20, 0x8e, 0xc4, 0x4e, 0x4a, 0xa1,
1617 0xdb, 0xa9, 0x95, 0x2d, 0xcd, 0x2e, 0x24, 0x0a, 0xdd, 0x8e, 0xf9, 0x08, 0xad, 0xf0, 0x03, 0x24,
1618 0x05, 0xb2, 0x34, 0x7b, 0xdd, 0x01, 0x50, 0x2f, 0xda, 0x4a, 0xab, 0x74, 0x3b, 0xb5, 0x8a, 0xa5,
1619 0xd9, 0x55, 0x45, 0xa5, 0xdb, 0x91, 0x0e, 0xba, 0x1a, 0x93, 0x01, 0xab, 0xdd, 0xb5, 0x34, 0x5b,
1620 0xe7, 0x0e, 0x3a, 0x82, 0xb5, 0xb4, 0xe1, 0x92, 0x84, 0xc3, 0x31, 0xae, 0xdd, 0xb3, 0x34, 0x5b,
1621 0xe3, 0x36, 0x1c, 0xf0, 0x0d, 0x89, 0x1d, 0xce, 0x18, 0x0e, 0x6a, 0x6b, 0x96, 0x66, 0xaf, 0x70,
1622 0xec, 0x3e, 0xac, 0x63, 0xfb, 0x19, 0x75, 0xbd, 0x51, 0x6d, 0xd5, 0xd2, 0xec, 0xb2, 0xb0, 0x9f,
1623 0x6f, 0x34, 0x7e, 0xd3, 0x51, 0xd1, 0xc1, 0x3e, 0x1e, 0x30, 0x1e, 0x5c, 0x9a, 0x04, 0xd7, 0x80,
1624 0xe0, 0xd2, 0x24, 0xb8, 0x54, 0x09, 0xae, 0x01, 0xc1, 0xa5, 0x4a, 0x70, 0xa9, 0x12, 0x5c, 0x03,
1625 0x82, 0x4b, 0x95, 0xe0, 0x52, 0x35, 0xb8, 0x06, 0x04, 0x97, 0xaa, 0xc1, 0xa5, 0x6a, 0x70, 0x0d,
1626 0x08, 0x2e, 0x8d, 0x83, 0x1b, 0x51, 0x0b, 0xb7, 0x14, 0x2c, 0x03, 0xdc, 0x42, 0x15, 0xb7, 0xd0,
1627 0xc4, 0x2d, 0x45, 0xcb, 0x00, 0xb7, 0xd0, 0xd8, 0x2d, 0x91, 0x38, 0xb2, 0x7c, 0xdd, 0x32, 0xc0,
1628 0x72, 0x2a, 0x2d, 0x97, 0xd4, 0xd2, 0x6b, 0x06, 0x78, 0x8d, 0x46, 0x5e, 0x6b, 0xfc, 0xa7, 0xa1,
1629 0xfc, 0xa1, 0x17, 0x4e, 0x02, 0xf3, 0xb1, 0xc8, 0x78, 0xec, 0x85, 0x13, 0x9e, 0xf1, 0x6b, 0xed,
1630 0x72, 0xd3, 0x1f, 0xb6, 0x9b, 0x20, 0xe5, 0xc9, 0x0f, 0x1f, 0xa0, 0x45, 0xa5, 0x16, 0xb8, 0x27,
1631 0xad, 0x45, 0x23, 0xad, 0x17, 0x68, 0x1d, 0xb8, 0x3c, 0x1c, 0x30, 0x7c, 0x29, 0x94, 0x0d, 0x4e,
1632 0x79, 0x2f, 0x56, 0x0e, 0x9a, 0x27, 0x5c, 0xca, 0x81, 0xab, 0xc4, 0x67, 0xc9, 0x12, 0xe0, 0x34,
1633 0x03, 0xcf, 0xf1, 0xb3, 0x96, 0xc1, 0xa9, 0x0a, 0x6f, 0xd8, 0x08, 0x29, 0x64, 0x45, 0x64, 0x9c,
1634 0x9d, 0x9c, 0x56, 0x35, 0xf8, 0x38, 0x38, 0xed, 0x55, 0x75, 0xb3, 0x84, 0x72, 0x07, 0xc7, 0x87,
1635 0x1f, 0xaa, 0xa8, 0xf1, 0xb7, 0x81, 0xf2, 0xa0, 0x1a, 0x98, 0x4f, 0x44, 0xf6, 0x88, 0x23, 0xb9,
1636 0xfd, 0x95, 0x76, 0x85, 0x9f, 0x26, 0xa8, 0x78, 0x2a, 0x89, 0x4f, 0xb3, 0xc5, 0x3d, 0x35, 0xa2,
1637 0x24, 0xf4, 0xf9, 0xfb, 0x47, 0xed, 0x3b, 0xb1, 0x66, 0xd0, 0x3c, 0xf5, 0xd9, 0x6b, 0x10, 0x39,
1638 0xb1, 0x12, 0x90, 0x27, 0xf6, 0xf0, 0xc4, 0xc9, 0x92, 0x53, 0x95, 0x9c, 0x4a, 0x72, 0x30, 0x3a,
1639 0x4d, 0xee, 0xc4, 0xe4, 0x52, 0xa9, 0xfe, 0x8f, 0x86, 0x4a, 0xf2, 0xcc, 0xeb, 0xca, 0x56, 0xfa,
1640 0x7d, 0xe8, 0x99, 0xf7, 0x91, 0x71, 0x80, 0x71, 0xad, 0x03, 0xde, 0xa2, 0x35, 0xe2, 0x33, 0xa1,
1641 0x2a, 0x6f, 0x0a, 0x6e, 0x68, 0x2c, 0x70, 0x03, 0x7c, 0x08, 0x98, 0xb8, 0x78, 0x06, 0x59, 0xef,
1642 0xa2, 0xb5, 0xb4, 0xc6, 0xcd, 0x12, 0xb1, 0xfe, 0x0d, 0x2a, 0x39, 0x8a, 0xd5, 0x4b, 0xde, 0x73,
1643 0xa3, 0x87, 0x0a, 0xd1, 0xa5, 0xd3, 0xf6, 0x6b, 0xd7, 0xdb, 0xaf, 0x5f, 0x67, 0x7f, 0xe3, 0x5f,
1644 0x1d, 0x95, 0x1d, 0x3c, 0x0d, 0x5d, 0x8a, 0x2f, 0x45, 0x35, 0xc1, 0x53, 0x79, 0xba, 0xce, 0x4f,
1645 0xc7, 0x53, 0xee, 0xf3, 0x2d, 0x54, 0x01, 0x91, 0xac, 0x98, 0xba, 0xa5, 0x43, 0xd1, 0xa5, 0x78,
1646 0xaa, 0x14, 0xdd, 0x58, 0x81, 0xd7, 0x14, 0x1d, 0x8a, 0xae, 0x54, 0x10, 0x45, 0x17, 0x14, 0xe2,
1647 0xa2, 0x9b, 0xb3, 0x74, 0x28, 0xba, 0x14, 0x4f, 0xd5, 0xa2, 0x9b, 0xa8, 0xf0, 0xda, 0xa2, 0x43,
1648 0xd1, 0x8d, 0x55, 0xa2, 0xea, 0x02, 0xc7, 0x44, 0xd5, 0x45, 0xe7, 0xd5, 0x05, 0x4f, 0x93, 0xea,
1649 0x82, 0xa7, 0x49, 0x75, 0xd1, 0x79, 0x75, 0xc1, 0x53, 0xa5, 0xba, 0x00, 0xbd, 0xf0, 0x5b, 0xc9,
1650 0xd2, 0x79, 0x75, 0xc1, 0x53, 0xa5, 0xba, 0x80, 0xf5, 0xbc, 0xba, 0x94, 0x2d, 0x9d, 0x57, 0x17,
1651 0x3c, 0x15, 0x35, 0xf9, 0xb1, 0x70, 0x0d, 0x0f, 0x25, 0xb2, 0xf4, 0x6c, 0xb5, 0xc0, 0x53, 0xfe,
1652 0x42, 0x9f, 0x88, 0x13, 0x22, 0xd7, 0x57, 0x2c, 0x7d, 0xfe, 0x79, 0xe0, 0x69, 0xe4, 0xfa, 0x53,
1653 0xb4, 0xfe, 0xf3, 0x80, 0x32, 0x77, 0x30, 0x96, 0x01, 0xc8, 0x5c, 0x50, 0xcb, 0x5e, 0xf0, 0xfa,
1654 0xbc, 0x6f, 0x1c, 0xa1, 0xc2, 0xa9, 0x87, 0xc9, 0x55, 0x60, 0x9a, 0xc8, 0x08, 0x18, 0x15, 0x99,
1655 0xf1, 0xe6, 0x96, 0x03, 0x0b, 0x73, 0x0b, 0x19, 0x93, 0x60, 0xb4, 0x20, 0x1d, 0x40, 0x61, 0x12,
1656 0x8c, 0xf6, 0x8b, 0x28, 0x1f, 0x7a, 0x2e, 0xf1, 0x1a, 0x7f, 0x16, 0x50, 0xee, 0xa7, 0x81, 0x1f,
1657 0x98, 0xbb, 0x68, 0x85, 0x57, 0xfc, 0x73, 0x46, 0xce, 0x05, 0x1f, 0x3c, 0xf7, 0x0d, 0x8e, 0x05,
1658 0x85, 0x26, 0xef, 0x25, 0x7d, 0xd2, 0x63, 0xf4, 0xd0, 0x63, 0x74, 0xe6, 0x20, 0x37, 0xde, 0x30,
1659 0x5f, 0xa3, 0xaa, 0x8c, 0x23, 0xe0, 0x79, 0x4e, 0xe9, 0x9c, 0xe0, 0x41, 0x42, 0x20, 0xc3, 0xda,
1660 0x27, 0x90, 0x64, 0x82, 0x64, 0x2d, 0x48, 0x6d, 0x9a, 0x7b, 0x68, 0x0d, 0xc0, 0x40, 0x12, 0x75,
1661 0x24, 0x51, 0x76, 0x36, 0x13, 0x1a, 0xd0, 0xeb, 0x13, 0xd1, 0x9e, 0x04, 0xc9, 0xca, 0x50, 0xd9,
1662 0x02, 0x0a, 0xd1, 0xad, 0x80, 0x24, 0x2e, 0xc2, 0x29, 0x0a, 0xd1, 0xbc, 0xfa, 0x04, 0xc2, 0x18,
1663 0x51, 0x84, 0xca, 0x96, 0xf9, 0x12, 0xad, 0x06, 0x8c, 0x02, 0x3e, 0x0a, 0x6e, 0x9e, 0x33, 0xd4,
1664 0x15, 0x5b, 0x18, 0xed, 0x13, 0x59, 0xad, 0x81, 0xa0, 0x12, 0x24, 0x3b, 0x0a, 0x9e, 0xf0, 0x18,
1665 0xf1, 0xce, 0x38, 0x8f, 0x17, 0x01, 0x54, 0xf1, 0x62, 0xa7, 0xfe, 0x02, 0xad, 0x67, 0xbc, 0x6d,
1666 0x56, 0x91, 0xf1, 0x2b, 0x9e, 0xf1, 0x28, 0xe7, 0x1d, 0xf8, 0x34, 0xef, 0xa2, 0xfc, 0xa7, 0xc1,
1667 0x38, 0xc4, 0x51, 0x6e, 0x88, 0xc5, 0xf7, 0xfa, 0x8e, 0x56, 0xdf, 0x43, 0x77, 0x16, 0xf8, 0x5a,
1668 0xa5, 0xa8, 0x2e, 0xa0, 0x28, 0xa9, 0x14, 0xaf, 0xd0, 0xed, 0x39, 0x3f, 0xab, 0x04, 0xa5, 0x05,
1669 0x04, 0xab, 0x2a, 0xc1, 0x5b, 0x74, 0x7b, 0xce, 0xcb, 0x2a, 0x41, 0x4e, 0x10, 0x6c, 0xa9, 0x04,
1670 0xa9, 0x67, 0xa6, 0x70, 0xbd, 0x43, 0xd5, 0xac, 0xbf, 0x55, 0xaa, 0xb2, 0xa0, 0x7a, 0xa4, 0x52,
1671 0x65, 0x5e, 0xe2, 0x02, 0x32, 0xc5, 0xf9, 0x37, 0x25, 0x13, 0x10, 0x85, 0xac, 0xb1, 0x8d, 0x4c,
1672 0x71, 0xc2, 0x7b, 0x97, 0x7d, 0xbc, 0xe1, 0xcb, 0x6e, 0xfc, 0xa1, 0xa3, 0xea, 0xb1, 0x77, 0xe9,
1673 0x52, 0x7c, 0xc1, 0x62, 0x4c, 0x77, 0x41, 0x23, 0xff, 0x5a, 0x31, 0x41, 0x3d, 0x40, 0xed, 0x69,
1674 0xdd, 0x54, 0x8f, 0x16, 0x6f, 0x6e, 0x39, 0x8e, 0x2a, 0xbd, 0x30, 0x93, 0xe2, 0xe2, 0x9d, 0x7d,
1675 0xcb, 0xa1, 0xd9, 0xdb, 0x5d, 0x9f, 0xee, 0xf5, 0xf7, 0x37, 0x8a, 0xcf, 0xd3, 0xb4, 0x4b, 0x97,
1676 0x5e, 0x52, 0x71, 0xef, 0xef, 0x45, 0x84, 0xde, 0x79, 0xe4, 0xb3, 0xd7, 0x9f, 0xf9, 0x38, 0x30,
1677 0x9f, 0x65, 0x7e, 0x25, 0xc0, 0x8b, 0x12, 0xb3, 0x51, 0x53, 0xce, 0x46, 0xbc, 0x3a, 0xfc, 0x02,
1678 0x04, 0xc9, 0x2f, 0x88, 0x9d, 0xec, 0xe0, 0x03, 0xb5, 0x20, 0x8b, 0xe3, 0xef, 0x4d, 0x00, 0x93,
1679 0xa9, 0x68, 0x27, 0x3b, 0x15, 0x2d, 0x41, 0x76, 0x3b, 0x29, 0x64, 0xb7, 0x63, 0xee, 0xce, 0x8d,
1680 0x4c, 0x95, 0xf6, 0xfd, 0x39, 0xe8, 0x99, 0x72, 0xaa, 0x32, 0x50, 0xed, 0xce, 0x0d, 0x54, 0xcb,
1681 0xc0, 0xf2, 0x60, 0x65, 0xdc, 0xda, 0x51, 0x07, 0x95, 0xc2, 0x92, 0x3b, 0xf3, 0x0e, 0x9a, 0xdc,
1682 0x59, 0x34, 0xd4, 0xdd, 0xd4, 0x14, 0x53, 0x5c, 0x72, 0xac, 0x68, 0xaf, 0xc9, 0xb1, 0x51, 0xbb,
1683 0xdd, 0x4d, 0xb5, 0xab, 0xd2, 0x12, 0xb0, 0x78, 0x01, 0x09, 0x38, 0xea, 0x75, 0x3b, 0xea, 0x80,
1684 0x54, 0x5e, 0x72, 0x67, 0xde, 0x9a, 0x93, 0x3b, 0x8b, 0x4e, 0xfd, 0x5c, 0x4c, 0x6e, 0x72, 0xe0,
1685 0xe6, 0x93, 0x19, 0x74, 0xad, 0xb9, 0x5b, 0x47, 0x0a, 0x7c, 0xa8, 0x93, 0x0b, 0xf3, 0x15, 0x82,
1686 0x5f, 0xf0, 0xe7, 0xf1, 0xc0, 0xcd, 0x47, 0xb7, 0x45, 0x59, 0xd5, 0x97, 0x1a, 0x0e, 0x1c, 0x17,
1687 0xaf, 0xe4, 0xab, 0x15, 0xf3, 0x7c, 0x6d, 0x23, 0x4a, 0xec, 0x05, 0x56, 0x87, 0x17, 0x4c, 0x1a,
1688 0x1c, 0x5e, 0x30, 0x99, 0xc9, 0x63, 0x37, 0x60, 0xb5, 0xfa, 0x92, 0x33, 0x7f, 0x74, 0x03, 0x96,
1689 0x64, 0x32, 0xac, 0xcc, 0x6d, 0xe1, 0x27, 0xf1, 0x8c, 0x36, 0x39, 0xee, 0xab, 0x39, 0x5c, 0xe2,
1690 0x22, 0xfe, 0x25, 0x41, 0xfc, 0x0f, 0x8b, 0xda, 0xc3, 0x25, 0xa0, 0x43, 0x90, 0x72, 0x10, 0xff,
1691 0x32, 0x9f, 0x22, 0x38, 0xf4, 0x7c, 0xe0, 0xcd, 0x6a, 0x16, 0x87, 0xdc, 0x9d, 0x83, 0xec, 0x79,
1692 0x33, 0xa7, 0x40, 0x7c, 0xb6, 0xe7, 0xcd, 0x9e, 0x3c, 0x43, 0x39, 0xde, 0x38, 0x2b, 0xa8, 0x78,
1693 0x76, 0xf2, 0xee, 0xe4, 0xf4, 0xfd, 0x49, 0xf5, 0x96, 0x59, 0x46, 0xf9, 0xa3, 0x63, 0xa7, 0xd7,
1694 0xaf, 0x6a, 0x26, 0x42, 0x85, 0xde, 0xe1, 0x0f, 0xa7, 0x27, 0x07, 0x55, 0x1d, 0xb6, 0xfb, 0x87,
1695 0x27, 0xfd, 0x37, 0x55, 0xb4, 0xff, 0xf2, 0xc3, 0xf3, 0x91, 0xcb, 0x3e, 0x86, 0xc3, 0xe6, 0x05,
1696 0x99, 0xb4, 0x46, 0x64, 0x3c, 0xf0, 0x46, 0xc9, 0xdf, 0x1c, 0x9f, 0xda, 0xad, 0xeb, 0xff, 0xc0,
1697 0xf9, 0x3f, 0x00, 0x00, 0xff, 0xff, 0x7b, 0xf3, 0x0d, 0xb6, 0xe1, 0x11, 0x00, 0x00,
Herbie Ongcddf8192018-11-28 18:25:20 -08001698}
Herbie Ong70651952018-12-13 14:19:50 -08001699
1700func init() {
1701 xxx_Test_ProtoFile_FileDesc.Enums = xxx_Test_ProtoFile_EnumDescs[0:1]
1702 xxx_Test_ProtoFile_FileDesc.Messages = xxx_Test_ProtoFile_MessageDescs[0:12]
1703 xxx_Test_ProtoFile_MessageDescs[2].Enums = xxx_Test_ProtoFile_EnumDescs[1:2]
1704 xxx_Test_ProtoFile_MessageDescs[3].Messages = xxx_Test_ProtoFile_MessageDescs[12:14]
1705 xxx_Test_ProtoFile_MessageDescs[8].Messages = xxx_Test_ProtoFile_MessageDescs[15:21]
1706 xxx_Test_ProtoFile_MessageDescs[10].Messages = xxx_Test_ProtoFile_MessageDescs[21:22]
1707 xxx_Test_ProtoFile_MessageDescs[12].Messages = xxx_Test_ProtoFile_MessageDescs[14:15]
1708 xxx_Test_ProtoFile_MessageDescs[2].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1709 xxx_Test_ProtoFile_MessageDescs[2].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1710 xxx_Test_ProtoFile_MessageDescs[2].Fields[2].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
1711 xxx_Test_ProtoFile_MessageDescs[2].Fields[3].EnumType = xxx_Test_ProtoFile_EnumTypes[1]
1712 xxx_Test_ProtoFile_MessageDescs[3].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1713 xxx_Test_ProtoFile_MessageDescs[3].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[12].Type
1714 xxx_Test_ProtoFile_MessageDescs[3].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1715 xxx_Test_ProtoFile_MessageDescs[3].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[13].Type
1716 xxx_Test_ProtoFile_MessageDescs[4].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1717 xxx_Test_ProtoFile_MessageDescs[5].Fields[9].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1718 xxx_Test_ProtoFile_MessageDescs[5].Fields[10].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1719 xxx_Test_ProtoFile_MessageDescs[7].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1720 xxx_Test_ProtoFile_MessageDescs[8].Fields[0].MessageType = xxx_Test_ProtoFile_MessageDescs[15].Reference()
1721 xxx_Test_ProtoFile_MessageDescs[8].Fields[1].MessageType = xxx_Test_ProtoFile_MessageDescs[16].Reference()
1722 xxx_Test_ProtoFile_MessageDescs[8].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[17].Reference()
1723 xxx_Test_ProtoFile_MessageDescs[8].Fields[3].MessageType = xxx_Test_ProtoFile_MessageDescs[18].Reference()
1724 xxx_Test_ProtoFile_MessageDescs[8].Fields[4].MessageType = xxx_Test_ProtoFile_MessageDescs[19].Reference()
1725 xxx_Test_ProtoFile_MessageDescs[8].Fields[5].MessageType = xxx_Test_ProtoFile_MessageDescs[20].Reference()
1726 xxx_Test_ProtoFile_MessageDescs[10].Fields[0].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1727 xxx_Test_ProtoFile_MessageDescs[10].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1728 xxx_Test_ProtoFile_MessageDescs[10].Fields[2].MessageType = xxx_Test_ProtoFile_MessageDescs[21].Reference()
1729 xxx_Test_ProtoFile_MessageDescs[11].Fields[0].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BoolValue)(nil))
1730 xxx_Test_ProtoFile_MessageDescs[11].Fields[1].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int32Value)(nil))
1731 xxx_Test_ProtoFile_MessageDescs[11].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*wrappers.Int64Value)(nil))
1732 xxx_Test_ProtoFile_MessageDescs[11].Fields[3].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt32Value)(nil))
1733 xxx_Test_ProtoFile_MessageDescs[11].Fields[4].MessageType = protoimpl.X.MessageTypeOf((*wrappers.UInt64Value)(nil))
1734 xxx_Test_ProtoFile_MessageDescs[11].Fields[5].MessageType = protoimpl.X.MessageTypeOf((*wrappers.FloatValue)(nil))
1735 xxx_Test_ProtoFile_MessageDescs[11].Fields[6].MessageType = protoimpl.X.MessageTypeOf((*wrappers.DoubleValue)(nil))
1736 xxx_Test_ProtoFile_MessageDescs[11].Fields[7].MessageType = protoimpl.X.MessageTypeOf((*wrappers.StringValue)(nil))
1737 xxx_Test_ProtoFile_MessageDescs[11].Fields[8].MessageType = protoimpl.X.MessageTypeOf((*wrappers.BytesValue)(nil))
1738 xxx_Test_ProtoFile_MessageDescs[11].Fields[9].MessageType = protoimpl.X.MessageTypeOf((*duration.Duration)(nil))
1739 xxx_Test_ProtoFile_MessageDescs[11].Fields[10].MessageType = protoimpl.X.MessageTypeOf((*timestamp.Timestamp)(nil))
1740 xxx_Test_ProtoFile_MessageDescs[11].Fields[11].MessageType = protoimpl.X.MessageTypeOf((*_struct.Struct)(nil))
1741 xxx_Test_ProtoFile_MessageDescs[11].Fields[12].MessageType = protoimpl.X.MessageTypeOf((*_struct.ListValue)(nil))
1742 xxx_Test_ProtoFile_MessageDescs[11].Fields[13].MessageType = protoimpl.X.MessageTypeOf((*_struct.Value)(nil))
1743 xxx_Test_ProtoFile_MessageDescs[11].Fields[14].MessageType = protoimpl.X.MessageTypeOf((*empty.Empty)(nil))
1744 xxx_Test_ProtoFile_MessageDescs[11].Fields[15].MessageType = protoimpl.X.MessageTypeOf((*any.Any)(nil))
1745 xxx_Test_ProtoFile_MessageDescs[12].Fields[2].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1746 xxx_Test_ProtoFile_MessageDescs[12].Fields[3].MessageType = xxx_Test_ProtoFile_MessageTypes[14].Type
1747 xxx_Test_ProtoFile_MessageDescs[14].Fields[0].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1748 xxx_Test_ProtoFile_MessageDescs[18].Fields[1].EnumType = xxx_Test_ProtoFile_EnumTypes[0]
1749 xxx_Test_ProtoFile_MessageDescs[19].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[4].Type
1750 xxx_Test_ProtoFile_MessageDescs[20].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[7].Type
1751 xxx_Test_ProtoFile_MessageDescs[21].Fields[1].MessageType = xxx_Test_ProtoFile_MessageTypes[9].Type
1752 var err error
1753 Test_ProtoFile, err = prototype.NewFile(&xxx_Test_ProtoFile_FileDesc)
1754 if err != nil {
1755 panic(err)
1756 }
1757}
1758
1759const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
1760
1761var Test_ProtoFile protoreflect.FileDescriptor
1762
1763var xxx_Test_ProtoFile_FileDesc = prototype.File{
1764 Syntax: protoreflect.Proto2,
1765 Path: "encoding/textpb/testprotos/pb2/test.proto",
1766 Package: "pb2",
1767 Imports: []protoreflect.FileImport{
1768 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/any.proto", "google.protobuf")},
1769 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/empty.proto", "google.protobuf")},
1770 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/duration.proto", "google.protobuf")},
1771 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/struct.proto", "google.protobuf")},
1772 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/timestamp.proto", "google.protobuf")},
1773 {FileDescriptor: prototype.PlaceholderFile("google/protobuf/wrappers.proto", "google.protobuf")},
1774 },
1775}
1776var xxx_Test_ProtoFile_EnumTypes = [2]protoreflect.EnumType{
1777 prototype.GoEnum(
1778 xxx_Test_ProtoFile_EnumDescs[0].Reference(),
1779 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
1780 return Enum(n)
1781 },
1782 ),
1783 prototype.GoEnum(
1784 xxx_Test_ProtoFile_EnumDescs[1].Reference(),
1785 func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
1786 return Enums_NestedEnum(n)
1787 },
1788 ),
1789}
1790var xxx_Test_ProtoFile_EnumDescs = [2]prototype.Enum{
1791 {
1792 Name: "Enum",
1793 Values: []prototype.EnumValue{
1794 {Name: "UNKNOWN", Number: 0},
1795 {Name: "FIRST", Number: 1},
1796 {Name: "SECOND", Number: 2},
1797 {Name: "TENTH", Number: 10},
1798 },
1799 },
1800 {
1801 Name: "NestedEnum",
1802 Values: []prototype.EnumValue{
1803 {Name: "UNO", Number: 1},
1804 {Name: "DOS", Number: 2},
1805 {Name: "DIEZ", Number: 10},
1806 },
1807 },
1808}
1809var xxx_Test_ProtoFile_MessageTypes = [22]protoimpl.MessageType{
1810 {Type: prototype.GoMessage(
1811 xxx_Test_ProtoFile_MessageDescs[0].Reference(),
1812 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1813 return new(Scalars)
1814 },
1815 )},
1816 {Type: prototype.GoMessage(
1817 xxx_Test_ProtoFile_MessageDescs[1].Reference(),
1818 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1819 return new(Repeats)
1820 },
1821 )},
1822 {Type: prototype.GoMessage(
1823 xxx_Test_ProtoFile_MessageDescs[2].Reference(),
1824 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1825 return new(Enums)
1826 },
1827 )},
1828 {Type: prototype.GoMessage(
1829 xxx_Test_ProtoFile_MessageDescs[3].Reference(),
1830 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1831 return new(Nests)
1832 },
1833 )},
1834 {Type: prototype.GoMessage(
1835 xxx_Test_ProtoFile_MessageDescs[4].Reference(),
1836 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1837 return new(Nested)
1838 },
1839 )},
1840 {Type: prototype.GoMessage(
1841 xxx_Test_ProtoFile_MessageDescs[5].Reference(),
1842 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1843 return new(Requireds)
1844 },
1845 )},
1846 {Type: prototype.GoMessage(
1847 xxx_Test_ProtoFile_MessageDescs[6].Reference(),
1848 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1849 return new(PartialRequired)
1850 },
1851 )},
1852 {Type: prototype.GoMessage(
1853 xxx_Test_ProtoFile_MessageDescs[7].Reference(),
1854 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1855 return new(Oneofs)
1856 },
1857 )},
1858 {Type: prototype.GoMessage(
1859 xxx_Test_ProtoFile_MessageDescs[8].Reference(),
1860 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1861 return new(Maps)
1862 },
1863 )},
1864 {Type: prototype.GoMessage(
1865 xxx_Test_ProtoFile_MessageDescs[9].Reference(),
1866 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1867 return new(NestedWithRequired)
1868 },
1869 )},
1870 {Type: prototype.GoMessage(
1871 xxx_Test_ProtoFile_MessageDescs[10].Reference(),
1872 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1873 return new(IndirectRequired)
1874 },
1875 )},
1876 {Type: prototype.GoMessage(
1877 xxx_Test_ProtoFile_MessageDescs[11].Reference(),
1878 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1879 return new(KnownTypes)
1880 },
1881 )},
1882 {Type: prototype.GoMessage(
1883 xxx_Test_ProtoFile_MessageDescs[12].Reference(),
1884 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1885 return new(Nests_OptGroup)
1886 },
1887 )},
1888 {Type: prototype.GoMessage(
1889 xxx_Test_ProtoFile_MessageDescs[13].Reference(),
1890 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1891 return new(Nests_RptGroup)
1892 },
1893 )},
1894 {Type: prototype.GoMessage(
1895 xxx_Test_ProtoFile_MessageDescs[14].Reference(),
1896 func(protoreflect.MessageType) protoreflect.ProtoMessage {
1897 return new(Nests_OptGroup_OptNestedGroup)
1898 },
1899 )},
1900 { /* no message type for Maps_Int32ToStrEntry */ },
1901 { /* no message type for Maps_Sfixed64ToBoolEntry */ },
1902 { /* no message type for Maps_BoolToUint32Entry */ },
1903 { /* no message type for Maps_Uint64ToEnumEntry */ },
1904 { /* no message type for Maps_StrToNestedEntry */ },
1905 { /* no message type for Maps_StrToOneofsEntry */ },
1906 { /* no message type for IndirectRequired_StrToNestedEntry */ },
1907}
1908var xxx_Test_ProtoFile_MessageDescs = [22]prototype.Message{
1909 {
1910 Name: "Scalars",
1911 Fields: []prototype.Field{
1912 {
1913 Name: "opt_bool",
1914 Number: 1,
1915 Cardinality: protoreflect.Optional,
1916 Kind: protoreflect.BoolKind,
1917 JSONName: "optBool",
1918 IsPacked: prototype.False,
1919 },
1920 {
1921 Name: "opt_int32",
1922 Number: 2,
1923 Cardinality: protoreflect.Optional,
1924 Kind: protoreflect.Int32Kind,
1925 JSONName: "optInt32",
1926 IsPacked: prototype.False,
1927 },
1928 {
1929 Name: "opt_int64",
1930 Number: 3,
1931 Cardinality: protoreflect.Optional,
1932 Kind: protoreflect.Int64Kind,
1933 JSONName: "optInt64",
1934 IsPacked: prototype.False,
1935 },
1936 {
1937 Name: "opt_uint32",
1938 Number: 4,
1939 Cardinality: protoreflect.Optional,
1940 Kind: protoreflect.Uint32Kind,
1941 JSONName: "optUint32",
1942 IsPacked: prototype.False,
1943 },
1944 {
1945 Name: "opt_uint64",
1946 Number: 5,
1947 Cardinality: protoreflect.Optional,
1948 Kind: protoreflect.Uint64Kind,
1949 JSONName: "optUint64",
1950 IsPacked: prototype.False,
1951 },
1952 {
1953 Name: "opt_sint32",
1954 Number: 6,
1955 Cardinality: protoreflect.Optional,
1956 Kind: protoreflect.Sint32Kind,
1957 JSONName: "optSint32",
1958 IsPacked: prototype.False,
1959 },
1960 {
1961 Name: "opt_sint64",
1962 Number: 7,
1963 Cardinality: protoreflect.Optional,
1964 Kind: protoreflect.Sint64Kind,
1965 JSONName: "optSint64",
1966 IsPacked: prototype.False,
1967 },
1968 {
1969 Name: "opt_fixed32",
1970 Number: 8,
1971 Cardinality: protoreflect.Optional,
1972 Kind: protoreflect.Fixed32Kind,
1973 JSONName: "optFixed32",
1974 IsPacked: prototype.False,
1975 },
1976 {
1977 Name: "opt_fixed64",
1978 Number: 9,
1979 Cardinality: protoreflect.Optional,
1980 Kind: protoreflect.Fixed64Kind,
1981 JSONName: "optFixed64",
1982 IsPacked: prototype.False,
1983 },
1984 {
1985 Name: "opt_sfixed32",
1986 Number: 10,
1987 Cardinality: protoreflect.Optional,
1988 Kind: protoreflect.Sfixed32Kind,
1989 JSONName: "optSfixed32",
1990 IsPacked: prototype.False,
1991 },
1992 {
1993 Name: "opt_sfixed64",
1994 Number: 11,
1995 Cardinality: protoreflect.Optional,
1996 Kind: protoreflect.Sfixed64Kind,
1997 JSONName: "optSfixed64",
1998 IsPacked: prototype.False,
1999 },
2000 {
2001 Name: "opt_float",
2002 Number: 20,
2003 Cardinality: protoreflect.Optional,
2004 Kind: protoreflect.FloatKind,
2005 JSONName: "optFloat",
2006 IsPacked: prototype.False,
2007 },
2008 {
2009 Name: "opt_double",
2010 Number: 21,
2011 Cardinality: protoreflect.Optional,
2012 Kind: protoreflect.DoubleKind,
2013 JSONName: "optDouble",
2014 IsPacked: prototype.False,
2015 },
2016 {
2017 Name: "opt_bytes",
2018 Number: 14,
2019 Cardinality: protoreflect.Optional,
2020 Kind: protoreflect.BytesKind,
2021 JSONName: "optBytes",
2022 IsPacked: prototype.False,
2023 },
2024 {
2025 Name: "opt_string",
2026 Number: 13,
2027 Cardinality: protoreflect.Optional,
2028 Kind: protoreflect.StringKind,
2029 JSONName: "optString",
2030 IsPacked: prototype.False,
2031 },
2032 },
2033 },
2034 {
2035 Name: "Repeats",
2036 Fields: []prototype.Field{
2037 {
2038 Name: "rpt_bool",
2039 Number: 1,
2040 Cardinality: protoreflect.Repeated,
2041 Kind: protoreflect.BoolKind,
2042 JSONName: "rptBool",
2043 IsPacked: prototype.False,
2044 },
2045 {
2046 Name: "rpt_int32",
2047 Number: 2,
2048 Cardinality: protoreflect.Repeated,
2049 Kind: protoreflect.Int32Kind,
2050 JSONName: "rptInt32",
2051 IsPacked: prototype.False,
2052 },
2053 {
2054 Name: "rpt_int64",
2055 Number: 3,
2056 Cardinality: protoreflect.Repeated,
2057 Kind: protoreflect.Int64Kind,
2058 JSONName: "rptInt64",
2059 IsPacked: prototype.False,
2060 },
2061 {
2062 Name: "rpt_uint32",
2063 Number: 4,
2064 Cardinality: protoreflect.Repeated,
2065 Kind: protoreflect.Uint32Kind,
2066 JSONName: "rptUint32",
2067 IsPacked: prototype.False,
2068 },
2069 {
2070 Name: "rpt_uint64",
2071 Number: 5,
2072 Cardinality: protoreflect.Repeated,
2073 Kind: protoreflect.Uint64Kind,
2074 JSONName: "rptUint64",
2075 IsPacked: prototype.False,
2076 },
2077 {
2078 Name: "rpt_float",
2079 Number: 6,
2080 Cardinality: protoreflect.Repeated,
2081 Kind: protoreflect.FloatKind,
2082 JSONName: "rptFloat",
2083 IsPacked: prototype.False,
2084 },
2085 {
2086 Name: "rpt_double",
2087 Number: 7,
2088 Cardinality: protoreflect.Repeated,
2089 Kind: protoreflect.DoubleKind,
2090 JSONName: "rptDouble",
2091 IsPacked: prototype.False,
2092 },
2093 {
2094 Name: "rpt_string",
2095 Number: 15,
2096 Cardinality: protoreflect.Repeated,
2097 Kind: protoreflect.StringKind,
2098 JSONName: "rptString",
2099 IsPacked: prototype.False,
2100 },
2101 {
2102 Name: "rpt_bytes",
2103 Number: 14,
2104 Cardinality: protoreflect.Repeated,
2105 Kind: protoreflect.BytesKind,
2106 JSONName: "rptBytes",
2107 IsPacked: prototype.False,
2108 },
2109 },
2110 },
2111 {
2112 Name: "Enums",
2113 Fields: []prototype.Field{
2114 {
2115 Name: "opt_enum",
2116 Number: 1,
2117 Cardinality: protoreflect.Optional,
2118 Kind: protoreflect.EnumKind,
2119 JSONName: "optEnum",
2120 IsPacked: prototype.False,
2121 },
2122 {
2123 Name: "rpt_enum",
2124 Number: 2,
2125 Cardinality: protoreflect.Repeated,
2126 Kind: protoreflect.EnumKind,
2127 JSONName: "rptEnum",
2128 IsPacked: prototype.False,
2129 },
2130 {
2131 Name: "opt_nested_enum",
2132 Number: 3,
2133 Cardinality: protoreflect.Optional,
2134 Kind: protoreflect.EnumKind,
2135 JSONName: "optNestedEnum",
2136 IsPacked: prototype.False,
2137 },
2138 {
2139 Name: "rpt_nested_enum",
2140 Number: 4,
2141 Cardinality: protoreflect.Repeated,
2142 Kind: protoreflect.EnumKind,
2143 JSONName: "rptNestedEnum",
2144 IsPacked: prototype.False,
2145 },
2146 },
2147 },
2148 {
2149 Name: "Nests",
2150 Fields: []prototype.Field{
2151 {
2152 Name: "opt_nested",
2153 Number: 1,
2154 Cardinality: protoreflect.Optional,
2155 Kind: protoreflect.MessageKind,
2156 JSONName: "optNested",
2157 IsPacked: prototype.False,
2158 },
2159 {
2160 Name: "optgroup",
2161 Number: 2,
2162 Cardinality: protoreflect.Optional,
2163 Kind: protoreflect.GroupKind,
2164 JSONName: "optgroup",
2165 IsPacked: prototype.False,
2166 },
2167 {
2168 Name: "rpt_nested",
2169 Number: 3,
2170 Cardinality: protoreflect.Repeated,
2171 Kind: protoreflect.MessageKind,
2172 JSONName: "rptNested",
2173 IsPacked: prototype.False,
2174 },
2175 {
2176 Name: "rptgroup",
2177 Number: 4,
2178 Cardinality: protoreflect.Repeated,
2179 Kind: protoreflect.GroupKind,
2180 JSONName: "rptgroup",
2181 IsPacked: prototype.False,
2182 },
2183 },
2184 },
2185 {
2186 Name: "Nested",
2187 Fields: []prototype.Field{
2188 {
2189 Name: "opt_string",
2190 Number: 1,
2191 Cardinality: protoreflect.Optional,
2192 Kind: protoreflect.StringKind,
2193 JSONName: "optString",
2194 IsPacked: prototype.False,
2195 },
2196 {
2197 Name: "opt_nested",
2198 Number: 2,
2199 Cardinality: protoreflect.Optional,
2200 Kind: protoreflect.MessageKind,
2201 JSONName: "optNested",
2202 IsPacked: prototype.False,
2203 },
2204 },
2205 },
2206 {
2207 Name: "Requireds",
2208 Fields: []prototype.Field{
2209 {
2210 Name: "req_bool",
2211 Number: 1,
2212 Cardinality: protoreflect.Required,
2213 Kind: protoreflect.BoolKind,
2214 JSONName: "reqBool",
2215 IsPacked: prototype.False,
2216 },
2217 {
2218 Name: "req_fixed32",
2219 Number: 2,
2220 Cardinality: protoreflect.Required,
2221 Kind: protoreflect.Fixed32Kind,
2222 JSONName: "reqFixed32",
2223 IsPacked: prototype.False,
2224 },
2225 {
2226 Name: "req_fixed64",
2227 Number: 3,
2228 Cardinality: protoreflect.Required,
2229 Kind: protoreflect.Fixed64Kind,
2230 JSONName: "reqFixed64",
2231 IsPacked: prototype.False,
2232 },
2233 {
2234 Name: "req_sfixed32",
2235 Number: 4,
2236 Cardinality: protoreflect.Required,
2237 Kind: protoreflect.Sfixed32Kind,
2238 JSONName: "reqSfixed32",
2239 IsPacked: prototype.False,
2240 },
2241 {
2242 Name: "req_sfixed64",
2243 Number: 5,
2244 Cardinality: protoreflect.Required,
2245 Kind: protoreflect.Sfixed64Kind,
2246 JSONName: "reqSfixed64",
2247 IsPacked: prototype.False,
2248 },
2249 {
2250 Name: "req_float",
2251 Number: 6,
2252 Cardinality: protoreflect.Required,
2253 Kind: protoreflect.FloatKind,
2254 JSONName: "reqFloat",
2255 IsPacked: prototype.False,
2256 },
2257 {
2258 Name: "req_double",
2259 Number: 7,
2260 Cardinality: protoreflect.Required,
2261 Kind: protoreflect.DoubleKind,
2262 JSONName: "reqDouble",
2263 IsPacked: prototype.False,
2264 },
2265 {
2266 Name: "req_string",
2267 Number: 8,
2268 Cardinality: protoreflect.Required,
2269 Kind: protoreflect.StringKind,
2270 JSONName: "reqString",
2271 IsPacked: prototype.False,
2272 },
2273 {
2274 Name: "req_bytes",
2275 Number: 9,
2276 Cardinality: protoreflect.Required,
2277 Kind: protoreflect.BytesKind,
2278 JSONName: "reqBytes",
2279 IsPacked: prototype.False,
2280 },
2281 {
2282 Name: "req_enum",
2283 Number: 10,
2284 Cardinality: protoreflect.Required,
2285 Kind: protoreflect.EnumKind,
2286 JSONName: "reqEnum",
2287 IsPacked: prototype.False,
2288 },
2289 {
2290 Name: "req_nested",
2291 Number: 11,
2292 Cardinality: protoreflect.Required,
2293 Kind: protoreflect.MessageKind,
2294 JSONName: "reqNested",
2295 IsPacked: prototype.False,
2296 },
2297 },
2298 },
2299 {
2300 Name: "PartialRequired",
2301 Fields: []prototype.Field{
2302 {
2303 Name: "req_string",
2304 Number: 1,
2305 Cardinality: protoreflect.Required,
2306 Kind: protoreflect.StringKind,
2307 JSONName: "reqString",
2308 IsPacked: prototype.False,
2309 },
2310 {
2311 Name: "opt_string",
2312 Number: 2,
2313 Cardinality: protoreflect.Optional,
2314 Kind: protoreflect.StringKind,
2315 JSONName: "optString",
2316 IsPacked: prototype.False,
2317 },
2318 },
2319 },
2320 {
2321 Name: "Oneofs",
2322 Fields: []prototype.Field{
2323 {
2324 Name: "str",
2325 Number: 1,
2326 Cardinality: protoreflect.Optional,
2327 Kind: protoreflect.StringKind,
2328 JSONName: "str",
2329 OneofName: "union",
2330 IsPacked: prototype.False,
2331 },
2332 {
2333 Name: "msg",
2334 Number: 2,
2335 Cardinality: protoreflect.Optional,
2336 Kind: protoreflect.MessageKind,
2337 JSONName: "msg",
2338 OneofName: "union",
2339 IsPacked: prototype.False,
2340 },
2341 },
2342 Oneofs: []prototype.Oneof{
2343 {Name: "union"},
2344 },
2345 },
2346 {
2347 Name: "Maps",
2348 Fields: []prototype.Field{
2349 {
2350 Name: "int32_to_str",
2351 Number: 1,
2352 Cardinality: protoreflect.Repeated,
2353 Kind: protoreflect.MessageKind,
2354 JSONName: "int32ToStr",
2355 IsPacked: prototype.False,
2356 },
2357 {
2358 Name: "sfixed64_to_bool",
2359 Number: 2,
2360 Cardinality: protoreflect.Repeated,
2361 Kind: protoreflect.MessageKind,
2362 JSONName: "sfixed64ToBool",
2363 IsPacked: prototype.False,
2364 },
2365 {
2366 Name: "bool_to_uint32",
2367 Number: 3,
2368 Cardinality: protoreflect.Repeated,
2369 Kind: protoreflect.MessageKind,
2370 JSONName: "boolToUint32",
2371 IsPacked: prototype.False,
2372 },
2373 {
2374 Name: "uint64_to_enum",
2375 Number: 4,
2376 Cardinality: protoreflect.Repeated,
2377 Kind: protoreflect.MessageKind,
2378 JSONName: "uint64ToEnum",
2379 IsPacked: prototype.False,
2380 },
2381 {
2382 Name: "str_to_nested",
2383 Number: 5,
2384 Cardinality: protoreflect.Repeated,
2385 Kind: protoreflect.MessageKind,
2386 JSONName: "strToNested",
2387 IsPacked: prototype.False,
2388 },
2389 {
2390 Name: "str_to_oneofs",
2391 Number: 6,
2392 Cardinality: protoreflect.Repeated,
2393 Kind: protoreflect.MessageKind,
2394 JSONName: "strToOneofs",
2395 IsPacked: prototype.False,
2396 },
2397 },
2398 },
2399 {
2400 Name: "NestedWithRequired",
2401 Fields: []prototype.Field{
2402 {
2403 Name: "req_string",
2404 Number: 1,
2405 Cardinality: protoreflect.Required,
2406 Kind: protoreflect.StringKind,
2407 JSONName: "reqString",
2408 IsPacked: prototype.False,
2409 },
2410 },
2411 },
2412 {
2413 Name: "IndirectRequired",
2414 Fields: []prototype.Field{
2415 {
2416 Name: "opt_nested",
2417 Number: 1,
2418 Cardinality: protoreflect.Optional,
2419 Kind: protoreflect.MessageKind,
2420 JSONName: "optNested",
2421 IsPacked: prototype.False,
2422 },
2423 {
2424 Name: "rpt_nested",
2425 Number: 2,
2426 Cardinality: protoreflect.Repeated,
2427 Kind: protoreflect.MessageKind,
2428 JSONName: "rptNested",
2429 IsPacked: prototype.False,
2430 },
2431 {
2432 Name: "str_to_nested",
2433 Number: 3,
2434 Cardinality: protoreflect.Repeated,
2435 Kind: protoreflect.MessageKind,
2436 JSONName: "strToNested",
2437 IsPacked: prototype.False,
2438 },
2439 },
2440 },
2441 {
2442 Name: "KnownTypes",
2443 Fields: []prototype.Field{
2444 {
2445 Name: "opt_bool",
2446 Number: 1,
2447 Cardinality: protoreflect.Optional,
2448 Kind: protoreflect.MessageKind,
2449 JSONName: "optBool",
2450 IsPacked: prototype.False,
2451 },
2452 {
2453 Name: "opt_int32",
2454 Number: 2,
2455 Cardinality: protoreflect.Optional,
2456 Kind: protoreflect.MessageKind,
2457 JSONName: "optInt32",
2458 IsPacked: prototype.False,
2459 },
2460 {
2461 Name: "opt_int64",
2462 Number: 3,
2463 Cardinality: protoreflect.Optional,
2464 Kind: protoreflect.MessageKind,
2465 JSONName: "optInt64",
2466 IsPacked: prototype.False,
2467 },
2468 {
2469 Name: "opt_uint32",
2470 Number: 4,
2471 Cardinality: protoreflect.Optional,
2472 Kind: protoreflect.MessageKind,
2473 JSONName: "optUint32",
2474 IsPacked: prototype.False,
2475 },
2476 {
2477 Name: "opt_uint64",
2478 Number: 5,
2479 Cardinality: protoreflect.Optional,
2480 Kind: protoreflect.MessageKind,
2481 JSONName: "optUint64",
2482 IsPacked: prototype.False,
2483 },
2484 {
2485 Name: "opt_float",
2486 Number: 6,
2487 Cardinality: protoreflect.Optional,
2488 Kind: protoreflect.MessageKind,
2489 JSONName: "optFloat",
2490 IsPacked: prototype.False,
2491 },
2492 {
2493 Name: "opt_double",
2494 Number: 7,
2495 Cardinality: protoreflect.Optional,
2496 Kind: protoreflect.MessageKind,
2497 JSONName: "optDouble",
2498 IsPacked: prototype.False,
2499 },
2500 {
2501 Name: "opt_string",
2502 Number: 8,
2503 Cardinality: protoreflect.Optional,
2504 Kind: protoreflect.MessageKind,
2505 JSONName: "optString",
2506 IsPacked: prototype.False,
2507 },
2508 {
2509 Name: "opt_bytes",
2510 Number: 9,
2511 Cardinality: protoreflect.Optional,
2512 Kind: protoreflect.MessageKind,
2513 JSONName: "optBytes",
2514 IsPacked: prototype.False,
2515 },
2516 {
2517 Name: "opt_duration",
2518 Number: 20,
2519 Cardinality: protoreflect.Optional,
2520 Kind: protoreflect.MessageKind,
2521 JSONName: "optDuration",
2522 IsPacked: prototype.False,
2523 },
2524 {
2525 Name: "opt_timestamp",
2526 Number: 21,
2527 Cardinality: protoreflect.Optional,
2528 Kind: protoreflect.MessageKind,
2529 JSONName: "optTimestamp",
2530 IsPacked: prototype.False,
2531 },
2532 {
2533 Name: "opt_struct",
2534 Number: 25,
2535 Cardinality: protoreflect.Optional,
2536 Kind: protoreflect.MessageKind,
2537 JSONName: "optStruct",
2538 IsPacked: prototype.False,
2539 },
2540 {
2541 Name: "opt_list",
2542 Number: 26,
2543 Cardinality: protoreflect.Optional,
2544 Kind: protoreflect.MessageKind,
2545 JSONName: "optList",
2546 IsPacked: prototype.False,
2547 },
2548 {
2549 Name: "opt_value",
2550 Number: 27,
2551 Cardinality: protoreflect.Optional,
2552 Kind: protoreflect.MessageKind,
2553 JSONName: "optValue",
2554 IsPacked: prototype.False,
2555 },
2556 {
2557 Name: "opt_empty",
2558 Number: 30,
2559 Cardinality: protoreflect.Optional,
2560 Kind: protoreflect.MessageKind,
2561 JSONName: "optEmpty",
2562 IsPacked: prototype.False,
2563 },
2564 {
2565 Name: "opt_any",
2566 Number: 32,
2567 Cardinality: protoreflect.Optional,
2568 Kind: protoreflect.MessageKind,
2569 JSONName: "optAny",
2570 IsPacked: prototype.False,
2571 },
2572 },
2573 },
2574 {
2575 Name: "OptGroup",
2576 Fields: []prototype.Field{
2577 {
2578 Name: "opt_bool",
2579 Number: 1,
2580 Cardinality: protoreflect.Optional,
2581 Kind: protoreflect.BoolKind,
2582 JSONName: "optBool",
2583 IsPacked: prototype.False,
2584 },
2585 {
2586 Name: "opt_string",
2587 Number: 2,
2588 Cardinality: protoreflect.Optional,
2589 Kind: protoreflect.StringKind,
2590 JSONName: "optString",
2591 IsPacked: prototype.False,
2592 },
2593 {
2594 Name: "opt_nested",
2595 Number: 3,
2596 Cardinality: protoreflect.Optional,
2597 Kind: protoreflect.MessageKind,
2598 JSONName: "optNested",
2599 IsPacked: prototype.False,
2600 },
2601 {
2602 Name: "optnestedgroup",
2603 Number: 4,
2604 Cardinality: protoreflect.Optional,
2605 Kind: protoreflect.GroupKind,
2606 JSONName: "optnestedgroup",
2607 IsPacked: prototype.False,
2608 },
2609 },
2610 },
2611 {
2612 Name: "RptGroup",
2613 Fields: []prototype.Field{
2614 {
2615 Name: "rpt_bool",
2616 Number: 1,
2617 Cardinality: protoreflect.Repeated,
2618 Kind: protoreflect.BoolKind,
2619 JSONName: "rptBool",
2620 IsPacked: prototype.False,
2621 },
2622 },
2623 },
2624 {
2625 Name: "OptNestedGroup",
2626 Fields: []prototype.Field{
2627 {
2628 Name: "opt_enum",
2629 Number: 1,
2630 Cardinality: protoreflect.Optional,
2631 Kind: protoreflect.EnumKind,
2632 JSONName: "optEnum",
2633 IsPacked: prototype.False,
2634 },
2635 },
2636 },
2637 {
2638 Name: "Int32ToStrEntry",
2639 Fields: []prototype.Field{
2640 {
2641 Name: "key",
2642 Number: 1,
2643 Cardinality: protoreflect.Optional,
2644 Kind: protoreflect.Int32Kind,
2645 JSONName: "key",
2646 IsPacked: prototype.False,
2647 },
2648 {
2649 Name: "value",
2650 Number: 2,
2651 Cardinality: protoreflect.Optional,
2652 Kind: protoreflect.StringKind,
2653 JSONName: "value",
2654 IsPacked: prototype.False,
2655 },
2656 },
2657 IsMapEntry: true,
2658 },
2659 {
2660 Name: "Sfixed64ToBoolEntry",
2661 Fields: []prototype.Field{
2662 {
2663 Name: "key",
2664 Number: 1,
2665 Cardinality: protoreflect.Optional,
2666 Kind: protoreflect.Sfixed64Kind,
2667 JSONName: "key",
2668 IsPacked: prototype.False,
2669 },
2670 {
2671 Name: "value",
2672 Number: 2,
2673 Cardinality: protoreflect.Optional,
2674 Kind: protoreflect.BoolKind,
2675 JSONName: "value",
2676 IsPacked: prototype.False,
2677 },
2678 },
2679 IsMapEntry: true,
2680 },
2681 {
2682 Name: "BoolToUint32Entry",
2683 Fields: []prototype.Field{
2684 {
2685 Name: "key",
2686 Number: 1,
2687 Cardinality: protoreflect.Optional,
2688 Kind: protoreflect.BoolKind,
2689 JSONName: "key",
2690 IsPacked: prototype.False,
2691 },
2692 {
2693 Name: "value",
2694 Number: 2,
2695 Cardinality: protoreflect.Optional,
2696 Kind: protoreflect.Uint32Kind,
2697 JSONName: "value",
2698 IsPacked: prototype.False,
2699 },
2700 },
2701 IsMapEntry: true,
2702 },
2703 {
2704 Name: "Uint64ToEnumEntry",
2705 Fields: []prototype.Field{
2706 {
2707 Name: "key",
2708 Number: 1,
2709 Cardinality: protoreflect.Optional,
2710 Kind: protoreflect.Uint64Kind,
2711 JSONName: "key",
2712 IsPacked: prototype.False,
2713 },
2714 {
2715 Name: "value",
2716 Number: 2,
2717 Cardinality: protoreflect.Optional,
2718 Kind: protoreflect.EnumKind,
2719 JSONName: "value",
2720 IsPacked: prototype.False,
2721 },
2722 },
2723 IsMapEntry: true,
2724 },
2725 {
2726 Name: "StrToNestedEntry",
2727 Fields: []prototype.Field{
2728 {
2729 Name: "key",
2730 Number: 1,
2731 Cardinality: protoreflect.Optional,
2732 Kind: protoreflect.StringKind,
2733 JSONName: "key",
2734 IsPacked: prototype.False,
2735 },
2736 {
2737 Name: "value",
2738 Number: 2,
2739 Cardinality: protoreflect.Optional,
2740 Kind: protoreflect.MessageKind,
2741 JSONName: "value",
2742 IsPacked: prototype.False,
2743 },
2744 },
2745 IsMapEntry: true,
2746 },
2747 {
2748 Name: "StrToOneofsEntry",
2749 Fields: []prototype.Field{
2750 {
2751 Name: "key",
2752 Number: 1,
2753 Cardinality: protoreflect.Optional,
2754 Kind: protoreflect.StringKind,
2755 JSONName: "key",
2756 IsPacked: prototype.False,
2757 },
2758 {
2759 Name: "value",
2760 Number: 2,
2761 Cardinality: protoreflect.Optional,
2762 Kind: protoreflect.MessageKind,
2763 JSONName: "value",
2764 IsPacked: prototype.False,
2765 },
2766 },
2767 IsMapEntry: true,
2768 },
2769 {
2770 Name: "StrToNestedEntry",
2771 Fields: []prototype.Field{
2772 {
2773 Name: "key",
2774 Number: 1,
2775 Cardinality: protoreflect.Optional,
2776 Kind: protoreflect.StringKind,
2777 JSONName: "key",
2778 IsPacked: prototype.False,
2779 },
2780 {
2781 Name: "value",
2782 Number: 2,
2783 Cardinality: protoreflect.Optional,
2784 Kind: protoreflect.MessageKind,
2785 JSONName: "value",
2786 IsPacked: prototype.False,
2787 },
2788 },
2789 IsMapEntry: true,
2790 },
2791}