blob: e110a796d466da6ff8d838dc5c54725e5db18cfc [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 Tsaiaf570872019-07-14 23:04:40 -070010 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070011 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080012)
13
Joe Tsai58b42d82019-05-22 16:27:51 -040014const (
15 // Verify that runtime/protoimpl is sufficiently up-to-date.
16 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0)
17 // Verify that this generated code is sufficiently up-to-date.
18 _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion)
19)
Joe Tsai5d72cc22019-03-28 01:13:26 -070020
Herbie Ong8170d692019-02-13 14:13:21 -080021type Enum int32
22
23const (
24 Enum_ZERO Enum = 0
25 Enum_ONE Enum = 1
26 Enum_TWO Enum = 2
27 Enum_TEN Enum = 10
28)
29
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
37var Enum_value = map[string]int32{
38 "ZERO": 0,
39 "ONE": 1,
40 "TWO": 2,
41 "TEN": 10,
42}
43
Joe Tsaidbab6c02019-05-14 15:06:03 -070044func (x Enum) Enum() *Enum {
45 p := new(Enum)
46 *p = x
47 return p
48}
49
Herbie Ong8170d692019-02-13 14:13:21 -080050func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070051 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080052}
53
Joe Tsai0fc49f82019-05-01 12:29:25 -070054func (Enum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070055 return file_pb3_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070056}
57
Joe Tsaid4211502019-07-02 14:58:02 -070058func (Enum) Type() protoreflect.EnumType {
59 return &file_pb3_test_proto_enumTypes[0]
60}
61
Joe Tsai61968ce2019-04-01 12:59:24 -070062func (x Enum) Number() protoreflect.EnumNumber {
63 return protoreflect.EnumNumber(x)
64}
65
Joe Tsai43761bd2019-07-17 18:06:47 -070066// Deprecated: Use Enum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -080067func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070068 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080069}
70
71type Enums_NestedEnum int32
72
73const (
74 Enums_CERO Enums_NestedEnum = 0
75 Enums_UNO Enums_NestedEnum = 1
76 Enums_DOS Enums_NestedEnum = 2
77 Enums_DIEZ Enums_NestedEnum = 10
78)
79
Herbie Ong8170d692019-02-13 14:13:21 -080080var Enums_NestedEnum_name = map[int32]string{
81 0: "CERO",
82 1: "UNO",
83 2: "DOS",
84 10: "DIEZ",
85}
86
87var Enums_NestedEnum_value = map[string]int32{
88 "CERO": 0,
89 "UNO": 1,
90 "DOS": 2,
91 "DIEZ": 10,
92}
93
Joe Tsaidbab6c02019-05-14 15:06:03 -070094func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
95 p := new(Enums_NestedEnum)
96 *p = x
97 return p
98}
99
Herbie Ong8170d692019-02-13 14:13:21 -0800100func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800102}
103
Joe Tsai0fc49f82019-05-01 12:29:25 -0700104func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700105 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700106}
107
Joe Tsaid4211502019-07-02 14:58:02 -0700108func (Enums_NestedEnum) Type() protoreflect.EnumType {
109 return &file_pb3_test_proto_enumTypes[1]
110}
111
Joe Tsai61968ce2019-04-01 12:59:24 -0700112func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
113 return protoreflect.EnumNumber(x)
114}
115
Joe Tsai43761bd2019-07-17 18:06:47 -0700116// Deprecated: Use Enums_NestedEnum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800117func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700118 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800119}
120
121// Scalars contains scalar field types.
122type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700123 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700124 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
125 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
126 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
127 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
128 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
129 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
130 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
131 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
132 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
133 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
134 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
135 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
136 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
137 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
138 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
139 sizeCache protoimpl.SizeCache
140 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800141}
142
Joe Tsai61968ce2019-04-01 12:59:24 -0700143func (x *Scalars) Reset() {
144 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800145}
Joe Tsai61968ce2019-04-01 12:59:24 -0700146
147func (x *Scalars) String() string {
148 return protoimpl.X.MessageStringOf(x)
149}
150
151func (*Scalars) ProtoMessage() {}
152
153func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700154 mi := &file_pb3_test_proto_msgTypes[0]
155 if protoimpl.UnsafeEnabled && x != nil {
156 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
157 if ms.LoadMessageInfo() == nil {
158 ms.StoreMessageInfo(mi)
159 }
160 return ms
161 }
162 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700163}
Joe Tsai8e506a82019-03-16 00:05:34 -0700164
Joe Tsai43761bd2019-07-17 18:06:47 -0700165// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800166func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700167 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800168}
169
Joe Tsai61968ce2019-04-01 12:59:24 -0700170func (x *Scalars) GetSBool() bool {
171 if x != nil {
172 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800173 }
174 return false
175}
176
Joe Tsai61968ce2019-04-01 12:59:24 -0700177func (x *Scalars) GetSInt32() int32 {
178 if x != nil {
179 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800180 }
181 return 0
182}
183
Joe Tsai61968ce2019-04-01 12:59:24 -0700184func (x *Scalars) GetSInt64() int64 {
185 if x != nil {
186 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800187 }
188 return 0
189}
190
Joe Tsai61968ce2019-04-01 12:59:24 -0700191func (x *Scalars) GetSUint32() uint32 {
192 if x != nil {
193 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800194 }
195 return 0
196}
197
Joe Tsai61968ce2019-04-01 12:59:24 -0700198func (x *Scalars) GetSUint64() uint64 {
199 if x != nil {
200 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800201 }
202 return 0
203}
204
Joe Tsai61968ce2019-04-01 12:59:24 -0700205func (x *Scalars) GetSSint32() int32 {
206 if x != nil {
207 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800208 }
209 return 0
210}
211
Joe Tsai61968ce2019-04-01 12:59:24 -0700212func (x *Scalars) GetSSint64() int64 {
213 if x != nil {
214 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800215 }
216 return 0
217}
218
Joe Tsai61968ce2019-04-01 12:59:24 -0700219func (x *Scalars) GetSFixed32() uint32 {
220 if x != nil {
221 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800222 }
223 return 0
224}
225
Joe Tsai61968ce2019-04-01 12:59:24 -0700226func (x *Scalars) GetSFixed64() uint64 {
227 if x != nil {
228 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800229 }
230 return 0
231}
232
Joe Tsai61968ce2019-04-01 12:59:24 -0700233func (x *Scalars) GetSSfixed32() int32 {
234 if x != nil {
235 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800236 }
237 return 0
238}
239
Joe Tsai61968ce2019-04-01 12:59:24 -0700240func (x *Scalars) GetSSfixed64() int64 {
241 if x != nil {
242 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800243 }
244 return 0
245}
246
Joe Tsai61968ce2019-04-01 12:59:24 -0700247func (x *Scalars) GetSFloat() float32 {
248 if x != nil {
249 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800250 }
251 return 0
252}
253
Joe Tsai61968ce2019-04-01 12:59:24 -0700254func (x *Scalars) GetSDouble() float64 {
255 if x != nil {
256 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800257 }
258 return 0
259}
260
Joe Tsai61968ce2019-04-01 12:59:24 -0700261func (x *Scalars) GetSBytes() []byte {
262 if x != nil {
263 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800264 }
265 return nil
266}
267
Joe Tsai61968ce2019-04-01 12:59:24 -0700268func (x *Scalars) GetSString() string {
269 if x != nil {
270 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800271 }
272 return ""
273}
274
275// Message contains enum fields.
276type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700277 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700278 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
279 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
280 sizeCache protoimpl.SizeCache
281 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800282}
283
Joe Tsai61968ce2019-04-01 12:59:24 -0700284func (x *Enums) Reset() {
285 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800286}
Joe Tsai61968ce2019-04-01 12:59:24 -0700287
288func (x *Enums) String() string {
289 return protoimpl.X.MessageStringOf(x)
290}
291
292func (*Enums) ProtoMessage() {}
293
294func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700295 mi := &file_pb3_test_proto_msgTypes[1]
296 if protoimpl.UnsafeEnabled && x != nil {
297 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
298 if ms.LoadMessageInfo() == nil {
299 ms.StoreMessageInfo(mi)
300 }
301 return ms
302 }
303 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700304}
Joe Tsai8e506a82019-03-16 00:05:34 -0700305
Joe Tsai43761bd2019-07-17 18:06:47 -0700306// Deprecated: Use Enums.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800307func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700308 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800309}
310
Joe Tsai61968ce2019-04-01 12:59:24 -0700311func (x *Enums) GetSEnum() Enum {
312 if x != nil {
313 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800314 }
315 return Enum_ZERO
316}
317
Joe Tsai61968ce2019-04-01 12:59:24 -0700318func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
319 if x != nil {
320 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800321 }
322 return Enums_CERO
323}
324
325// Message contains nested message field.
326type Nests struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700327 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700328 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
329 sizeCache protoimpl.SizeCache
330 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800331}
332
Joe Tsai61968ce2019-04-01 12:59:24 -0700333func (x *Nests) Reset() {
334 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800335}
Joe Tsai61968ce2019-04-01 12:59:24 -0700336
337func (x *Nests) String() string {
338 return protoimpl.X.MessageStringOf(x)
339}
340
341func (*Nests) ProtoMessage() {}
342
343func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700344 mi := &file_pb3_test_proto_msgTypes[2]
345 if protoimpl.UnsafeEnabled && x != nil {
346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
347 if ms.LoadMessageInfo() == nil {
348 ms.StoreMessageInfo(mi)
349 }
350 return ms
351 }
352 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700353}
Joe Tsai8e506a82019-03-16 00:05:34 -0700354
Joe Tsai43761bd2019-07-17 18:06:47 -0700355// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800356func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700357 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800358}
359
Joe Tsai61968ce2019-04-01 12:59:24 -0700360func (x *Nests) GetSNested() *Nested {
361 if x != nil {
362 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800363 }
364 return nil
365}
366
367// Message type used as submessage.
368type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700369 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700370 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
371 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
372 sizeCache protoimpl.SizeCache
373 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800374}
375
Joe Tsai61968ce2019-04-01 12:59:24 -0700376func (x *Nested) Reset() {
377 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800378}
Joe Tsai61968ce2019-04-01 12:59:24 -0700379
380func (x *Nested) String() string {
381 return protoimpl.X.MessageStringOf(x)
382}
383
384func (*Nested) ProtoMessage() {}
385
386func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700387 mi := &file_pb3_test_proto_msgTypes[3]
388 if protoimpl.UnsafeEnabled && x != nil {
389 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
390 if ms.LoadMessageInfo() == nil {
391 ms.StoreMessageInfo(mi)
392 }
393 return ms
394 }
395 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700396}
Joe Tsai8e506a82019-03-16 00:05:34 -0700397
Joe Tsai43761bd2019-07-17 18:06:47 -0700398// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800399func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700400 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800401}
402
Joe Tsai61968ce2019-04-01 12:59:24 -0700403func (x *Nested) GetSString() string {
404 if x != nil {
405 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800406 }
407 return ""
408}
409
Joe Tsai61968ce2019-04-01 12:59:24 -0700410func (x *Nested) GetSNested() *Nested {
411 if x != nil {
412 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800413 }
414 return nil
415}
416
417// Message contains oneof field.
418type Oneofs struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700419 state protoimpl.MessageState
Herbie Ong8170d692019-02-13 14:13:21 -0800420 // Types that are valid to be assigned to Union:
421 // *Oneofs_OneofEnum
422 // *Oneofs_OneofString
423 // *Oneofs_OneofNested
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700424 Union isOneofs_Union `protobuf_oneof:"union"`
425 sizeCache protoimpl.SizeCache
426 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800427}
428
Joe Tsai61968ce2019-04-01 12:59:24 -0700429func (x *Oneofs) Reset() {
430 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800431}
Joe Tsai61968ce2019-04-01 12:59:24 -0700432
433func (x *Oneofs) String() string {
434 return protoimpl.X.MessageStringOf(x)
435}
436
437func (*Oneofs) ProtoMessage() {}
438
439func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700440 mi := &file_pb3_test_proto_msgTypes[4]
441 if protoimpl.UnsafeEnabled && x != nil {
442 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
443 if ms.LoadMessageInfo() == nil {
444 ms.StoreMessageInfo(mi)
445 }
446 return ms
447 }
448 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700449}
Joe Tsai8e506a82019-03-16 00:05:34 -0700450
Joe Tsai43761bd2019-07-17 18:06:47 -0700451// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800452func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700453 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800454}
455
Herbie Ong8170d692019-02-13 14:13:21 -0800456func (m *Oneofs) GetUnion() isOneofs_Union {
457 if m != nil {
458 return m.Union
459 }
460 return nil
461}
462
Joe Tsai61968ce2019-04-01 12:59:24 -0700463func (x *Oneofs) GetOneofEnum() Enum {
464 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800465 return x.OneofEnum
466 }
467 return Enum_ZERO
468}
469
Joe Tsai61968ce2019-04-01 12:59:24 -0700470func (x *Oneofs) GetOneofString() string {
471 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800472 return x.OneofString
473 }
474 return ""
475}
476
Joe Tsai61968ce2019-04-01 12:59:24 -0700477func (x *Oneofs) GetOneofNested() *Nested {
478 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800479 return x.OneofNested
480 }
481 return nil
482}
483
Joe Tsai872b5002019-04-08 14:03:15 -0700484type isOneofs_Union interface {
485 isOneofs_Union()
486}
487
488type Oneofs_OneofEnum struct {
489 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
490}
491
492type Oneofs_OneofString struct {
493 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
494}
495
496type Oneofs_OneofNested struct {
497 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
498}
499
500func (*Oneofs_OneofEnum) isOneofs_Union() {}
501
502func (*Oneofs_OneofString) isOneofs_Union() {}
503
504func (*Oneofs_OneofNested) isOneofs_Union() {}
505
Herbie Ong8170d692019-02-13 14:13:21 -0800506// Message contains map fields.
507type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700508 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700509 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"`
510 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"`
511 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"`
512 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"`
513 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"`
514 sizeCache protoimpl.SizeCache
515 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800516}
517
Joe Tsai61968ce2019-04-01 12:59:24 -0700518func (x *Maps) Reset() {
519 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800520}
Joe Tsai61968ce2019-04-01 12:59:24 -0700521
522func (x *Maps) String() string {
523 return protoimpl.X.MessageStringOf(x)
524}
525
526func (*Maps) ProtoMessage() {}
527
528func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700529 mi := &file_pb3_test_proto_msgTypes[5]
530 if protoimpl.UnsafeEnabled && x != nil {
531 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
532 if ms.LoadMessageInfo() == nil {
533 ms.StoreMessageInfo(mi)
534 }
535 return ms
536 }
537 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700538}
Joe Tsai8e506a82019-03-16 00:05:34 -0700539
Joe Tsai43761bd2019-07-17 18:06:47 -0700540// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800541func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700542 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800543}
544
Joe Tsai61968ce2019-04-01 12:59:24 -0700545func (x *Maps) GetInt32ToStr() map[int32]string {
546 if x != nil {
547 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800548 }
549 return nil
550}
551
Joe Tsai61968ce2019-04-01 12:59:24 -0700552func (x *Maps) GetBoolToUint32() map[bool]uint32 {
553 if x != nil {
554 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800555 }
556 return nil
557}
558
Joe Tsai61968ce2019-04-01 12:59:24 -0700559func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
560 if x != nil {
561 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800562 }
563 return nil
564}
565
Joe Tsai61968ce2019-04-01 12:59:24 -0700566func (x *Maps) GetStrToNested() map[string]*Nested {
567 if x != nil {
568 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800569 }
570 return nil
571}
572
Joe Tsai61968ce2019-04-01 12:59:24 -0700573func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
574 if x != nil {
575 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800576 }
577 return nil
578}
579
Herbie Ong7b828bc2019-02-08 19:56:24 -0800580// Message for testing json_name option.
581type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700582 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700583 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
584 sizeCache protoimpl.SizeCache
585 unknownFields protoimpl.UnknownFields
Herbie Ong7b828bc2019-02-08 19:56:24 -0800586}
587
Joe Tsai61968ce2019-04-01 12:59:24 -0700588func (x *JSONNames) Reset() {
589 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800590}
Joe Tsai61968ce2019-04-01 12:59:24 -0700591
592func (x *JSONNames) String() string {
593 return protoimpl.X.MessageStringOf(x)
594}
595
596func (*JSONNames) ProtoMessage() {}
597
598func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700599 mi := &file_pb3_test_proto_msgTypes[6]
600 if protoimpl.UnsafeEnabled && x != nil {
601 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
602 if ms.LoadMessageInfo() == nil {
603 ms.StoreMessageInfo(mi)
604 }
605 return ms
606 }
607 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700608}
Joe Tsai8e506a82019-03-16 00:05:34 -0700609
Joe Tsai43761bd2019-07-17 18:06:47 -0700610// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800611func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700612 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800613}
614
Joe Tsai61968ce2019-04-01 12:59:24 -0700615func (x *JSONNames) GetSString() string {
616 if x != nil {
617 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800618 }
619 return ""
620}
621
Joe Tsai5d72cc22019-03-28 01:13:26 -0700622var File_pb3_test_proto protoreflect.FileDescriptor
623
Joe Tsai7ca70982019-04-15 13:57:56 -0700624var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800625 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
626 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
627 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
628 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
629 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
630 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
631 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
632 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
633 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
634 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
635 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
636 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
637 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
638 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
639 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
640 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
641 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
642 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
643 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
644 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
645 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
646 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
647 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
648 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
649 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
650 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
651 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
652 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
653 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
654 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
655 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
656 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
657 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
658 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
659 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
660 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
661 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
662 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
663 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
664 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
665 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
666 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
667 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
668 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
669 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
670 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
671 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
672 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
673 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
674 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
675 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
676 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
677 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
678 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
679 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
680 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
681 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
682 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
683 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
684 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
685 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
686 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
687 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
688 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
689 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
690 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
691 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
692 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
693 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
694 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
695 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
696 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
697 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
698 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
699 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
700 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
701 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
702 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
703 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
704 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
705 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
706 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
707 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
708 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
709 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
710 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
711 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
712 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
713 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
714 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
715 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
716 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
717 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
718 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
719 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
720 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
721 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
722 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
723 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
724 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
725 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
726 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700727 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
728 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
729 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
730 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
731 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800732}
733
Joe Tsai5d72cc22019-03-28 01:13:26 -0700734var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700735 file_pb3_test_proto_rawDescOnce sync.Once
736 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700737)
Herbie Ong8170d692019-02-13 14:13:21 -0800738
Joe Tsai7ca70982019-04-15 13:57:56 -0700739func file_pb3_test_proto_rawDescGZIP() []byte {
740 file_pb3_test_proto_rawDescOnce.Do(func() {
741 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700742 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700743 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700744}
Herbie Ong8170d692019-02-13 14:13:21 -0800745
Joe Tsaid8881392019-06-06 13:01:53 -0700746var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400747var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700748var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800749 (Enum)(0), // 0: pb3.Enum
750 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
751 (*Scalars)(nil), // 2: pb3.Scalars
752 (*Enums)(nil), // 3: pb3.Enums
753 (*Nests)(nil), // 4: pb3.Nests
754 (*Nested)(nil), // 5: pb3.Nested
755 (*Oneofs)(nil), // 6: pb3.Oneofs
756 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800757 (*JSONNames)(nil), // 8: pb3.JSONNames
758 nil, // 9: pb3.Maps.Int32ToStrEntry
759 nil, // 10: pb3.Maps.BoolToUint32Entry
760 nil, // 11: pb3.Maps.Uint64ToEnumEntry
761 nil, // 12: pb3.Maps.StrToNestedEntry
762 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800763}
Joe Tsai7ca70982019-04-15 13:57:56 -0700764var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800765 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
766 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
767 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
768 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
769 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
770 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800771 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
772 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
773 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
774 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
775 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800776 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
777 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
778 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700779 14, // starting offset of method output_type sub-list
780 14, // starting offset of method input_type sub-list
781 14, // starting offset of extension type_name sub-list
782 14, // starting offset of extension extendee sub-list
783 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800784}
785
Joe Tsai7ca70982019-04-15 13:57:56 -0700786func init() { file_pb3_test_proto_init() }
787func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800788 if File_pb3_test_proto != nil {
789 return
790 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700791 if !protoimpl.UnsafeEnabled {
792 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
793 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700794 case 0:
795 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700796 case 16:
Joe Tsai82760ce2019-06-20 03:09:57 -0700797 return &v.sizeCache
798 case 17:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700799 return &v.unknownFields
800 default:
801 return nil
802 }
803 }
804 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
805 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700806 case 0:
807 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700808 case 3:
Joe Tsai82760ce2019-06-20 03:09:57 -0700809 return &v.sizeCache
810 case 4:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700811 return &v.unknownFields
812 default:
813 return nil
814 }
815 }
816 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
817 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700818 case 0:
819 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700820 case 2:
821 return &v.sizeCache
822 case 3:
823 return &v.unknownFields
824 default:
825 return nil
826 }
827 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700828 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
829 switch v := v.(*Nested); i {
830 case 0:
831 return &v.state
832 case 3:
833 return &v.sizeCache
834 case 4:
835 return &v.unknownFields
836 default:
837 return nil
838 }
839 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700840 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
841 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700842 case 0:
843 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700844 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700845 return &v.sizeCache
846 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700847 return &v.unknownFields
848 default:
849 return nil
850 }
851 }
852 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
853 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700854 case 0:
855 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700856 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700857 return &v.sizeCache
858 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700859 return &v.unknownFields
860 default:
861 return nil
862 }
863 }
864 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
865 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700866 case 0:
867 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700868 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700869 return &v.sizeCache
870 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700871 return &v.unknownFields
872 default:
873 return nil
874 }
875 }
876 }
Joe Tsai09912272019-07-08 10:38:11 -0700877 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
878 (*Oneofs_OneofEnum)(nil),
879 (*Oneofs_OneofString)(nil),
880 (*Oneofs_OneofNested)(nil),
881 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700882 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700883 out := protoimpl.TypeBuilder{
884 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700885 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700886 RawDescriptor: file_pb3_test_proto_rawDesc,
887 NumEnums: 2,
888 NumMessages: 12,
889 NumExtensions: 0,
890 NumServices: 0,
891 },
892 GoTypes: file_pb3_test_proto_goTypes,
893 DependencyIndexes: file_pb3_test_proto_depIdxs,
894 MessageInfos: file_pb3_test_proto_msgTypes,
895 }.Build()
896 File_pb3_test_proto = out.File
897 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700898 file_pb3_test_proto_rawDesc = nil
899 file_pb3_test_proto_goTypes = nil
900 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800901}