blob: 56e5e4a42088fcdee9cbffcbfb70ea2dbf4ea2f7 [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 (
Damien Neile89e6242019-05-13 23:55:40 -07007 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Joe Tsaid8881392019-06-06 13:01:53 -07008 prototype "google.golang.org/protobuf/reflect/prototype"
Damien Neile89e6242019-05-13 23:55:40 -07009 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsai5d72cc22019-03-28 01:13:26 -070010 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080011)
12
Joe Tsai58b42d82019-05-22 16:27:51 -040013const (
14 // Verify that runtime/protoimpl is sufficiently up-to-date.
15 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
16 // Verify that this generated code is sufficiently up-to-date.
17 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
18)
Joe Tsai5d72cc22019-03-28 01:13:26 -070019
Herbie Ong8170d692019-02-13 14:13:21 -080020type 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
Herbie Ong8170d692019-02-13 14:13:21 -080029var Enum_name = map[int32]string{
30 0: "ZERO",
31 1: "ONE",
32 2: "TWO",
33 10: "TEN",
34}
35
36var Enum_value = map[string]int32{
37 "ZERO": 0,
38 "ONE": 1,
39 "TWO": 2,
40 "TEN": 10,
41}
42
Joe Tsaidbab6c02019-05-14 15:06:03 -070043func (x Enum) Enum() *Enum {
44 p := new(Enum)
45 *p = x
46 return p
47}
48
Herbie Ong8170d692019-02-13 14:13:21 -080049func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070050 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080051}
52
Joe Tsai0fc49f82019-05-01 12:29:25 -070053func (Enum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070054 return file_pb3_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070055}
56
Joe Tsaid4211502019-07-02 14:58:02 -070057func (Enum) Type() protoreflect.EnumType {
58 return &file_pb3_test_proto_enumTypes[0]
59}
60
Joe Tsai61968ce2019-04-01 12:59:24 -070061func (x Enum) Number() protoreflect.EnumNumber {
62 return protoreflect.EnumNumber(x)
63}
64
Joe Tsai8e506a82019-03-16 00:05:34 -070065// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080066func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070067 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080068}
69
70type Enums_NestedEnum int32
71
72const (
73 Enums_CERO Enums_NestedEnum = 0
74 Enums_UNO Enums_NestedEnum = 1
75 Enums_DOS Enums_NestedEnum = 2
76 Enums_DIEZ Enums_NestedEnum = 10
77)
78
Herbie Ong8170d692019-02-13 14:13:21 -080079var Enums_NestedEnum_name = map[int32]string{
80 0: "CERO",
81 1: "UNO",
82 2: "DOS",
83 10: "DIEZ",
84}
85
86var Enums_NestedEnum_value = map[string]int32{
87 "CERO": 0,
88 "UNO": 1,
89 "DOS": 2,
90 "DIEZ": 10,
91}
92
Joe Tsaidbab6c02019-05-14 15:06:03 -070093func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
94 p := new(Enums_NestedEnum)
95 *p = x
96 return p
97}
98
Herbie Ong8170d692019-02-13 14:13:21 -080099func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700100 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800101}
102
Joe Tsai0fc49f82019-05-01 12:29:25 -0700103func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700104 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700105}
106
Joe Tsaid4211502019-07-02 14:58:02 -0700107func (Enums_NestedEnum) Type() protoreflect.EnumType {
108 return &file_pb3_test_proto_enumTypes[1]
109}
110
Joe Tsai61968ce2019-04-01 12:59:24 -0700111func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
112 return protoreflect.EnumNumber(x)
113}
114
Joe Tsai8e506a82019-03-16 00:05:34 -0700115// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800116func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700117 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800118}
119
120// Scalars contains scalar field types.
121type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700122 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700123 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
124 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
125 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
126 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
127 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
128 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
129 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
130 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
131 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
132 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
133 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
134 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
135 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
136 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
137 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
138 sizeCache protoimpl.SizeCache
139 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800140}
141
Joe Tsai61968ce2019-04-01 12:59:24 -0700142func (x *Scalars) Reset() {
143 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800144}
Joe Tsai61968ce2019-04-01 12:59:24 -0700145
146func (x *Scalars) String() string {
147 return protoimpl.X.MessageStringOf(x)
148}
149
150func (*Scalars) ProtoMessage() {}
151
152func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700153 mi := &file_pb3_test_proto_msgTypes[0]
154 if protoimpl.UnsafeEnabled && x != nil {
155 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
156 if ms.LoadMessageInfo() == nil {
157 ms.StoreMessageInfo(mi)
158 }
159 return ms
160 }
161 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700162}
Joe Tsai8e506a82019-03-16 00:05:34 -0700163
164// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800165func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700166 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800167}
168
Joe Tsai61968ce2019-04-01 12:59:24 -0700169func (x *Scalars) GetSBool() bool {
170 if x != nil {
171 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800172 }
173 return false
174}
175
Joe Tsai61968ce2019-04-01 12:59:24 -0700176func (x *Scalars) GetSInt32() int32 {
177 if x != nil {
178 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800179 }
180 return 0
181}
182
Joe Tsai61968ce2019-04-01 12:59:24 -0700183func (x *Scalars) GetSInt64() int64 {
184 if x != nil {
185 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800186 }
187 return 0
188}
189
Joe Tsai61968ce2019-04-01 12:59:24 -0700190func (x *Scalars) GetSUint32() uint32 {
191 if x != nil {
192 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800193 }
194 return 0
195}
196
Joe Tsai61968ce2019-04-01 12:59:24 -0700197func (x *Scalars) GetSUint64() uint64 {
198 if x != nil {
199 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800200 }
201 return 0
202}
203
Joe Tsai61968ce2019-04-01 12:59:24 -0700204func (x *Scalars) GetSSint32() int32 {
205 if x != nil {
206 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800207 }
208 return 0
209}
210
Joe Tsai61968ce2019-04-01 12:59:24 -0700211func (x *Scalars) GetSSint64() int64 {
212 if x != nil {
213 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800214 }
215 return 0
216}
217
Joe Tsai61968ce2019-04-01 12:59:24 -0700218func (x *Scalars) GetSFixed32() uint32 {
219 if x != nil {
220 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800221 }
222 return 0
223}
224
Joe Tsai61968ce2019-04-01 12:59:24 -0700225func (x *Scalars) GetSFixed64() uint64 {
226 if x != nil {
227 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800228 }
229 return 0
230}
231
Joe Tsai61968ce2019-04-01 12:59:24 -0700232func (x *Scalars) GetSSfixed32() int32 {
233 if x != nil {
234 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800235 }
236 return 0
237}
238
Joe Tsai61968ce2019-04-01 12:59:24 -0700239func (x *Scalars) GetSSfixed64() int64 {
240 if x != nil {
241 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800242 }
243 return 0
244}
245
Joe Tsai61968ce2019-04-01 12:59:24 -0700246func (x *Scalars) GetSFloat() float32 {
247 if x != nil {
248 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800249 }
250 return 0
251}
252
Joe Tsai61968ce2019-04-01 12:59:24 -0700253func (x *Scalars) GetSDouble() float64 {
254 if x != nil {
255 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800256 }
257 return 0
258}
259
Joe Tsai61968ce2019-04-01 12:59:24 -0700260func (x *Scalars) GetSBytes() []byte {
261 if x != nil {
262 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800263 }
264 return nil
265}
266
Joe Tsai61968ce2019-04-01 12:59:24 -0700267func (x *Scalars) GetSString() string {
268 if x != nil {
269 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800270 }
271 return ""
272}
273
274// Message contains enum fields.
275type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700276 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700277 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
278 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
279 sizeCache protoimpl.SizeCache
280 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800281}
282
Joe Tsai61968ce2019-04-01 12:59:24 -0700283func (x *Enums) Reset() {
284 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800285}
Joe Tsai61968ce2019-04-01 12:59:24 -0700286
287func (x *Enums) String() string {
288 return protoimpl.X.MessageStringOf(x)
289}
290
291func (*Enums) ProtoMessage() {}
292
293func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700294 mi := &file_pb3_test_proto_msgTypes[1]
295 if protoimpl.UnsafeEnabled && x != nil {
296 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
297 if ms.LoadMessageInfo() == nil {
298 ms.StoreMessageInfo(mi)
299 }
300 return ms
301 }
302 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700303}
Joe Tsai8e506a82019-03-16 00:05:34 -0700304
305// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800306func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700307 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800308}
309
Joe Tsai61968ce2019-04-01 12:59:24 -0700310func (x *Enums) GetSEnum() Enum {
311 if x != nil {
312 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800313 }
314 return Enum_ZERO
315}
316
Joe Tsai61968ce2019-04-01 12:59:24 -0700317func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
318 if x != nil {
319 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800320 }
321 return Enums_CERO
322}
323
324// Message contains nested message field.
325type Nests struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700326 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700327 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
328 sizeCache protoimpl.SizeCache
329 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800330}
331
Joe Tsai61968ce2019-04-01 12:59:24 -0700332func (x *Nests) Reset() {
333 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800334}
Joe Tsai61968ce2019-04-01 12:59:24 -0700335
336func (x *Nests) String() string {
337 return protoimpl.X.MessageStringOf(x)
338}
339
340func (*Nests) ProtoMessage() {}
341
342func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700343 mi := &file_pb3_test_proto_msgTypes[2]
344 if protoimpl.UnsafeEnabled && x != nil {
345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
346 if ms.LoadMessageInfo() == nil {
347 ms.StoreMessageInfo(mi)
348 }
349 return ms
350 }
351 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700352}
Joe Tsai8e506a82019-03-16 00:05:34 -0700353
354// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800355func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700356 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800357}
358
Joe Tsai61968ce2019-04-01 12:59:24 -0700359func (x *Nests) GetSNested() *Nested {
360 if x != nil {
361 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800362 }
363 return nil
364}
365
366// Message type used as submessage.
367type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700368 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700369 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
370 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
371 sizeCache protoimpl.SizeCache
372 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800373}
374
Joe Tsai61968ce2019-04-01 12:59:24 -0700375func (x *Nested) Reset() {
376 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800377}
Joe Tsai61968ce2019-04-01 12:59:24 -0700378
379func (x *Nested) String() string {
380 return protoimpl.X.MessageStringOf(x)
381}
382
383func (*Nested) ProtoMessage() {}
384
385func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700386 mi := &file_pb3_test_proto_msgTypes[3]
387 if protoimpl.UnsafeEnabled && x != nil {
388 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
389 if ms.LoadMessageInfo() == nil {
390 ms.StoreMessageInfo(mi)
391 }
392 return ms
393 }
394 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700395}
Joe Tsai8e506a82019-03-16 00:05:34 -0700396
397// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800398func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700399 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800400}
401
Joe Tsai61968ce2019-04-01 12:59:24 -0700402func (x *Nested) GetSString() string {
403 if x != nil {
404 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800405 }
406 return ""
407}
408
Joe Tsai61968ce2019-04-01 12:59:24 -0700409func (x *Nested) GetSNested() *Nested {
410 if x != nil {
411 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800412 }
413 return nil
414}
415
416// Message contains oneof field.
417type Oneofs struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700418 state protoimpl.MessageState
Herbie Ong8170d692019-02-13 14:13:21 -0800419 // Types that are valid to be assigned to Union:
420 // *Oneofs_OneofEnum
421 // *Oneofs_OneofString
422 // *Oneofs_OneofNested
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700423 Union isOneofs_Union `protobuf_oneof:"union"`
424 sizeCache protoimpl.SizeCache
425 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800426}
427
Joe Tsai61968ce2019-04-01 12:59:24 -0700428func (x *Oneofs) Reset() {
429 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800430}
Joe Tsai61968ce2019-04-01 12:59:24 -0700431
432func (x *Oneofs) String() string {
433 return protoimpl.X.MessageStringOf(x)
434}
435
436func (*Oneofs) ProtoMessage() {}
437
438func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700439 mi := &file_pb3_test_proto_msgTypes[4]
440 if protoimpl.UnsafeEnabled && x != nil {
441 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
442 if ms.LoadMessageInfo() == nil {
443 ms.StoreMessageInfo(mi)
444 }
445 return ms
446 }
447 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700448}
Joe Tsai8e506a82019-03-16 00:05:34 -0700449
450// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800451func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700452 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800453}
454
Herbie Ong8170d692019-02-13 14:13:21 -0800455func (m *Oneofs) GetUnion() isOneofs_Union {
456 if m != nil {
457 return m.Union
458 }
459 return nil
460}
461
Joe Tsai61968ce2019-04-01 12:59:24 -0700462func (x *Oneofs) GetOneofEnum() Enum {
463 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800464 return x.OneofEnum
465 }
466 return Enum_ZERO
467}
468
Joe Tsai61968ce2019-04-01 12:59:24 -0700469func (x *Oneofs) GetOneofString() string {
470 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800471 return x.OneofString
472 }
473 return ""
474}
475
Joe Tsai61968ce2019-04-01 12:59:24 -0700476func (x *Oneofs) GetOneofNested() *Nested {
477 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800478 return x.OneofNested
479 }
480 return nil
481}
482
Joe Tsai872b5002019-04-08 14:03:15 -0700483type isOneofs_Union interface {
484 isOneofs_Union()
485}
486
487type Oneofs_OneofEnum struct {
488 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
489}
490
491type Oneofs_OneofString struct {
492 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
493}
494
495type Oneofs_OneofNested struct {
496 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
497}
498
499func (*Oneofs_OneofEnum) isOneofs_Union() {}
500
501func (*Oneofs_OneofString) isOneofs_Union() {}
502
503func (*Oneofs_OneofNested) isOneofs_Union() {}
504
Herbie Ong8170d692019-02-13 14:13:21 -0800505// Message contains map fields.
506type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700507 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700508 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"`
509 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"`
510 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"`
511 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"`
512 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"`
513 sizeCache protoimpl.SizeCache
514 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800515}
516
Joe Tsai61968ce2019-04-01 12:59:24 -0700517func (x *Maps) Reset() {
518 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800519}
Joe Tsai61968ce2019-04-01 12:59:24 -0700520
521func (x *Maps) String() string {
522 return protoimpl.X.MessageStringOf(x)
523}
524
525func (*Maps) ProtoMessage() {}
526
527func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700528 mi := &file_pb3_test_proto_msgTypes[5]
529 if protoimpl.UnsafeEnabled && x != nil {
530 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
531 if ms.LoadMessageInfo() == nil {
532 ms.StoreMessageInfo(mi)
533 }
534 return ms
535 }
536 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700537}
Joe Tsai8e506a82019-03-16 00:05:34 -0700538
539// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800540func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700541 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800542}
543
Joe Tsai61968ce2019-04-01 12:59:24 -0700544func (x *Maps) GetInt32ToStr() map[int32]string {
545 if x != nil {
546 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800547 }
548 return nil
549}
550
Joe Tsai61968ce2019-04-01 12:59:24 -0700551func (x *Maps) GetBoolToUint32() map[bool]uint32 {
552 if x != nil {
553 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800554 }
555 return nil
556}
557
Joe Tsai61968ce2019-04-01 12:59:24 -0700558func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
559 if x != nil {
560 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800561 }
562 return nil
563}
564
Joe Tsai61968ce2019-04-01 12:59:24 -0700565func (x *Maps) GetStrToNested() map[string]*Nested {
566 if x != nil {
567 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800568 }
569 return nil
570}
571
Joe Tsai61968ce2019-04-01 12:59:24 -0700572func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
573 if x != nil {
574 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800575 }
576 return nil
577}
578
Herbie Ong7b828bc2019-02-08 19:56:24 -0800579// Message for testing json_name option.
580type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700581 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700582 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
583 sizeCache protoimpl.SizeCache
584 unknownFields protoimpl.UnknownFields
Herbie Ong7b828bc2019-02-08 19:56:24 -0800585}
586
Joe Tsai61968ce2019-04-01 12:59:24 -0700587func (x *JSONNames) Reset() {
588 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800589}
Joe Tsai61968ce2019-04-01 12:59:24 -0700590
591func (x *JSONNames) String() string {
592 return protoimpl.X.MessageStringOf(x)
593}
594
595func (*JSONNames) ProtoMessage() {}
596
597func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700598 mi := &file_pb3_test_proto_msgTypes[6]
599 if protoimpl.UnsafeEnabled && x != nil {
600 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
601 if ms.LoadMessageInfo() == nil {
602 ms.StoreMessageInfo(mi)
603 }
604 return ms
605 }
606 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700607}
Joe Tsai8e506a82019-03-16 00:05:34 -0700608
609// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800610func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700611 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800612}
613
Joe Tsai61968ce2019-04-01 12:59:24 -0700614func (x *JSONNames) GetSString() string {
615 if x != nil {
616 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800617 }
618 return ""
619}
620
Joe Tsai5d72cc22019-03-28 01:13:26 -0700621var File_pb3_test_proto protoreflect.FileDescriptor
622
Joe Tsai7ca70982019-04-15 13:57:56 -0700623var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800624 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
625 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
626 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
627 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
628 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
629 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
630 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
631 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
632 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
633 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
634 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
635 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
636 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
637 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
638 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
639 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
640 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
641 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
642 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
643 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
644 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
645 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
646 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
647 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
648 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
649 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
650 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
651 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
652 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
653 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
654 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
655 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
656 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
657 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
658 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
659 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
660 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
661 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
662 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
663 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
664 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
665 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
666 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
667 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
668 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
669 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
670 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
671 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
672 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
673 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
674 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
675 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
676 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
677 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
678 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
679 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
680 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
681 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
682 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
683 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
684 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
685 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
686 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
687 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
688 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
689 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
690 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
691 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
692 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
693 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
694 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
695 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
696 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
697 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
698 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
699 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
700 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
701 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
702 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
703 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
704 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
705 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
706 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
707 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
708 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
709 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
710 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
711 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
712 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
713 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
714 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
715 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
716 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
717 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
718 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
719 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
720 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
721 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
722 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
723 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
724 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
725 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700726 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
727 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
728 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
729 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
730 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800731}
732
Joe Tsai5d72cc22019-03-28 01:13:26 -0700733var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700734 file_pb3_test_proto_rawDescOnce sync.Once
735 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700736)
Herbie Ong8170d692019-02-13 14:13:21 -0800737
Joe Tsai7ca70982019-04-15 13:57:56 -0700738func file_pb3_test_proto_rawDescGZIP() []byte {
739 file_pb3_test_proto_rawDescOnce.Do(func() {
740 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700741 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700742 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700743}
Herbie Ong8170d692019-02-13 14:13:21 -0800744
Joe Tsaid8881392019-06-06 13:01:53 -0700745var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400746var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700747var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800748 (Enum)(0), // 0: pb3.Enum
749 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
750 (*Scalars)(nil), // 2: pb3.Scalars
751 (*Enums)(nil), // 3: pb3.Enums
752 (*Nests)(nil), // 4: pb3.Nests
753 (*Nested)(nil), // 5: pb3.Nested
754 (*Oneofs)(nil), // 6: pb3.Oneofs
755 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800756 (*JSONNames)(nil), // 8: pb3.JSONNames
757 nil, // 9: pb3.Maps.Int32ToStrEntry
758 nil, // 10: pb3.Maps.BoolToUint32Entry
759 nil, // 11: pb3.Maps.Uint64ToEnumEntry
760 nil, // 12: pb3.Maps.StrToNestedEntry
761 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800762}
Joe Tsai7ca70982019-04-15 13:57:56 -0700763var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800764 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
765 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
766 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
767 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
768 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
769 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800770 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
771 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
772 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
773 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
774 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800775 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
776 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
777 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700778 14, // starting offset of method output_type sub-list
779 14, // starting offset of method input_type sub-list
780 14, // starting offset of extension type_name sub-list
781 14, // starting offset of extension extendee sub-list
782 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800783}
784
Joe Tsai7ca70982019-04-15 13:57:56 -0700785func init() { file_pb3_test_proto_init() }
786func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800787 if File_pb3_test_proto != nil {
788 return
789 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700790 if !protoimpl.UnsafeEnabled {
791 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
792 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700793 case 0:
794 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700795 case 16:
Joe Tsai82760ce2019-06-20 03:09:57 -0700796 return &v.sizeCache
797 case 17:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700798 return &v.unknownFields
799 default:
800 return nil
801 }
802 }
803 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
804 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700805 case 0:
806 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700807 case 3:
Joe Tsai82760ce2019-06-20 03:09:57 -0700808 return &v.sizeCache
809 case 4:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700810 return &v.unknownFields
811 default:
812 return nil
813 }
814 }
815 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
816 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700817 case 0:
818 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700819 case 2:
820 return &v.sizeCache
821 case 3:
822 return &v.unknownFields
823 default:
824 return nil
825 }
826 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700827 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
828 switch v := v.(*Nested); i {
829 case 0:
830 return &v.state
831 case 3:
832 return &v.sizeCache
833 case 4:
834 return &v.unknownFields
835 default:
836 return nil
837 }
838 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700839 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
840 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700841 case 0:
842 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700843 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700844 return &v.sizeCache
845 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700846 return &v.unknownFields
847 default:
848 return nil
849 }
850 }
851 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
852 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700853 case 0:
854 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700855 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700856 return &v.sizeCache
857 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700858 return &v.unknownFields
859 default:
860 return nil
861 }
862 }
863 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
864 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700865 case 0:
866 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700867 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700868 return &v.sizeCache
869 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700870 return &v.unknownFields
871 default:
872 return nil
873 }
874 }
875 }
Joe Tsai09912272019-07-08 10:38:11 -0700876 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
877 (*Oneofs_OneofEnum)(nil),
878 (*Oneofs_OneofString)(nil),
879 (*Oneofs_OneofNested)(nil),
880 }
Joe Tsaid8881392019-06-06 13:01:53 -0700881 out := protoimpl.TypeBuilder{
882 File: protoimpl.DescBuilder{
883 RawDescriptor: file_pb3_test_proto_rawDesc,
884 NumEnums: 2,
885 NumMessages: 12,
886 NumExtensions: 0,
887 NumServices: 0,
888 },
889 GoTypes: file_pb3_test_proto_goTypes,
890 DependencyIndexes: file_pb3_test_proto_depIdxs,
891 MessageInfos: file_pb3_test_proto_msgTypes,
892 }.Build()
893 File_pb3_test_proto = out.File
894 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700895 file_pb3_test_proto_rawDesc = nil
896 file_pb3_test_proto_goTypes = nil
897 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800898}