blob: b67b65e5ad1869352565d8b4bb3315a8cb531591 [file] [log] [blame]
Herbie Ong8170d692019-02-13 14:13:21 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: encoding/testprotos/pb3/test.proto
3
4package pb3
5
6import (
Herbie Ong8170d692019-02-13 14:13:21 -08007 proto "github.com/golang/protobuf/proto"
Joe Tsaicf81e672019-02-28 14:08:31 -08008 protoapi "github.com/golang/protobuf/protoapi"
Herbie Ong8170d692019-02-13 14:13:21 -08009 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
10 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
11 reflect "reflect"
12)
13
14// This is a compile-time assertion to ensure that this generated file
15// is compatible with the proto package it is being compiled against.
16// A compilation error at this line likely means your copy of the
17// proto package needs to be updated.
18const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
19
20type Enum int32
21
22const (
23 Enum_ZERO Enum = 0
24 Enum_ONE Enum = 1
25 Enum_TWO Enum = 2
26 Enum_TEN Enum = 10
27)
28
29func (e Enum) Type() protoreflect.EnumType {
Damien Neil71c66032019-02-20 16:13:57 -080030 return xxx_ProtoFile_encoding_testprotos_pb3_test_enumTypes[0]
Herbie Ong8170d692019-02-13 14:13:21 -080031}
32func (e Enum) Number() protoreflect.EnumNumber {
33 return protoreflect.EnumNumber(e)
34}
35
36var Enum_name = map[int32]string{
37 0: "ZERO",
38 1: "ONE",
39 2: "TWO",
40 10: "TEN",
41}
42
43var Enum_value = map[string]int32{
44 "ZERO": 0,
45 "ONE": 1,
46 "TWO": 2,
47 "TEN": 10,
48}
49
50func (x Enum) String() string {
51 return proto.EnumName(Enum_name, int32(x))
52}
53
54func (Enum) EnumDescriptor() ([]byte, []int) {
55 return fileDescriptor_33e0a17922cde063_gzipped, []int{0}
56}
57
58type Enums_NestedEnum int32
59
60const (
61 Enums_CERO Enums_NestedEnum = 0
62 Enums_UNO Enums_NestedEnum = 1
63 Enums_DOS Enums_NestedEnum = 2
64 Enums_DIEZ Enums_NestedEnum = 10
65)
66
67func (e Enums_NestedEnum) Type() protoreflect.EnumType {
Damien Neil71c66032019-02-20 16:13:57 -080068 return xxx_ProtoFile_encoding_testprotos_pb3_test_enumTypes[1]
Herbie Ong8170d692019-02-13 14:13:21 -080069}
70func (e Enums_NestedEnum) Number() protoreflect.EnumNumber {
71 return protoreflect.EnumNumber(e)
72}
73
74var Enums_NestedEnum_name = map[int32]string{
75 0: "CERO",
76 1: "UNO",
77 2: "DOS",
78 10: "DIEZ",
79}
80
81var Enums_NestedEnum_value = map[string]int32{
82 "CERO": 0,
83 "UNO": 1,
84 "DOS": 2,
85 "DIEZ": 10,
86}
87
88func (x Enums_NestedEnum) String() string {
89 return proto.EnumName(Enums_NestedEnum_name, int32(x))
90}
91
92func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
93 return fileDescriptor_33e0a17922cde063_gzipped, []int{1, 0}
94}
95
96// Scalars contains scalar field types.
97type Scalars struct {
98 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
99 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
100 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
101 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
102 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
103 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
104 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
105 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
106 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
107 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
108 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
109 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
110 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
111 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
112 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
113 XXX_NoUnkeyedLiteral struct{} `json:"-"`
114 XXX_unrecognized []byte `json:"-"`
115 XXX_sizecache int32 `json:"-"`
116}
117
118func (m *Scalars) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800119 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[0].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800120}
121func (m *Scalars) Reset() { *m = Scalars{} }
122func (m *Scalars) String() string { return proto.CompactTextString(m) }
123func (*Scalars) ProtoMessage() {}
124func (*Scalars) Descriptor() ([]byte, []int) {
125 return fileDescriptor_33e0a17922cde063_gzipped, []int{0}
126}
127
128func (m *Scalars) XXX_Unmarshal(b []byte) error {
129 return xxx_messageInfo_Scalars.Unmarshal(m, b)
130}
131func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
132 return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
133}
134func (m *Scalars) XXX_Merge(src proto.Message) {
135 xxx_messageInfo_Scalars.Merge(m, src)
136}
137func (m *Scalars) XXX_Size() int {
138 return xxx_messageInfo_Scalars.Size(m)
139}
140func (m *Scalars) XXX_DiscardUnknown() {
141 xxx_messageInfo_Scalars.DiscardUnknown(m)
142}
143
144var xxx_messageInfo_Scalars proto.InternalMessageInfo
145
146func (m *Scalars) GetSBool() bool {
147 if m != nil {
148 return m.SBool
149 }
150 return false
151}
152
153func (m *Scalars) GetSInt32() int32 {
154 if m != nil {
155 return m.SInt32
156 }
157 return 0
158}
159
160func (m *Scalars) GetSInt64() int64 {
161 if m != nil {
162 return m.SInt64
163 }
164 return 0
165}
166
167func (m *Scalars) GetSUint32() uint32 {
168 if m != nil {
169 return m.SUint32
170 }
171 return 0
172}
173
174func (m *Scalars) GetSUint64() uint64 {
175 if m != nil {
176 return m.SUint64
177 }
178 return 0
179}
180
181func (m *Scalars) GetSSint32() int32 {
182 if m != nil {
183 return m.SSint32
184 }
185 return 0
186}
187
188func (m *Scalars) GetSSint64() int64 {
189 if m != nil {
190 return m.SSint64
191 }
192 return 0
193}
194
195func (m *Scalars) GetSFixed32() uint32 {
196 if m != nil {
197 return m.SFixed32
198 }
199 return 0
200}
201
202func (m *Scalars) GetSFixed64() uint64 {
203 if m != nil {
204 return m.SFixed64
205 }
206 return 0
207}
208
209func (m *Scalars) GetSSfixed32() int32 {
210 if m != nil {
211 return m.SSfixed32
212 }
213 return 0
214}
215
216func (m *Scalars) GetSSfixed64() int64 {
217 if m != nil {
218 return m.SSfixed64
219 }
220 return 0
221}
222
223func (m *Scalars) GetSFloat() float32 {
224 if m != nil {
225 return m.SFloat
226 }
227 return 0
228}
229
230func (m *Scalars) GetSDouble() float64 {
231 if m != nil {
232 return m.SDouble
233 }
234 return 0
235}
236
237func (m *Scalars) GetSBytes() []byte {
238 if m != nil {
239 return m.SBytes
240 }
241 return nil
242}
243
244func (m *Scalars) GetSString() string {
245 if m != nil {
246 return m.SString
247 }
248 return ""
249}
250
251// Message contains enum fields.
252type Enums struct {
253 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
254 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
255 XXX_NoUnkeyedLiteral struct{} `json:"-"`
256 XXX_unrecognized []byte `json:"-"`
257 XXX_sizecache int32 `json:"-"`
258}
259
260func (m *Enums) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800261 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[1].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800262}
263func (m *Enums) Reset() { *m = Enums{} }
264func (m *Enums) String() string { return proto.CompactTextString(m) }
265func (*Enums) ProtoMessage() {}
266func (*Enums) Descriptor() ([]byte, []int) {
267 return fileDescriptor_33e0a17922cde063_gzipped, []int{1}
268}
269
270func (m *Enums) XXX_Unmarshal(b []byte) error {
271 return xxx_messageInfo_Enums.Unmarshal(m, b)
272}
273func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
274 return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
275}
276func (m *Enums) XXX_Merge(src proto.Message) {
277 xxx_messageInfo_Enums.Merge(m, src)
278}
279func (m *Enums) XXX_Size() int {
280 return xxx_messageInfo_Enums.Size(m)
281}
282func (m *Enums) XXX_DiscardUnknown() {
283 xxx_messageInfo_Enums.DiscardUnknown(m)
284}
285
286var xxx_messageInfo_Enums proto.InternalMessageInfo
287
288func (m *Enums) GetSEnum() Enum {
289 if m != nil {
290 return m.SEnum
291 }
292 return Enum_ZERO
293}
294
295func (m *Enums) GetSNestedEnum() Enums_NestedEnum {
296 if m != nil {
297 return m.SNestedEnum
298 }
299 return Enums_CERO
300}
301
302// Message contains nested message field.
303type Nests struct {
304 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
305 XXX_NoUnkeyedLiteral struct{} `json:"-"`
306 XXX_unrecognized []byte `json:"-"`
307 XXX_sizecache int32 `json:"-"`
308}
309
310func (m *Nests) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800311 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[2].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800312}
313func (m *Nests) Reset() { *m = Nests{} }
314func (m *Nests) String() string { return proto.CompactTextString(m) }
315func (*Nests) ProtoMessage() {}
316func (*Nests) Descriptor() ([]byte, []int) {
317 return fileDescriptor_33e0a17922cde063_gzipped, []int{2}
318}
319
320func (m *Nests) XXX_Unmarshal(b []byte) error {
321 return xxx_messageInfo_Nests.Unmarshal(m, b)
322}
323func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
324 return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
325}
326func (m *Nests) XXX_Merge(src proto.Message) {
327 xxx_messageInfo_Nests.Merge(m, src)
328}
329func (m *Nests) XXX_Size() int {
330 return xxx_messageInfo_Nests.Size(m)
331}
332func (m *Nests) XXX_DiscardUnknown() {
333 xxx_messageInfo_Nests.DiscardUnknown(m)
334}
335
336var xxx_messageInfo_Nests proto.InternalMessageInfo
337
338func (m *Nests) GetSNested() *Nested {
339 if m != nil {
340 return m.SNested
341 }
342 return nil
343}
344
345// Message type used as submessage.
346type Nested struct {
347 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
348 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
349 XXX_NoUnkeyedLiteral struct{} `json:"-"`
350 XXX_unrecognized []byte `json:"-"`
351 XXX_sizecache int32 `json:"-"`
352}
353
354func (m *Nested) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800355 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[3].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800356}
357func (m *Nested) Reset() { *m = Nested{} }
358func (m *Nested) String() string { return proto.CompactTextString(m) }
359func (*Nested) ProtoMessage() {}
360func (*Nested) Descriptor() ([]byte, []int) {
361 return fileDescriptor_33e0a17922cde063_gzipped, []int{3}
362}
363
364func (m *Nested) XXX_Unmarshal(b []byte) error {
365 return xxx_messageInfo_Nested.Unmarshal(m, b)
366}
367func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
368 return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
369}
370func (m *Nested) XXX_Merge(src proto.Message) {
371 xxx_messageInfo_Nested.Merge(m, src)
372}
373func (m *Nested) XXX_Size() int {
374 return xxx_messageInfo_Nested.Size(m)
375}
376func (m *Nested) XXX_DiscardUnknown() {
377 xxx_messageInfo_Nested.DiscardUnknown(m)
378}
379
380var xxx_messageInfo_Nested proto.InternalMessageInfo
381
382func (m *Nested) GetSString() string {
383 if m != nil {
384 return m.SString
385 }
386 return ""
387}
388
389func (m *Nested) GetSNested() *Nested {
390 if m != nil {
391 return m.SNested
392 }
393 return nil
394}
395
396// Message contains oneof field.
397type Oneofs struct {
398 // Types that are valid to be assigned to Union:
399 // *Oneofs_OneofEnum
400 // *Oneofs_OneofString
401 // *Oneofs_OneofNested
402 Union isOneofs_Union `protobuf_oneof:"union"`
403 XXX_NoUnkeyedLiteral struct{} `json:"-"`
404 XXX_unrecognized []byte `json:"-"`
405 XXX_sizecache int32 `json:"-"`
406}
407
408func (m *Oneofs) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800409 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[4].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800410}
411func (m *Oneofs) Reset() { *m = Oneofs{} }
412func (m *Oneofs) String() string { return proto.CompactTextString(m) }
413func (*Oneofs) ProtoMessage() {}
414func (*Oneofs) Descriptor() ([]byte, []int) {
415 return fileDescriptor_33e0a17922cde063_gzipped, []int{4}
416}
417
418func (m *Oneofs) XXX_Unmarshal(b []byte) error {
419 return xxx_messageInfo_Oneofs.Unmarshal(m, b)
420}
421func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
422 return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
423}
424func (m *Oneofs) XXX_Merge(src proto.Message) {
425 xxx_messageInfo_Oneofs.Merge(m, src)
426}
427func (m *Oneofs) XXX_Size() int {
428 return xxx_messageInfo_Oneofs.Size(m)
429}
430func (m *Oneofs) XXX_DiscardUnknown() {
431 xxx_messageInfo_Oneofs.DiscardUnknown(m)
432}
433
434var xxx_messageInfo_Oneofs proto.InternalMessageInfo
435
436type isOneofs_Union interface {
437 isOneofs_Union()
438}
439
440type Oneofs_OneofEnum struct {
441 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
442}
443
444type Oneofs_OneofString struct {
445 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
446}
447
448type Oneofs_OneofNested struct {
449 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
450}
451
452func (*Oneofs_OneofEnum) isOneofs_Union() {}
453
454func (*Oneofs_OneofString) isOneofs_Union() {}
455
456func (*Oneofs_OneofNested) isOneofs_Union() {}
457
458func (m *Oneofs) GetUnion() isOneofs_Union {
459 if m != nil {
460 return m.Union
461 }
462 return nil
463}
464
465func (m *Oneofs) GetOneofEnum() Enum {
466 if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok {
467 return x.OneofEnum
468 }
469 return Enum_ZERO
470}
471
472func (m *Oneofs) GetOneofString() string {
473 if x, ok := m.GetUnion().(*Oneofs_OneofString); ok {
474 return x.OneofString
475 }
476 return ""
477}
478
479func (m *Oneofs) GetOneofNested() *Nested {
480 if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok {
481 return x.OneofNested
482 }
483 return nil
484}
485
486// XXX_OneofWrappers is for the internal use of the proto package.
487func (*Oneofs) XXX_OneofWrappers() []interface{} {
488 return []interface{}{
489 (*Oneofs_OneofEnum)(nil),
490 (*Oneofs_OneofString)(nil),
491 (*Oneofs_OneofNested)(nil),
492 }
493}
494
495// Message contains map fields.
496type Maps struct {
497 Int32ToStr map[int32]string `protobuf:"bytes,1,rep,name=int32_to_str,json=int32ToStr,proto3" json:"int32_to_str,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
498 BoolToUint32 map[bool]uint32 `protobuf:"bytes,2,rep,name=bool_to_uint32,json=boolToUint32,proto3" json:"bool_to_uint32,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
499 Uint64ToEnum map[uint64]Enum `protobuf:"bytes,3,rep,name=uint64_to_enum,json=uint64ToEnum,proto3" json:"uint64_to_enum,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3,enum=pb3.Enum"`
500 StrToNested map[string]*Nested `protobuf:"bytes,4,rep,name=str_to_nested,json=strToNested,proto3" json:"str_to_nested,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
501 StrToOneofs map[string]*Oneofs `protobuf:"bytes,5,rep,name=str_to_oneofs,json=strToOneofs,proto3" json:"str_to_oneofs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
502 XXX_NoUnkeyedLiteral struct{} `json:"-"`
503 XXX_unrecognized []byte `json:"-"`
504 XXX_sizecache int32 `json:"-"`
505}
506
507func (m *Maps) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800508 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[5].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800509}
510func (m *Maps) Reset() { *m = Maps{} }
511func (m *Maps) String() string { return proto.CompactTextString(m) }
512func (*Maps) ProtoMessage() {}
513func (*Maps) Descriptor() ([]byte, []int) {
514 return fileDescriptor_33e0a17922cde063_gzipped, []int{5}
515}
516
517func (m *Maps) XXX_Unmarshal(b []byte) error {
518 return xxx_messageInfo_Maps.Unmarshal(m, b)
519}
520func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
521 return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
522}
523func (m *Maps) XXX_Merge(src proto.Message) {
524 xxx_messageInfo_Maps.Merge(m, src)
525}
526func (m *Maps) XXX_Size() int {
527 return xxx_messageInfo_Maps.Size(m)
528}
529func (m *Maps) XXX_DiscardUnknown() {
530 xxx_messageInfo_Maps.DiscardUnknown(m)
531}
532
533var xxx_messageInfo_Maps proto.InternalMessageInfo
534
535func (m *Maps) GetInt32ToStr() map[int32]string {
536 if m != nil {
537 return m.Int32ToStr
538 }
539 return nil
540}
541
542func (m *Maps) GetBoolToUint32() map[bool]uint32 {
543 if m != nil {
544 return m.BoolToUint32
545 }
546 return nil
547}
548
549func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
550 if m != nil {
551 return m.Uint64ToEnum
552 }
553 return nil
554}
555
556func (m *Maps) GetStrToNested() map[string]*Nested {
557 if m != nil {
558 return m.StrToNested
559 }
560 return nil
561}
562
563func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
564 if m != nil {
565 return m.StrToOneofs
566 }
567 return nil
568}
569
Herbie Ong7b828bc2019-02-08 19:56:24 -0800570// Message for testing json_name option.
571type JSONNames struct {
572 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
573 XXX_NoUnkeyedLiteral struct{} `json:"-"`
574 XXX_unrecognized []byte `json:"-"`
575 XXX_sizecache int32 `json:"-"`
576}
577
578func (m *JSONNames) ProtoReflect() protoreflect.Message {
Damien Neil71c66032019-02-20 16:13:57 -0800579 return xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[6].MessageOf(m)
Herbie Ong7b828bc2019-02-08 19:56:24 -0800580}
581func (m *JSONNames) Reset() { *m = JSONNames{} }
582func (m *JSONNames) String() string { return proto.CompactTextString(m) }
583func (*JSONNames) ProtoMessage() {}
584func (*JSONNames) Descriptor() ([]byte, []int) {
585 return fileDescriptor_33e0a17922cde063_gzipped, []int{6}
586}
587
588func (m *JSONNames) XXX_Unmarshal(b []byte) error {
589 return xxx_messageInfo_JSONNames.Unmarshal(m, b)
590}
591func (m *JSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
592 return xxx_messageInfo_JSONNames.Marshal(b, m, deterministic)
593}
594func (m *JSONNames) XXX_Merge(src proto.Message) {
595 xxx_messageInfo_JSONNames.Merge(m, src)
596}
597func (m *JSONNames) XXX_Size() int {
598 return xxx_messageInfo_JSONNames.Size(m)
599}
600func (m *JSONNames) XXX_DiscardUnknown() {
601 xxx_messageInfo_JSONNames.DiscardUnknown(m)
602}
603
604var xxx_messageInfo_JSONNames proto.InternalMessageInfo
605
606func (m *JSONNames) GetSString() string {
607 if m != nil {
608 return m.SString
609 }
610 return ""
611}
612
Herbie Ong8170d692019-02-13 14:13:21 -0800613func init() {
614 proto.RegisterFile("encoding/testprotos/pb3/test.proto", fileDescriptor_33e0a17922cde063_gzipped)
615 proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value)
616 proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
617 proto.RegisterType((*Scalars)(nil), "pb3.Scalars")
618 proto.RegisterType((*Enums)(nil), "pb3.Enums")
619 proto.RegisterType((*Nests)(nil), "pb3.Nests")
620 proto.RegisterType((*Nested)(nil), "pb3.Nested")
621 proto.RegisterType((*Oneofs)(nil), "pb3.Oneofs")
622 proto.RegisterType((*Maps)(nil), "pb3.Maps")
623 proto.RegisterMapType((map[bool]uint32)(nil), "pb3.Maps.BoolToUint32Entry")
624 proto.RegisterMapType((map[int32]string)(nil), "pb3.Maps.Int32ToStrEntry")
625 proto.RegisterMapType((map[string]*Nested)(nil), "pb3.Maps.StrToNestedEntry")
626 proto.RegisterMapType((map[string]*Oneofs)(nil), "pb3.Maps.StrToOneofsEntry")
627 proto.RegisterMapType((map[uint64]Enum)(nil), "pb3.Maps.Uint64ToEnumEntry")
Herbie Ong7b828bc2019-02-08 19:56:24 -0800628 proto.RegisterType((*JSONNames)(nil), "pb3.JSONNames")
Herbie Ong8170d692019-02-13 14:13:21 -0800629}
630
631var fileDescriptor_33e0a17922cde063 = []byte{
Herbie Ong7b828bc2019-02-08 19:56:24 -0800632 // 1730 bytes of the wire-encoded FileDescriptorProto
Herbie Ong8170d692019-02-13 14:13:21 -0800633 0x0a, 0x22, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70,
634 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
635 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63,
636 0x61, 0x6c, 0x61, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18,
637 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07,
638 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73,
639 0x49, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34,
640 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19,
641 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d,
642 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75,
643 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69,
644 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32,
645 0x18, 0x06, 0x20, 0x01, 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
646 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28,
647 0x12, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f,
648 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73,
649 0x46, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78,
650 0x65, 0x64, 0x36, 0x34, 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78,
651 0x65, 0x64, 0x36, 0x34, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64,
652 0x33, 0x32, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65,
653 0x64, 0x33, 0x32, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36,
654 0x34, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64,
655 0x36, 0x34, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20,
656 0x01, 0x28, 0x02, 0x52, 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73,
657 0x5f, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73,
658 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65,
659 0x73, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12,
660 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28,
661 0x09, 0x52, 0x07, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45,
662 0x6e, 0x75, 0x6d, 0x73, 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01,
663 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52,
664 0x05, 0x73, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74,
665 0x65, 0x64, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
666 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
667 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75,
668 0x6d, 0x22, 0x32, 0x0a, 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12,
669 0x08, 0x0a, 0x04, 0x43, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f,
670 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44,
671 0x49, 0x45, 0x5a, 0x10, 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26,
672 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
673 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73,
674 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
675 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01,
676 0x28, 0x09, 0x52, 0x07, 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73,
677 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e,
678 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73,
679 0x74, 0x65, 0x64, 0x22, 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a,
680 0x0a, 0x0a, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01,
681 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52,
682 0x09, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e,
683 0x65, 0x6f, 0x66, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
684 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12,
685 0x30, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18,
686 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74,
687 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65,
688 0x64, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d,
689 0x61, 0x70, 0x73, 0x12, 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f,
690 0x73, 0x74, 0x72, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e,
691 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45,
692 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
693 0x12, 0x41, 0x0a, 0x0e, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74,
694 0x33, 0x32, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d,
695 0x61, 0x70, 0x73, 0x2e, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32,
696 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e,
697 0x74, 0x33, 0x32, 0x12, 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f,
698 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62,
699 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45,
700 0x6e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34,
701 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f,
702 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
703 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65,
704 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f,
705 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f,
706 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
707 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e,
708 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f,
709 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54,
710 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
711 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
712 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
713 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55,
714 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65,
715 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05,
716 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c,
717 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
718 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
719 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a,
720 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70,
721 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
722 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65,
723 0x64, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
724 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
725 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65,
726 0x73, 0x74, 0x65, 0x64, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a,
727 0x4b, 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e,
728 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
729 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
730 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66,
Herbie Ong7b828bc2019-02-08 19:56:24 -0800731 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09,
732 0x4a, 0x53, 0x4f, 0x4e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73,
733 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f,
734 0x5f, 0x62, 0x61, 0x72, 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04,
735 0x5a, 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12,
736 0x07, 0x0a, 0x03, 0x54, 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10,
737 0x0a, 0x42, 0x37, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
738 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
739 0x76, 0x32, 0x2f, 0x65, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74,
740 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
741 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800742}
743
Joe Tsaicf81e672019-02-28 14:08:31 -0800744var fileDescriptor_33e0a17922cde063_gzipped = protoapi.CompressGZIP(fileDescriptor_33e0a17922cde063)
Herbie Ong8170d692019-02-13 14:13:21 -0800745
746const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
747
Damien Neil71c66032019-02-20 16:13:57 -0800748var ProtoFile_encoding_testprotos_pb3_test protoreflect.FileDescriptor
Herbie Ong8170d692019-02-13 14:13:21 -0800749
Damien Neil71c66032019-02-20 16:13:57 -0800750var xxx_ProtoFile_encoding_testprotos_pb3_test_enumTypes [2]protoreflect.EnumType
751var xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes [12]protoimpl.MessageType
752var xxx_ProtoFile_encoding_testprotos_pb3_test_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800753 (Enum)(0), // 0: pb3.Enum
754 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
755 (*Scalars)(nil), // 2: pb3.Scalars
756 (*Enums)(nil), // 3: pb3.Enums
757 (*Nests)(nil), // 4: pb3.Nests
758 (*Nested)(nil), // 5: pb3.Nested
759 (*Oneofs)(nil), // 6: pb3.Oneofs
760 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800761 (*JSONNames)(nil), // 8: pb3.JSONNames
762 nil, // 9: pb3.Maps.Int32ToStrEntry
763 nil, // 10: pb3.Maps.BoolToUint32Entry
764 nil, // 11: pb3.Maps.Uint64ToEnumEntry
765 nil, // 12: pb3.Maps.StrToNestedEntry
766 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800767}
Damien Neil71c66032019-02-20 16:13:57 -0800768var xxx_ProtoFile_encoding_testprotos_pb3_test_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800769 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
770 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
771 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
772 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
773 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
774 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800775 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
776 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
777 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
778 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
779 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800780 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
781 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
782 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
783}
784
785func init() {
Herbie Ong7b828bc2019-02-08 19:56:24 -0800786 var messageTypes [12]protoreflect.MessageType
Damien Neil71c66032019-02-20 16:13:57 -0800787 ProtoFile_encoding_testprotos_pb3_test = protoimpl.FileBuilder{
Herbie Ong8170d692019-02-13 14:13:21 -0800788 RawDescriptor: fileDescriptor_33e0a17922cde063,
Damien Neil71c66032019-02-20 16:13:57 -0800789 GoTypes: xxx_ProtoFile_encoding_testprotos_pb3_test_goTypes,
790 DependencyIndexes: xxx_ProtoFile_encoding_testprotos_pb3_test_depIdxs,
791 EnumOutputTypes: xxx_ProtoFile_encoding_testprotos_pb3_test_enumTypes[:],
Herbie Ong8170d692019-02-13 14:13:21 -0800792 MessageOutputTypes: messageTypes[:],
793 }.Init()
Damien Neil71c66032019-02-20 16:13:57 -0800794 messageGoTypes := xxx_ProtoFile_encoding_testprotos_pb3_test_goTypes[2:][:12]
Herbie Ong8170d692019-02-13 14:13:21 -0800795 for i, mt := range messageTypes[:] {
Damien Neil71c66032019-02-20 16:13:57 -0800796 xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
797 xxx_ProtoFile_encoding_testprotos_pb3_test_messageTypes[i].PBType = mt
Herbie Ong8170d692019-02-13 14:13:21 -0800798 }
Damien Neil71c66032019-02-20 16:13:57 -0800799 xxx_ProtoFile_encoding_testprotos_pb3_test_goTypes = nil
800 xxx_ProtoFile_encoding_testprotos_pb3_test_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800801}