blob: 3bff060946995782a402360037a1804238388ed9 [file] [log] [blame]
Joe Tsai8d5e6d62019-08-06 01:15:48 -07001// Copyright 2018 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Test Protobuf definitions with proto3 syntax.
6
Herbie Ong8170d692019-02-13 14:13:21 -08007// Code generated by protoc-gen-go. DO NOT EDIT.
Joe Tsai19058432019-02-27 21:46:29 -08008// source: pb3/test.proto
Herbie Ong8170d692019-02-13 14:13:21 -08009
10package pb3
11
12import (
Damien Neile89e6242019-05-13 23:55:40 -070013 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neile89e6242019-05-13 23:55:40 -070014 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -070015 reflect "reflect"
Joe Tsai5d72cc22019-03-28 01:13:26 -070016 sync "sync"
Herbie Ong8170d692019-02-13 14:13:21 -080017)
18
Herbie Ong8170d692019-02-13 14:13:21 -080019type Enum int32
20
21const (
22 Enum_ZERO Enum = 0
23 Enum_ONE Enum = 1
24 Enum_TWO Enum = 2
25 Enum_TEN Enum = 10
26)
27
Joe Tsai9b8a4332019-08-05 18:38:48 -070028// Enum value maps for Enum.
29var (
30 Enum_name = map[int32]string{
31 0: "ZERO",
32 1: "ONE",
33 2: "TWO",
34 10: "TEN",
35 }
36 Enum_value = map[string]int32{
37 "ZERO": 0,
38 "ONE": 1,
39 "TWO": 2,
40 "TEN": 10,
41 }
42)
Herbie Ong8170d692019-02-13 14:13:21 -080043
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 {
Damien Neil4401a0d2019-08-06 15:26:36 -070055 return file_pb3_test_proto_enumTypes[0].Descriptor()
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
Joe Tsai9b8a4332019-08-05 18:38:48 -070080// Enum value maps for Enums_NestedEnum.
81var (
82 Enums_NestedEnum_name = map[int32]string{
83 0: "CERO",
84 1: "UNO",
85 2: "DOS",
86 10: "DIEZ",
87 }
88 Enums_NestedEnum_value = map[string]int32{
89 "CERO": 0,
90 "UNO": 1,
91 "DOS": 2,
92 "DIEZ": 10,
93 }
94)
Herbie Ong8170d692019-02-13 14:13:21 -080095
Joe Tsaidbab6c02019-05-14 15:06:03 -070096func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
97 p := new(Enums_NestedEnum)
98 *p = x
99 return p
100}
101
Herbie Ong8170d692019-02-13 14:13:21 -0800102func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700103 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800104}
105
Joe Tsai0fc49f82019-05-01 12:29:25 -0700106func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Damien Neil4401a0d2019-08-06 15:26:36 -0700107 return file_pb3_test_proto_enumTypes[1].Descriptor()
Joe Tsai0fc49f82019-05-01 12:29:25 -0700108}
109
Joe Tsaid4211502019-07-02 14:58:02 -0700110func (Enums_NestedEnum) Type() protoreflect.EnumType {
111 return &file_pb3_test_proto_enumTypes[1]
112}
113
Joe Tsai61968ce2019-04-01 12:59:24 -0700114func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
115 return protoreflect.EnumNumber(x)
116}
117
Joe Tsai43761bd2019-07-17 18:06:47 -0700118// Deprecated: Use Enums_NestedEnum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800119func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700120 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800121}
122
123// Scalars contains scalar field types.
124type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700125 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700126 sizeCache protoimpl.SizeCache
127 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700128
129 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
130 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
131 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
132 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
133 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
134 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
135 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
136 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
137 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
138 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
139 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
140 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
141 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
142 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
143 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800144}
145
Joe Tsai61968ce2019-04-01 12:59:24 -0700146func (x *Scalars) Reset() {
147 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800148}
Joe Tsai61968ce2019-04-01 12:59:24 -0700149
150func (x *Scalars) String() string {
151 return protoimpl.X.MessageStringOf(x)
152}
153
154func (*Scalars) ProtoMessage() {}
155
156func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700157 mi := &file_pb3_test_proto_msgTypes[0]
158 if protoimpl.UnsafeEnabled && x != nil {
159 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
160 if ms.LoadMessageInfo() == nil {
161 ms.StoreMessageInfo(mi)
162 }
163 return ms
164 }
165 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700166}
Joe Tsai8e506a82019-03-16 00:05:34 -0700167
Joe Tsai43761bd2019-07-17 18:06:47 -0700168// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800169func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700170 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800171}
172
Joe Tsai61968ce2019-04-01 12:59:24 -0700173func (x *Scalars) GetSBool() bool {
174 if x != nil {
175 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800176 }
177 return false
178}
179
Joe Tsai61968ce2019-04-01 12:59:24 -0700180func (x *Scalars) GetSInt32() int32 {
181 if x != nil {
182 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800183 }
184 return 0
185}
186
Joe Tsai61968ce2019-04-01 12:59:24 -0700187func (x *Scalars) GetSInt64() int64 {
188 if x != nil {
189 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800190 }
191 return 0
192}
193
Joe Tsai61968ce2019-04-01 12:59:24 -0700194func (x *Scalars) GetSUint32() uint32 {
195 if x != nil {
196 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800197 }
198 return 0
199}
200
Joe Tsai61968ce2019-04-01 12:59:24 -0700201func (x *Scalars) GetSUint64() uint64 {
202 if x != nil {
203 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800204 }
205 return 0
206}
207
Joe Tsai61968ce2019-04-01 12:59:24 -0700208func (x *Scalars) GetSSint32() int32 {
209 if x != nil {
210 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800211 }
212 return 0
213}
214
Joe Tsai61968ce2019-04-01 12:59:24 -0700215func (x *Scalars) GetSSint64() int64 {
216 if x != nil {
217 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800218 }
219 return 0
220}
221
Joe Tsai61968ce2019-04-01 12:59:24 -0700222func (x *Scalars) GetSFixed32() uint32 {
223 if x != nil {
224 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800225 }
226 return 0
227}
228
Joe Tsai61968ce2019-04-01 12:59:24 -0700229func (x *Scalars) GetSFixed64() uint64 {
230 if x != nil {
231 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800232 }
233 return 0
234}
235
Joe Tsai61968ce2019-04-01 12:59:24 -0700236func (x *Scalars) GetSSfixed32() int32 {
237 if x != nil {
238 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800239 }
240 return 0
241}
242
Joe Tsai61968ce2019-04-01 12:59:24 -0700243func (x *Scalars) GetSSfixed64() int64 {
244 if x != nil {
245 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800246 }
247 return 0
248}
249
Joe Tsai61968ce2019-04-01 12:59:24 -0700250func (x *Scalars) GetSFloat() float32 {
251 if x != nil {
252 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800253 }
254 return 0
255}
256
Joe Tsai61968ce2019-04-01 12:59:24 -0700257func (x *Scalars) GetSDouble() float64 {
258 if x != nil {
259 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800260 }
261 return 0
262}
263
Joe Tsai61968ce2019-04-01 12:59:24 -0700264func (x *Scalars) GetSBytes() []byte {
265 if x != nil {
266 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800267 }
268 return nil
269}
270
Joe Tsai61968ce2019-04-01 12:59:24 -0700271func (x *Scalars) GetSString() string {
272 if x != nil {
273 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800274 }
275 return ""
276}
277
278// Message contains enum fields.
279type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700280 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700281 sizeCache protoimpl.SizeCache
282 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700283
284 SEnum Enum `protobuf:"varint,1,opt,name=s_enum,json=sEnum,proto3,enum=pb3.Enum" json:"s_enum,omitempty"`
285 SNestedEnum Enums_NestedEnum `protobuf:"varint,3,opt,name=s_nested_enum,json=sNestedEnum,proto3,enum=pb3.Enums_NestedEnum" json:"s_nested_enum,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800286}
287
Joe Tsai61968ce2019-04-01 12:59:24 -0700288func (x *Enums) Reset() {
289 *x = Enums{}
Herbie Ong8170d692019-02-13 14:13:21 -0800290}
Joe Tsai61968ce2019-04-01 12:59:24 -0700291
292func (x *Enums) String() string {
293 return protoimpl.X.MessageStringOf(x)
294}
295
296func (*Enums) ProtoMessage() {}
297
298func (x *Enums) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700299 mi := &file_pb3_test_proto_msgTypes[1]
300 if protoimpl.UnsafeEnabled && x != nil {
301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
302 if ms.LoadMessageInfo() == nil {
303 ms.StoreMessageInfo(mi)
304 }
305 return ms
306 }
307 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700308}
Joe Tsai8e506a82019-03-16 00:05:34 -0700309
Joe Tsai43761bd2019-07-17 18:06:47 -0700310// Deprecated: Use Enums.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800311func (*Enums) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700312 return file_pb3_test_proto_rawDescGZIP(), []int{1}
Herbie Ong8170d692019-02-13 14:13:21 -0800313}
314
Joe Tsai61968ce2019-04-01 12:59:24 -0700315func (x *Enums) GetSEnum() Enum {
316 if x != nil {
317 return x.SEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800318 }
319 return Enum_ZERO
320}
321
Joe Tsai61968ce2019-04-01 12:59:24 -0700322func (x *Enums) GetSNestedEnum() Enums_NestedEnum {
323 if x != nil {
324 return x.SNestedEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800325 }
326 return Enums_CERO
327}
328
329// Message contains nested message field.
330type Nests struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700331 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700332 sizeCache protoimpl.SizeCache
333 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700334
335 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800336}
337
Joe Tsai61968ce2019-04-01 12:59:24 -0700338func (x *Nests) Reset() {
339 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800340}
Joe Tsai61968ce2019-04-01 12:59:24 -0700341
342func (x *Nests) String() string {
343 return protoimpl.X.MessageStringOf(x)
344}
345
346func (*Nests) ProtoMessage() {}
347
348func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700349 mi := &file_pb3_test_proto_msgTypes[2]
350 if protoimpl.UnsafeEnabled && x != nil {
351 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
352 if ms.LoadMessageInfo() == nil {
353 ms.StoreMessageInfo(mi)
354 }
355 return ms
356 }
357 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700358}
Joe Tsai8e506a82019-03-16 00:05:34 -0700359
Joe Tsai43761bd2019-07-17 18:06:47 -0700360// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800361func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700362 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800363}
364
Joe Tsai61968ce2019-04-01 12:59:24 -0700365func (x *Nests) GetSNested() *Nested {
366 if x != nil {
367 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800368 }
369 return nil
370}
371
372// Message type used as submessage.
373type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700374 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700375 sizeCache protoimpl.SizeCache
376 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700377
378 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
379 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800380}
381
Joe Tsai61968ce2019-04-01 12:59:24 -0700382func (x *Nested) Reset() {
383 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800384}
Joe Tsai61968ce2019-04-01 12:59:24 -0700385
386func (x *Nested) String() string {
387 return protoimpl.X.MessageStringOf(x)
388}
389
390func (*Nested) ProtoMessage() {}
391
392func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700393 mi := &file_pb3_test_proto_msgTypes[3]
394 if protoimpl.UnsafeEnabled && x != nil {
395 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
396 if ms.LoadMessageInfo() == nil {
397 ms.StoreMessageInfo(mi)
398 }
399 return ms
400 }
401 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700402}
Joe Tsai8e506a82019-03-16 00:05:34 -0700403
Joe Tsai43761bd2019-07-17 18:06:47 -0700404// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800405func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700406 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800407}
408
Joe Tsai61968ce2019-04-01 12:59:24 -0700409func (x *Nested) GetSString() string {
410 if x != nil {
411 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800412 }
413 return ""
414}
415
Joe Tsai61968ce2019-04-01 12:59:24 -0700416func (x *Nested) GetSNested() *Nested {
417 if x != nil {
418 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800419 }
420 return nil
421}
422
423// Message contains oneof field.
424type Oneofs struct {
Joe Tsai38b61962019-08-05 13:09:30 -0700425 state protoimpl.MessageState
426 sizeCache protoimpl.SizeCache
427 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700428
429 // Types that are assignable to Union:
Herbie Ong8170d692019-02-13 14:13:21 -0800430 // *Oneofs_OneofEnum
431 // *Oneofs_OneofString
432 // *Oneofs_OneofNested
Joe Tsai38b61962019-08-05 13:09:30 -0700433 Union isOneofs_Union `protobuf_oneof:"union"`
Herbie Ong8170d692019-02-13 14:13:21 -0800434}
435
Joe Tsai61968ce2019-04-01 12:59:24 -0700436func (x *Oneofs) Reset() {
437 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800438}
Joe Tsai61968ce2019-04-01 12:59:24 -0700439
440func (x *Oneofs) String() string {
441 return protoimpl.X.MessageStringOf(x)
442}
443
444func (*Oneofs) ProtoMessage() {}
445
446func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700447 mi := &file_pb3_test_proto_msgTypes[4]
448 if protoimpl.UnsafeEnabled && x != nil {
449 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
450 if ms.LoadMessageInfo() == nil {
451 ms.StoreMessageInfo(mi)
452 }
453 return ms
454 }
455 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700456}
Joe Tsai8e506a82019-03-16 00:05:34 -0700457
Joe Tsai43761bd2019-07-17 18:06:47 -0700458// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800459func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700460 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800461}
462
Herbie Ong8170d692019-02-13 14:13:21 -0800463func (m *Oneofs) GetUnion() isOneofs_Union {
464 if m != nil {
465 return m.Union
466 }
467 return nil
468}
469
Joe Tsai61968ce2019-04-01 12:59:24 -0700470func (x *Oneofs) GetOneofEnum() Enum {
471 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800472 return x.OneofEnum
473 }
474 return Enum_ZERO
475}
476
Joe Tsai61968ce2019-04-01 12:59:24 -0700477func (x *Oneofs) GetOneofString() string {
478 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800479 return x.OneofString
480 }
481 return ""
482}
483
Joe Tsai61968ce2019-04-01 12:59:24 -0700484func (x *Oneofs) GetOneofNested() *Nested {
485 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800486 return x.OneofNested
487 }
488 return nil
489}
490
Joe Tsai872b5002019-04-08 14:03:15 -0700491type isOneofs_Union interface {
492 isOneofs_Union()
493}
494
495type Oneofs_OneofEnum struct {
496 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
497}
498
499type Oneofs_OneofString struct {
500 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
501}
502
503type Oneofs_OneofNested struct {
504 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
505}
506
507func (*Oneofs_OneofEnum) isOneofs_Union() {}
508
509func (*Oneofs_OneofString) isOneofs_Union() {}
510
511func (*Oneofs_OneofNested) isOneofs_Union() {}
512
Herbie Ong8170d692019-02-13 14:13:21 -0800513// Message contains map fields.
514type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700515 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700516 sizeCache protoimpl.SizeCache
517 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700518
519 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"`
520 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"`
521 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"`
522 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"`
523 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"`
Herbie Ong8170d692019-02-13 14:13:21 -0800524}
525
Joe Tsai61968ce2019-04-01 12:59:24 -0700526func (x *Maps) Reset() {
527 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800528}
Joe Tsai61968ce2019-04-01 12:59:24 -0700529
530func (x *Maps) String() string {
531 return protoimpl.X.MessageStringOf(x)
532}
533
534func (*Maps) ProtoMessage() {}
535
536func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700537 mi := &file_pb3_test_proto_msgTypes[5]
538 if protoimpl.UnsafeEnabled && x != nil {
539 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
540 if ms.LoadMessageInfo() == nil {
541 ms.StoreMessageInfo(mi)
542 }
543 return ms
544 }
545 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700546}
Joe Tsai8e506a82019-03-16 00:05:34 -0700547
Joe Tsai43761bd2019-07-17 18:06:47 -0700548// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800549func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700550 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800551}
552
Joe Tsai61968ce2019-04-01 12:59:24 -0700553func (x *Maps) GetInt32ToStr() map[int32]string {
554 if x != nil {
555 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800556 }
557 return nil
558}
559
Joe Tsai61968ce2019-04-01 12:59:24 -0700560func (x *Maps) GetBoolToUint32() map[bool]uint32 {
561 if x != nil {
562 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800563 }
564 return nil
565}
566
Joe Tsai61968ce2019-04-01 12:59:24 -0700567func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
568 if x != nil {
569 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800570 }
571 return nil
572}
573
Joe Tsai61968ce2019-04-01 12:59:24 -0700574func (x *Maps) GetStrToNested() map[string]*Nested {
575 if x != nil {
576 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800577 }
578 return nil
579}
580
Joe Tsai61968ce2019-04-01 12:59:24 -0700581func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
582 if x != nil {
583 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800584 }
585 return nil
586}
587
Herbie Ong7b828bc2019-02-08 19:56:24 -0800588// Message for testing json_name option.
589type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700590 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700591 sizeCache protoimpl.SizeCache
592 unknownFields protoimpl.UnknownFields
Joe Tsai8d5e6d62019-08-06 01:15:48 -0700593
594 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800595}
596
Joe Tsai61968ce2019-04-01 12:59:24 -0700597func (x *JSONNames) Reset() {
598 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800599}
Joe Tsai61968ce2019-04-01 12:59:24 -0700600
601func (x *JSONNames) String() string {
602 return protoimpl.X.MessageStringOf(x)
603}
604
605func (*JSONNames) ProtoMessage() {}
606
607func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700608 mi := &file_pb3_test_proto_msgTypes[6]
609 if protoimpl.UnsafeEnabled && x != nil {
610 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
611 if ms.LoadMessageInfo() == nil {
612 ms.StoreMessageInfo(mi)
613 }
614 return ms
615 }
616 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700617}
Joe Tsai8e506a82019-03-16 00:05:34 -0700618
Joe Tsai43761bd2019-07-17 18:06:47 -0700619// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800620func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700621 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800622}
623
Joe Tsai61968ce2019-04-01 12:59:24 -0700624func (x *JSONNames) GetSString() string {
625 if x != nil {
626 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800627 }
628 return ""
629}
630
Joe Tsai5d72cc22019-03-28 01:13:26 -0700631var File_pb3_test_proto protoreflect.FileDescriptor
632
Joe Tsai7ca70982019-04-15 13:57:56 -0700633var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800634 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
635 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
636 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
637 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
638 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
639 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
640 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
641 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
642 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
643 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
644 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
645 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
646 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
647 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
648 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
649 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
650 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
651 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
652 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
653 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
654 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
655 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
656 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
657 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
658 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
659 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
660 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
661 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
662 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
663 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
664 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
665 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
666 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
667 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
668 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
669 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
670 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
671 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
672 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
673 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
674 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
675 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
676 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
677 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
678 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
679 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
680 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
681 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
682 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
683 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
684 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
685 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
686 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
687 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
688 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
689 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
690 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
691 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
692 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
693 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
694 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
695 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
696 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
697 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
698 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
699 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
700 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
701 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
702 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
703 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
704 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
705 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
706 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
707 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
708 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
709 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
710 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
711 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
712 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
713 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
714 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
715 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
716 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
717 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
718 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
719 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
720 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
721 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
722 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
723 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
724 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
725 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
726 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
727 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
728 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
729 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
730 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
731 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
732 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
733 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
734 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
735 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700736 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
737 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
738 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
739 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
740 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800741}
742
Joe Tsai5d72cc22019-03-28 01:13:26 -0700743var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700744 file_pb3_test_proto_rawDescOnce sync.Once
745 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700746)
Herbie Ong8170d692019-02-13 14:13:21 -0800747
Joe Tsai7ca70982019-04-15 13:57:56 -0700748func file_pb3_test_proto_rawDescGZIP() []byte {
749 file_pb3_test_proto_rawDescOnce.Do(func() {
750 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700751 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700752 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700753}
Herbie Ong8170d692019-02-13 14:13:21 -0800754
Damien Neil4401a0d2019-08-06 15:26:36 -0700755var file_pb3_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400756var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700757var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800758 (Enum)(0), // 0: pb3.Enum
759 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
760 (*Scalars)(nil), // 2: pb3.Scalars
761 (*Enums)(nil), // 3: pb3.Enums
762 (*Nests)(nil), // 4: pb3.Nests
763 (*Nested)(nil), // 5: pb3.Nested
764 (*Oneofs)(nil), // 6: pb3.Oneofs
765 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800766 (*JSONNames)(nil), // 8: pb3.JSONNames
767 nil, // 9: pb3.Maps.Int32ToStrEntry
768 nil, // 10: pb3.Maps.BoolToUint32Entry
769 nil, // 11: pb3.Maps.Uint64ToEnumEntry
770 nil, // 12: pb3.Maps.StrToNestedEntry
771 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800772}
Joe Tsai7ca70982019-04-15 13:57:56 -0700773var file_pb3_test_proto_depIdxs = []int32{
Joe Tsai73288392019-08-14 11:55:31 -0700774 0, // 0: pb3.Enums.s_enum:type_name -> pb3.Enum
775 1, // 1: pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
776 5, // 2: pb3.Nests.s_nested:type_name -> pb3.Nested
777 5, // 3: pb3.Nested.s_nested:type_name -> pb3.Nested
778 0, // 4: pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
779 5, // 5: pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
780 9, // 6: pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
781 10, // 7: pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
782 11, // 8: pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
783 12, // 9: pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
784 13, // 10: pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
785 0, // 11: pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
786 5, // 12: pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
787 6, // 13: pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
788 14, // [14:14] is the sub-list for method output_type
789 14, // [14:14] is the sub-list for method input_type
790 14, // [14:14] is the sub-list for extension type_name
791 14, // [14:14] is the sub-list for extension extendee
792 0, // [0:14] is the sub-list for field type_name
Herbie Ong8170d692019-02-13 14:13:21 -0800793}
794
Joe Tsai7ca70982019-04-15 13:57:56 -0700795func init() { file_pb3_test_proto_init() }
796func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800797 if File_pb3_test_proto != nil {
798 return
799 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700800 if !protoimpl.UnsafeEnabled {
801 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
802 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700803 case 0:
804 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700805 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700806 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700807 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700808 return &v.unknownFields
809 default:
810 return nil
811 }
812 }
813 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
814 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700815 case 0:
816 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700817 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700818 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700819 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700820 return &v.unknownFields
821 default:
822 return nil
823 }
824 }
825 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
826 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700827 case 0:
828 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700829 case 1:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700830 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700831 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700832 return &v.unknownFields
833 default:
834 return nil
835 }
836 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700837 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
838 switch v := v.(*Nested); i {
839 case 0:
840 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700841 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700842 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700843 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700844 return &v.unknownFields
845 default:
846 return nil
847 }
848 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700849 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
850 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700851 case 0:
852 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700853 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700854 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700855 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700856 return &v.unknownFields
857 default:
858 return nil
859 }
860 }
861 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
862 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700863 case 0:
864 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700865 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700866 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700867 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700868 return &v.unknownFields
869 default:
870 return nil
871 }
872 }
873 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
874 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700875 case 0:
876 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700877 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700878 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700879 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700880 return &v.unknownFields
881 default:
882 return nil
883 }
884 }
885 }
Joe Tsai09912272019-07-08 10:38:11 -0700886 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
887 (*Oneofs_OneofEnum)(nil),
888 (*Oneofs_OneofString)(nil),
889 (*Oneofs_OneofNested)(nil),
890 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700891 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700892 out := protoimpl.TypeBuilder{
893 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700894 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700895 RawDescriptor: file_pb3_test_proto_rawDesc,
896 NumEnums: 2,
897 NumMessages: 12,
898 NumExtensions: 0,
899 NumServices: 0,
900 },
901 GoTypes: file_pb3_test_proto_goTypes,
902 DependencyIndexes: file_pb3_test_proto_depIdxs,
Damien Neil4401a0d2019-08-06 15:26:36 -0700903 EnumInfos: file_pb3_test_proto_enumTypes,
Joe Tsaid8881392019-06-06 13:01:53 -0700904 MessageInfos: file_pb3_test_proto_msgTypes,
905 }.Build()
906 File_pb3_test_proto = out.File
Joe Tsai7ca70982019-04-15 13:57:56 -0700907 file_pb3_test_proto_rawDesc = nil
908 file_pb3_test_proto_goTypes = nil
909 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800910}