blob: aaa20e0faf58973c41c3ff661ddfa24e137b9ec7 [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 Tsai61968ce2019-04-01 12:59:24 -070057func (x Enum) Number() protoreflect.EnumNumber {
58 return protoreflect.EnumNumber(x)
59}
60
Joe Tsai8e506a82019-03-16 00:05:34 -070061// Deprecated: Use Enum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -080062func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070063 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080064}
65
66type Enums_NestedEnum int32
67
68const (
69 Enums_CERO Enums_NestedEnum = 0
70 Enums_UNO Enums_NestedEnum = 1
71 Enums_DOS Enums_NestedEnum = 2
72 Enums_DIEZ Enums_NestedEnum = 10
73)
74
Herbie Ong8170d692019-02-13 14:13:21 -080075var Enums_NestedEnum_name = map[int32]string{
76 0: "CERO",
77 1: "UNO",
78 2: "DOS",
79 10: "DIEZ",
80}
81
82var Enums_NestedEnum_value = map[string]int32{
83 "CERO": 0,
84 "UNO": 1,
85 "DOS": 2,
86 "DIEZ": 10,
87}
88
Joe Tsaidbab6c02019-05-14 15:06:03 -070089func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
90 p := new(Enums_NestedEnum)
91 *p = x
92 return p
93}
94
Herbie Ong8170d692019-02-13 14:13:21 -080095func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070096 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080097}
98
Joe Tsai0fc49f82019-05-01 12:29:25 -070099func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700100 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700101}
102
Joe Tsai61968ce2019-04-01 12:59:24 -0700103func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
104 return protoreflect.EnumNumber(x)
105}
106
Joe Tsai8e506a82019-03-16 00:05:34 -0700107// Deprecated: Use Enums_NestedEnum.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800108func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700109 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800110}
111
112// Scalars contains scalar field types.
113type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700114 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700115 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
116 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
117 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
118 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
119 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
120 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
121 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
122 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
123 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
124 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
125 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
126 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
127 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
128 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
129 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
130 sizeCache protoimpl.SizeCache
131 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800132}
133
Joe Tsai61968ce2019-04-01 12:59:24 -0700134func (x *Scalars) Reset() {
135 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800136}
Joe Tsai61968ce2019-04-01 12:59:24 -0700137
138func (x *Scalars) String() string {
139 return protoimpl.X.MessageStringOf(x)
140}
141
142func (*Scalars) ProtoMessage() {}
143
144func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700145 mi := &file_pb3_test_proto_msgTypes[0]
146 if protoimpl.UnsafeEnabled && x != nil {
147 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
148 if ms.LoadMessageInfo() == nil {
149 ms.StoreMessageInfo(mi)
150 }
151 return ms
152 }
153 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700154}
Joe Tsai8e506a82019-03-16 00:05:34 -0700155
156// Deprecated: Use Scalars.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800157func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700158 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800159}
160
Joe Tsai61968ce2019-04-01 12:59:24 -0700161func (x *Scalars) GetSBool() bool {
162 if x != nil {
163 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800164 }
165 return false
166}
167
Joe Tsai61968ce2019-04-01 12:59:24 -0700168func (x *Scalars) GetSInt32() int32 {
169 if x != nil {
170 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800171 }
172 return 0
173}
174
Joe Tsai61968ce2019-04-01 12:59:24 -0700175func (x *Scalars) GetSInt64() int64 {
176 if x != nil {
177 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800178 }
179 return 0
180}
181
Joe Tsai61968ce2019-04-01 12:59:24 -0700182func (x *Scalars) GetSUint32() uint32 {
183 if x != nil {
184 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800185 }
186 return 0
187}
188
Joe Tsai61968ce2019-04-01 12:59:24 -0700189func (x *Scalars) GetSUint64() uint64 {
190 if x != nil {
191 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800192 }
193 return 0
194}
195
Joe Tsai61968ce2019-04-01 12:59:24 -0700196func (x *Scalars) GetSSint32() int32 {
197 if x != nil {
198 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800199 }
200 return 0
201}
202
Joe Tsai61968ce2019-04-01 12:59:24 -0700203func (x *Scalars) GetSSint64() int64 {
204 if x != nil {
205 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800206 }
207 return 0
208}
209
Joe Tsai61968ce2019-04-01 12:59:24 -0700210func (x *Scalars) GetSFixed32() uint32 {
211 if x != nil {
212 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800213 }
214 return 0
215}
216
Joe Tsai61968ce2019-04-01 12:59:24 -0700217func (x *Scalars) GetSFixed64() uint64 {
218 if x != nil {
219 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800220 }
221 return 0
222}
223
Joe Tsai61968ce2019-04-01 12:59:24 -0700224func (x *Scalars) GetSSfixed32() int32 {
225 if x != nil {
226 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800227 }
228 return 0
229}
230
Joe Tsai61968ce2019-04-01 12:59:24 -0700231func (x *Scalars) GetSSfixed64() int64 {
232 if x != nil {
233 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800234 }
235 return 0
236}
237
Joe Tsai61968ce2019-04-01 12:59:24 -0700238func (x *Scalars) GetSFloat() float32 {
239 if x != nil {
240 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800241 }
242 return 0
243}
244
Joe Tsai61968ce2019-04-01 12:59:24 -0700245func (x *Scalars) GetSDouble() float64 {
246 if x != nil {
247 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800248 }
249 return 0
250}
251
Joe Tsai61968ce2019-04-01 12:59:24 -0700252func (x *Scalars) GetSBytes() []byte {
253 if x != nil {
254 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800255 }
256 return nil
257}
258
Joe Tsai61968ce2019-04-01 12:59:24 -0700259func (x *Scalars) GetSString() string {
260 if x != nil {
261 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800262 }
263 return ""
264}
265
266// Message contains enum fields.
267type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700268 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700269 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
270 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
271 sizeCache protoimpl.SizeCache
272 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800273}
274
Joe Tsai61968ce2019-04-01 12:59:24 -0700275func (x *Enums) Reset() {
276 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800277}
Joe Tsai61968ce2019-04-01 12:59:24 -0700278
279func (x *Enums) String() string {
280 return protoimpl.X.MessageStringOf(x)
281}
282
283func (*Enums) ProtoMessage() {}
284
285func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700286 mi := &file_pb3_test_proto_msgTypes[1]
287 if protoimpl.UnsafeEnabled && x != nil {
288 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
289 if ms.LoadMessageInfo() == nil {
290 ms.StoreMessageInfo(mi)
291 }
292 return ms
293 }
294 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700295}
Joe Tsai8e506a82019-03-16 00:05:34 -0700296
297// Deprecated: Use Enums.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800298func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700299 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800300}
301
Joe Tsai61968ce2019-04-01 12:59:24 -0700302func (x *Enums) GetSEnum() Enum {
303 if x != nil {
304 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800305 }
306 return Enum_ZERO
307}
308
Joe Tsai61968ce2019-04-01 12:59:24 -0700309func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
310 if x != nil {
311 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800312 }
313 return Enums_CERO
314}
315
316// Message contains nested message field.
317type Nests struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700318 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700319 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
320 sizeCache protoimpl.SizeCache
321 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800322}
323
Joe Tsai61968ce2019-04-01 12:59:24 -0700324func (x *Nests) Reset() {
325 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800326}
Joe Tsai61968ce2019-04-01 12:59:24 -0700327
328func (x *Nests) String() string {
329 return protoimpl.X.MessageStringOf(x)
330}
331
332func (*Nests) ProtoMessage() {}
333
334func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700335 mi := &file_pb3_test_proto_msgTypes[2]
336 if protoimpl.UnsafeEnabled && x != nil {
337 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
338 if ms.LoadMessageInfo() == nil {
339 ms.StoreMessageInfo(mi)
340 }
341 return ms
342 }
343 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700344}
Joe Tsai8e506a82019-03-16 00:05:34 -0700345
346// Deprecated: Use Nests.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800347func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700348 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800349}
350
Joe Tsai61968ce2019-04-01 12:59:24 -0700351func (x *Nests) GetSNested() *Nested {
352 if x != nil {
353 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800354 }
355 return nil
356}
357
358// Message type used as submessage.
359type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700360 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700361 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
362 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
363 sizeCache protoimpl.SizeCache
364 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800365}
366
Joe Tsai61968ce2019-04-01 12:59:24 -0700367func (x *Nested) Reset() {
368 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800369}
Joe Tsai61968ce2019-04-01 12:59:24 -0700370
371func (x *Nested) String() string {
372 return protoimpl.X.MessageStringOf(x)
373}
374
375func (*Nested) ProtoMessage() {}
376
377func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700378 mi := &file_pb3_test_proto_msgTypes[3]
379 if protoimpl.UnsafeEnabled && x != nil {
380 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
381 if ms.LoadMessageInfo() == nil {
382 ms.StoreMessageInfo(mi)
383 }
384 return ms
385 }
386 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700387}
Joe Tsai8e506a82019-03-16 00:05:34 -0700388
389// Deprecated: Use Nested.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800390func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700391 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800392}
393
Joe Tsai61968ce2019-04-01 12:59:24 -0700394func (x *Nested) GetSString() string {
395 if x != nil {
396 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800397 }
398 return ""
399}
400
Joe Tsai61968ce2019-04-01 12:59:24 -0700401func (x *Nested) GetSNested() *Nested {
402 if x != nil {
403 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800404 }
405 return nil
406}
407
408// Message contains oneof field.
409type Oneofs struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700410 state protoimpl.MessageState
Herbie Ong8170d692019-02-13 14:13:21 -0800411 // Types that are valid to be assigned to Union:
412 // *Oneofs_OneofEnum
413 // *Oneofs_OneofString
414 // *Oneofs_OneofNested
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700415 Union isOneofs_Union `protobuf_oneof:"union"`
416 sizeCache protoimpl.SizeCache
417 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800418}
419
Joe Tsai61968ce2019-04-01 12:59:24 -0700420func (x *Oneofs) Reset() {
421 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800422}
Joe Tsai61968ce2019-04-01 12:59:24 -0700423
424func (x *Oneofs) String() string {
425 return protoimpl.X.MessageStringOf(x)
426}
427
428func (*Oneofs) ProtoMessage() {}
429
430func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700431 mi := &file_pb3_test_proto_msgTypes[4]
432 if protoimpl.UnsafeEnabled && x != nil {
433 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
434 if ms.LoadMessageInfo() == nil {
435 ms.StoreMessageInfo(mi)
436 }
437 return ms
438 }
439 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700440}
Joe Tsai8e506a82019-03-16 00:05:34 -0700441
442// Deprecated: Use Oneofs.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800443func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700444 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800445}
446
Herbie Ong8170d692019-02-13 14:13:21 -0800447func (m *Oneofs) GetUnion() isOneofs_Union {
448 if m != nil {
449 return m.Union
450 }
451 return nil
452}
453
Joe Tsai61968ce2019-04-01 12:59:24 -0700454func (x *Oneofs) GetOneofEnum() Enum {
455 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800456 return x.OneofEnum
457 }
458 return Enum_ZERO
459}
460
Joe Tsai61968ce2019-04-01 12:59:24 -0700461func (x *Oneofs) GetOneofString() string {
462 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800463 return x.OneofString
464 }
465 return ""
466}
467
Joe Tsai61968ce2019-04-01 12:59:24 -0700468func (x *Oneofs) GetOneofNested() *Nested {
469 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800470 return x.OneofNested
471 }
472 return nil
473}
474
Joe Tsai872b5002019-04-08 14:03:15 -0700475type isOneofs_Union interface {
476 isOneofs_Union()
477}
478
479type Oneofs_OneofEnum struct {
480 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
481}
482
483type Oneofs_OneofString struct {
484 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
485}
486
487type Oneofs_OneofNested struct {
488 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
489}
490
491func (*Oneofs_OneofEnum) isOneofs_Union() {}
492
493func (*Oneofs_OneofString) isOneofs_Union() {}
494
495func (*Oneofs_OneofNested) isOneofs_Union() {}
496
Herbie Ong8170d692019-02-13 14:13:21 -0800497// Message contains map fields.
498type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700499 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700500 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"`
501 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"`
502 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"`
503 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"`
504 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"`
505 sizeCache protoimpl.SizeCache
506 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800507}
508
Joe Tsai61968ce2019-04-01 12:59:24 -0700509func (x *Maps) Reset() {
510 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800511}
Joe Tsai61968ce2019-04-01 12:59:24 -0700512
513func (x *Maps) String() string {
514 return protoimpl.X.MessageStringOf(x)
515}
516
517func (*Maps) ProtoMessage() {}
518
519func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700520 mi := &file_pb3_test_proto_msgTypes[5]
521 if protoimpl.UnsafeEnabled && x != nil {
522 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
523 if ms.LoadMessageInfo() == nil {
524 ms.StoreMessageInfo(mi)
525 }
526 return ms
527 }
528 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700529}
Joe Tsai8e506a82019-03-16 00:05:34 -0700530
531// Deprecated: Use Maps.ProtoReflect.Type instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800532func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700533 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800534}
535
Joe Tsai61968ce2019-04-01 12:59:24 -0700536func (x *Maps) GetInt32ToStr() map[int32]string {
537 if x != nil {
538 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800539 }
540 return nil
541}
542
Joe Tsai61968ce2019-04-01 12:59:24 -0700543func (x *Maps) GetBoolToUint32() map[bool]uint32 {
544 if x != nil {
545 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800546 }
547 return nil
548}
549
Joe Tsai61968ce2019-04-01 12:59:24 -0700550func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
551 if x != nil {
552 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800553 }
554 return nil
555}
556
Joe Tsai61968ce2019-04-01 12:59:24 -0700557func (x *Maps) GetStrToNested() map[string]*Nested {
558 if x != nil {
559 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800560 }
561 return nil
562}
563
Joe Tsai61968ce2019-04-01 12:59:24 -0700564func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
565 if x != nil {
566 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800567 }
568 return nil
569}
570
Herbie Ong7b828bc2019-02-08 19:56:24 -0800571// Message for testing json_name option.
572type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700573 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700574 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
575 sizeCache protoimpl.SizeCache
576 unknownFields protoimpl.UnknownFields
Herbie Ong7b828bc2019-02-08 19:56:24 -0800577}
578
Joe Tsai61968ce2019-04-01 12:59:24 -0700579func (x *JSONNames) Reset() {
580 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800581}
Joe Tsai61968ce2019-04-01 12:59:24 -0700582
583func (x *JSONNames) String() string {
584 return protoimpl.X.MessageStringOf(x)
585}
586
587func (*JSONNames) ProtoMessage() {}
588
589func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700590 mi := &file_pb3_test_proto_msgTypes[6]
591 if protoimpl.UnsafeEnabled && x != nil {
592 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
593 if ms.LoadMessageInfo() == nil {
594 ms.StoreMessageInfo(mi)
595 }
596 return ms
597 }
598 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700599}
Joe Tsai8e506a82019-03-16 00:05:34 -0700600
601// Deprecated: Use JSONNames.ProtoReflect.Type instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800602func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700603 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800604}
605
Joe Tsai61968ce2019-04-01 12:59:24 -0700606func (x *JSONNames) GetSString() string {
607 if x != nil {
608 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800609 }
610 return ""
611}
612
Joe Tsai5d72cc22019-03-28 01:13:26 -0700613var File_pb3_test_proto protoreflect.FileDescriptor
614
Joe Tsai7ca70982019-04-15 13:57:56 -0700615var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800616 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
617 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
618 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
619 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
620 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
621 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
622 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
623 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
624 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
625 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
626 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
627 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
628 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
629 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
630 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
631 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
632 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
633 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
634 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
635 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
636 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
637 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
638 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
639 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
640 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
641 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
642 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
643 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
644 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
645 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
646 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
647 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
648 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
649 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
650 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
651 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
652 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
653 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
654 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
655 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
656 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
657 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
658 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
659 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
660 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
661 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
662 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
663 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
664 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
665 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
666 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
667 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
668 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
669 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
670 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
671 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
672 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
673 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
674 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
675 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
676 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
677 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
678 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
679 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
680 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
681 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
682 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
683 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
684 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
685 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
686 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
687 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
688 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
689 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
690 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
691 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
692 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
693 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
694 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
695 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
696 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
697 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
698 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
699 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
700 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
701 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
702 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
703 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
704 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
705 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
706 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
707 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
708 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
709 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
710 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
711 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
712 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
713 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
714 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
715 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
716 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
717 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700718 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
719 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
720 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
721 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
722 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800723}
724
Joe Tsai5d72cc22019-03-28 01:13:26 -0700725var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700726 file_pb3_test_proto_rawDescOnce sync.Once
727 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700728)
Herbie Ong8170d692019-02-13 14:13:21 -0800729
Joe Tsai7ca70982019-04-15 13:57:56 -0700730func file_pb3_test_proto_rawDescGZIP() []byte {
731 file_pb3_test_proto_rawDescOnce.Do(func() {
732 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700733 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700734 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700735}
Herbie Ong8170d692019-02-13 14:13:21 -0800736
Joe Tsaid8881392019-06-06 13:01:53 -0700737var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400738var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700739var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800740 (Enum)(0), // 0: pb3.Enum
741 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
742 (*Scalars)(nil), // 2: pb3.Scalars
743 (*Enums)(nil), // 3: pb3.Enums
744 (*Nests)(nil), // 4: pb3.Nests
745 (*Nested)(nil), // 5: pb3.Nested
746 (*Oneofs)(nil), // 6: pb3.Oneofs
747 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800748 (*JSONNames)(nil), // 8: pb3.JSONNames
749 nil, // 9: pb3.Maps.Int32ToStrEntry
750 nil, // 10: pb3.Maps.BoolToUint32Entry
751 nil, // 11: pb3.Maps.Uint64ToEnumEntry
752 nil, // 12: pb3.Maps.StrToNestedEntry
753 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800754}
Joe Tsai7ca70982019-04-15 13:57:56 -0700755var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800756 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
757 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
758 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
759 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
760 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
761 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800762 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
763 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
764 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
765 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
766 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800767 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
768 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
769 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700770 14, // starting offset of method output_type sub-list
771 14, // starting offset of method input_type sub-list
772 14, // starting offset of extension type_name sub-list
773 14, // starting offset of extension extendee sub-list
774 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800775}
776
Joe Tsai7ca70982019-04-15 13:57:56 -0700777func init() { file_pb3_test_proto_init() }
778func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800779 if File_pb3_test_proto != nil {
780 return
781 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700782 if !protoimpl.UnsafeEnabled {
783 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
784 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700785 case 0:
786 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700787 case 16:
Joe Tsai82760ce2019-06-20 03:09:57 -0700788 return &v.sizeCache
789 case 17:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700790 return &v.unknownFields
791 default:
792 return nil
793 }
794 }
795 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
796 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700797 case 0:
798 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700799 case 3:
Joe Tsai82760ce2019-06-20 03:09:57 -0700800 return &v.sizeCache
801 case 4:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700802 return &v.unknownFields
803 default:
804 return nil
805 }
806 }
807 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
808 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700809 case 0:
810 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700811 case 2:
812 return &v.sizeCache
813 case 3:
814 return &v.unknownFields
815 default:
816 return nil
817 }
818 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700819 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
820 switch v := v.(*Nested); i {
821 case 0:
822 return &v.state
823 case 3:
824 return &v.sizeCache
825 case 4:
826 return &v.unknownFields
827 default:
828 return nil
829 }
830 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700831 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
832 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700833 case 0:
834 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700835 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700836 return &v.sizeCache
837 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700838 return &v.unknownFields
839 default:
840 return nil
841 }
842 }
843 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
844 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700845 case 0:
846 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700847 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700848 return &v.sizeCache
849 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700850 return &v.unknownFields
851 default:
852 return nil
853 }
854 }
855 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
856 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700857 case 0:
858 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700859 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700860 return &v.sizeCache
861 case 3:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700862 return &v.unknownFields
863 default:
864 return nil
865 }
866 }
867 }
Joe Tsai09912272019-07-08 10:38:11 -0700868 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
869 (*Oneofs_OneofEnum)(nil),
870 (*Oneofs_OneofString)(nil),
871 (*Oneofs_OneofNested)(nil),
872 }
Joe Tsaid8881392019-06-06 13:01:53 -0700873 out := protoimpl.TypeBuilder{
874 File: protoimpl.DescBuilder{
875 RawDescriptor: file_pb3_test_proto_rawDesc,
876 NumEnums: 2,
877 NumMessages: 12,
878 NumExtensions: 0,
879 NumServices: 0,
880 },
881 GoTypes: file_pb3_test_proto_goTypes,
882 DependencyIndexes: file_pb3_test_proto_depIdxs,
883 MessageInfos: file_pb3_test_proto_msgTypes,
884 }.Build()
885 File_pb3_test_proto = out.File
886 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700887 file_pb3_test_proto_rawDesc = nil
888 file_pb3_test_proto_goTypes = nil
889 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800890}