blob: 937290875219b77a36084664c99e986a15e8c3de [file] [log] [blame]
Herbie Ong8170d692019-02-13 14:13:21 -08001// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08002// source: pb3/test.proto
Herbie Ong8170d692019-02-13 14:13:21 -08003
4package pb3
5
6import (
Herbie Ong8170d692019-02-13 14:13:21 -08007 proto "github.com/golang/protobuf/proto"
8 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
9 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
10 reflect "reflect"
11)
12
Herbie Ong8170d692019-02-13 14:13:21 -080013type Enum int32
14
15const (
16 Enum_ZERO Enum = 0
17 Enum_ONE Enum = 1
18 Enum_TWO Enum = 2
19 Enum_TEN Enum = 10
20)
21
22func (e Enum) Type() protoreflect.EnumType {
Joe Tsai19058432019-02-27 21:46:29 -080023 return xxx_File_pb3_test_proto_enumTypes[0]
Herbie Ong8170d692019-02-13 14:13:21 -080024}
25func (e Enum) Number() protoreflect.EnumNumber {
26 return protoreflect.EnumNumber(e)
27}
28
Joe Tsai8e506a82019-03-16 00:05:34 -070029// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080030var Enum_name = map[int32]string{
31 0: "ZERO",
32 1: "ONE",
33 2: "TWO",
34 10: "TEN",
35}
36
Joe Tsai8e506a82019-03-16 00:05:34 -070037// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080038var Enum_value = map[string]int32{
39 "ZERO": 0,
40 "ONE": 1,
41 "TWO": 2,
42 "TEN": 10,
43}
44
45func (x Enum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070046 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080047}
48
Joe Tsai8e506a82019-03-16 00:05:34 -070049// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080050func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -080051 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080052}
53
54type Enums_NestedEnum int32
55
56const (
57 Enums_CERO Enums_NestedEnum = 0
58 Enums_UNO Enums_NestedEnum = 1
59 Enums_DOS Enums_NestedEnum = 2
60 Enums_DIEZ Enums_NestedEnum = 10
61)
62
63func (e Enums_NestedEnum) Type() protoreflect.EnumType {
Joe Tsai19058432019-02-27 21:46:29 -080064 return xxx_File_pb3_test_proto_enumTypes[1]
Herbie Ong8170d692019-02-13 14:13:21 -080065}
66func (e Enums_NestedEnum) Number() protoreflect.EnumNumber {
67 return protoreflect.EnumNumber(e)
68}
69
Joe Tsai8e506a82019-03-16 00:05:34 -070070// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080071var Enums_NestedEnum_name = map[int32]string{
72 0: "CERO",
73 1: "UNO",
74 2: "DOS",
75 10: "DIEZ",
76}
77
Joe Tsai8e506a82019-03-16 00:05:34 -070078// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080079var Enums_NestedEnum_value = map[string]int32{
80 "CERO": 0,
81 "UNO": 1,
82 "DOS": 2,
83 "DIEZ": 10,
84}
85
86func (x Enums_NestedEnum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070087 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080088}
89
Joe Tsai8e506a82019-03-16 00:05:34 -070090// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080091func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -080092 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -080093}
94
95// Scalars contains scalar field types.
96type Scalars struct {
97 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
98 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
99 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
100 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
101 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
102 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
103 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
104 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
105 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
106 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
107 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
108 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
109 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
110 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
111 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
112 XXX_NoUnkeyedLiteral struct{} `json:"-"`
113 XXX_unrecognized []byte `json:"-"`
114 XXX_sizecache int32 `json:"-"`
115}
116
117func (m *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800118 return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800119}
120func (m *Scalars) Reset() { *m = Scalars{} }
121func (m *Scalars) String() string { return proto.CompactTextString(m) }
122func (*Scalars) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700123
124// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800125func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800126 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800127}
128
129func (m *Scalars) XXX_Unmarshal(b []byte) error {
130 return xxx_messageInfo_Scalars.Unmarshal(m, b)
131}
132func (m *Scalars) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
133 return xxx_messageInfo_Scalars.Marshal(b, m, deterministic)
134}
135func (m *Scalars) XXX_Merge(src proto.Message) {
136 xxx_messageInfo_Scalars.Merge(m, src)
137}
138func (m *Scalars) XXX_Size() int {
139 return xxx_messageInfo_Scalars.Size(m)
140}
141func (m *Scalars) XXX_DiscardUnknown() {
142 xxx_messageInfo_Scalars.DiscardUnknown(m)
143}
144
145var xxx_messageInfo_Scalars proto.InternalMessageInfo
146
147func (m *Scalars) GetSBool() bool {
148 if m != nil {
149 return m.SBool
150 }
151 return false
152}
153
154func (m *Scalars) GetSInt32() int32 {
155 if m != nil {
156 return m.SInt32
157 }
158 return 0
159}
160
161func (m *Scalars) GetSInt64() int64 {
162 if m != nil {
163 return m.SInt64
164 }
165 return 0
166}
167
168func (m *Scalars) GetSUint32() uint32 {
169 if m != nil {
170 return m.SUint32
171 }
172 return 0
173}
174
175func (m *Scalars) GetSUint64() uint64 {
176 if m != nil {
177 return m.SUint64
178 }
179 return 0
180}
181
182func (m *Scalars) GetSSint32() int32 {
183 if m != nil {
184 return m.SSint32
185 }
186 return 0
187}
188
189func (m *Scalars) GetSSint64() int64 {
190 if m != nil {
191 return m.SSint64
192 }
193 return 0
194}
195
196func (m *Scalars) GetSFixed32() uint32 {
197 if m != nil {
198 return m.SFixed32
199 }
200 return 0
201}
202
203func (m *Scalars) GetSFixed64() uint64 {
204 if m != nil {
205 return m.SFixed64
206 }
207 return 0
208}
209
210func (m *Scalars) GetSSfixed32() int32 {
211 if m != nil {
212 return m.SSfixed32
213 }
214 return 0
215}
216
217func (m *Scalars) GetSSfixed64() int64 {
218 if m != nil {
219 return m.SSfixed64
220 }
221 return 0
222}
223
224func (m *Scalars) GetSFloat() float32 {
225 if m != nil {
226 return m.SFloat
227 }
228 return 0
229}
230
231func (m *Scalars) GetSDouble() float64 {
232 if m != nil {
233 return m.SDouble
234 }
235 return 0
236}
237
238func (m *Scalars) GetSBytes() []byte {
239 if m != nil {
240 return m.SBytes
241 }
242 return nil
243}
244
245func (m *Scalars) GetSString() string {
246 if m != nil {
247 return m.SString
248 }
249 return ""
250}
251
252// Message contains enum fields.
253type Enums struct {
254 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
255 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
256 XXX_NoUnkeyedLiteral struct{} `json:"-"`
257 XXX_unrecognized []byte `json:"-"`
258 XXX_sizecache int32 `json:"-"`
259}
260
261func (m *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800262 return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800263}
264func (m *Enums) Reset() { *m = Enums{} }
265func (m *Enums) String() string { return proto.CompactTextString(m) }
266func (*Enums) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700267
268// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800269func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800270 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800271}
272
273func (m *Enums) XXX_Unmarshal(b []byte) error {
274 return xxx_messageInfo_Enums.Unmarshal(m, b)
275}
276func (m *Enums) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
277 return xxx_messageInfo_Enums.Marshal(b, m, deterministic)
278}
279func (m *Enums) XXX_Merge(src proto.Message) {
280 xxx_messageInfo_Enums.Merge(m, src)
281}
282func (m *Enums) XXX_Size() int {
283 return xxx_messageInfo_Enums.Size(m)
284}
285func (m *Enums) XXX_DiscardUnknown() {
286 xxx_messageInfo_Enums.DiscardUnknown(m)
287}
288
289var xxx_messageInfo_Enums proto.InternalMessageInfo
290
291func (m *Enums) GetSEnum() Enum {
292 if m != nil {
293 return m.SEnum
294 }
295 return Enum_ZERO
296}
297
298func (m *Enums) GetSNestedEnum() Enums_NestedEnum {
299 if m != nil {
300 return m.SNestedEnum
301 }
302 return Enums_CERO
303}
304
305// Message contains nested message field.
306type Nests struct {
307 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
308 XXX_NoUnkeyedLiteral struct{} `json:"-"`
309 XXX_unrecognized []byte `json:"-"`
310 XXX_sizecache int32 `json:"-"`
311}
312
313func (m *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800314 return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800315}
316func (m *Nests) Reset() { *m = Nests{} }
317func (m *Nests) String() string { return proto.CompactTextString(m) }
318func (*Nests) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700319
320// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800321func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800322 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800323}
324
325func (m *Nests) XXX_Unmarshal(b []byte) error {
326 return xxx_messageInfo_Nests.Unmarshal(m, b)
327}
328func (m *Nests) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
329 return xxx_messageInfo_Nests.Marshal(b, m, deterministic)
330}
331func (m *Nests) XXX_Merge(src proto.Message) {
332 xxx_messageInfo_Nests.Merge(m, src)
333}
334func (m *Nests) XXX_Size() int {
335 return xxx_messageInfo_Nests.Size(m)
336}
337func (m *Nests) XXX_DiscardUnknown() {
338 xxx_messageInfo_Nests.DiscardUnknown(m)
339}
340
341var xxx_messageInfo_Nests proto.InternalMessageInfo
342
343func (m *Nests) GetSNested() *Nested {
344 if m != nil {
345 return m.SNested
346 }
347 return nil
348}
349
350// Message type used as submessage.
351type Nested struct {
352 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
353 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
354 XXX_NoUnkeyedLiteral struct{} `json:"-"`
355 XXX_unrecognized []byte `json:"-"`
356 XXX_sizecache int32 `json:"-"`
357}
358
359func (m *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800360 return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800361}
362func (m *Nested) Reset() { *m = Nested{} }
363func (m *Nested) String() string { return proto.CompactTextString(m) }
364func (*Nested) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700365
366// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800367func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800368 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800369}
370
371func (m *Nested) XXX_Unmarshal(b []byte) error {
372 return xxx_messageInfo_Nested.Unmarshal(m, b)
373}
374func (m *Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
375 return xxx_messageInfo_Nested.Marshal(b, m, deterministic)
376}
377func (m *Nested) XXX_Merge(src proto.Message) {
378 xxx_messageInfo_Nested.Merge(m, src)
379}
380func (m *Nested) XXX_Size() int {
381 return xxx_messageInfo_Nested.Size(m)
382}
383func (m *Nested) XXX_DiscardUnknown() {
384 xxx_messageInfo_Nested.DiscardUnknown(m)
385}
386
387var xxx_messageInfo_Nested proto.InternalMessageInfo
388
389func (m *Nested) GetSString() string {
390 if m != nil {
391 return m.SString
392 }
393 return ""
394}
395
396func (m *Nested) GetSNested() *Nested {
397 if m != nil {
398 return m.SNested
399 }
400 return nil
401}
402
403// Message contains oneof field.
404type Oneofs struct {
405 // Types that are valid to be assigned to Union:
406 // *Oneofs_OneofEnum
407 // *Oneofs_OneofString
408 // *Oneofs_OneofNested
409 Union isOneofs_Union `protobuf_oneof:"union"`
410 XXX_NoUnkeyedLiteral struct{} `json:"-"`
411 XXX_unrecognized []byte `json:"-"`
412 XXX_sizecache int32 `json:"-"`
413}
414
415func (m *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800416 return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800417}
418func (m *Oneofs) Reset() { *m = Oneofs{} }
419func (m *Oneofs) String() string { return proto.CompactTextString(m) }
420func (*Oneofs) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700421
422// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800423func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800424 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800425}
426
427func (m *Oneofs) XXX_Unmarshal(b []byte) error {
428 return xxx_messageInfo_Oneofs.Unmarshal(m, b)
429}
430func (m *Oneofs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
431 return xxx_messageInfo_Oneofs.Marshal(b, m, deterministic)
432}
433func (m *Oneofs) XXX_Merge(src proto.Message) {
434 xxx_messageInfo_Oneofs.Merge(m, src)
435}
436func (m *Oneofs) XXX_Size() int {
437 return xxx_messageInfo_Oneofs.Size(m)
438}
439func (m *Oneofs) XXX_DiscardUnknown() {
440 xxx_messageInfo_Oneofs.DiscardUnknown(m)
441}
442
443var xxx_messageInfo_Oneofs proto.InternalMessageInfo
444
445type isOneofs_Union interface {
446 isOneofs_Union()
447}
448
449type Oneofs_OneofEnum struct {
450 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
451}
452
453type Oneofs_OneofString struct {
454 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
455}
456
457type Oneofs_OneofNested struct {
458 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
459}
460
461func (*Oneofs_OneofEnum) isOneofs_Union() {}
462
463func (*Oneofs_OneofString) isOneofs_Union() {}
464
465func (*Oneofs_OneofNested) isOneofs_Union() {}
466
467func (m *Oneofs) GetUnion() isOneofs_Union {
468 if m != nil {
469 return m.Union
470 }
471 return nil
472}
473
474func (m *Oneofs) GetOneofEnum() Enum {
475 if x, ok := m.GetUnion().(*Oneofs_OneofEnum); ok {
476 return x.OneofEnum
477 }
478 return Enum_ZERO
479}
480
481func (m *Oneofs) GetOneofString() string {
482 if x, ok := m.GetUnion().(*Oneofs_OneofString); ok {
483 return x.OneofString
484 }
485 return ""
486}
487
488func (m *Oneofs) GetOneofNested() *Nested {
489 if x, ok := m.GetUnion().(*Oneofs_OneofNested); ok {
490 return x.OneofNested
491 }
492 return nil
493}
494
495// XXX_OneofWrappers is for the internal use of the proto package.
496func (*Oneofs) XXX_OneofWrappers() []interface{} {
497 return []interface{}{
498 (*Oneofs_OneofEnum)(nil),
499 (*Oneofs_OneofString)(nil),
500 (*Oneofs_OneofNested)(nil),
501 }
502}
503
504// Message contains map fields.
505type Maps struct {
506 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"`
507 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"`
508 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"`
509 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"`
510 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"`
511 XXX_NoUnkeyedLiteral struct{} `json:"-"`
512 XXX_unrecognized []byte `json:"-"`
513 XXX_sizecache int32 `json:"-"`
514}
515
516func (m *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800517 return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(m)
Herbie Ong8170d692019-02-13 14:13:21 -0800518}
519func (m *Maps) Reset() { *m = Maps{} }
520func (m *Maps) String() string { return proto.CompactTextString(m) }
521func (*Maps) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700522
523// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800524func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800525 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800526}
527
528func (m *Maps) XXX_Unmarshal(b []byte) error {
529 return xxx_messageInfo_Maps.Unmarshal(m, b)
530}
531func (m *Maps) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
532 return xxx_messageInfo_Maps.Marshal(b, m, deterministic)
533}
534func (m *Maps) XXX_Merge(src proto.Message) {
535 xxx_messageInfo_Maps.Merge(m, src)
536}
537func (m *Maps) XXX_Size() int {
538 return xxx_messageInfo_Maps.Size(m)
539}
540func (m *Maps) XXX_DiscardUnknown() {
541 xxx_messageInfo_Maps.DiscardUnknown(m)
542}
543
544var xxx_messageInfo_Maps proto.InternalMessageInfo
545
546func (m *Maps) GetInt32ToStr() map[int32]string {
547 if m != nil {
548 return m.Int32ToStr
549 }
550 return nil
551}
552
553func (m *Maps) GetBoolToUint32() map[bool]uint32 {
554 if m != nil {
555 return m.BoolToUint32
556 }
557 return nil
558}
559
560func (m *Maps) GetUint64ToEnum() map[uint64]Enum {
561 if m != nil {
562 return m.Uint64ToEnum
563 }
564 return nil
565}
566
567func (m *Maps) GetStrToNested() map[string]*Nested {
568 if m != nil {
569 return m.StrToNested
570 }
571 return nil
572}
573
574func (m *Maps) GetStrToOneofs() map[string]*Oneofs {
575 if m != nil {
576 return m.StrToOneofs
577 }
578 return nil
579}
580
Herbie Ong7b828bc2019-02-08 19:56:24 -0800581// Message for testing json_name option.
582type JSONNames struct {
583 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
584 XXX_NoUnkeyedLiteral struct{} `json:"-"`
585 XXX_unrecognized []byte `json:"-"`
586 XXX_sizecache int32 `json:"-"`
587}
588
589func (m *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai19058432019-02-27 21:46:29 -0800590 return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(m)
Herbie Ong7b828bc2019-02-08 19:56:24 -0800591}
592func (m *JSONNames) Reset() { *m = JSONNames{} }
593func (m *JSONNames) String() string { return proto.CompactTextString(m) }
594func (*JSONNames) ProtoMessage() {}
Joe Tsai8e506a82019-03-16 00:05:34 -0700595
596// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800597func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai19058432019-02-27 21:46:29 -0800598 return xxx_File_pb3_test_proto_rawdesc_gzipped, []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800599}
600
601func (m *JSONNames) XXX_Unmarshal(b []byte) error {
602 return xxx_messageInfo_JSONNames.Unmarshal(m, b)
603}
604func (m *JSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
605 return xxx_messageInfo_JSONNames.Marshal(b, m, deterministic)
606}
607func (m *JSONNames) XXX_Merge(src proto.Message) {
608 xxx_messageInfo_JSONNames.Merge(m, src)
609}
610func (m *JSONNames) XXX_Size() int {
611 return xxx_messageInfo_JSONNames.Size(m)
612}
613func (m *JSONNames) XXX_DiscardUnknown() {
614 xxx_messageInfo_JSONNames.DiscardUnknown(m)
615}
616
617var xxx_messageInfo_JSONNames proto.InternalMessageInfo
618
619func (m *JSONNames) GetSString() string {
620 if m != nil {
621 return m.SString
622 }
623 return ""
624}
625
Joe Tsai19058432019-02-27 21:46:29 -0800626var xxx_File_pb3_test_proto_rawdesc = []byte{
627 // 1710 bytes of the wire-encoded FileDescriptorProto
628 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
629 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
630 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
631 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
632 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
633 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
634 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
635 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
636 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
637 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
638 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
639 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
640 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
641 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
642 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
643 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
644 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
645 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
646 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
647 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
648 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
649 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
650 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
651 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
652 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
653 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
654 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
655 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
656 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
657 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
658 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
659 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
660 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
661 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
662 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
663 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
664 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
665 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
666 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
667 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
668 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
669 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
670 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
671 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
672 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
673 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
674 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
675 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
676 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
677 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
678 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
679 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
680 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
681 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
682 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
683 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
684 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
685 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
686 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
687 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
688 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
689 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
690 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
691 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
692 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
693 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
694 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
695 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
696 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
697 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
698 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
699 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
700 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
701 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
702 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
703 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
704 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
705 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
706 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
707 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
708 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
709 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
710 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
711 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
712 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
713 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
714 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
715 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
716 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
717 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
718 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
719 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
720 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
721 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
722 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
723 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
724 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
725 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
726 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
727 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
728 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
729 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
730 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a,
731 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
732 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65,
733 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
734 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800735}
736
Joe Tsai8e506a82019-03-16 00:05:34 -0700737var xxx_File_pb3_test_proto_rawdesc_gzipped = protoimpl.X.CompressGZIP(xxx_File_pb3_test_proto_rawdesc)
Herbie Ong8170d692019-02-13 14:13:21 -0800738
739const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
740
Joe Tsai19058432019-02-27 21:46:29 -0800741var File_pb3_test_proto protoreflect.FileDescriptor
Herbie Ong8170d692019-02-13 14:13:21 -0800742
Damien Neil6bb8dec2019-03-01 13:22:30 -0800743var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
744var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12)
Joe Tsai19058432019-02-27 21:46:29 -0800745var xxx_File_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800746 (Enum)(0), // 0: pb3.Enum
747 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
748 (*Scalars)(nil), // 2: pb3.Scalars
749 (*Enums)(nil), // 3: pb3.Enums
750 (*Nests)(nil), // 4: pb3.Nests
751 (*Nested)(nil), // 5: pb3.Nested
752 (*Oneofs)(nil), // 6: pb3.Oneofs
753 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800754 (*JSONNames)(nil), // 8: pb3.JSONNames
755 nil, // 9: pb3.Maps.Int32ToStrEntry
756 nil, // 10: pb3.Maps.BoolToUint32Entry
757 nil, // 11: pb3.Maps.Uint64ToEnumEntry
758 nil, // 12: pb3.Maps.StrToNestedEntry
759 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800760}
Joe Tsai19058432019-02-27 21:46:29 -0800761var xxx_File_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800762 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
763 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
764 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
765 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
766 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
767 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800768 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
769 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
770 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
771 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
772 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800773 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
774 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
775 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
776}
777
Damien Neil0fc22452019-03-08 17:18:11 -0800778func init() { xxx_File_pb3_test_proto_init() }
779func xxx_File_pb3_test_proto_init() {
780 if File_pb3_test_proto != nil {
781 return
782 }
Damien Neil6bb8dec2019-03-01 13:22:30 -0800783 messageTypes := make([]protoreflect.MessageType, 12)
Joe Tsai19058432019-02-27 21:46:29 -0800784 File_pb3_test_proto = protoimpl.FileBuilder{
785 RawDescriptor: xxx_File_pb3_test_proto_rawdesc,
786 GoTypes: xxx_File_pb3_test_proto_goTypes,
787 DependencyIndexes: xxx_File_pb3_test_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800788 EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes,
789 MessageOutputTypes: messageTypes,
Herbie Ong8170d692019-02-13 14:13:21 -0800790 }.Init()
Joe Tsai19058432019-02-27 21:46:29 -0800791 messageGoTypes := xxx_File_pb3_test_proto_goTypes[2:][:12]
Damien Neil6bb8dec2019-03-01 13:22:30 -0800792 for i, mt := range messageTypes {
Joe Tsai19058432019-02-27 21:46:29 -0800793 xxx_File_pb3_test_proto_messageTypes[i].GoType = reflect.TypeOf(messageGoTypes[i])
794 xxx_File_pb3_test_proto_messageTypes[i].PBType = mt
Herbie Ong8170d692019-02-13 14:13:21 -0800795 }
Joe Tsai559d47f2019-03-19 18:21:47 -0700796 proto.RegisterFile("pb3/test.proto", xxx_File_pb3_test_proto_rawdesc_gzipped)
797 proto.RegisterEnum("pb3.Enum", Enum_name, Enum_value)
798 proto.RegisterEnum("pb3.Enums_NestedEnum", Enums_NestedEnum_name, Enums_NestedEnum_value)
799 proto.RegisterType((*Scalars)(nil), "pb3.Scalars")
800 proto.RegisterType((*Enums)(nil), "pb3.Enums")
801 proto.RegisterType((*Nests)(nil), "pb3.Nests")
802 proto.RegisterType((*Nested)(nil), "pb3.Nested")
803 proto.RegisterType((*Oneofs)(nil), "pb3.Oneofs")
804 proto.RegisterType((*Maps)(nil), "pb3.Maps")
805 proto.RegisterMapType((map[bool]uint32)(nil), "pb3.Maps.BoolToUint32Entry")
806 proto.RegisterMapType((map[int32]string)(nil), "pb3.Maps.Int32ToStrEntry")
807 proto.RegisterMapType((map[string]*Nested)(nil), "pb3.Maps.StrToNestedEntry")
808 proto.RegisterMapType((map[string]*Oneofs)(nil), "pb3.Maps.StrToOneofsEntry")
809 proto.RegisterMapType((map[uint64]Enum)(nil), "pb3.Maps.Uint64ToEnumEntry")
810 proto.RegisterType((*JSONNames)(nil), "pb3.JSONNames")
Joe Tsai19058432019-02-27 21:46:29 -0800811 xxx_File_pb3_test_proto_goTypes = nil
812 xxx_File_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800813}