blob: b879929f5483985207b3016135844efb5ce839f2 [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 protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
Joe Tsai35ec98f2019-03-25 14:41:32 -07008 protoregistry "github.com/golang/protobuf/v2/reflect/protoregistry"
Herbie Ong8170d692019-02-13 14:13:21 -08009 protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070010 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080011)
12
Joe Tsai5d72cc22019-03-28 01:13:26 -070013const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
14
Herbie Ong8170d692019-02-13 14:13:21 -080015type Enum int32
16
17const (
18 Enum_ZERO Enum = 0
19 Enum_ONE Enum = 1
20 Enum_TWO Enum = 2
21 Enum_TEN Enum = 10
22)
23
Joe Tsai8e506a82019-03-16 00:05:34 -070024// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080025var Enum_name = map[int32]string{
26 0: "ZERO",
27 1: "ONE",
28 2: "TWO",
29 10: "TEN",
30}
31
Joe Tsai8e506a82019-03-16 00:05:34 -070032// Deprecated: Use Enum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080033var Enum_value = map[string]int32{
34 "ZERO": 0,
35 "ONE": 1,
36 "TWO": 2,
37 "TEN": 10,
38}
39
40func (x Enum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070041 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080042}
43
Joe Tsai61968ce2019-04-01 12:59:24 -070044func (Enum) Type() protoreflect.EnumType {
45 return xxx_File_pb3_test_proto_enumTypes[0]
46}
47
48func (x Enum) Number() protoreflect.EnumNumber {
49 return protoreflect.EnumNumber(x)
50}
51
Joe Tsai8e506a82019-03-16 00:05:34 -070052// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080053func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -070054 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080055}
56
57type Enums_NestedEnum int32
58
59const (
60 Enums_CERO Enums_NestedEnum = 0
61 Enums_UNO Enums_NestedEnum = 1
62 Enums_DOS Enums_NestedEnum = 2
63 Enums_DIEZ Enums_NestedEnum = 10
64)
65
Joe Tsai8e506a82019-03-16 00:05:34 -070066// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080067var Enums_NestedEnum_name = map[int32]string{
68 0: "CERO",
69 1: "UNO",
70 2: "DOS",
71 10: "DIEZ",
72}
73
Joe Tsai8e506a82019-03-16 00:05:34 -070074// Deprecated: Use Enums_NestedEnum.Type.Values instead.
Herbie Ong8170d692019-02-13 14:13:21 -080075var Enums_NestedEnum_value = map[string]int32{
76 "CERO": 0,
77 "UNO": 1,
78 "DOS": 2,
79 "DIEZ": 10,
80}
81
82func (x Enums_NestedEnum) String() string {
Joe Tsai8e506a82019-03-16 00:05:34 -070083 return protoimpl.X.EnumStringOf(x.Type(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080084}
85
Joe Tsai61968ce2019-04-01 12:59:24 -070086func (Enums_NestedEnum) Type() protoreflect.EnumType {
87 return xxx_File_pb3_test_proto_enumTypes[1]
88}
89
90func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
91 return protoreflect.EnumNumber(x)
92}
93
Joe Tsai8e506a82019-03-16 00:05:34 -070094// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080095func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -070096 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -080097}
98
99// Scalars contains scalar field types.
100type Scalars struct {
101 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
102 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
103 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
104 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
105 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
106 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
107 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
108 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
109 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
110 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
111 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
112 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
113 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
114 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
115 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
116 XXX_NoUnkeyedLiteral struct{} `json:"-"`
117 XXX_unrecognized []byte `json:"-"`
118 XXX_sizecache int32 `json:"-"`
119}
120
Joe Tsai61968ce2019-04-01 12:59:24 -0700121func (x *Scalars) Reset() {
122 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800123}
Joe Tsai61968ce2019-04-01 12:59:24 -0700124
125func (x *Scalars) String() string {
126 return protoimpl.X.MessageStringOf(x)
127}
128
129func (*Scalars) ProtoMessage() {}
130
131func (x *Scalars) ProtoReflect() protoreflect.Message {
132 return xxx_File_pb3_test_proto_messageTypes[0].MessageOf(x)
133}
Joe Tsai8e506a82019-03-16 00:05:34 -0700134
135// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800136func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700137 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800138}
139
Joe Tsai61968ce2019-04-01 12:59:24 -0700140func (x *Scalars) GetSBool() bool {
141 if x != nil {
142 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800143 }
144 return false
145}
146
Joe Tsai61968ce2019-04-01 12:59:24 -0700147func (x *Scalars) GetSInt32() int32 {
148 if x != nil {
149 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800150 }
151 return 0
152}
153
Joe Tsai61968ce2019-04-01 12:59:24 -0700154func (x *Scalars) GetSInt64() int64 {
155 if x != nil {
156 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800157 }
158 return 0
159}
160
Joe Tsai61968ce2019-04-01 12:59:24 -0700161func (x *Scalars) GetSUint32() uint32 {
162 if x != nil {
163 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800164 }
165 return 0
166}
167
Joe Tsai61968ce2019-04-01 12:59:24 -0700168func (x *Scalars) GetSUint64() uint64 {
169 if x != nil {
170 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800171 }
172 return 0
173}
174
Joe Tsai61968ce2019-04-01 12:59:24 -0700175func (x *Scalars) GetSSint32() int32 {
176 if x != nil {
177 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800178 }
179 return 0
180}
181
Joe Tsai61968ce2019-04-01 12:59:24 -0700182func (x *Scalars) GetSSint64() int64 {
183 if x != nil {
184 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800185 }
186 return 0
187}
188
Joe Tsai61968ce2019-04-01 12:59:24 -0700189func (x *Scalars) GetSFixed32() uint32 {
190 if x != nil {
191 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800192 }
193 return 0
194}
195
Joe Tsai61968ce2019-04-01 12:59:24 -0700196func (x *Scalars) GetSFixed64() uint64 {
197 if x != nil {
198 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800199 }
200 return 0
201}
202
Joe Tsai61968ce2019-04-01 12:59:24 -0700203func (x *Scalars) GetSSfixed32() int32 {
204 if x != nil {
205 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800206 }
207 return 0
208}
209
Joe Tsai61968ce2019-04-01 12:59:24 -0700210func (x *Scalars) GetSSfixed64() int64 {
211 if x != nil {
212 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800213 }
214 return 0
215}
216
Joe Tsai61968ce2019-04-01 12:59:24 -0700217func (x *Scalars) GetSFloat() float32 {
218 if x != nil {
219 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800220 }
221 return 0
222}
223
Joe Tsai61968ce2019-04-01 12:59:24 -0700224func (x *Scalars) GetSDouble() float64 {
225 if x != nil {
226 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800227 }
228 return 0
229}
230
Joe Tsai61968ce2019-04-01 12:59:24 -0700231func (x *Scalars) GetSBytes() []byte {
232 if x != nil {
233 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800234 }
235 return nil
236}
237
Joe Tsai61968ce2019-04-01 12:59:24 -0700238func (x *Scalars) GetSString() string {
239 if x != nil {
240 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800241 }
242 return ""
243}
244
245// Message contains enum fields.
246type Enums struct {
247 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
248 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
249 XXX_NoUnkeyedLiteral struct{} `json:"-"`
250 XXX_unrecognized []byte `json:"-"`
251 XXX_sizecache int32 `json:"-"`
252}
253
Joe Tsai61968ce2019-04-01 12:59:24 -0700254func (x *Enums) Reset() {
255 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800256}
Joe Tsai61968ce2019-04-01 12:59:24 -0700257
258func (x *Enums) String() string {
259 return protoimpl.X.MessageStringOf(x)
260}
261
262func (*Enums) ProtoMessage() {}
263
264func (x *Enums) ProtoReflect() protoreflect.Message {
265 return xxx_File_pb3_test_proto_messageTypes[1].MessageOf(x)
266}
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 Tsai5d72cc22019-03-28 01:13:26 -0700270 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800271}
272
Joe Tsai61968ce2019-04-01 12:59:24 -0700273func (x *Enums) GetSEnum() Enum {
274 if x != nil {
275 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800276 }
277 return Enum_ZERO
278}
279
Joe Tsai61968ce2019-04-01 12:59:24 -0700280func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
281 if x != nil {
282 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800283 }
284 return Enums_CERO
285}
286
287// Message contains nested message field.
288type Nests struct {
289 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
290 XXX_NoUnkeyedLiteral struct{} `json:"-"`
291 XXX_unrecognized []byte `json:"-"`
292 XXX_sizecache int32 `json:"-"`
293}
294
Joe Tsai61968ce2019-04-01 12:59:24 -0700295func (x *Nests) Reset() {
296 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800297}
Joe Tsai61968ce2019-04-01 12:59:24 -0700298
299func (x *Nests) String() string {
300 return protoimpl.X.MessageStringOf(x)
301}
302
303func (*Nests) ProtoMessage() {}
304
305func (x *Nests) ProtoReflect() protoreflect.Message {
306 return xxx_File_pb3_test_proto_messageTypes[2].MessageOf(x)
307}
Joe Tsai8e506a82019-03-16 00:05:34 -0700308
309// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800310func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700311 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800312}
313
Joe Tsai61968ce2019-04-01 12:59:24 -0700314func (x *Nests) GetSNested() *Nested {
315 if x != nil {
316 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800317 }
318 return nil
319}
320
321// Message type used as submessage.
322type Nested struct {
323 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
324 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
325 XXX_NoUnkeyedLiteral struct{} `json:"-"`
326 XXX_unrecognized []byte `json:"-"`
327 XXX_sizecache int32 `json:"-"`
328}
329
Joe Tsai61968ce2019-04-01 12:59:24 -0700330func (x *Nested) Reset() {
331 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800332}
Joe Tsai61968ce2019-04-01 12:59:24 -0700333
334func (x *Nested) String() string {
335 return protoimpl.X.MessageStringOf(x)
336}
337
338func (*Nested) ProtoMessage() {}
339
340func (x *Nested) ProtoReflect() protoreflect.Message {
341 return xxx_File_pb3_test_proto_messageTypes[3].MessageOf(x)
342}
Joe Tsai8e506a82019-03-16 00:05:34 -0700343
344// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800345func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700346 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800347}
348
Joe Tsai61968ce2019-04-01 12:59:24 -0700349func (x *Nested) GetSString() string {
350 if x != nil {
351 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800352 }
353 return ""
354}
355
Joe Tsai61968ce2019-04-01 12:59:24 -0700356func (x *Nested) GetSNested() *Nested {
357 if x != nil {
358 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800359 }
360 return nil
361}
362
363// Message contains oneof field.
364type Oneofs struct {
365 // Types that are valid to be assigned to Union:
366 // *Oneofs_OneofEnum
367 // *Oneofs_OneofString
368 // *Oneofs_OneofNested
369 Union isOneofs_Union `protobuf_oneof:"union"`
370 XXX_NoUnkeyedLiteral struct{} `json:"-"`
371 XXX_unrecognized []byte `json:"-"`
372 XXX_sizecache int32 `json:"-"`
373}
374
Joe Tsai61968ce2019-04-01 12:59:24 -0700375func (x *Oneofs) Reset() {
376 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800377}
Joe Tsai61968ce2019-04-01 12:59:24 -0700378
379func (x *Oneofs) String() string {
380 return protoimpl.X.MessageStringOf(x)
381}
382
383func (*Oneofs) ProtoMessage() {}
384
385func (x *Oneofs) ProtoReflect() protoreflect.Message {
386 return xxx_File_pb3_test_proto_messageTypes[4].MessageOf(x)
387}
Joe Tsai8e506a82019-03-16 00:05:34 -0700388
389// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800390func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700391 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800392}
393
Herbie Ong8170d692019-02-13 14:13:21 -0800394type isOneofs_Union interface {
395 isOneofs_Union()
396}
397
398type Oneofs_OneofEnum struct {
399 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
400}
401
402type Oneofs_OneofString struct {
403 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
404}
405
406type Oneofs_OneofNested struct {
407 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
408}
409
410func (*Oneofs_OneofEnum) isOneofs_Union() {}
411
412func (*Oneofs_OneofString) isOneofs_Union() {}
413
414func (*Oneofs_OneofNested) isOneofs_Union() {}
415
416func (m *Oneofs) GetUnion() isOneofs_Union {
417 if m != nil {
418 return m.Union
419 }
420 return nil
421}
422
Joe Tsai61968ce2019-04-01 12:59:24 -0700423func (x *Oneofs) GetOneofEnum() Enum {
424 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800425 return x.OneofEnum
426 }
427 return Enum_ZERO
428}
429
Joe Tsai61968ce2019-04-01 12:59:24 -0700430func (x *Oneofs) GetOneofString() string {
431 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800432 return x.OneofString
433 }
434 return ""
435}
436
Joe Tsai61968ce2019-04-01 12:59:24 -0700437func (x *Oneofs) GetOneofNested() *Nested {
438 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800439 return x.OneofNested
440 }
441 return nil
442}
443
444// XXX_OneofWrappers is for the internal use of the proto package.
445func (*Oneofs) XXX_OneofWrappers() []interface{} {
446 return []interface{}{
447 (*Oneofs_OneofEnum)(nil),
448 (*Oneofs_OneofString)(nil),
449 (*Oneofs_OneofNested)(nil),
450 }
451}
452
453// Message contains map fields.
454type Maps struct {
455 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"`
456 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"`
457 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"`
458 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"`
459 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"`
460 XXX_NoUnkeyedLiteral struct{} `json:"-"`
461 XXX_unrecognized []byte `json:"-"`
462 XXX_sizecache int32 `json:"-"`
463}
464
Joe Tsai61968ce2019-04-01 12:59:24 -0700465func (x *Maps) Reset() {
466 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800467}
Joe Tsai61968ce2019-04-01 12:59:24 -0700468
469func (x *Maps) String() string {
470 return protoimpl.X.MessageStringOf(x)
471}
472
473func (*Maps) ProtoMessage() {}
474
475func (x *Maps) ProtoReflect() protoreflect.Message {
476 return xxx_File_pb3_test_proto_messageTypes[5].MessageOf(x)
477}
Joe Tsai8e506a82019-03-16 00:05:34 -0700478
479// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800480func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700481 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800482}
483
Joe Tsai61968ce2019-04-01 12:59:24 -0700484func (x *Maps) GetInt32ToStr() map[int32]string {
485 if x != nil {
486 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800487 }
488 return nil
489}
490
Joe Tsai61968ce2019-04-01 12:59:24 -0700491func (x *Maps) GetBoolToUint32() map[bool]uint32 {
492 if x != nil {
493 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800494 }
495 return nil
496}
497
Joe Tsai61968ce2019-04-01 12:59:24 -0700498func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
499 if x != nil {
500 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800501 }
502 return nil
503}
504
Joe Tsai61968ce2019-04-01 12:59:24 -0700505func (x *Maps) GetStrToNested() map[string]*Nested {
506 if x != nil {
507 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800508 }
509 return nil
510}
511
Joe Tsai61968ce2019-04-01 12:59:24 -0700512func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
513 if x != nil {
514 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800515 }
516 return nil
517}
518
Herbie Ong7b828bc2019-02-08 19:56:24 -0800519// Message for testing json_name option.
520type JSONNames struct {
521 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
522 XXX_NoUnkeyedLiteral struct{} `json:"-"`
523 XXX_unrecognized []byte `json:"-"`
524 XXX_sizecache int32 `json:"-"`
525}
526
Joe Tsai61968ce2019-04-01 12:59:24 -0700527func (x *JSONNames) Reset() {
528 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800529}
Joe Tsai61968ce2019-04-01 12:59:24 -0700530
531func (x *JSONNames) String() string {
532 return protoimpl.X.MessageStringOf(x)
533}
534
535func (*JSONNames) ProtoMessage() {}
536
537func (x *JSONNames) ProtoReflect() protoreflect.Message {
538 return xxx_File_pb3_test_proto_messageTypes[6].MessageOf(x)
539}
Joe Tsai8e506a82019-03-16 00:05:34 -0700540
541// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800542func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai5d72cc22019-03-28 01:13:26 -0700543 return xxx_File_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800544}
545
Joe Tsai61968ce2019-04-01 12:59:24 -0700546func (x *JSONNames) GetSString() string {
547 if x != nil {
548 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800549 }
550 return ""
551}
552
Joe Tsai5d72cc22019-03-28 01:13:26 -0700553var File_pb3_test_proto protoreflect.FileDescriptor
554
555var xxx_File_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800556 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
557 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
558 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
559 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
560 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
561 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
562 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
563 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
564 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
565 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
566 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
567 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
568 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
569 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
570 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
571 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
572 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
573 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
574 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
575 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
576 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
577 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
578 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
579 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
580 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
581 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
582 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
583 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
584 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
585 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
586 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
587 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
588 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
589 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
590 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
591 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
592 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
593 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
594 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
595 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
596 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
597 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
598 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
599 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
600 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
601 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
602 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
603 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
604 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
605 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
606 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
607 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
608 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
609 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
610 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
611 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
612 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
613 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
614 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
615 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
616 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
617 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
618 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
619 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
620 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
621 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
622 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
623 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
624 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
625 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
626 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
627 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
628 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
629 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
630 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
631 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
632 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
633 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
634 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
635 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
636 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
637 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
638 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
639 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
640 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
641 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
642 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
643 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
644 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
645 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
646 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
647 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
648 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
649 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
650 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
651 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
652 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
653 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
654 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
655 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
656 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
657 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
658 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x37, 0x5a,
659 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6c, 0x61,
660 0x6e, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x76, 0x32, 0x2f, 0x65,
661 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
662 0x6f, 0x73, 0x2f, 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800663}
664
Joe Tsai5d72cc22019-03-28 01:13:26 -0700665var (
666 xxx_File_pb3_test_proto_rawDesc_once sync.Once
667 xxx_File_pb3_test_proto_rawDesc_data = xxx_File_pb3_test_proto_rawDesc
668)
Herbie Ong8170d692019-02-13 14:13:21 -0800669
Joe Tsai5d72cc22019-03-28 01:13:26 -0700670func xxx_File_pb3_test_proto_rawDescGZIP() []byte {
671 xxx_File_pb3_test_proto_rawDesc_once.Do(func() {
672 xxx_File_pb3_test_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_pb3_test_proto_rawDesc_data)
673 })
674 return xxx_File_pb3_test_proto_rawDesc_data
675}
Herbie Ong8170d692019-02-13 14:13:21 -0800676
Damien Neil6bb8dec2019-03-01 13:22:30 -0800677var xxx_File_pb3_test_proto_enumTypes = make([]protoreflect.EnumType, 2)
678var xxx_File_pb3_test_proto_messageTypes = make([]protoimpl.MessageType, 12)
Joe Tsai19058432019-02-27 21:46:29 -0800679var xxx_File_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800680 (Enum)(0), // 0: pb3.Enum
681 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
682 (*Scalars)(nil), // 2: pb3.Scalars
683 (*Enums)(nil), // 3: pb3.Enums
684 (*Nests)(nil), // 4: pb3.Nests
685 (*Nested)(nil), // 5: pb3.Nested
686 (*Oneofs)(nil), // 6: pb3.Oneofs
687 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800688 (*JSONNames)(nil), // 8: pb3.JSONNames
689 nil, // 9: pb3.Maps.Int32ToStrEntry
690 nil, // 10: pb3.Maps.BoolToUint32Entry
691 nil, // 11: pb3.Maps.Uint64ToEnumEntry
692 nil, // 12: pb3.Maps.StrToNestedEntry
693 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800694}
Joe Tsai19058432019-02-27 21:46:29 -0800695var xxx_File_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800696 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
697 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
698 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
699 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
700 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
701 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800702 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
703 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
704 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
705 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
706 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800707 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
708 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
709 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
710}
711
Damien Neil0fc22452019-03-08 17:18:11 -0800712func init() { xxx_File_pb3_test_proto_init() }
713func xxx_File_pb3_test_proto_init() {
714 if File_pb3_test_proto != nil {
715 return
716 }
Joe Tsai19058432019-02-27 21:46:29 -0800717 File_pb3_test_proto = protoimpl.FileBuilder{
Joe Tsai5d72cc22019-03-28 01:13:26 -0700718 RawDescriptor: xxx_File_pb3_test_proto_rawDesc,
Joe Tsai19058432019-02-27 21:46:29 -0800719 GoTypes: xxx_File_pb3_test_proto_goTypes,
720 DependencyIndexes: xxx_File_pb3_test_proto_depIdxs,
Damien Neil6bb8dec2019-03-01 13:22:30 -0800721 EnumOutputTypes: xxx_File_pb3_test_proto_enumTypes,
Joe Tsai35ec98f2019-03-25 14:41:32 -0700722 MessageOutputTypes: xxx_File_pb3_test_proto_messageTypes,
723 FilesRegistry: protoregistry.GlobalFiles,
724 TypesRegistry: protoregistry.GlobalTypes,
Herbie Ong8170d692019-02-13 14:13:21 -0800725 }.Init()
Joe Tsai5d72cc22019-03-28 01:13:26 -0700726 xxx_File_pb3_test_proto_rawDesc = nil
Joe Tsai19058432019-02-27 21:46:29 -0800727 xxx_File_pb3_test_proto_goTypes = nil
728 xxx_File_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800729}