blob: 416faf13a28aaa915d540e9ebfea04de645bf562 [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
Joe Tsai9b8a4332019-08-05 18:38:48 -070030// Enum value maps for Enum.
31var (
32 Enum_name = map[int32]string{
33 0: "ZERO",
34 1: "ONE",
35 2: "TWO",
36 10: "TEN",
37 }
38 Enum_value = map[string]int32{
39 "ZERO": 0,
40 "ONE": 1,
41 "TWO": 2,
42 "TEN": 10,
43 }
44)
Herbie Ong8170d692019-02-13 14:13:21 -080045
Joe Tsaidbab6c02019-05-14 15:06:03 -070046func (x Enum) Enum() *Enum {
47 p := new(Enum)
48 *p = x
49 return p
50}
51
Herbie Ong8170d692019-02-13 14:13:21 -080052func (x Enum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -070053 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -080054}
55
Joe Tsai0fc49f82019-05-01 12:29:25 -070056func (Enum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -070057 return file_pb3_test_proto_enumTypes[0].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -070058}
59
Joe Tsaid4211502019-07-02 14:58:02 -070060func (Enum) Type() protoreflect.EnumType {
61 return &file_pb3_test_proto_enumTypes[0]
62}
63
Joe Tsai61968ce2019-04-01 12:59:24 -070064func (x Enum) Number() protoreflect.EnumNumber {
65 return protoreflect.EnumNumber(x)
66}
67
Joe Tsai43761bd2019-07-17 18:06:47 -070068// Deprecated: Use Enum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -080069func (Enum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -070070 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -080071}
72
73type Enums_NestedEnum int32
74
75const (
76 Enums_CERO Enums_NestedEnum = 0
77 Enums_UNO Enums_NestedEnum = 1
78 Enums_DOS Enums_NestedEnum = 2
79 Enums_DIEZ Enums_NestedEnum = 10
80)
81
Joe Tsai9b8a4332019-08-05 18:38:48 -070082// Enum value maps for Enums_NestedEnum.
83var (
84 Enums_NestedEnum_name = map[int32]string{
85 0: "CERO",
86 1: "UNO",
87 2: "DOS",
88 10: "DIEZ",
89 }
90 Enums_NestedEnum_value = map[string]int32{
91 "CERO": 0,
92 "UNO": 1,
93 "DOS": 2,
94 "DIEZ": 10,
95 }
96)
Herbie Ong8170d692019-02-13 14:13:21 -080097
Joe Tsaidbab6c02019-05-14 15:06:03 -070098func (x Enums_NestedEnum) Enum() *Enums_NestedEnum {
99 p := new(Enums_NestedEnum)
100 *p = x
101 return p
102}
103
Herbie Ong8170d692019-02-13 14:13:21 -0800104func (x Enums_NestedEnum) String() string {
Joe Tsai0fc49f82019-05-01 12:29:25 -0700105 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
Herbie Ong8170d692019-02-13 14:13:21 -0800106}
107
Joe Tsai0fc49f82019-05-01 12:29:25 -0700108func (Enums_NestedEnum) Descriptor() protoreflect.EnumDescriptor {
Joe Tsaid8881392019-06-06 13:01:53 -0700109 return file_pb3_test_proto_enumTypes[1].EnumDescriptor
Joe Tsai0fc49f82019-05-01 12:29:25 -0700110}
111
Joe Tsaid4211502019-07-02 14:58:02 -0700112func (Enums_NestedEnum) Type() protoreflect.EnumType {
113 return &file_pb3_test_proto_enumTypes[1]
114}
115
Joe Tsai61968ce2019-04-01 12:59:24 -0700116func (x Enums_NestedEnum) Number() protoreflect.EnumNumber {
117 return protoreflect.EnumNumber(x)
118}
119
Joe Tsai43761bd2019-07-17 18:06:47 -0700120// Deprecated: Use Enums_NestedEnum.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800121func (Enums_NestedEnum) EnumDescriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700122 return file_pb3_test_proto_rawDescGZIP(), []int{1, 0}
Herbie Ong8170d692019-02-13 14:13:21 -0800123}
124
125// Scalars contains scalar field types.
126type Scalars struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700127 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700128 sizeCache protoimpl.SizeCache
129 unknownFields protoimpl.UnknownFields
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700130 SBool bool `protobuf:"varint,1,opt,name=s_bool,json=sBool,proto3" json:"s_bool,omitempty"`
131 SInt32 int32 `protobuf:"varint,2,opt,name=s_int32,json=sInt32,proto3" json:"s_int32,omitempty"`
132 SInt64 int64 `protobuf:"varint,3,opt,name=s_int64,json=sInt64,proto3" json:"s_int64,omitempty"`
133 SUint32 uint32 `protobuf:"varint,4,opt,name=s_uint32,json=sUint32,proto3" json:"s_uint32,omitempty"`
134 SUint64 uint64 `protobuf:"varint,5,opt,name=s_uint64,json=sUint64,proto3" json:"s_uint64,omitempty"`
135 SSint32 int32 `protobuf:"zigzag32,6,opt,name=s_sint32,json=sSint32,proto3" json:"s_sint32,omitempty"`
136 SSint64 int64 `protobuf:"zigzag64,7,opt,name=s_sint64,json=sSint64,proto3" json:"s_sint64,omitempty"`
137 SFixed32 uint32 `protobuf:"fixed32,8,opt,name=s_fixed32,json=sFixed32,proto3" json:"s_fixed32,omitempty"`
138 SFixed64 uint64 `protobuf:"fixed64,9,opt,name=s_fixed64,json=sFixed64,proto3" json:"s_fixed64,omitempty"`
139 SSfixed32 int32 `protobuf:"fixed32,10,opt,name=s_sfixed32,json=sSfixed32,proto3" json:"s_sfixed32,omitempty"`
140 SSfixed64 int64 `protobuf:"fixed64,11,opt,name=s_sfixed64,json=sSfixed64,proto3" json:"s_sfixed64,omitempty"`
141 SFloat float32 `protobuf:"fixed32,20,opt,name=s_float,json=sFloat,proto3" json:"s_float,omitempty"`
142 SDouble float64 `protobuf:"fixed64,21,opt,name=s_double,json=sDouble,proto3" json:"s_double,omitempty"`
143 SBytes []byte `protobuf:"bytes,14,opt,name=s_bytes,json=sBytes,proto3" json:"s_bytes,omitempty"`
144 SString string `protobuf:"bytes,13,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800145}
146
Joe Tsai61968ce2019-04-01 12:59:24 -0700147func (x *Scalars) Reset() {
148 *x = Scalars{}
Herbie Ong8170d692019-02-13 14:13:21 -0800149}
Joe Tsai61968ce2019-04-01 12:59:24 -0700150
151func (x *Scalars) String() string {
152 return protoimpl.X.MessageStringOf(x)
153}
154
155func (*Scalars) ProtoMessage() {}
156
157func (x *Scalars) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700158 mi := &file_pb3_test_proto_msgTypes[0]
159 if protoimpl.UnsafeEnabled && x != nil {
160 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
161 if ms.LoadMessageInfo() == nil {
162 ms.StoreMessageInfo(mi)
163 }
164 return ms
165 }
166 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700167}
Joe Tsai8e506a82019-03-16 00:05:34 -0700168
Joe Tsai43761bd2019-07-17 18:06:47 -0700169// Deprecated: Use Scalars.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800170func (*Scalars) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700171 return file_pb3_test_proto_rawDescGZIP(), []int{0}
Herbie Ong8170d692019-02-13 14:13:21 -0800172}
173
Joe Tsai61968ce2019-04-01 12:59:24 -0700174func (x *Scalars) GetSBool() bool {
175 if x != nil {
176 return x.SBool
Herbie Ong8170d692019-02-13 14:13:21 -0800177 }
178 return false
179}
180
Joe Tsai61968ce2019-04-01 12:59:24 -0700181func (x *Scalars) GetSInt32() int32 {
182 if x != nil {
183 return x.SInt32
Herbie Ong8170d692019-02-13 14:13:21 -0800184 }
185 return 0
186}
187
Joe Tsai61968ce2019-04-01 12:59:24 -0700188func (x *Scalars) GetSInt64() int64 {
189 if x != nil {
190 return x.SInt64
Herbie Ong8170d692019-02-13 14:13:21 -0800191 }
192 return 0
193}
194
Joe Tsai61968ce2019-04-01 12:59:24 -0700195func (x *Scalars) GetSUint32() uint32 {
196 if x != nil {
197 return x.SUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800198 }
199 return 0
200}
201
Joe Tsai61968ce2019-04-01 12:59:24 -0700202func (x *Scalars) GetSUint64() uint64 {
203 if x != nil {
204 return x.SUint64
Herbie Ong8170d692019-02-13 14:13:21 -0800205 }
206 return 0
207}
208
Joe Tsai61968ce2019-04-01 12:59:24 -0700209func (x *Scalars) GetSSint32() int32 {
210 if x != nil {
211 return x.SSint32
Herbie Ong8170d692019-02-13 14:13:21 -0800212 }
213 return 0
214}
215
Joe Tsai61968ce2019-04-01 12:59:24 -0700216func (x *Scalars) GetSSint64() int64 {
217 if x != nil {
218 return x.SSint64
Herbie Ong8170d692019-02-13 14:13:21 -0800219 }
220 return 0
221}
222
Joe Tsai61968ce2019-04-01 12:59:24 -0700223func (x *Scalars) GetSFixed32() uint32 {
224 if x != nil {
225 return x.SFixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800226 }
227 return 0
228}
229
Joe Tsai61968ce2019-04-01 12:59:24 -0700230func (x *Scalars) GetSFixed64() uint64 {
231 if x != nil {
232 return x.SFixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800233 }
234 return 0
235}
236
Joe Tsai61968ce2019-04-01 12:59:24 -0700237func (x *Scalars) GetSSfixed32() int32 {
238 if x != nil {
239 return x.SSfixed32
Herbie Ong8170d692019-02-13 14:13:21 -0800240 }
241 return 0
242}
243
Joe Tsai61968ce2019-04-01 12:59:24 -0700244func (x *Scalars) GetSSfixed64() int64 {
245 if x != nil {
246 return x.SSfixed64
Herbie Ong8170d692019-02-13 14:13:21 -0800247 }
248 return 0
249}
250
Joe Tsai61968ce2019-04-01 12:59:24 -0700251func (x *Scalars) GetSFloat() float32 {
252 if x != nil {
253 return x.SFloat
Herbie Ong8170d692019-02-13 14:13:21 -0800254 }
255 return 0
256}
257
Joe Tsai61968ce2019-04-01 12:59:24 -0700258func (x *Scalars) GetSDouble() float64 {
259 if x != nil {
260 return x.SDouble
Herbie Ong8170d692019-02-13 14:13:21 -0800261 }
262 return 0
263}
264
Joe Tsai61968ce2019-04-01 12:59:24 -0700265func (x *Scalars) GetSBytes() []byte {
266 if x != nil {
267 return x.SBytes
Herbie Ong8170d692019-02-13 14:13:21 -0800268 }
269 return nil
270}
271
Joe Tsai61968ce2019-04-01 12:59:24 -0700272func (x *Scalars) GetSString() string {
273 if x != nil {
274 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800275 }
276 return ""
277}
278
279// Message contains enum fields.
280type Enums struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700281 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700282 sizeCache protoimpl.SizeCache
283 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -0700284 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 Tsai38b61962019-08-05 13:09:30 -0700334 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800335}
336
Joe Tsai61968ce2019-04-01 12:59:24 -0700337func (x *Nests) Reset() {
338 *x = Nests{}
Herbie Ong8170d692019-02-13 14:13:21 -0800339}
Joe Tsai61968ce2019-04-01 12:59:24 -0700340
341func (x *Nests) String() string {
342 return protoimpl.X.MessageStringOf(x)
343}
344
345func (*Nests) ProtoMessage() {}
346
347func (x *Nests) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700348 mi := &file_pb3_test_proto_msgTypes[2]
349 if protoimpl.UnsafeEnabled && x != nil {
350 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
351 if ms.LoadMessageInfo() == nil {
352 ms.StoreMessageInfo(mi)
353 }
354 return ms
355 }
356 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700357}
Joe Tsai8e506a82019-03-16 00:05:34 -0700358
Joe Tsai43761bd2019-07-17 18:06:47 -0700359// Deprecated: Use Nests.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800360func (*Nests) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700361 return file_pb3_test_proto_rawDescGZIP(), []int{2}
Herbie Ong8170d692019-02-13 14:13:21 -0800362}
363
Joe Tsai61968ce2019-04-01 12:59:24 -0700364func (x *Nests) GetSNested() *Nested {
365 if x != nil {
366 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800367 }
368 return nil
369}
370
371// Message type used as submessage.
372type Nested struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700373 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700374 sizeCache protoimpl.SizeCache
375 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -0700376 SString string `protobuf:"bytes,1,opt,name=s_string,json=sString,proto3" json:"s_string,omitempty"`
377 SNested *Nested `protobuf:"bytes,2,opt,name=s_nested,json=sNested,proto3" json:"s_nested,omitempty"`
Herbie Ong8170d692019-02-13 14:13:21 -0800378}
379
Joe Tsai61968ce2019-04-01 12:59:24 -0700380func (x *Nested) Reset() {
381 *x = Nested{}
Herbie Ong8170d692019-02-13 14:13:21 -0800382}
Joe Tsai61968ce2019-04-01 12:59:24 -0700383
384func (x *Nested) String() string {
385 return protoimpl.X.MessageStringOf(x)
386}
387
388func (*Nested) ProtoMessage() {}
389
390func (x *Nested) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700391 mi := &file_pb3_test_proto_msgTypes[3]
392 if protoimpl.UnsafeEnabled && x != nil {
393 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
394 if ms.LoadMessageInfo() == nil {
395 ms.StoreMessageInfo(mi)
396 }
397 return ms
398 }
399 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700400}
Joe Tsai8e506a82019-03-16 00:05:34 -0700401
Joe Tsai43761bd2019-07-17 18:06:47 -0700402// Deprecated: Use Nested.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800403func (*Nested) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700404 return file_pb3_test_proto_rawDescGZIP(), []int{3}
Herbie Ong8170d692019-02-13 14:13:21 -0800405}
406
Joe Tsai61968ce2019-04-01 12:59:24 -0700407func (x *Nested) GetSString() string {
408 if x != nil {
409 return x.SString
Herbie Ong8170d692019-02-13 14:13:21 -0800410 }
411 return ""
412}
413
Joe Tsai61968ce2019-04-01 12:59:24 -0700414func (x *Nested) GetSNested() *Nested {
415 if x != nil {
416 return x.SNested
Herbie Ong8170d692019-02-13 14:13:21 -0800417 }
418 return nil
419}
420
421// Message contains oneof field.
422type Oneofs struct {
Joe Tsai38b61962019-08-05 13:09:30 -0700423 state protoimpl.MessageState
424 sizeCache protoimpl.SizeCache
425 unknownFields protoimpl.UnknownFields
Herbie Ong8170d692019-02-13 14:13:21 -0800426 // Types that are valid to be assigned to Union:
427 // *Oneofs_OneofEnum
428 // *Oneofs_OneofString
429 // *Oneofs_OneofNested
Joe Tsai38b61962019-08-05 13:09:30 -0700430 Union isOneofs_Union `protobuf_oneof:"union"`
Herbie Ong8170d692019-02-13 14:13:21 -0800431}
432
Joe Tsai61968ce2019-04-01 12:59:24 -0700433func (x *Oneofs) Reset() {
434 *x = Oneofs{}
Herbie Ong8170d692019-02-13 14:13:21 -0800435}
Joe Tsai61968ce2019-04-01 12:59:24 -0700436
437func (x *Oneofs) String() string {
438 return protoimpl.X.MessageStringOf(x)
439}
440
441func (*Oneofs) ProtoMessage() {}
442
443func (x *Oneofs) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700444 mi := &file_pb3_test_proto_msgTypes[4]
445 if protoimpl.UnsafeEnabled && x != nil {
446 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
447 if ms.LoadMessageInfo() == nil {
448 ms.StoreMessageInfo(mi)
449 }
450 return ms
451 }
452 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700453}
Joe Tsai8e506a82019-03-16 00:05:34 -0700454
Joe Tsai43761bd2019-07-17 18:06:47 -0700455// Deprecated: Use Oneofs.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800456func (*Oneofs) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700457 return file_pb3_test_proto_rawDescGZIP(), []int{4}
Herbie Ong8170d692019-02-13 14:13:21 -0800458}
459
Herbie Ong8170d692019-02-13 14:13:21 -0800460func (m *Oneofs) GetUnion() isOneofs_Union {
461 if m != nil {
462 return m.Union
463 }
464 return nil
465}
466
Joe Tsai61968ce2019-04-01 12:59:24 -0700467func (x *Oneofs) GetOneofEnum() Enum {
468 if x, ok := x.GetUnion().(*Oneofs_OneofEnum); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800469 return x.OneofEnum
470 }
471 return Enum_ZERO
472}
473
Joe Tsai61968ce2019-04-01 12:59:24 -0700474func (x *Oneofs) GetOneofString() string {
475 if x, ok := x.GetUnion().(*Oneofs_OneofString); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800476 return x.OneofString
477 }
478 return ""
479}
480
Joe Tsai61968ce2019-04-01 12:59:24 -0700481func (x *Oneofs) GetOneofNested() *Nested {
482 if x, ok := x.GetUnion().(*Oneofs_OneofNested); ok {
Herbie Ong8170d692019-02-13 14:13:21 -0800483 return x.OneofNested
484 }
485 return nil
486}
487
Joe Tsai872b5002019-04-08 14:03:15 -0700488type isOneofs_Union interface {
489 isOneofs_Union()
490}
491
492type Oneofs_OneofEnum struct {
493 OneofEnum Enum `protobuf:"varint,1,opt,name=oneof_enum,json=oneofEnum,proto3,enum=pb3.Enum,oneof"`
494}
495
496type Oneofs_OneofString struct {
497 OneofString string `protobuf:"bytes,2,opt,name=oneof_string,json=oneofString,proto3,oneof"`
498}
499
500type Oneofs_OneofNested struct {
501 OneofNested *Nested `protobuf:"bytes,3,opt,name=oneof_nested,json=oneofNested,proto3,oneof"`
502}
503
504func (*Oneofs_OneofEnum) isOneofs_Union() {}
505
506func (*Oneofs_OneofString) isOneofs_Union() {}
507
508func (*Oneofs_OneofNested) isOneofs_Union() {}
509
Herbie Ong8170d692019-02-13 14:13:21 -0800510// Message contains map fields.
511type Maps struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700512 state protoimpl.MessageState
Joe Tsai38b61962019-08-05 13:09:30 -0700513 sizeCache protoimpl.SizeCache
514 unknownFields protoimpl.UnknownFields
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700515 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"`
516 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"`
517 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"`
518 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"`
519 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 -0800520}
521
Joe Tsai61968ce2019-04-01 12:59:24 -0700522func (x *Maps) Reset() {
523 *x = Maps{}
Herbie Ong8170d692019-02-13 14:13:21 -0800524}
Joe Tsai61968ce2019-04-01 12:59:24 -0700525
526func (x *Maps) String() string {
527 return protoimpl.X.MessageStringOf(x)
528}
529
530func (*Maps) ProtoMessage() {}
531
532func (x *Maps) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700533 mi := &file_pb3_test_proto_msgTypes[5]
534 if protoimpl.UnsafeEnabled && x != nil {
535 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
536 if ms.LoadMessageInfo() == nil {
537 ms.StoreMessageInfo(mi)
538 }
539 return ms
540 }
541 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700542}
Joe Tsai8e506a82019-03-16 00:05:34 -0700543
Joe Tsai43761bd2019-07-17 18:06:47 -0700544// Deprecated: Use Maps.ProtoReflect.Descriptor instead.
Herbie Ong8170d692019-02-13 14:13:21 -0800545func (*Maps) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700546 return file_pb3_test_proto_rawDescGZIP(), []int{5}
Herbie Ong8170d692019-02-13 14:13:21 -0800547}
548
Joe Tsai61968ce2019-04-01 12:59:24 -0700549func (x *Maps) GetInt32ToStr() map[int32]string {
550 if x != nil {
551 return x.Int32ToStr
Herbie Ong8170d692019-02-13 14:13:21 -0800552 }
553 return nil
554}
555
Joe Tsai61968ce2019-04-01 12:59:24 -0700556func (x *Maps) GetBoolToUint32() map[bool]uint32 {
557 if x != nil {
558 return x.BoolToUint32
Herbie Ong8170d692019-02-13 14:13:21 -0800559 }
560 return nil
561}
562
Joe Tsai61968ce2019-04-01 12:59:24 -0700563func (x *Maps) GetUint64ToEnum() map[uint64]Enum {
564 if x != nil {
565 return x.Uint64ToEnum
Herbie Ong8170d692019-02-13 14:13:21 -0800566 }
567 return nil
568}
569
Joe Tsai61968ce2019-04-01 12:59:24 -0700570func (x *Maps) GetStrToNested() map[string]*Nested {
571 if x != nil {
572 return x.StrToNested
Herbie Ong8170d692019-02-13 14:13:21 -0800573 }
574 return nil
575}
576
Joe Tsai61968ce2019-04-01 12:59:24 -0700577func (x *Maps) GetStrToOneofs() map[string]*Oneofs {
578 if x != nil {
579 return x.StrToOneofs
Herbie Ong8170d692019-02-13 14:13:21 -0800580 }
581 return nil
582}
583
Herbie Ong7b828bc2019-02-08 19:56:24 -0800584// Message for testing json_name option.
585type JSONNames struct {
Joe Tsai82760ce2019-06-20 03:09:57 -0700586 state protoimpl.MessageState
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700587 sizeCache protoimpl.SizeCache
588 unknownFields protoimpl.UnknownFields
Joe Tsai38b61962019-08-05 13:09:30 -0700589 SString string `protobuf:"bytes,1,opt,name=s_string,json=foo_bar,proto3" json:"s_string,omitempty"`
Herbie Ong7b828bc2019-02-08 19:56:24 -0800590}
591
Joe Tsai61968ce2019-04-01 12:59:24 -0700592func (x *JSONNames) Reset() {
593 *x = JSONNames{}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800594}
Joe Tsai61968ce2019-04-01 12:59:24 -0700595
596func (x *JSONNames) String() string {
597 return protoimpl.X.MessageStringOf(x)
598}
599
600func (*JSONNames) ProtoMessage() {}
601
602func (x *JSONNames) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -0700603 mi := &file_pb3_test_proto_msgTypes[6]
604 if protoimpl.UnsafeEnabled && x != nil {
605 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
606 if ms.LoadMessageInfo() == nil {
607 ms.StoreMessageInfo(mi)
608 }
609 return ms
610 }
611 return mi.MessageOf(x)
Joe Tsai61968ce2019-04-01 12:59:24 -0700612}
Joe Tsai8e506a82019-03-16 00:05:34 -0700613
Joe Tsai43761bd2019-07-17 18:06:47 -0700614// Deprecated: Use JSONNames.ProtoReflect.Descriptor instead.
Herbie Ong7b828bc2019-02-08 19:56:24 -0800615func (*JSONNames) Descriptor() ([]byte, []int) {
Joe Tsai7ca70982019-04-15 13:57:56 -0700616 return file_pb3_test_proto_rawDescGZIP(), []int{6}
Herbie Ong7b828bc2019-02-08 19:56:24 -0800617}
618
Joe Tsai61968ce2019-04-01 12:59:24 -0700619func (x *JSONNames) GetSString() string {
620 if x != nil {
621 return x.SString
Herbie Ong7b828bc2019-02-08 19:56:24 -0800622 }
623 return ""
624}
625
Joe Tsai5d72cc22019-03-28 01:13:26 -0700626var File_pb3_test_proto protoreflect.FileDescriptor
627
Joe Tsai7ca70982019-04-15 13:57:56 -0700628var file_pb3_test_proto_rawDesc = []byte{
Joe Tsai19058432019-02-27 21:46:29 -0800629 0x0a, 0x0e, 0x70, 0x62, 0x33, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
630 0x12, 0x03, 0x70, 0x62, 0x33, 0x22, 0x9e, 0x03, 0x0a, 0x07, 0x53, 0x63, 0x61, 0x6c, 0x61, 0x72,
631 0x73, 0x12, 0x15, 0x0a, 0x06, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28,
632 0x08, 0x52, 0x05, 0x73, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e,
633 0x74, 0x33, 0x32, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x33,
634 0x32, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x03, 0x20, 0x01,
635 0x28, 0x03, 0x52, 0x06, 0x73, 0x49, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f,
636 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x73, 0x55,
637 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x36,
638 0x34, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x73, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34,
639 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x06, 0x20, 0x01,
640 0x28, 0x11, 0x52, 0x07, 0x73, 0x53, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12, 0x19, 0x0a, 0x08, 0x73,
641 0x5f, 0x73, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x18, 0x07, 0x20, 0x01, 0x28, 0x12, 0x52, 0x07, 0x73,
642 0x53, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65,
643 0x64, 0x33, 0x32, 0x18, 0x08, 0x20, 0x01, 0x28, 0x07, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65,
644 0x64, 0x33, 0x32, 0x12, 0x1b, 0x0a, 0x09, 0x73, 0x5f, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
645 0x18, 0x09, 0x20, 0x01, 0x28, 0x06, 0x52, 0x08, 0x73, 0x46, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34,
646 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x18, 0x0a,
647 0x20, 0x01, 0x28, 0x0f, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x33, 0x32, 0x12,
648 0x1d, 0x0a, 0x0a, 0x73, 0x5f, 0x73, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x18, 0x0b, 0x20,
649 0x01, 0x28, 0x10, 0x52, 0x09, 0x73, 0x53, 0x66, 0x69, 0x78, 0x65, 0x64, 0x36, 0x34, 0x12, 0x17,
650 0x0a, 0x07, 0x73, 0x5f, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x18, 0x14, 0x20, 0x01, 0x28, 0x02, 0x52,
651 0x06, 0x73, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x64, 0x6f, 0x75,
652 0x62, 0x6c, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x01, 0x52, 0x07, 0x73, 0x44, 0x6f, 0x75, 0x62,
653 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x0e, 0x20,
654 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73,
655 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73,
656 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x98, 0x01, 0x0a, 0x05, 0x45, 0x6e, 0x75, 0x6d, 0x73,
657 0x12, 0x20, 0x0a, 0x06, 0x73, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
658 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x73, 0x45, 0x6e,
659 0x75, 0x6d, 0x12, 0x39, 0x0a, 0x0d, 0x73, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x65,
660 0x6e, 0x75, 0x6d, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x70, 0x62, 0x33, 0x2e,
661 0x45, 0x6e, 0x75, 0x6d, 0x73, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d,
662 0x52, 0x0b, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x22, 0x32, 0x0a,
663 0x0a, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x43,
664 0x45, 0x52, 0x4f, 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x55, 0x4e, 0x4f, 0x10, 0x01, 0x12, 0x07,
665 0x0a, 0x03, 0x44, 0x4f, 0x53, 0x10, 0x02, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x49, 0x45, 0x5a, 0x10,
666 0x0a, 0x22, 0x2f, 0x0a, 0x05, 0x4e, 0x65, 0x73, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f,
667 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70,
668 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74,
669 0x65, 0x64, 0x22, 0x4b, 0x0a, 0x06, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x12, 0x19, 0x0a, 0x08,
670 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
671 0x73, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x26, 0x0a, 0x08, 0x73, 0x5f, 0x6e, 0x65, 0x73,
672 0x74, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e,
673 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x52, 0x07, 0x73, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22,
674 0x94, 0x01, 0x0a, 0x06, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x12, 0x2a, 0x0a, 0x0a, 0x6f, 0x6e,
675 0x65, 0x6f, 0x66, 0x5f, 0x65, 0x6e, 0x75, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09,
676 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x6f, 0x6e, 0x65,
677 0x6f, 0x66, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x23, 0x0a, 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x5f,
678 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b,
679 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x30, 0x0a, 0x0c, 0x6f,
680 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,
681 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x48, 0x00,
682 0x52, 0x0b, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x42, 0x07, 0x0a,
683 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x22, 0xaf, 0x05, 0x0a, 0x04, 0x4d, 0x61, 0x70, 0x73, 0x12,
684 0x3b, 0x0a, 0x0c, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x74, 0x6f, 0x5f, 0x73, 0x74, 0x72, 0x18,
685 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73,
686 0x2e, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79,
687 0x52, 0x0a, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72, 0x12, 0x41, 0x0a, 0x0e,
688 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x6f, 0x5f, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x18, 0x02,
689 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61, 0x70, 0x73, 0x2e,
690 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x45, 0x6e, 0x74, 0x72,
691 0x79, 0x52, 0x0c, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x12,
692 0x41, 0x0a, 0x0e, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x5f, 0x74, 0x6f, 0x5f, 0x65, 0x6e, 0x75,
693 0x6d, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4d, 0x61,
694 0x70, 0x73, 0x2e, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e, 0x75, 0x6d, 0x45,
695 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
696 0x75, 0x6d, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6e, 0x65, 0x73,
697 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
698 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
699 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74,
700 0x65, 0x64, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x5f, 0x74, 0x6f, 0x5f, 0x6f, 0x6e, 0x65,
701 0x6f, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x70, 0x62, 0x33, 0x2e,
702 0x4d, 0x61, 0x70, 0x73, 0x2e, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73,
703 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f,
704 0x66, 0x73, 0x1a, 0x3d, 0x0a, 0x0f, 0x49, 0x6e, 0x74, 0x33, 0x32, 0x54, 0x6f, 0x53, 0x74, 0x72,
705 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
706 0x28, 0x05, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
707 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
708 0x01, 0x1a, 0x3f, 0x0a, 0x11, 0x42, 0x6f, 0x6f, 0x6c, 0x54, 0x6f, 0x55, 0x69, 0x6e, 0x74, 0x33,
709 0x32, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
710 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
711 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
712 0x38, 0x01, 0x1a, 0x4a, 0x0a, 0x11, 0x55, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x54, 0x6f, 0x45, 0x6e,
713 0x75, 0x6d, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
714 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x05, 0x76, 0x61, 0x6c,
715 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x45,
716 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b,
717 0x0a, 0x10, 0x53, 0x74, 0x72, 0x54, 0x6f, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x45, 0x6e, 0x74,
718 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
719 0x03, 0x6b, 0x65, 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
720 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4e, 0x65, 0x73, 0x74, 0x65, 0x64,
721 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x4b, 0x0a, 0x10, 0x53,
722 0x74, 0x72, 0x54, 0x6f, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
723 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
724 0x79, 0x12, 0x21, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
725 0x32, 0x0b, 0x2e, 0x70, 0x62, 0x33, 0x2e, 0x4f, 0x6e, 0x65, 0x6f, 0x66, 0x73, 0x52, 0x05, 0x76,
726 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x26, 0x0a, 0x09, 0x4a, 0x53, 0x4f, 0x4e,
727 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x73, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e,
728 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x66, 0x6f, 0x6f, 0x5f, 0x62, 0x61, 0x72,
729 0x2a, 0x2b, 0x0a, 0x04, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x08, 0x0a, 0x04, 0x5a, 0x45, 0x52, 0x4f,
730 0x10, 0x00, 0x12, 0x07, 0x0a, 0x03, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x07, 0x0a, 0x03, 0x54,
Damien Neile89e6242019-05-13 23:55:40 -0700731 0x57, 0x4f, 0x10, 0x02, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x45, 0x4e, 0x10, 0x0a, 0x42, 0x34, 0x5a,
732 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
733 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6e, 0x63, 0x6f,
734 0x64, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x73, 0x2f,
735 0x70, 0x62, 0x33, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
Herbie Ong8170d692019-02-13 14:13:21 -0800736}
737
Joe Tsai5d72cc22019-03-28 01:13:26 -0700738var (
Joe Tsai7ca70982019-04-15 13:57:56 -0700739 file_pb3_test_proto_rawDescOnce sync.Once
740 file_pb3_test_proto_rawDescData = file_pb3_test_proto_rawDesc
Joe Tsai5d72cc22019-03-28 01:13:26 -0700741)
Herbie Ong8170d692019-02-13 14:13:21 -0800742
Joe Tsai7ca70982019-04-15 13:57:56 -0700743func file_pb3_test_proto_rawDescGZIP() []byte {
744 file_pb3_test_proto_rawDescOnce.Do(func() {
745 file_pb3_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_pb3_test_proto_rawDescData)
Joe Tsai5d72cc22019-03-28 01:13:26 -0700746 })
Joe Tsai7ca70982019-04-15 13:57:56 -0700747 return file_pb3_test_proto_rawDescData
Joe Tsai5d72cc22019-03-28 01:13:26 -0700748}
Herbie Ong8170d692019-02-13 14:13:21 -0800749
Joe Tsaid8881392019-06-06 13:01:53 -0700750var file_pb3_test_proto_enumTypes = make([]prototype.Enum, 2)
Joe Tsai4fe96632019-05-22 05:12:36 -0400751var file_pb3_test_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
Joe Tsai7ca70982019-04-15 13:57:56 -0700752var file_pb3_test_proto_goTypes = []interface{}{
Herbie Ong8170d692019-02-13 14:13:21 -0800753 (Enum)(0), // 0: pb3.Enum
754 (Enums_NestedEnum)(0), // 1: pb3.Enums.NestedEnum
755 (*Scalars)(nil), // 2: pb3.Scalars
756 (*Enums)(nil), // 3: pb3.Enums
757 (*Nests)(nil), // 4: pb3.Nests
758 (*Nested)(nil), // 5: pb3.Nested
759 (*Oneofs)(nil), // 6: pb3.Oneofs
760 (*Maps)(nil), // 7: pb3.Maps
Herbie Ong7b828bc2019-02-08 19:56:24 -0800761 (*JSONNames)(nil), // 8: pb3.JSONNames
762 nil, // 9: pb3.Maps.Int32ToStrEntry
763 nil, // 10: pb3.Maps.BoolToUint32Entry
764 nil, // 11: pb3.Maps.Uint64ToEnumEntry
765 nil, // 12: pb3.Maps.StrToNestedEntry
766 nil, // 13: pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800767}
Joe Tsai7ca70982019-04-15 13:57:56 -0700768var file_pb3_test_proto_depIdxs = []int32{
Herbie Ong8170d692019-02-13 14:13:21 -0800769 0, // pb3.Enums.s_enum:type_name -> pb3.Enum
770 1, // pb3.Enums.s_nested_enum:type_name -> pb3.Enums.NestedEnum
771 5, // pb3.Nests.s_nested:type_name -> pb3.Nested
772 5, // pb3.Nested.s_nested:type_name -> pb3.Nested
773 0, // pb3.Oneofs.oneof_enum:type_name -> pb3.Enum
774 5, // pb3.Oneofs.oneof_nested:type_name -> pb3.Nested
Herbie Ong7b828bc2019-02-08 19:56:24 -0800775 9, // pb3.Maps.int32_to_str:type_name -> pb3.Maps.Int32ToStrEntry
776 10, // pb3.Maps.bool_to_uint32:type_name -> pb3.Maps.BoolToUint32Entry
777 11, // pb3.Maps.uint64_to_enum:type_name -> pb3.Maps.Uint64ToEnumEntry
778 12, // pb3.Maps.str_to_nested:type_name -> pb3.Maps.StrToNestedEntry
779 13, // pb3.Maps.str_to_oneofs:type_name -> pb3.Maps.StrToOneofsEntry
Herbie Ong8170d692019-02-13 14:13:21 -0800780 0, // pb3.Maps.Uint64ToEnumEntry.value:type_name -> pb3.Enum
781 5, // pb3.Maps.StrToNestedEntry.value:type_name -> pb3.Nested
782 6, // pb3.Maps.StrToOneofsEntry.value:type_name -> pb3.Oneofs
Joe Tsaid8881392019-06-06 13:01:53 -0700783 14, // starting offset of method output_type sub-list
784 14, // starting offset of method input_type sub-list
785 14, // starting offset of extension type_name sub-list
786 14, // starting offset of extension extendee sub-list
787 0, // starting offset of field type_name sub-list
Herbie Ong8170d692019-02-13 14:13:21 -0800788}
789
Joe Tsai7ca70982019-04-15 13:57:56 -0700790func init() { file_pb3_test_proto_init() }
791func file_pb3_test_proto_init() {
Damien Neil0fc22452019-03-08 17:18:11 -0800792 if File_pb3_test_proto != nil {
793 return
794 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700795 if !protoimpl.UnsafeEnabled {
796 file_pb3_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
797 switch v := v.(*Scalars); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700798 case 0:
799 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700800 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700801 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700802 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700803 return &v.unknownFields
804 default:
805 return nil
806 }
807 }
808 file_pb3_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
809 switch v := v.(*Enums); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700810 case 0:
811 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700812 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700813 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700814 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700815 return &v.unknownFields
816 default:
817 return nil
818 }
819 }
820 file_pb3_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
821 switch v := v.(*Nests); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700822 case 0:
823 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700824 case 1:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700825 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700826 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700827 return &v.unknownFields
828 default:
829 return nil
830 }
831 }
Joe Tsai82760ce2019-06-20 03:09:57 -0700832 file_pb3_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
833 switch v := v.(*Nested); i {
834 case 0:
835 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700836 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700837 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700838 case 2:
Joe Tsai82760ce2019-06-20 03:09:57 -0700839 return &v.unknownFields
840 default:
841 return nil
842 }
843 }
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700844 file_pb3_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
845 switch v := v.(*Oneofs); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700846 case 0:
847 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700848 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700849 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700850 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700851 return &v.unknownFields
852 default:
853 return nil
854 }
855 }
856 file_pb3_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
857 switch v := v.(*Maps); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700858 case 0:
859 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700860 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700861 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700862 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700863 return &v.unknownFields
864 default:
865 return nil
866 }
867 }
868 file_pb3_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
869 switch v := v.(*JSONNames); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700870 case 0:
871 return &v.state
Joe Tsai38b61962019-08-05 13:09:30 -0700872 case 1:
Joe Tsai82760ce2019-06-20 03:09:57 -0700873 return &v.sizeCache
Joe Tsai38b61962019-08-05 13:09:30 -0700874 case 2:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700875 return &v.unknownFields
876 default:
877 return nil
878 }
879 }
880 }
Joe Tsai09912272019-07-08 10:38:11 -0700881 file_pb3_test_proto_msgTypes[4].OneofWrappers = []interface{}{
882 (*Oneofs_OneofEnum)(nil),
883 (*Oneofs_OneofString)(nil),
884 (*Oneofs_OneofNested)(nil),
885 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700886 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700887 out := protoimpl.TypeBuilder{
888 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700889 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700890 RawDescriptor: file_pb3_test_proto_rawDesc,
891 NumEnums: 2,
892 NumMessages: 12,
893 NumExtensions: 0,
894 NumServices: 0,
895 },
896 GoTypes: file_pb3_test_proto_goTypes,
897 DependencyIndexes: file_pb3_test_proto_depIdxs,
898 MessageInfos: file_pb3_test_proto_msgTypes,
899 }.Build()
900 File_pb3_test_proto = out.File
901 file_pb3_test_proto_enumTypes = out.Enums
Joe Tsai7ca70982019-04-15 13:57:56 -0700902 file_pb3_test_proto_rawDesc = nil
903 file_pb3_test_proto_goTypes = nil
904 file_pb3_test_proto_depIdxs = nil
Herbie Ong8170d692019-02-13 14:13:21 -0800905}